[gnome-power-manager] Assign the correct icon when the sleep fails. Spotted by clang



commit 62071f386387439f0a019ba2ed1b4de050b2049b
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 7 09:18:38 2009 +0100

    Assign the correct icon when the sleep fails. Spotted by clang

 src/gpm-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 6e85f71..0f69e57 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1332,6 +1332,7 @@ gpm_manager_sleep_failure_cb (GpmControl *control, GpmControlAction action, GpmM
 						     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);
+	gtk_window_set_icon_name (GTK_WINDOW(dialog), icon);
 
 	/* show a button? */
 	uri = gconf_client_get_string (manager->priv->conf, GPM_CONF_NOTIFY_SLEEP_FAILED_URI, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]