aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryids <yids@140774ce-b5e7-0310-ab8b-a85725594a96>2014-01-27 21:43:37 +0000
committeryids <yids@140774ce-b5e7-0310-ab8b-a85725594a96>2014-01-27 21:43:37 +0000
commit08cfb52a7493364ccd132f9bf10780875554692b (patch)
tree94760aeabee8becf4c7127bb100e6833541c15fe
parent9889ef34fb63280180210d76754c7bbce93cf160 (diff)
downloadgnunet-gtk-08cfb52a7493364ccd132f9bf10780875554692b.tar.gz
gnunet-gtk-08cfb52a7493364ccd132f9bf10780875554692b.zip
Double clicking on a contact now initiates a call
-rw-r--r--src/conversation/gnunet-conversation-gtk.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/conversation/gnunet-conversation-gtk.c b/src/conversation/gnunet-conversation-gtk.c
index c20a97b2..5ac39aea 100644
--- a/src/conversation/gnunet-conversation-gtk.c
+++ b/src/conversation/gnunet-conversation-gtk.c
@@ -463,6 +463,8 @@ do_call (const char *arg)
463 call = 463 call =
464 GNUNET_CONVERSATION_call_start (cfg, caller_id, arg, speaker, mic, 464 GNUNET_CONVERSATION_call_start (cfg, caller_id, arg, speaker, mic,
465 &call_event_handler, NULL); 465 &call_event_handler, NULL);
466 UPDATE_STATUS (_("We are calling `%s', his phone should be ringing.\n"),
467 peer_name);
466} 468}
467 469
468 470
@@ -1414,7 +1416,17 @@ void add_contact(char *name, char *address)
1414 FPRINTF (stderr, "adding\n"); 1416 FPRINTF (stderr, "adding\n");
1415 FPRINTF (stderr, "name: %s\n", name); 1417 FPRINTF (stderr, "name: %s\n", name);
1416 FPRINTF (stderr, "address: %s\n", address); 1418 FPRINTF (stderr, "address: %s\n", address);
1417 add_qe = 1419 if (GNUNET_OK !=
1420 GNUNET_GNSRECORD_string_to_value (65536,
1421 address,
1422 &data,
1423 &data_size))
1424 {
1425 FPRINTF (stderr, "invalid address\n");
1426 }
1427 else
1428 {
1429 add_qe =
1418 GNUNET_NAMESTORE_records_store (ns, 1430 GNUNET_NAMESTORE_records_store (ns,
1419 &zone_pkey, 1431 &zone_pkey,
1420 name, 1432 name,
@@ -1422,9 +1434,9 @@ void add_contact(char *name, char *address)
1422 rde, 1434 rde,
1423 &add_continuation, 1435 &add_continuation,
1424 &add_qe); 1436 &add_qe);
1425 gtk_list_store_append (contacts_liststore, &iter); 1437 gtk_list_store_append (contacts_liststore, &iter);
1426 gtk_list_store_set (contacts_liststore, &iter, 1, "PKEY", 0, name, -1); 1438 gtk_list_store_set (contacts_liststore, &iter, 1, "PKEY", 0, name, -1);
1427 1439 }
1428} 1440}
1429 1441
1430/* 1442/*
@@ -1586,7 +1598,7 @@ GNUNET_CONVERSATION_GTK_row_activated ()
1586 1598
1587 address_entry = GTK_ENTRY ((get_object ("GNUNET_GTK_conversation_address"))); 1599 address_entry = GTK_ENTRY ((get_object ("GNUNET_GTK_conversation_address")));
1588 gtk_entry_set_text (address_entry, callAddress); 1600 gtk_entry_set_text (address_entry, callAddress);
1589 1601 do_call (callAddress);
1590} 1602}
1591 1603
1592/* end of gnunet-conversation-gtk.c */ 1604/* end of gnunet-conversation-gtk.c */