diff options
author | Tim Janik <timj@gtk.org> | 1998-03-26 21:57:45 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-03-26 21:57:45 +0000 |
commit | c2906f2beaf51a3528550e3146fc046ad9b7c65f (patch) | |
tree | a36a48cd35aed86584fbab7c39eaf87fa43928c0 /gtk/gtkcheckbutton.c | |
parent | a74e338517b9b7cab0b422b4a0361cb0ef50593d (diff) | |
download | gdk-pixbuf-c2906f2beaf51a3528550e3146fc046ad9b7c65f.tar.gz |
always display the correct active state.
Thu Mar 26 21:37:57 1998 Tim Janik <timj@gtk.org>
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): always
display the correct active state.
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): always
display the correct active state.
* gtk/gtkwidget.c (gtk_widget_set_arg): CAN_FOCUS and CAN_DEFAULT flag
changes need to queue a resize.
* gtk/gtkbutton.c (gtk_button_paint): take border_width into
consideration for restrict area.
* gtk/gtktogglebutton.c (gtk_toggle_button_class_init): enable the
draw_default member of GtkButton, otherwise the diplay is messed up
for CAN_DEFAULT toggles.
(gtk_toggle_button_draw_focus): always display whether the toggle button
is active or not.
* gtk/gtkwidget.c (gtk_widget_set_state):
(gtk_widget_set_sensitive):
(gtk_widget_set_parent):
(gtk_widget_propagate_state): take into consideration, whether we really
want to change childrens states, or just restauration of old states.
Diffstat (limited to 'gtk/gtkcheckbutton.c')
-rw-r--r-- | gtk/gtkcheckbutton.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c index c7244f3c4..30a181aab 100644 --- a/gtk/gtkcheckbutton.c +++ b/gtk/gtkcheckbutton.c @@ -362,9 +362,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button, width = CHECK_BUTTON_CLASS (widget)->indicator_size; height = CHECK_BUTTON_CLASS (widget)->indicator_size; - if (GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE) - shadow_type = GTK_SHADOW_IN; - else if ((GTK_WIDGET_STATE (widget) == GTK_STATE_PRELIGHT) && toggle_button->active) + if (GTK_TOGGLE_BUTTON (widget)->active) shadow_type = GTK_SHADOW_IN; else shadow_type = GTK_SHADOW_OUT; |