aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation-gtk_egos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk_egos.c')
-rw-r--r--src/conversation/gnunet-conversation-gtk_egos.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_egos.c b/src/conversation/gnunet-conversation-gtk_egos.c
index 91ed2de7..430eda40 100644
--- a/src/conversation/gnunet-conversation-gtk_egos.c
+++ b/src/conversation/gnunet-conversation-gtk_egos.c
@@ -171,19 +171,18 @@ gnunet_conversation_gtk_ego_copy_button_clicked_cb (GtkButton *button,
171{ 171{
172 struct GNUNET_IDENTITY_Ego *ego; 172 struct GNUNET_IDENTITY_Ego *ego;
173 const gchar *label; 173 const gchar *label;
174 const struct GNUNET_IDENTITY_PrivateKey *priv;
175 struct GNUNET_IDENTITY_PublicKey pub; 174 struct GNUNET_IDENTITY_PublicKey pub;
176 const char *zkey; 175 const char *zkey;
177 char *uri; 176 char *uri;
178 GtkClipboard *cb; 177 GtkClipboard *cb;
179 178
180 label = gtk_entry_get_text (GTK_ENTRY ( 179 label = gtk_entry_get_text (GTK_ENTRY (
181 GCG_get_main_window_object ("gnunet_conversation_gtk_ego_label_entry"))); 180 GCG_get_main_window_object (
181 "gnunet_conversation_gtk_ego_label_entry")));
182 GNUNET_break ((NULL != label) && (0 != strlen (label))); 182 GNUNET_break ((NULL != label) && (0 != strlen (label)));
183 ego = GCG_EGOS_get_selected_ego (); 183 ego = GCG_EGOS_get_selected_ego ();
184 GNUNET_break (NULL != ego); 184 GNUNET_break (NULL != ego);
185 priv = GNUNET_IDENTITY_ego_get_private_key (ego); 185 GNUNET_IDENTITY_ego_get_public_key (ego, &pub);
186 GNUNET_IDENTITY_ego_get_public_key (priv, &pub);
187 zkey = GNUNET_GNSRECORD_pkey_to_zkey (&pub); 186 zkey = GNUNET_GNSRECORD_pkey_to_zkey (&pub);
188 GNUNET_asprintf (&uri, "gnunet://gns/%s.%s/", label, zkey); 187 GNUNET_asprintf (&uri, "gnunet://gns/%s.%s/", label, zkey);
189 cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); 188 cb = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD);
@@ -227,4 +226,5 @@ GCG_EGOS_shutdown ()
227 } 226 }
228} 227}
229 228
229
230/* end of gnunet-conversation-gtk_egos.c */ 230/* end of gnunet-conversation-gtk_egos.c */