]> saetta.ns0.it Git - libgtkform/commitdiff
Bugfix on GtkForm::is_changed (it considered also field not to save).
authorAndrea Zagli <azagli@libero.it>
Sun, 25 Jul 2010 09:04:03 +0000 (11:04 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 25 Jul 2010 09:04:03 +0000 (11:04 +0200)
src/form.c

index c3fed8eefa1a26fabbae8a8d98d50007039d8d53..ef59ed41d5db1e2490492b411fb5275674b13c0f 100644 (file)
@@ -1258,8 +1258,11 @@ gtk_form_is_changed (GtkForm *form)
                {
                        field = (GtkFormField *)fields->data;
 
-                       ret = gtk_form_field_is_changed (field);
-                       if (ret) break;
+                       if (gtk_form_field_is_to_save (field))
+                               {
+                                       ret = gtk_form_field_is_changed (field);
+                                       if (ret) break;
+                               }
 
                        fields = g_slist_next (fields);
                }