diff options
author | Dennis Cranston <dennis_cranston@yahoo.com> | 2005-04-06 15:25:38 +0000 |
---|---|---|
committer | Dennis Cranston <dcransto@src.gnome.org> | 2005-04-06 15:25:38 +0000 |
commit | 1f7adaf8cad20da3b50cd8436bb3fff9695c3d96 (patch) | |
tree | 54cb479a39c642be21ce5ea2cf3724a78cd00806 /cpufreq/src | |
parent | d30f603a3e27c4568fa4832fd0b7c04f205a04c8 (diff) |
Make the error dialogs non-blocking. Includes minor HIG fixes.
2005-04-05 Dennis Cranston <dennis_cranston@yahoo.com>
* cpufreq-applet.c: (cpufreq_applet_display_error): Make the error
dialogs non-blocking. Includes minor HIG fixes.
Diffstat (limited to 'cpufreq/src')
-rw-r--r-- | cpufreq/src/cpufreq-applet.c | 22 |
1 files changed, 11 insertions, 11 deletions
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 ("<span weight=\"bold\" size=\"larger\">", message, "</span>", 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 |