[gnome-power-manager] Do not fall back to a GtkMessageBox if using libnotify failed. Fixes #632334
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Do not fall back to a GtkMessageBox if using libnotify failed. Fixes #632334
- Date: Mon, 18 Oct 2010 15:03:31 +0000 (UTC)
commit a679a780fc018a8cb7d9866bde94965c2968804a
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 18 15:44:43 2010 +0100
Do not fall back to a GtkMessageBox if using libnotify failed. Fixes #632334
src/gpm-manager.c | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 155af42..8f257f5 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -496,7 +496,6 @@ gpm_manager_notify (GpmManager *manager, NotifyNotification **notification_class
gboolean ret;
GError *error = NULL;
NotifyNotification *notification;
- GtkWidget *dialog;
/* close any existing notification of this class */
gpm_manager_notify_close (manager, *notification_class);
@@ -517,17 +516,6 @@ gpm_manager_notify (GpmManager *manager, NotifyNotification **notification_class
if (!ret) {
egg_warning ("failed to show notification: %s", error->message);
g_error_free (error);
-
- /* show modal dialog as libnotify failed */
- dialog = gtk_message_dialog_new_with_markup (NULL, GTK_DIALOG_DESTROY_WITH_PARENT,
- GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE,
- "<span size='larger'><b>%s</b></span>", title);
- gtk_message_dialog_format_secondary_markup (GTK_MESSAGE_DIALOG (dialog), "%s", message);
-
- /* wait async for close */
- gtk_widget_show (dialog);
- g_signal_connect_swapped (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog);
-
g_object_unref (notification);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]