[Xfce4-commits] [xfce/xfce4-power-manager] 19/63: Fix panel plugin crash

noreply at xfce.org noreply at xfce.org
Sun Mar 22 13:02:14 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 19947006ea77536b134a3404f52ebf9805d5ffaf
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Wed Mar 11 23:52:38 2015 +0100

    Fix panel plugin crash
---
 panel-plugins/power-manager-plugin/power-manager-button.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/panel-plugins/power-manager-plugin/power-manager-button.c b/panel-plugins/power-manager-plugin/power-manager-button.c
index 5c6b594..a6fa9a1 100644
--- a/panel-plugins/power-manager-plugin/power-manager-button.c
+++ b/panel-plugins/power-manager-plugin/power-manager-button.c
@@ -45,6 +45,7 @@
 
 #define SET_LEVEL_TIMEOUT (50)
 #define SAFE_SLIDER_MIN_LEVEL (5)
+#define PANEL_DEFAULT_ICON ("battery-full-charged")
 
 #define POWER_MANAGER_BUTTON_GET_PRIVATE(o) \
 (G_TYPE_INSTANCE_GET_PRIVATE ((o), POWER_MANAGER_TYPE_BUTTON, PowerManagerButtonPrivate))
@@ -851,7 +852,7 @@ power_manager_button_init (PowerManagerButton *button)
     }
 
     /* Sane defaults for the panel icon */
-    button->priv->panel_icon_name = "battery-full-charged";
+    button->priv->panel_icon_name = g_strdup (PANEL_DEFAULT_ICON);
     button->priv->panel_icon_width = 24;
 
     /* Sane default Gtk style */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list