[file-roller] message dialog: use a big font when the secondary message is not present



commit f36730306550c2fc1fe0380d4e040a0b3be96be9
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Aug 7 09:18:30 2012 +0200

    message dialog: use a big font when the secondary message is not present

 src/gtk-utils.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 2d437e3..9e95d78 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -93,14 +93,18 @@ _gtk_message_dialog_new (GtkWindow      *parent,
 
 		escaped_message = g_markup_escape_text (message, -1);
 		if (secondary_message != NULL) {
-			char *escaped_secondary_message = g_markup_escape_text (secondary_message, -1);
+			char *escaped_secondary_message;
+
+			escaped_secondary_message = g_markup_escape_text (secondary_message, -1);
 			markup_text = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s",
 						       escaped_message,
 						       escaped_secondary_message);
+
 			g_free (escaped_secondary_message);
 		}
 		else
-			markup_text = g_strdup (escaped_message);
+			markup_text = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>", escaped_message);
+
 		g_free (escaped_message);
 	}
 	else



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