[brasero] Give a fallback icon if no parent is specified for our message dialogs
- From: Philippe Rouquier <philippr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Give a fallback icon if no parent is specified for our message dialogs
- Date: Mon, 30 Aug 2010 12:58:34 +0000 (UTC)
commit e8badc664d2cdee8f5582b334ba543f1b64d4c95
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Mon Aug 30 14:42:28 2010 +0200
Give a fallback icon if no parent is specified for our message dialogs
libbrasero-utils/brasero-misc.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/libbrasero-utils/brasero-misc.c b/libbrasero-utils/brasero-misc.c
index 01ebc20..65c5f83 100644
--- a/libbrasero-utils/brasero-misc.c
+++ b/libbrasero-utils/brasero-misc.c
@@ -409,16 +409,14 @@ brasero_utils_create_message_dialog (GtkWidget *parent,
GtkWidget *message;
message = gtk_message_dialog_new (GTK_WINDOW (parent),
- GTK_DIALOG_MODAL |
- GTK_DIALOG_DESTROY_WITH_PARENT,
+ 0,
type,
GTK_BUTTONS_CLOSE,
"%s",
primary_message);
- if (parent)
- gtk_window_set_icon_name (GTK_WINDOW (message),
- gtk_window_get_icon_name (GTK_WINDOW (parent)));
+ gtk_window_set_icon_name (GTK_WINDOW (message),
+ parent? gtk_window_get_icon_name (GTK_WINDOW (parent)):"brasero");
gtk_window_set_title (GTK_WINDOW (message), "");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]