[gnome-control-center/gnome-3-2] screen: Remove indent on "Turn off..." label



commit 51b1f518d38ea0cce16837c7ca44a3ef47fe35e1
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 8 17:00:15 2011 +0100

    screen: Remove indent on "Turn off..." label
    
    When we remove the brightness slider and heading.

 panels/screen/cc-screen-panel.c |    1 +
 panels/screen/screen.ui         |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/screen/cc-screen-panel.c b/panels/screen/cc-screen-panel.c
index 1a250c4..4bf5bfa 100644
--- a/panels/screen/cc-screen-panel.c
+++ b/panels/screen/cc-screen-panel.c
@@ -254,6 +254,7 @@ get_brightness_cb (GObject *source_object, GAsyncResult *res, gpointer user_data
       gtk_widget_hide (WID ("screen_brightness_hscale"));
       gtk_widget_hide (WID ("screen_auto_reduce_checkbutton"));
       gtk_widget_hide (WID ("brightness-frame"));
+      g_object_set (G_OBJECT (WID ("turn-off-alignment")), "left-padding", 0, NULL);
       g_warning ("Error getting brightness: %s", error->message);
       g_error_free (error);
       return;
diff --git a/panels/screen/screen.ui b/panels/screen/screen.ui
index 629d7b3..3af6c4c 100644
--- a/panels/screen/screen.ui
+++ b/panels/screen/screen.ui
@@ -168,7 +168,7 @@
               </packing>
             </child>
             <child>
-              <object class="GtkAlignment" id="alignment3">
+              <object class="GtkAlignment" id="turn-off-alignment">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="top_padding">6</property>



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