[Xfce4-commits] <xfce4-settings:bluesabre/display-settings> Fix sensitivity-state of widgets (Lionel)

Nick Schermer noreply at xfce.org
Mon Dec 9 12:57:26 CET 2013


Updating branch refs/heads/bluesabre/display-settings
         to b790a697d1e0e1c7cac2047817cb2473edec264a (commit)
       from ecb721ee1d5babd31d543c7ee23eb348797b2300 (commit)

commit b790a697d1e0e1c7cac2047817cb2473edec264a
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Oct 18 23:33:23 2012 +0200

    Fix sensitivity-state of widgets (Lionel)

 dialogs/display-settings/main.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dialogs/display-settings/main.c b/dialogs/display-settings/main.c
index c7e5332..1b12110 100644
--- a/dialogs/display-settings/main.c
+++ b/dialogs/display-settings/main.c
@@ -416,6 +416,7 @@ display_setting_positions_populate (GtkBuilder *builder)
         gtk_widget_set_sensitive (GTK_WIDGET (combobox), FALSE);
         return;
     }
+    gtk_widget_set_sensitive (GTK_WIDGET (combobox), TRUE);
 
     /* Disconnect the "changed" signal to avoid triggering the confirmation
      * dialog */
@@ -466,7 +467,7 @@ display_setting_active_displays_populate (GtkBuilder *builder)
     /* Get the active-displays combo box store and clear it */
     combobox = gtk_builder_get_object (builder, "randr-active-displays");
     model = gtk_combo_box_get_model (GTK_COMBO_BOX (combobox));
-     gtk_list_store_clear (GTK_LIST_STORE (model));
+    gtk_list_store_clear (GTK_LIST_STORE (model));
 
     if (xfce_randr->noutput > 1)
         gtk_widget_show (GTK_WIDGET (combobox));
@@ -485,6 +486,7 @@ display_setting_active_displays_populate (GtkBuilder *builder)
         gtk_widget_set_sensitive (GTK_WIDGET (combobox), FALSE);
         return;
     }
+    gtk_widget_set_sensitive (GTK_WIDGET (combobox), TRUE);
 
     /* Disconnect the "changed" signal to avoid triggering the confirmation
      * dialog */
@@ -1218,6 +1220,7 @@ display_setting_mirror_displays_populate (GtkBuilder *builder)
         gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), FALSE);
         return;
     }
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), TRUE);
 
     /* Disconnect the "toggled" signal to avoid writing the config again */
     g_object_disconnect (check, "any_signal::toggled",


More information about the Xfce4-commits mailing list