[Xfce4-commits] [panel-plugins/xfce4-datetime-plugin] 12/17: Set expand to TRUE when packing the labels in the box - ensures GtkLabel is centered if only date or time is shown.

noreply at xfce.org noreply at xfce.org
Sun May 1 11:46:30 CEST 2016


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

landry pushed a commit to branch master
in repository panel-plugins/xfce4-datetime-plugin.

commit 79892669979a4e31928b46923479a72c4650e050
Author: Landry Breuil <landry at xfce.org>
Date:   Sun May 1 11:39:55 2016 +0200

    Set expand to TRUE when packing the labels in the box - ensures GtkLabel is centered if only date or time is shown.
---
 panel-plugin/datetime.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/panel-plugin/datetime.c b/panel-plugin/datetime.c
index c43f700..dde71f2 100644
--- a/panel-plugin/datetime.c
+++ b/panel-plugin/datetime.c
@@ -676,9 +676,9 @@ static void datetime_create_widget(t_datetime * datetime)
 
   /* add time and date lines to the box */
   gtk_box_pack_start(GTK_BOX(datetime->box),
-      datetime->time_label, FALSE, FALSE, 0);
+      datetime->time_label, TRUE, FALSE, 0);
   gtk_box_pack_start(GTK_BOX(datetime->box),
-      datetime->date_label, FALSE, FALSE, 0);
+      datetime->date_label, TRUE, FALSE, 0);
 
   /* connect widget signals to functions */
   g_signal_connect(datetime->button, "button-press-event",

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


More information about the Xfce4-commits mailing list