Commit 1487b346 authored by Carlos Garnacho's avatar Carlos Garnacho

Remove GTK_STATE_LAST.

It didn't turn out to be that useful, nor widely used.
parent 1fb6cc8d
......@@ -460,7 +460,7 @@ enum ParserScope {
*/
enum ParserSymbol {
/* Scope: pseudo-class */
SYMBOL_NTH_CHILD = GTK_STATE_LAST,
SYMBOL_NTH_CHILD = GTK_STATE_FOCUSED + 1,
SYMBOL_FIRST_CHILD,
SYMBOL_LAST_CHILD,
SYMBOL_SORTED_CHILD,
......
......@@ -369,8 +369,7 @@ typedef enum
GTK_STATE_SELECTED,
GTK_STATE_INSENSITIVE,
GTK_STATE_INCONSISTENT,
GTK_STATE_FOCUSED,
GTK_STATE_LAST
GTK_STATE_FOCUSED
} GtkStateType;
/* Style for toolbars */
......
......@@ -2464,7 +2464,7 @@ gtk_style_context_notify_state_change (GtkStyleContext *context,
g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (state < GTK_STATE_LAST);
g_return_if_fail (state > GTK_STATE_NORMAL && state <= GTK_STATE_FOCUSED);
priv = context->priv;
g_return_if_fail (priv->widget_path != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment