Updating branch refs/heads/master
         to 21468830a5194de5ecabf3cc1739b9e283f2077f (commit)
       from 91325112789b59dcc988461afdf877f17a832037 (commit)

commit 21468830a5194de5ecabf3cc1739b9e283f2077f
Author: Stephan Arts <step...@xfce.org>
Date:   Sat Sep 19 00:57:31 2009 +0200

    Set default value to checkbutton

 ChangeLog                |    5 +++++
 src/preferences_dialog.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 989b8b0..b1a76c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-09-19  Stephan Arts <step...@xfce.org>
 
+       * src/preferences_dialog.c: Set current value to 'show-preview'
+         checkbutton
+
+2009-09-19  Stephan Arts <step...@xfce.org>
+
        * src/main_window.c,
          src/picture_viewer.c,
          src/preferences_dialog.c,
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index 6c54616..2640a40 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -249,6 +249,8 @@ rstto_preferences_dialog_init(RsttoPreferencesDialog 
*dialog)
     dialog->priv->display_tab.image_quality_combo= gtk_combo_box_new_text ();
     dialog->priv->display_tab.image_preview_check_button = 
gtk_check_button_new_with_label (_("Show preview when loading image"));
 
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON 
(dialog->priv->display_tab.image_preview_check_button),
+                                  bool_show_preview);
     g_signal_connect (G_OBJECT 
(dialog->priv->display_tab.image_preview_check_button), 
                       "toggled", 
(GCallback)cb_rstto_preferences_dialog_image_preview_toggled, dialog);
 
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to