mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
Use the widget's state when drawing the indicator, as in GtkCheckButton.
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use the widget's state when drawing the indicator, as in GtkCheckButton. This gives us color changes for un-prelighted checkbuttons. (#63308, Matt Wilson)
This commit is contained in:
parent
0e8a7fb48e
commit
f4f196c133
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -1,3 +1,10 @@
|
||||
Mon Nov 19 17:34:40 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use the widget's state when drawing the indicator, as
|
||||
in GtkCheckButton. This gives us color changes for
|
||||
un-prelighted checkbuttons. (#63308, Matt Wilson)
|
||||
|
||||
Mon Nov 19 17:11:23 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
(Fixes related to #64428, Michael Meeks)
|
||||
|
@ -621,6 +621,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
||||
x = widget->allocation.x + indicator_spacing + GTK_CONTAINER (widget)->border_width;
|
||||
y = widget->allocation.y + (widget->allocation.height - indicator_size) / 2;
|
||||
|
||||
state_type = GTK_WIDGET_STATE (widget) == GTK_STATE_ACTIVE ? GTK_STATE_NORMAL : GTK_WIDGET_STATE (widget);
|
||||
if (GTK_TOGGLE_BUTTON (widget)->active)
|
||||
shadow_type = GTK_SHADOW_IN;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user