[Xfce4-commits] <ristretto:ristretto-0.0> Set default value to checkbutton

Stephan Arts noreply at xfce.org
Sun Oct 23 19:21:21 CEST 2011


Updating branch refs/heads/ristretto-0.0
         to 21468830a5194de5ecabf3cc1739b9e283f2077f (commit)
       from 91325112789b59dcc988461afdf877f17a832037 (commit)

commit 21468830a5194de5ecabf3cc1739b9e283f2077f
Author: Stephan Arts <stephan at 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 <stephan at xfce.org>
 
+	* src/preferences_dialog.c: Set current value to 'show-preview'
+	  checkbutton
+
+2009-09-19  Stephan Arts <stephan at 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);
 


More information about the Xfce4-commits mailing list