← Back to team overview

ayatana-commits team mailing list archive

[Merge] lp:~bilalakhtar/indicator-session/fix-634003 into lp:indicator-session

 

Bilal Akhtar has proposed merging lp:~bilalakhtar/indicator-session/fix-634003 into lp:indicator-session.

Requested reviews:
  Indicator Applet Developers (indicator-applet-developers)
Related bugs:
  #634003 Restart to complete updates entry should be red
  https://bugs.launchpad.net/bugs/634003

-- 
https://code.launchpad.net/~bilalakhtar/indicator-session/fix-634003/+merge/34986
Your team ayatana-commits is subscribed to branch lp:indicator-session.
=== modified file 'src/dbus-shared-names.h'
--- src/dbus-shared-names.h	2010-03-17 21:23:49 +0000
+++ src/dbus-shared-names.h	2010-09-09 14:53:45 +0000
@@ -50,6 +50,7 @@
 #define RESTART_ITEM_TYPE         "x-canonical-restart-item"
 #define RESTART_ITEM_LABEL        "restart-label"
 #define RESTART_ITEM_ICON         "restart-icon"
+#define RESTART_ITEM_FG_COLOUR	  "restart-fgcolour"
 
 #define ICON_DEFAULT              "system-shutdown-panel"
 #define ICON_RESTART              "system-shutdown-panel-restart"

=== modified file 'src/session-service.c'
--- src/session-service.c	2010-08-12 14:17:03 +0000
+++ src/session-service.c	2010-09-09 14:53:45 +0000
@@ -30,6 +30,8 @@
 #include <gio/gio.h>
 #include <gio/gdesktopappinfo.h>
 
+#include <gdk/gdk.h>
+
 #include <dbus/dbus-glib.h>
 #include <dbus/dbus-glib-bindings.h>
 
@@ -769,6 +771,7 @@
 			dbusmenu_menuitem_property_set(restart_mi, RESTART_ITEM_LABEL, _("Restart to Complete Update\342\200\246"));
 		}
 		dbusmenu_menuitem_property_set(restart_mi, RESTART_ITEM_ICON, "system-restart-panel");
+		dbusmenu_menuitem_property_set(restart_mi, RESTART_ITEM_FG_COLOUR, GdkColor.red);
 		if (session_dbus != NULL) {
 			session_dbus_set_name(session_dbus, ICON_RESTART);
 		}


Follow ups