Updating branch refs/heads/master
to ae2b91025e132cd79d3b04cdafb793e869382834 (commit)
from 419d999e79d5a331299620cbfc6a54fc47d42212 (commit)
commit ae2b91025e132cd79d3b04cdafb793e869382834
Author: Landry Breuil <[email protected]>
Date: Mon Apr 23 11:44:49 2012 +0200
Pack 'battery' label before icon to be more consistent with other monitor
plugins
while here remove useless padding losing some space.
panel-plugin/battery.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/panel-plugin/battery.c b/panel-plugin/battery.c
index e3e0a52..a930920 100644
--- a/panel-plugin/battery.c
+++ b/panel-plugin/battery.c
@@ -706,17 +706,17 @@ static void setup_battmon(t_battmon *battmon,
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(battmon->battstatus), 0.0);
+ battmon->label = (GtkLabel *)gtk_label_new(_("Battery"));
+ gtk_box_pack_start(GTK_BOX(box),GTK_WIDGET(battmon->label),FALSE, FALSE,
0);
+
battmon->image = xfce_panel_image_new_from_source("xfce4-battery-plugin");
xfce_panel_image_set_size(XFCE_PANEL_IMAGE(battmon->image), size);
- gtk_box_pack_start(GTK_BOX(box),GTK_WIDGET(battmon->image), FALSE, FALSE,
2);
+ gtk_box_pack_start(GTK_BOX(box),GTK_WIDGET(battmon->image), FALSE, FALSE,
0);
/* init hide the widget */
gtk_widget_hide(battmon->image);
- battmon->label = (GtkLabel *)gtk_label_new(_("Battery"));
- gtk_box_pack_start(GTK_BOX(box),GTK_WIDGET(battmon->label),FALSE,
FALSE, 0);
-
- gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(battmon->battstatus), FALSE,
FALSE, 2);
+ gtk_box_pack_start(GTK_BOX(box), GTK_WIDGET(battmon->battstatus), FALSE,
FALSE, 0);
if (orientation == GTK_ORIENTATION_HORIZONTAL)
vbox = gtk_vbox_new(FALSE, 0);
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits