]> git.sur5r.net Git - glabels/commitdiff
Fixed incorrect usage of gtk_toggle_button_get_active() in update_prefs_from_locale_p...
authorJim Evins <evins@snaught.com>
Tue, 8 Oct 2002 03:23:20 +0000 (03:23 +0000)
committerJim Evins <evins@snaught.com>
Tue, 8 Oct 2002 03:23:20 +0000 (03:23 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@150 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/prefs-dialog.c

index 0ae8a59d80d39d325014d5f99dcb4ea9aacd6dca..523f06a7e5a0aa8e6115101db54fa3b753e55e6a 100644 (file)
@@ -513,24 +513,24 @@ static update_object_page_from_prefs (glPrefsDialog *dlg)
 static update_prefs_from_locale_page (glPrefsDialog *dlg)
 {
        if (gtk_toggle_button_get_active (
-                   GTK_TOGGLE_BUTTON(dlg->private->units_points_radio)) == 0) {
+                   GTK_TOGGLE_BUTTON(dlg->private->units_points_radio))) {
                gl_prefs->units = GL_PREFS_UNITS_PTS;
        }
        if (gtk_toggle_button_get_active (
-                   GTK_TOGGLE_BUTTON(dlg->private->units_inches_radio)) == 0) {
+                   GTK_TOGGLE_BUTTON(dlg->private->units_inches_radio))) {
                gl_prefs->units = GL_PREFS_UNITS_INCHES;
        }
        if (gtk_toggle_button_get_active (
-                   GTK_TOGGLE_BUTTON(dlg->private->units_mm_radio)) == 0) {
+                   GTK_TOGGLE_BUTTON(dlg->private->units_mm_radio))) {
                gl_prefs->units = GL_PREFS_UNITS_MM;
        }
 
        if (gtk_toggle_button_get_active (
-                   GTK_TOGGLE_BUTTON(dlg->private->page_size_us_letter_radio)) == 0) {
+                   GTK_TOGGLE_BUTTON(dlg->private->page_size_us_letter_radio))) {
                gl_prefs->default_page_size = US_LETTER;
        }
        if (gtk_toggle_button_get_active (
-                   GTK_TOGGLE_BUTTON(dlg->private->page_size_a4_radio)) == 0) {
+                   GTK_TOGGLE_BUTTON(dlg->private->page_size_a4_radio))) {
                gl_prefs->default_page_size = A4;
        }