[file-roller/gnome-3-16] fixed message dialog showing a (null) string
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller/gnome-3-16] fixed message dialog showing a (null) string
- Date: Sun, 13 Dec 2015 09:30:35 +0000 (UTC)
commit d496cba800c4ca325338c367166c8cd184209433
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Dec 13 10:29:24 2015 +0100
fixed message dialog showing a (null) string
src/gtk-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index e1e1ab9..3bce41c 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -70,7 +70,8 @@ _gtk_message_dialog_new (GtkWindow *parent,
GTK_BUTTONS_NONE,
"%s", message);
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", secondary_message);
+ if (secondary_message != NULL)
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s",
secondary_message);
if (flags & GTK_DIALOG_MODAL)
_gtk_dialog_add_to_window_group (GTK_DIALOG (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]