[empathy] pass NULL instead of "" to gtk_label_new()



commit 784b4a32084df08c173e6ca63a8d270e01cc81eb
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Aug 23 13:22:43 2010 +0200

    pass NULL instead of "" to gtk_label_new()
    
    This saves us a strdup.

 src/empathy-account-assistant.c |    2 +-
 src/empathy-sidebar.c           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index 5859169..e302aaf 100644
--- a/src/empathy-account-assistant.c
+++ b/src/empathy-account-assistant.c
@@ -1120,7 +1120,7 @@ account_assistant_build_salut_page (EmpathyAccountAssistant *self)
   gtk_box_pack_start (GTK_BOX (main_vbox), hbox_1, TRUE, TRUE, 0);
   gtk_widget_show (hbox_1);
 
-  w = gtk_label_new ("");
+  w = gtk_label_new (NULL);
   markup = g_strdup_printf ("%s (<span style=\"italic\">%s</span>).",
       _("Empathy can automatically discover and chat with the people "
         "connected on the same network as you. "
diff --git a/src/empathy-sidebar.c b/src/empathy-sidebar.c
index 58f5d95..8c97921 100644
--- a/src/empathy-sidebar.c
+++ b/src/empathy-sidebar.c
@@ -415,7 +415,7 @@ empathy_sidebar_init (EmpathySidebar *sidebar)
 
   select_hbox = gtk_hbox_new (FALSE, 0);
 
-  sidebar->priv->label = gtk_label_new ("");
+  sidebar->priv->label = gtk_label_new (NULL);
 
   gtk_box_pack_start (GTK_BOX (select_hbox),
       sidebar->priv->label,



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