diff options
author | Benjamin Otte <otte@redhat.com> | 2012-12-18 17:47:06 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-12-18 18:25:42 +0100 |
commit | a73cc55e022c69fb2c7f6b059b0a9c12c3f057e1 (patch) | |
tree | ab581fadd04e8e3e47b5aa09f251bc69e0904023 /gtk/gtkwidget.c | |
parent | 1bf3de223a4196ef95d098932044eede1a790893 (diff) | |
download | gtk+-a73cc55e022c69fb2c7f6b059b0a9c12c3f057e1.tar.gz |
stylecontext: Use state flags for direction
... instead of using a custom direction member.
And with that, GtkWidget doesn't need to call
gtk_style_context_set_direction() anymore.
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 88f4148fe6..c04bfb9526 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -10160,9 +10160,6 @@ gtk_widget_emit_direction_changed (GtkWidget *widget, break; } - if (widget->priv->context) - gtk_style_context_set_direction (widget->priv->context, direction); - gtk_widget_set_state_flags (widget, state, TRUE); g_signal_emit (widget, widget_signals[DIRECTION_CHANGED], 0, old_dir); @@ -14015,7 +14012,6 @@ gtk_widget_get_style_context (GtkWidget *widget) priv->context = gtk_style_context_new (); gtk_style_context_set_state (priv->context, priv->state_flags); - gtk_style_context_set_direction (priv->context, gtk_widget_get_direction (widget)); screen = gtk_widget_get_screen (widget); if (screen) |