[brasero] Silence a warning



commit d64483f3f51601571bb74f13881b045b3019520e
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Sun Jun 6 21:14:24 2010 +0200

    Silence a warning

 libbrasero-utils/brasero-misc.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-utils/brasero-misc.c b/libbrasero-utils/brasero-misc.c
index 25d4f3f..7242f8d 100644
--- a/libbrasero-utils/brasero-misc.c
+++ b/libbrasero-utils/brasero-misc.c
@@ -416,8 +416,9 @@ brasero_utils_create_message_dialog (GtkWidget *parent,
 					  "%s",
 					  primary_message);
 
-	gtk_window_set_icon_name (GTK_WINDOW (message),
-	                          gtk_window_get_icon_name (GTK_WINDOW (parent)));
+	if (parent)
+		gtk_window_set_icon_name (GTK_WINDOW (message),
+			                  gtk_window_get_icon_name (GTK_WINDOW (parent)));
 
 	gtk_window_set_title (GTK_WINDOW (message), "");
 



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