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:
Jasper St. Pierre 2014-11-24 16:56:23 -08:00
parent 06952d807a
commit 0c09d44509

View File

@ -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;
}
/**