[Xfce4-commits] <xfdesktop:master> Use the correct default value for the 'show thumbnails' checkbox

Eric Koegel noreply at xfce.org
Thu Apr 19 19:10:01 CEST 2012


Updating branch refs/heads/master
         to 70d18b52fa09c3ae454d1dab8881d5fad16d324c (commit)
       from 6e1d4e4a9ef9ef3afa9e3927b356bc22b81cf087 (commit)

commit 70d18b52fa09c3ae454d1dab8881d5fad16d324c
Author: Stephan Arts <stephan at xfce.org>
Date:   Sat Apr 14 22:39:56 2012 +0200

    Use the correct default value for the 'show thumbnails' checkbox
    
    The default value when this property is not set, is 'TRUE'.
    the bind operation defaults to 'FALSE' for unset boolean
    properties.
    
    Make the checkbox correspond to the default behaviour.

 settings/main.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/settings/main.c b/settings/main.c
index 74e7172..1ebad7c 100644
--- a/settings/main.c
+++ b/settings/main.c
@@ -1323,6 +1323,13 @@ xfdesktop_settings_dialog_add_screens(GtkBuilder *main_gxml,
 
     chk_show_thumbnails = GTK_WIDGET(gtk_builder_get_object(main_gxml,
                                                             "chk_show_thumbnails"));
+    /* The default value when this property is not set, is 'TRUE'.
+     * the bind operation defaults to 'FALSE' for unset boolean properties. 
+     *
+     * Make the checkbox correspond to the default behaviour.
+     */
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(chk_show_thumbnails),
+                                  TRUE);
 
     nscreens = gdk_display_get_n_screens(gdk_display_get_default());
 


More information about the Xfce4-commits mailing list