aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryids <yids@140774ce-b5e7-0310-ab8b-a85725594a96>2014-02-17 03:08:34 +0000
committeryids <yids@140774ce-b5e7-0310-ab8b-a85725594a96>2014-02-17 03:08:34 +0000
commit7647b01f647f40971ad40f0e8d3ff2e3d73b7f09 (patch)
tree8211f0f73801b0538e01eec1aa142877cecd9937
parent8bbcf9b17c31bd4d9033307f6edd2db38c4aa43f (diff)
downloadgnunet-gtk-7647b01f647f40971ad40f0e8d3ff2e3d73b7f09.tar.gz
gnunet-gtk-7647b01f647f40971ad40f0e8d3ff2e3d73b7f09.zip
- fixed quiting
- added some global functions to contacts header
-rw-r--r--src/conversation/gnunet-conversation-gtk.c2
-rw-r--r--src/conversation/gnunet-conversation-gtk_contacts.c13
-rw-r--r--src/conversation/gnunet-conversation-gtk_contacts.h20
3 files changed, 18 insertions, 17 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.c b/src/conversation/gnunet-conversation-gtk.c
index aa7bba1f..7b6b9fa6 100644
--- a/src/conversation/gnunet-conversation-gtk.c
+++ b/src/conversation/gnunet-conversation-gtk.c
@@ -1229,7 +1229,7 @@ GNUNET_GTK_conversation_quit_cb (GObject * object, gpointer user_data)
1229 // GNUNET_NAMESTORE_disconnect (ns); 1229 // GNUNET_NAMESTORE_disconnect (ns);
1230 // ns = NULL; 1230 // ns = NULL;
1231 //} 1231 //}
1232 1232 GNUNET_CONVERSATION_GTK_CONTACTS_shutdown();
1233 GNUNET_SPEAKER_destroy (speaker); 1233 GNUNET_SPEAKER_destroy (speaker);
1234 speaker = NULL; 1234 speaker = NULL;
1235 GNUNET_MICROPHONE_destroy (mic); 1235 GNUNET_MICROPHONE_destroy (mic);
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.c b/src/conversation/gnunet-conversation-gtk_contacts.c
index 6daf8a0f..17fda5e5 100644
--- a/src/conversation/gnunet-conversation-gtk_contacts.c
+++ b/src/conversation/gnunet-conversation-gtk_contacts.c
@@ -548,7 +548,7 @@ GNUNET_CONVERSATION_GTK_row_activated ()
548 548
549 address_entry = GTK_ENTRY ( GNUNET_CONVERSATION_GTK_get_main_window_object ("GNUNET_GTK_conversation_address")); 549 address_entry = GTK_ENTRY ( GNUNET_CONVERSATION_GTK_get_main_window_object ("GNUNET_GTK_conversation_address"));
550 gtk_entry_set_text (address_entry, callAddress); 550 gtk_entry_set_text (address_entry, callAddress);
551 //do_call (callAddress); 551 do_call (callAddress);
552} 552}
553 553
554/* 554/*
@@ -642,13 +642,15 @@ GNUNET_CONVERSATION_GTK_CONTACTS_init ()
642 GTK_TREE_VIEW (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_treeview")); 642 GTK_TREE_VIEW (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_treeview"));
643 contacts_treemodel = GTK_TREE_MODEL (contacts_liststore); 643 contacts_treemodel = GTK_TREE_MODEL (contacts_liststore);
644 644
645 645 // zone list
646 // zone list
647 zone_liststore = 646 zone_liststore =
648 GTK_LIST_STORE (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_liststore")); 647 GTK_LIST_STORE (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_liststore"));
648
649 zone_treestore = 649 zone_treestore =
650 GTK_TREE_STORE (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_treestore")); 650 GTK_TREE_STORE (GNUNET_CONVERSATION_GTK_get_main_window_object ("gnunet_conversation_gtk_contacts_zone_treestore"));
651 zone_treemodel = GTK_TREE_MODEL (zone_liststore); 651 zone_treemodel = GTK_TREE_MODEL (zone_liststore);
652 zone_treeview =
653 GTK_TREE_VIEW (get_object ("gnunet_conversation_gtk_zone_treeview"));
652 654
653 gtk_tree_model_get_iter_first(zone_treemodel, &iterContactsInit); 655 gtk_tree_model_get_iter_first(zone_treemodel, &iterContactsInit);
654 gtk_tree_model_iter_next(zone_treemodel, &iterContactsInit); 656 gtk_tree_model_iter_next(zone_treemodel, &iterContactsInit);
@@ -665,7 +667,8 @@ GNUNET_CONVERSATION_GTK_CONTACTS_init ()
665extern void 667extern void
666GNUNET_CONVERSATION_GTK_CONTACTS_shutdown() 668GNUNET_CONVERSATION_GTK_CONTACTS_shutdown()
667{ 669{
668 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey); 670 GNUNET_CRYPTO_ecdsa_key_clear (&zone_pkey);
671 GNUNET_IDENTITY_disconnect(id);
669} 672}
670 673
671 674
diff --git a/src/conversation/gnunet-conversation-gtk_contacts.h b/src/conversation/gnunet-conversation-gtk_contacts.h
index d3d9e5ab..0e171c8a 100644
--- a/src/conversation/gnunet-conversation-gtk_contacts.h
+++ b/src/conversation/gnunet-conversation-gtk_contacts.h
@@ -34,19 +34,17 @@ display_record (void *cls, const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone_key,
34extern char *currentlySelectedCallAddress; 34extern char *currentlySelectedCallAddress;
35 35
36/** 36/**
37 * List of contacts (records). 37 * function to initialize the contact list
38 */ 38*/
39extern GtkListStore *contacts_liststore;
40 39
40extern void
41GNUNET_CONVERSATION_GTK_CONTACTS_init ();
41 42
42/** 43/**
43 * List of contacts. 44 * function to shutdown the contact list
44 */ 45*/
45//static GtkTreeStore *contacts_treestore;
46 46
47/** 47extern void
48 * The main tree view for 'gns' that shows the records. 48GNUNET_CONVERSATION_GTK_CONTACTS_shutdown();
49 */
50extern GtkTreeView *contacts_treeview;
51 49
52 50