[gnome-power-manager] Use symbolic icons for brightness OSD



commit 08bf99b67407ef85c9de001a7aea463e836a4b22
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Mar 11 17:17:43 2011 +0000

    Use symbolic icons for brightness OSD
    
    Don't have a keyboard brightness item right now though.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644522

 src/gpm-backlight.c   |    8 ++++----
 src/gpm-stock-icons.h |    1 -
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index e6e5494..a7aa234 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -278,7 +278,7 @@ gpm_backlight_brightness_evaluate_and_set (GpmBacklight *backlight, gboolean int
 
 	/* only show dialog if interactive */
 	if (interactive) {
-		gpm_osd_dialog_init (&backlight->priv->popup, "gpm-brightness-lcd");
+		gpm_osd_dialog_init (&backlight->priv->popup, "display-brightness-symbolic");
 		gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (backlight->priv->popup),
 							round (brightness));
 		gpm_osd_dialog_show (backlight->priv->popup);
@@ -366,7 +366,7 @@ gpm_backlight_button_pressed_cb (GpmButton *button, const gchar *type, GpmBackli
 		/* show the new value */
 		if (ret) {
 			gpm_brightness_get (backlight->priv->brightness, &percentage);
-			gpm_osd_dialog_init (&backlight->priv->popup, "gpm-brightness-lcd");
+			gpm_osd_dialog_init (&backlight->priv->popup, "display-brightness-symbolic");
 			gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (backlight->priv->popup),
 								percentage);
 			gpm_osd_dialog_show (backlight->priv->popup);
@@ -385,7 +385,7 @@ gpm_backlight_button_pressed_cb (GpmButton *button, const gchar *type, GpmBackli
 		/* show the new value */
 		if (ret) {
 			gpm_brightness_get (backlight->priv->brightness, &percentage);
-			gpm_osd_dialog_init (&backlight->priv->popup, "gpm-brightness-lcd");
+			gpm_osd_dialog_init (&backlight->priv->popup, "display-brightness-symbolic");
 			gsd_media_keys_window_set_volume_level (GSD_MEDIA_KEYS_WINDOW (backlight->priv->popup),
 								percentage);
 			gpm_osd_dialog_show (backlight->priv->popup);
@@ -785,7 +785,7 @@ gpm_backlight_init (GpmBacklight *backlight)
 	gpm_idle_set_timeout_dim (backlight->priv->idle, backlight->priv->idle_dim_timeout);
 
 	/* use a visual widget */
-	gpm_osd_dialog_init (&backlight->priv->popup, "gpm-brightness-lcd");
+	gpm_osd_dialog_init (&backlight->priv->popup, "display-brightness-symbolic");
 
 	/* DPMS mode poll class */
 	backlight->priv->dpms = gpm_dpms_new ();
diff --git a/src/gpm-stock-icons.h b/src/gpm-stock-icons.h
index ac65570..fa4f4ed 100644
--- a/src/gpm-stock-icons.h
+++ b/src/gpm-stock-icons.h
@@ -31,7 +31,6 @@ G_BEGIN_DECLS
 #define GPM_STOCK_HIBERNATE			"gpm-hibernate"
 #define GPM_STOCK_SUSPEND			"gpm-suspend"
 #define GPM_STOCK_STATISTICS			"gnome-power-statistics"
-#define GPM_STOCK_BRIGHTNESS_LCD		"gpm-brightness-lcd"
 #define GPM_STOCK_BRIGHTNESS_KBD		"gpm-brightness-kbd"
 #define GPM_STOCK_INHIBIT			"gpm-inhibit"
 



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