From 8273d92363a6c41c6671599ce247fd1b0569a05b Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 8 Oct 2002 03:23:20 +0000 Subject: [PATCH] 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 --- glabels2/src/prefs-dialog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; } -- 2.39.5