summaryrefslogtreecommitdiff
path: root/plugins/taglist/pluma-taglist-plugin-panel.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-11-19 21:13:51 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-01 22:31:33 +0100
commitdc6b2065db9aa22aac346adaf337fb868b959f11 (patch)
tree13ac577af60397bbff08819cc5ad2041f4da9397 /plugins/taglist/pluma-taglist-plugin-panel.c
parent9994dd399ab569d547e18cb5f01900f8db953312 (diff)
downloadpluma-dc6b2065db9aa22aac346adaf337fb868b959f11.tar.bz2
pluma-dc6b2065db9aa22aac346adaf337fb868b959f11.tar.xz
GTk3: don't use deprecated GTK_TYPE_{V/H}BOX
Diffstat (limited to 'plugins/taglist/pluma-taglist-plugin-panel.c')
-rwxr-xr-xplugins/taglist/pluma-taglist-plugin-panel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/taglist/pluma-taglist-plugin-panel.c b/plugins/taglist/pluma-taglist-plugin-panel.c
index 682bedd6..b4880ca0 100755
--- a/plugins/taglist/pluma-taglist-plugin-panel.c
+++ b/plugins/taglist/pluma-taglist-plugin-panel.c
@@ -69,7 +69,11 @@ struct _PlumaTaglistPluginPanelPrivate
gchar *data_dir;
};
+#if GTK_CHECK_VERSION (3, 0, 0)
+PLUMA_PLUGIN_DEFINE_TYPE (PlumaTaglistPluginPanel, pluma_taglist_plugin_panel, GTK_TYPE_BOX)
+#else
PLUMA_PLUGIN_DEFINE_TYPE (PlumaTaglistPluginPanel, pluma_taglist_plugin_panel, GTK_TYPE_VBOX)
+#endif
enum
{
@@ -675,6 +679,11 @@ pluma_taglist_plugin_panel_init (PlumaTaglistPluginPanel *panel)
panel->priv = PLUMA_TAGLIST_PLUGIN_PANEL_GET_PRIVATE (panel);
panel->priv->data_dir = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (panel),
+ GTK_ORIENTATION_VERTICAL);
+#endif
+
/* Build the window content */
panel->priv->tag_groups_combo = gtk_combo_box_text_new ();
gtk_box_pack_start (GTK_BOX (panel),