gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32052 - gnunet-gtk/src/conversation


From: gnunet
Subject: [GNUnet-SVN] r32052 - gnunet-gtk/src/conversation
Date: Mon, 27 Jan 2014 22:43:37 +0100

Author: yids
Date: 2014-01-27 22:43:37 +0100 (Mon, 27 Jan 2014)
New Revision: 32052

Modified:
   gnunet-gtk/src/conversation/gnunet-conversation-gtk.c
Log:
Double clicking on a contact now initiates a call


Modified: gnunet-gtk/src/conversation/gnunet-conversation-gtk.c
===================================================================
--- gnunet-gtk/src/conversation/gnunet-conversation-gtk.c       2014-01-27 
20:44:50 UTC (rev 32051)
+++ gnunet-gtk/src/conversation/gnunet-conversation-gtk.c       2014-01-27 
21:43:37 UTC (rev 32052)
@@ -463,6 +463,8 @@
   call =
       GNUNET_CONVERSATION_call_start (cfg, caller_id, arg, speaker, mic,
                                       &call_event_handler, NULL);
+  UPDATE_STATUS (_("We are calling `%s', his phone should be ringing.\n"),
+                     peer_name);
 }
 
 
@@ -1414,7 +1416,17 @@
   FPRINTF (stderr, "adding\n");
   FPRINTF (stderr, "name: %s\n", name);
   FPRINTF (stderr, "address: %s\n", address);
-  add_qe =
+  if (GNUNET_OK !=
+        GNUNET_GNSRECORD_string_to_value (65536,
+                                          address,
+                                          &data,
+                                          &data_size))
+    {
+      FPRINTF (stderr, "invalid address\n");
+    }
+  else
+    {
+     add_qe =
       GNUNET_NAMESTORE_records_store (ns, 
                                      &zone_pkey, 
                                      name, 
@@ -1422,9 +1434,9 @@
                                      rde, 
                                      &add_continuation,
                                       &add_qe);
-  gtk_list_store_append (contacts_liststore, &iter);
-  gtk_list_store_set (contacts_liststore, &iter, 1, "PKEY", 0, name, -1);
-
+      gtk_list_store_append (contacts_liststore, &iter);
+      gtk_list_store_set (contacts_liststore, &iter, 1, "PKEY", 0, name, -1);
+    }
 }
 
 /*
@@ -1586,7 +1598,7 @@
 
   address_entry = GTK_ENTRY ((get_object ("GNUNET_GTK_conversation_address")));
   gtk_entry_set_text (address_entry, callAddress);
-
+  do_call (callAddress);
 }
 
 /* end of gnunet-conversation-gtk.c */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]