[Xfce4-commits] [panel-plugins/xfce4-systemload-plugin] 01/01: Fix vertical alignment of GtkSwitches in properties dialog

noreply at xfce.org noreply at xfce.org
Fri Dec 22 00:37:12 CET 2017


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-systemload-plugin.

commit 2585c43080b84678eae6a94519d94f5336b06c22
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Dec 22 00:36:56 2017 +0100

    Fix vertical alignment of GtkSwitches in properties dialog
---
 panel-plugin/systemload.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/panel-plugin/systemload.c b/panel-plugin/systemload.c
index bf24b71..e04cbc1 100644
--- a/panel-plugin/systemload.c
+++ b/panel-plugin/systemload.c
@@ -783,6 +783,7 @@ static GtkWidget *new_label_or_check_button(t_global_monitor *global,
         g_object_set_data (G_OBJECT(sw), "sensitive_widget", target);
         g_object_set_data (G_OBJECT(sw), "boolvar", boolvar);
         gtk_switch_set_active (GTK_SWITCH(sw), *boolvar);
+        gtk_widget_set_valign (GTK_WIDGET (sw), GTK_ALIGN_CENTER);
         switch_cb (GTK_SWITCH(sw), *boolvar, global);
         g_signal_connect (GTK_WIDGET(sw), "state-set",
                           G_CALLBACK(switch_cb), global);

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


More information about the Xfce4-commits mailing list