diff options
author | Tim Janik <timj@gtk.org> | 1998-03-17 23:07:30 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-17 23:07:30 +0000 |
commit | 3f04c019cdb1f2d55fcf813239925b47cf72a710 (patch) | |
tree | 1f246bf2a8192227e6a7fa82e76cfa309b02e375 /gtk/gtktogglebutton.c | |
parent | 3872c32d4a50c87629b972432023c4489e2d9d12 (diff) | |
download | gtk+-3f04c019cdb1f2d55fcf813239925b47cf72a710.tar.gz |
return real boolean values not just numbers.
Tue Mar 17 22:45:39 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_get_arg): return real boolean values
not just numbers.
* gtk/gtktogglebutton.c (gtk_toggle_button_set_state): check
state for != 0, otherwise we get strange results.
Diffstat (limited to 'gtk/gtktogglebutton.c')
-rw-r--r-- | gtk/gtktogglebutton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktogglebutton.c b/gtk/gtktogglebutton.c index c9eb8ad824..ef57d87260 100644 --- a/gtk/gtktogglebutton.c +++ b/gtk/gtktogglebutton.c @@ -158,7 +158,7 @@ gtk_toggle_button_set_state (GtkToggleButton *toggle_button, g_return_if_fail (toggle_button != NULL); g_return_if_fail (GTK_IS_TOGGLE_BUTTON (toggle_button)); - if (toggle_button->active != state) + if (toggle_button->active != (state != FALSE)) gtk_button_clicked (GTK_BUTTON (toggle_button)); } |