radiobutton: don't use focus-line-width
This commit is contained in:
parent
a32260660b
commit
8fff30090b
@ -867,14 +867,12 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
|||||||
{
|
{
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GtkWidget *child;
|
|
||||||
GtkButton *button;
|
GtkButton *button;
|
||||||
GtkToggleButton *toggle_button;
|
GtkToggleButton *toggle_button;
|
||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
GtkStateFlags state = 0;
|
GtkStateFlags state = 0;
|
||||||
gint x, y;
|
gint x, y;
|
||||||
gint indicator_size, indicator_spacing;
|
gint indicator_size, indicator_spacing;
|
||||||
gint focus_width;
|
|
||||||
gint baseline;
|
gint baseline;
|
||||||
guint border_width;
|
guint border_width;
|
||||||
|
|
||||||
@ -885,11 +883,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
|||||||
state = gtk_widget_get_state_flags (widget);
|
state = gtk_widget_get_state_flags (widget);
|
||||||
|
|
||||||
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
|
border_width = gtk_container_get_border_width (GTK_CONTAINER (widget));
|
||||||
|
|
||||||
gtk_widget_style_get (widget,
|
|
||||||
"focus-line-width", &focus_width,
|
|
||||||
NULL);
|
|
||||||
|
|
||||||
_gtk_check_button_get_props (check_button, &indicator_size, &indicator_spacing);
|
_gtk_check_button_get_props (check_button, &indicator_size, &indicator_spacing);
|
||||||
|
|
||||||
gtk_widget_get_allocation (widget, &allocation);
|
gtk_widget_get_allocation (widget, &allocation);
|
||||||
@ -902,10 +895,6 @@ gtk_radio_button_draw_indicator (GtkCheckButton *check_button,
|
|||||||
y = CLAMP (baseline - indicator_size * button->priv->baseline_align,
|
y = CLAMP (baseline - indicator_size * button->priv->baseline_align,
|
||||||
0, allocation.height - indicator_size);
|
0, allocation.height - indicator_size);
|
||||||
|
|
||||||
child = gtk_bin_get_child (GTK_BIN (check_button));
|
|
||||||
if (!(child && gtk_widget_get_visible (child)))
|
|
||||||
x += focus_width;
|
|
||||||
|
|
||||||
state &= ~(GTK_STATE_FLAG_INCONSISTENT |
|
state &= ~(GTK_STATE_FLAG_INCONSISTENT |
|
||||||
GTK_STATE_FLAG_ACTIVE |
|
GTK_STATE_FLAG_ACTIVE |
|
||||||
GTK_STATE_FLAG_SELECTED |
|
GTK_STATE_FLAG_SELECTED |
|
||||||
|
Loading…
Reference in New Issue
Block a user