aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation-gtk_contacts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversation/gnunet-conversation-gtk_contacts.c')
-rw-r--r--src/conversation/gnunet-conversation-gtk_contacts.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.c b/src/conversation/gnunet-conversation-gtk_contacts.c
index 17fda5e5..f3e2bf0c 100644
--- a/src/conversation/gnunet-conversation-gtk_contacts.c
+++ b/src/conversation/gnunet-conversation-gtk_contacts.c
@@ -46,7 +46,7 @@
46/** 46/**
47 * Our configurations. 47 * Our configurations.
48 */ 48 */
49static struct GNUNET_CONFIGURATION_Handle *cfg; 49//static struct GNUNET_CONFIGURATION_Handle *cfg;
50/** 50/**
51 * Name of our ego. 51 * Name of our ego.
52 */ 52 */
@@ -302,7 +302,7 @@ identity_cb (void *cls, struct GNUNET_IDENTITY_Ego *ego, void **ctx,
302 302
303 303
304// zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (caller_id); 304// zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (caller_id);
305 ns = GNUNET_NAMESTORE_connect (cfg); 305 ns = GNUNET_NAMESTORE_connect (GIG_get_configuration ());
306 306
307 307
308// list_it = 308// list_it =
@@ -386,7 +386,7 @@ add_contact (const gchar * name, const gchar * address)
386 struct GNUNET_IDENTITY_Ego *tempEgo; 386 struct GNUNET_IDENTITY_Ego *tempEgo;
387 char *tempName; 387 char *tempName;
388 GtkTreeIter testIter; 388 GtkTreeIter testIter;
389 gtk_combo_box_get_active_iter(GTK_WIDGET (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_combobox")), &testIter); 389 gtk_combo_box_get_active_iter(GTK_COMBO_BOX (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_combobox")), &testIter);
390 390
391 gtk_tree_model_get (GTK_TREE_MODEL (zone_liststore), 391 gtk_tree_model_get (GTK_TREE_MODEL (zone_liststore),
392 &testIter, 392 &testIter,
@@ -466,7 +466,7 @@ GNUNET_CONVERSATION_GTK_on_remove_clicked (GtkButton * button,
466 GTK_DIALOG_DESTROY_WITH_PARENT, _("Yes"), 466 GTK_DIALOG_DESTROY_WITH_PARENT, _("Yes"),
467 GTK_RESPONSE_ACCEPT, _("No"), GTK_RESPONSE_CANCEL, NULL)); 467 GTK_RESPONSE_ACCEPT, _("No"), GTK_RESPONSE_CANCEL, NULL));
468 content_area = 468 content_area =
469 GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (confirm))); 469 GTK_HBOX (gtk_dialog_get_content_area (GTK_DIALOG (confirm)));
470 notification = 470 notification =
471 GTK_LABEL (gtk_label_new 471 GTK_LABEL (gtk_label_new
472 ("Do you really want to remove this contact?")); 472 ("Do you really want to remove this contact?"));
@@ -497,7 +497,7 @@ GNUNET_CONVERSATION_GTK_on_current_clicked (GtkButton * button,
497{ 497{
498 GtkEntry *addressEntry; 498 GtkEntry *addressEntry;
499// FPRINTF(stderr,"on current clicked %s\n",callerName); 499// FPRINTF(stderr,"on current clicked %s\n",callerName);
500 char *strippedAddress; 500 //char *strippedAddress;
501 addressEntry = GTK_ENTRY (GNUNET_CONVERSATION_GTK_get_main_window_object ("GNUNET_GTK_conversation_addressAdd")); 501 addressEntry = GTK_ENTRY (GNUNET_CONVERSATION_GTK_get_main_window_object ("GNUNET_GTK_conversation_addressAdd"));
502 currentlySelectedCallAddress[52] = '\0'; 502 currentlySelectedCallAddress[52] = '\0';
503 gtk_entry_set_text(addressEntry, currentlySelectedCallAddress); 503 gtk_entry_set_text(addressEntry, currentlySelectedCallAddress);
@@ -535,11 +535,11 @@ GNUNET_CONVERSATION_GTK_row_activated ()
535 g_print ("type @row active%s", type); 535 g_print ("type @row active%s", type);
536 if (strcmp (type, "PKEY") == 0) 536 if (strcmp (type, "PKEY") == 0)
537 { 537 {
538 GNUNET_asprintf (&callAddress, "call\.%s\.gnu", name); 538 GNUNET_asprintf (&callAddress, "call.%s.gnu", name);
539 } 539 }
540 if (strcmp (type, "PHONE") == 0) 540 if (strcmp (type, "PHONE") == 0)
541 { 541 {
542 GNUNET_asprintf (&callAddress, "%s\.gnu", name); 542 GNUNET_asprintf (&callAddress, "%s.gnu", name);
543 } 543 }
544// else { GNUNET_asprintf(&callAddress, "%s", peer_id);} 544// else { GNUNET_asprintf(&callAddress, "%s", peer_id);}
545 545
@@ -566,7 +566,7 @@ print_ego (void *cls,
566// GNUNET_free (s); 566// GNUNET_free (s);
567} 567}
568*/ 568*/
569GNUNET_IDENTITY_EgoCallback 569static void
570setCurrentAddressbookEgo(void *cls, struct GNUNET_IDENTITY_Ego *ego) 570setCurrentAddressbookEgo(void *cls, struct GNUNET_IDENTITY_Ego *ego)
571{ 571{
572 currentAddressBookEgo = ego; 572 currentAddressBookEgo = ego;
@@ -587,8 +587,8 @@ gnunet_conversation_gtk_contacts_zone_combobox_changed_cb (GtkComboBox *widget,
587 struct GNUNET_IDENTITY_Ego *tempEgo; 587 struct GNUNET_IDENTITY_Ego *tempEgo;
588 char *tempName; 588 char *tempName;
589 struct GNUNET_CRYPTO_EcdsaPrivateKey temp_zone_pkey; 589 struct GNUNET_CRYPTO_EcdsaPrivateKey temp_zone_pkey;
590 GtkTreeSelection *selection; 590 //GtkTreeSelection *selection;
591 GtkTreeIter iterA; 591 //GtkTreeIter iterA;
592 592
593 593
594 gtk_combo_box_get_active_iter(widget, &contacts_zone_iter); 594 gtk_combo_box_get_active_iter(widget, &contacts_zone_iter);
@@ -631,7 +631,7 @@ GNUNET_CONVERSATION_GTK_CONTACTS_init ()
631{ 631{
632 GtkTreeIter iterContactsInit; 632 GtkTreeIter iterContactsInit;
633 633
634 cfg = GIG_get_configuration (); 634 //cfg = GIG_get_configuration ();
635 635
636 636
637 // contacts 637 // contacts
@@ -655,9 +655,9 @@ GNUNET_CONVERSATION_GTK_CONTACTS_init ()
655 gtk_tree_model_get_iter_first(zone_treemodel, &iterContactsInit); 655 gtk_tree_model_get_iter_first(zone_treemodel, &iterContactsInit);
656 gtk_tree_model_iter_next(zone_treemodel, &iterContactsInit); 656 gtk_tree_model_iter_next(zone_treemodel, &iterContactsInit);
657 657
658 gtk_combo_box_set_active_iter(GTK_WIDGET (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_combobox")), &iterContactsInit); 658 gtk_combo_box_set_active_iter(GTK_COMBO_BOX (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_combobox")), &iterContactsInit);
659 659
660 id = GNUNET_IDENTITY_connect (cfg, &identity_cb, NULL); 660 id = GNUNET_IDENTITY_connect (GIG_get_configuration (), &identity_cb, NULL);
661// zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (caller_id); 661// zone_pkey = *GNUNET_IDENTITY_ego_get_private_key (caller_id);
662// gtk_combo_box_set_active(GTK_WIDGET (get_object ("gnunet_conversation_gtk_contacts_zone_combobox")), 1); 662// gtk_combo_box_set_active(GTK_WIDGET (get_object ("gnunet_conversation_gtk_contacts_zone_combobox")), 1);
663// gtk_combo_box_set_active(GTK_WIDGET (get_object (ml,"gnunet_conversation_gtk_outgoing_zone_combobox")), 1); 663// gtk_combo_box_set_active(GTK_WIDGET (get_object (ml,"gnunet_conversation_gtk_outgoing_zone_combobox")), 1);