aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-23 19:22:43 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-23 19:22:43 +0800
commit784b4a32084df08c173e6ca63a8d270e01cc81eb (patch)
treefced3d6da6d59f0963b9d0fece7f443c2e689301
parentf78f4f123ab01a70e7f8c7bb659e39bb0a4bc9ae (diff)
downloadgsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar.gz
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar.bz2
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar.lz
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar.xz
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.tar.zst
gsoc2013-empathy-784b4a32084df08c173e6ca63a8d270e01cc81eb.zip
pass NULL instead of "" to gtk_label_new()
This saves us a strdup.
-rw-r--r--src/empathy-account-assistant.c2
-rw-r--r--src/empathy-sidebar.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c
index 585916903..e302aaf66 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 58f5d952c..8c979213c 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,