[Xfce4-commits] <xfce4-battery-plugin:master> remove unused code
Landry Breuil
noreply at xfce.org
Wed Apr 18 12:36:02 CEST 2012
Updating branch refs/heads/master
to be1db9b7bcd5479b8fd0f4b98758f3d685bbe430 (commit)
from d287cdcffb8763d0f83375056b2a20c3ba131a59 (commit)
commit be1db9b7bcd5479b8fd0f4b98758f3d685bbe430
Author: Landry Breuil <landry at xfce.org>
Date: Wed Apr 18 12:34:43 2012 +0200
remove unused code
panel-plugin/battery.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index 05e5b79..63f7e33 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -78,8 +78,6 @@ typedef struct
int action_on_low;
int action_on_critical;
char *command_on_low; char *command_on_critical;
- float hsize;
- float vsize;
GdkColor colorA;
GdkColor colorH;
GdkColor colorL;
@@ -159,8 +157,6 @@ init_options(t_battmon_options *options)
options->action_on_critical = 1;
options->command_on_low = NULL;
options->command_on_critical = NULL;
- options->hsize = 1.75;
- options->vsize = 0.5;
gdk_color_parse(AC_COLOR, &(options->colorA));
gdk_color_parse(HIGH_COLOR, &(options->colorH));
gdk_color_parse(LOW_COLOR, &(options->colorL));
@@ -645,7 +641,7 @@ battmon_icon (t_battmon *battmon)
{
GdkPixbuf *icon;
GtkOrientation orientation;
- gint width, height, size;
+ gint size;
/* panel info */
orientation = xfce_panel_plugin_get_orientation (battmon->plugin);
@@ -658,18 +654,6 @@ battmon_icon (t_battmon *battmon)
size = xfce_panel_plugin_get_size (battmon->plugin) - 6;
#endif
- /* icon size is 41x64px */
- if (orientation == GTK_ORIENTATION_HORIZONTAL)
- {
- height = size;
- width = height * 0.625;
- }
- else /* vertical */
- {
- width = size;
- height = width * 1.6;
- }
-
/* try to load battery icon from your current icon theme */
icon = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
"xfce4-battery-plugin", size , 0, NULL);
More information about the Xfce4-commits
mailing list