From aa7bbb11a1a3537f31daed07f33c79ce4537b19d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 30 Dec 2005 05:37:44 +0000 Subject: [PATCH] Alert dialogs should not have titles and should not be displayed in the 2005-12-30 Matthias Clasen * gtk/gtkmessagedialog.c (gtk_message_dialog_init): (setup_type): Alert dialogs should not have titles and should not be displayed in the taskbar. (#310443, Carlos Garnacho Parro, Dennis Cranston) --- ChangeLog | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ gtk/gtkmessagedialog.c | 10 ++++------ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 050a14133..97357e0f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-30 Matthias Clasen + + * gtk/gtkmessagedialog.c (gtk_message_dialog_init): + (setup_type): Alert dialogs should not have titles and should + not be displayed in the taskbar. (#310443, Carlos Garnacho Parro, + Dennis Cranston) + 2005-12-29 Matthias Clasen * gtk/gtkliststore.c: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 050a14133..97357e0f7 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2005-12-30 Matthias Clasen + + * gtk/gtkmessagedialog.c (gtk_message_dialog_init): + (setup_type): Alert dialogs should not have titles and should + not be displayed in the taskbar. (#310443, Carlos Garnacho Parro, + Dennis Cranston) + 2005-12-29 Matthias Clasen * gtk/gtkliststore.c: diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index a94634ec9..4995f65ad 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -172,6 +172,8 @@ gtk_message_dialog_init (GtkMessageDialog *dialog) priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); + gtk_window_set_title (GTK_WINDOW (dialog), ""); + gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE); priv->has_primary_markup = FALSE; priv->has_secondary_text = FALSE; @@ -306,12 +308,8 @@ setup_type (GtkMessageDialog *dialog, stock_id = GTK_STOCK_DIALOG_INFO; if (gtk_stock_lookup (stock_id, &item)) - { - gtk_image_set_from_stock (GTK_IMAGE (dialog->image), stock_id, - GTK_ICON_SIZE_DIALOG); - - gtk_window_set_title (GTK_WINDOW (dialog), item.label); - } + gtk_image_set_from_stock (GTK_IMAGE (dialog->image), stock_id, + GTK_ICON_SIZE_DIALOG); else g_warning ("Stock dialog ID doesn't exist?"); } -- 2.43.2