diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-04-23 17:48:29 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-06-05 20:35:09 +0100 |
commit | 6e52ef96a4f3c1812dc8d7ec8698608fbcb951e0 (patch) | |
tree | 7220442bebfc34f011bdc5821c289725fbdf8664 /gtk/gtkcellview.c | |
parent | 9606c1eee9faaca7a7822ada3509b27fa98966e7 (diff) | |
download | gtk+-6e52ef96a4f3c1812dc8d7ec8698608fbcb951e0.tar.gz |
Move orientable style classes into GtkWidget
It feels slightly wrong to have GtkOrientable operate on widgets, but at
least what happens when an orientable widget changes orientation should
be part of GtkWidget.
This will allow to add more state changes without accessing widget state
from the outside of gtkwidget.c.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r-- | gtk/gtkcellview.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c index 12132c2944..a7b5a9c3a9 100644 --- a/gtk/gtkcellview.c +++ b/gtk/gtkcellview.c @@ -16,19 +16,22 @@ */ #include "config.h" -#include <string.h> + #include "gtkcellview.h" + +#include "gtkbuildable.h" #include "gtkcelllayout.h" #include "gtkcellareabox.h" -#include "gtkintl.h" -#include "gtkcellrenderertext.h" #include "gtkcellrendererpixbuf.h" +#include "gtkcellrenderertext.h" +#include "gtkintl.h" +#include "gtkorientable.h" #include "gtkprivate.h" -#include "gtkorientableprivate.h" #include "gtkwidgetprivate.h" + #include <gobject/gmarshal.h> -#include "gtkbuildable.h" +#include <string.h> /** * SECTION:gtkcellview @@ -385,7 +388,7 @@ gtk_cell_view_set_property (GObject *object, priv->orientation = g_value_get_enum (value); if (priv->context) gtk_cell_area_context_reset (priv->context); - _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object)); + gtk_widget_update_orientation (GTK_WIDGET (object), priv->orientation); g_object_notify_by_pspec (object, pspec); } break; |