[gnome-control-center] color: Put the device switch on a diet to match the mockups



commit 18ee39488ed7005206d35a1c7870e9fc098e0ec7
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 13 11:19:16 2013 +0000

    color: Put the device switch on a diet to match the mockups

 panels/color/cc-color-device.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-device.c b/panels/color/cc-color-device.c
index 3dda6bb..388ddda 100644
--- a/panels/color/cc-color-device.c
+++ b/panels/color/cc-color-device.c
@@ -296,6 +296,7 @@ cc_color_device_init (CcColorDevice *color_device)
 
   /* switch */
   priv->widget_switch = gtk_switch_new ();
+  gtk_widget_set_valign (priv->widget_switch, GTK_ALIGN_CENTER);
   gtk_box_pack_start (GTK_BOX (box), priv->widget_switch, FALSE, FALSE, 0);
 
   /* arrow button */
@@ -304,6 +305,7 @@ cc_color_device_init (CcColorDevice *color_device)
   g_signal_connect (priv->widget_button, "clicked",
                     G_CALLBACK (cc_color_device_clicked_expander_cb),
                     color_device);
+  gtk_widget_set_valign (priv->widget_button, GTK_ALIGN_CENTER);
   gtk_button_set_relief (GTK_BUTTON (priv->widget_button), GTK_RELIEF_NONE);
   gtk_container_add (GTK_CONTAINER (priv->widget_button), priv->widget_arrow);
   gtk_widget_set_visible (priv->widget_arrow, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]