mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator): gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator): Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE (#92548, Tim Evans) * gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator) gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If Use state_type = STATE_INSENSITIVE for insensitive menu items.
This commit is contained in:
parent
5afcde9a25
commit
c1ccc9b9a4
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
||||
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
|
||||
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
|
||||
(#92548, Tim Evans)
|
||||
|
||||
* gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
|
||||
gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
|
||||
Use state_type = STATE_INSENSITIVE for insensitive menu items.
|
||||
|
||||
Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,14 @@
|
||||
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
|
||||
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
|
||||
(#92548, Tim Evans)
|
||||
|
||||
* gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
|
||||
gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
|
||||
Use state_type = STATE_INSENSITIVE for insensitive menu items.
|
||||
|
||||
Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,14 @@
|
||||
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
|
||||
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
|
||||
(#92548, Tim Evans)
|
||||
|
||||
* gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
|
||||
gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
|
||||
Use state_type = STATE_INSENSITIVE for insensitive menu items.
|
||||
|
||||
Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,14 @@
|
||||
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
|
||||
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
|
||||
(#92548, Tim Evans)
|
||||
|
||||
* gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
|
||||
gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
|
||||
Use state_type = STATE_INSENSITIVE for insensitive menu items.
|
||||
|
||||
Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -1,3 +1,14 @@
|
||||
Wed Jun 4 18:27:44 2003 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkcheckbutton.c (gtk_real_check_button_draw_indicator):
|
||||
gtk/gtkradiobutton.c (gtk_radio_button_draw_indicator):
|
||||
Use GTK_WIDGET_IS_SENSITIVE(), not GTK_WIDGET_SENSITIVE
|
||||
(#92548, Tim Evans)
|
||||
|
||||
* gtk/gtkcheckmenuitem.c (gtk_real_check_menu_item_draw_indicator)
|
||||
gtk/gtkradiomenuitem.c (gtk_radio_menu_item_draw_indicator): If
|
||||
Use state_type = STATE_INSENSITIVE for insensitive menu items.
|
||||
|
||||
Wed Jun 4 21:25:35 2003 Kristian Rietveld <kris@gtk.org>
|
||||
|
||||
Merged from stable.
|
||||
|
@ -415,7 +415,7 @@ gtk_real_check_button_draw_indicator (GtkCheckButton *check_button,
|
||||
state_type = GTK_STATE_ACTIVE;
|
||||
else if (button->in_button)
|
||||
state_type = GTK_STATE_PRELIGHT;
|
||||
else if (!GTK_WIDGET_SENSITIVE (widget))
|
||||
else if (!GTK_WIDGET_IS_SENSITIVE (widget))
|
||||
state_type = GTK_STATE_INSENSITIVE;
|
||||
else
|
||||
state_type = GTK_STATE_NORMAL;
|
||||
|
@ -390,6 +390,9 @@ gtk_real_check_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
|
||||
if (state_type == GTK_STATE_ACTIVE)
|
||||
state_type = GTK_STATE_NORMAL;
|
||||
}
|
||||
|
||||
if (!GTK_WIDGET_IS_SENSITIVE (widget))
|
||||
state_type = GTK_STATE_INSENSITIVE;
|
||||
|
||||
gtk_paint_check (widget->style, widget->window,
|
||||
state_type, shadow_type,
|
||||
|
@ -642,7 +642,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
||||
state_type = GTK_STATE_ACTIVE;
|
||||
else if (button->in_button)
|
||||
state_type = GTK_STATE_PRELIGHT;
|
||||
else if (!GTK_WIDGET_SENSITIVE (widget))
|
||||
else if (!GTK_WIDGET_IS_SENSITIVE (widget))
|
||||
state_type = GTK_STATE_INSENSITIVE;
|
||||
else
|
||||
state_type = GTK_STATE_NORMAL;
|
||||
|
@ -338,6 +338,9 @@ gtk_radio_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item,
|
||||
if (check_menu_item->inconsistent)
|
||||
shadow_type = GTK_SHADOW_ETCHED_IN;
|
||||
|
||||
if (!GTK_WIDGET_IS_SENSITIVE (widget))
|
||||
state_type = GTK_STATE_INSENSITIVE;
|
||||
|
||||
gtk_paint_option (widget->style, widget->window,
|
||||
state_type, shadow_type,
|
||||
area, widget, "option",
|
||||
|
Loading…
Reference in New Issue
Block a user