aboutsummaryrefslogtreecommitdiff
path: root/src/indicator-power.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2008-11-24 17:26:48 -0600
committerTed Gould <ted@canonical.com>2008-11-24 17:26:48 -0600
commit10629d4425cf2bdad1438215fb9b52874ffc277f (patch)
tree63dc3d5dc6092147da9eafb0ca96b8547b734403 /src/indicator-power.c
parent98c6e9435aeef092791615ccb85e769d7ac15478 (diff)
downloadlibayatana-indicator-10629d4425cf2bdad1438215fb9b52874ffc277f.tar.gz
libayatana-indicator-10629d4425cf2bdad1438215fb9b52874ffc277f.tar.bz2
libayatana-indicator-10629d4425cf2bdad1438215fb9b52874ffc277f.zip
Making spacing and alignment better
Diffstat (limited to 'src/indicator-power.c')
-rw-r--r--src/indicator-power.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/indicator-power.c b/src/indicator-power.c
index f635f15..b634023 100644
--- a/src/indicator-power.c
+++ b/src/indicator-power.c
@@ -32,17 +32,20 @@ power_menu (void)
GtkWidget * icon = gtk_image_new_from_icon_name(menuitems[i].icon, GTK_ICON_SIZE_MENU);
gtk_size_group_add_widget(icons, icon);
+ gtk_misc_set_alignment(GTK_MISC(icon), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(hbox), icon, FALSE, FALSE, 0);
gtk_widget_show(icon);
GtkWidget * label = gtk_label_new(menuitems[i].label);
gtk_size_group_add_widget(labels, label);
- gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
+ gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 3);
gtk_widget_show(label);
GtkWidget * time = gtk_label_new(menuitems[i].time);
gtk_size_group_add_widget(times, time);
- gtk_box_pack_start(GTK_BOX(hbox), time, FALSE, FALSE, 0);
+ gtk_misc_set_alignment(GTK_MISC(time), 0.0, 0.5);
+ gtk_box_pack_start(GTK_BOX(hbox), time, FALSE, FALSE, 8);
gtk_widget_show(time);
gtk_container_add(GTK_CONTAINER(item), hbox);