[Goodies-commits] r6225 - in xfce4-screenshooter-plugin/trunk: . lib
Jerome Guelfucci
jeromeg at xfce.org
Sat Nov 29 15:56:48 CET 2008
Author: jeromeg
Date: 2008-11-29 14:56:48 +0000 (Sat, 29 Nov 2008)
New Revision: 6225
Modified:
xfce4-screenshooter-plugin/trunk/ChangeLog
xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c
Log:
Fix the show save dialog checkbox.
Modified: xfce4-screenshooter-plugin/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-29 11:09:20 UTC (rev 6224)
+++ xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-29 14:56:48 UTC (rev 6225)
@@ -1,5 +1,11 @@
2008-11-28 jeromeg
+ * lib/screenshooter-dialogs.c:
+ - (cb_show_save_dialog_toggled) set show_save_dialog correctly.
+ - (screenshooter_dialog_new) initiate the checkbox correctly.
+
+2008-11-28 jeromeg
+
* Fix the ChangeLog encoding.
* lib/screenshooter-dialogs.c:
- remove a prototype that was not used.
Modified: xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c 2008-11-29 11:09:20 UTC (rev 6224)
+++ xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c 2008-11-29 14:56:48 UTC (rev 6225)
@@ -155,7 +155,14 @@
static void cb_show_save_dialog_toggled (GtkToggleButton *tb,
ScreenshotData *sd)
{
- sd->show_save_dialog = !gtk_toggle_button_get_active (tb);
+ if (gtk_toggle_button_get_active (tb))
+ {
+ sd->show_save_dialog = 0;
+ }
+ else
+ {
+ sd->show_save_dialog = 1;
+ }
}
@@ -681,7 +688,7 @@
FALSE, 0);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (save_checkbox),
- sd->show_save_dialog);
+ (sd->show_save_dialog == 0));
g_signal_connect (G_OBJECT (save_checkbox), "toggled",
G_CALLBACK (cb_show_save_dialog_toggled), sd);
More information about the Goodies-commits
mailing list