From 402caf8204916e5bb6fbeca2fbf4becfd616df27 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Mon, 14 Dec 2015 17:48:57 +0100 Subject: GTK3: replace more deprecated GtkVBox usage --- cut-n-paste/toolbar-editor/egg-editable-toolbar.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c') diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c index 0158cda..eb64a38 100644 --- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c +++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c @@ -86,7 +86,11 @@ struct _EggEditableToolbarPrivate GtkToolItem *dnd_toolitem; }; +#if GTK_CHECK_VERSION (3, 0, 0) +G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_BOX) +#else G_DEFINE_TYPE (EggEditableToolbar, egg_editable_toolbar, GTK_TYPE_VBOX); +#endif static int get_dock_position (EggEditableToolbar *etoolbar, @@ -1335,6 +1339,11 @@ egg_editable_toolbar_set_model (EggEditableToolbar *etoolbar, static void egg_editable_toolbar_init (EggEditableToolbar *etoolbar) { +#if GTK_CHECK_VERSION (3, 2, 0) + gtk_orientable_set_orientation (GTK_ORIENTABLE (etoolbar), + GTK_ORIENTATION_VERTICAL); +#endif + EggEditableToolbarPrivate *priv; priv = etoolbar->priv = EGG_EDITABLE_TOOLBAR_GET_PRIVATE (etoolbar); -- cgit v1.2.1