From 1f7adaf8cad20da3b50cd8436bb3fff9695c3d96 Mon Sep 17 00:00:00 2001 From: Dennis Cranston Date: Wed, 6 Apr 2005 15:25:38 +0000 Subject: Make the error dialogs non-blocking. Includes minor HIG fixes. 2005-04-05 Dennis Cranston * cpufreq-applet.c: (cpufreq_applet_display_error): Make the error dialogs non-blocking. Includes minor HIG fixes. --- cpufreq/src/cpufreq-applet.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'cpufreq/src') diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index 44d3c36cb..e33a00d00 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -145,20 +145,20 @@ cpufreq_applet_display_error (const gchar *message, const gchar *secondary) { GtkWidget *dialog; - gchar *bold_str; - bold_str = g_strconcat ("", message, "", NULL); - - dialog = gtk_message_dialog_new_with_markup (NULL, - GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_OK, - bold_str); + dialog = gtk_message_dialog_new (NULL, + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + message); gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), secondary); - gtk_dialog_run (GTK_DIALOG (dialog)); - gtk_widget_destroy (dialog); - g_free (bold_str); + gtk_window_set_title (GTK_WINDOW (dialog), ""); /* as per HIG */ + gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE); + g_signal_connect (G_OBJECT (dialog), + "response", + G_CALLBACK (gtk_widget_destroy), NULL); + gtk_widget_show (dialog); } static void -- cgit v1.2.3