From 784b4a32084df08c173e6ca63a8d270e01cc81eb Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 23 Aug 2010 13:22:43 +0200 Subject: 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(-) (limited to 'src') 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 (%s).", _("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, -- cgit v1.2.3