forked from AuroraMiddleware/gtk
gtkwidget: Remove unnecessary code in get_state_flags
Any time has_focus is called, we will call gtk_widget_update_state_flags which will assign the state flags properly.
This commit is contained in:
parent
06952d807a
commit
0c09d44509
@ -8857,16 +8857,9 @@ gtk_widget_unset_state_flags (GtkWidget *widget,
|
||||
GtkStateFlags
|
||||
gtk_widget_get_state_flags (GtkWidget *widget)
|
||||
{
|
||||
GtkStateFlags flags;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
|
||||
|
||||
flags = widget->priv->state_flags;
|
||||
|
||||
if (gtk_widget_has_focus (widget))
|
||||
flags |= GTK_STATE_FLAG_FOCUSED;
|
||||
|
||||
return flags;
|
||||
return widget->priv->state_flags;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user