[Xfce4-commits] r29646 - libxfce4ui/trunk/libxfce4ui
Nick Schermer
nick at xfce.org
Sat Mar 7 00:11:31 CET 2009
Author: nick
Date: 2009-03-06 23:11:31 +0000 (Fri, 06 Mar 2009)
New Revision: 29646
Modified:
libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
Log:
Fix bold labels in the dialogs.
Modified: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
===================================================================
--- libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c 2009-03-05 14:52:02 UTC (rev 29645)
+++ libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c 2009-03-06 23:11:31 UTC (rev 29646)
@@ -54,7 +54,6 @@
GtkWidget *dialog;
GtkWindow *window;
GdkScreen *screen;
- gchar *markup;
GtkWidget *image;
GtkWidget *button;
const gchar *text = first_button_type;
@@ -73,12 +72,11 @@
if (G_LIKELY (primary_text != NULL))
{
/* create dialog with large bold text */
- markup = g_strdup_printf ("<span weight='bold' size='large'>%s</span>", primary_text);
dialog = gtk_message_dialog_new_with_markup (window,
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
GTK_MESSAGE_OTHER, GTK_BUTTONS_NONE,
- "%s", markup);
- g_free (markup);
+ "<span weight='bold' size='large'>%s</span>",
+ primary_text);
/* set secondary text */
if (secondary_text != NULL)
More information about the Xfce4-commits
mailing list