forked from AuroraMiddleware/gtk
radiobutton: always use interior focus
This commit is contained in:
parent
b77a8bcb95
commit
0c6cc487d6
@ -878,7 +878,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
||||
gint focus_pad;
|
||||
gint baseline;
|
||||
guint border_width;
|
||||
gboolean interior_focus;
|
||||
|
||||
widget = GTK_WIDGET (check_button);
|
||||
button = GTK_BUTTON (check_button);
|
||||
@ -889,7 +888,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
||||
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
|
||||
|
||||
gtk_widget_style_get (widget,
|
||||
"interior-focus", &interior_focus,
|
||||
"focus-line-width", &focus_width,
|
||||
"focus-padding", &focus_pad,
|
||||
NULL);
|
||||
@ -907,7 +905,7 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
||||
0, allocation.height - indicator_size);
|
||||
|
||||
child = gtk_bin_get_child (GTK_BIN (check_button));
|
||||
if (!interior_focus || !(child && gtk_widget_get_visible (child)))
|
||||
if (!(child && gtk_widget_get_visible (child)))
|
||||
x += focus_width + focus_pad;
|
||||
|
||||
state &= ~(GTK_STATE_FLAG_INCONSISTENT |
|
||||
|
Loading…
Reference in New Issue
Block a user