From: Jim Evins Date: Tue, 8 Oct 2002 03:23:20 +0000 (+0000) Subject: Fixed incorrect usage of gtk_toggle_button_get_active() in update_prefs_from_locale_p... X-Git-Tag: glabels-2_3_0~737 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8273d92363a6c41c6671599ce247fd1b0569a05b;p=glabels Fixed incorrect usage of gtk_toggle_button_get_active() in update_prefs_from_locale_page () -- must have cut-n-paste from a strcmp based decision tree? git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@150 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/src/prefs-dialog.c b/glabels2/src/prefs-dialog.c index 0ae8a59d..523f06a7 100644 --- a/glabels2/src/prefs-dialog.c +++ b/glabels2/src/prefs-dialog.c @@ -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; }