summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eom-plugin-manager.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eom-plugin-manager.c b/src/eom-plugin-manager.c
index f4576c3..0f68fbd 100644
--- a/src/eom-plugin-manager.c
+++ b/src/eom-plugin-manager.c
@@ -46,7 +46,11 @@ enum {
#define EOM_PLUGIN_MANAGER_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_PLUGIN_MANAGER, EomPluginManagerPrivate))
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE (EomPluginManager, eom_plugin_manager, GTK_TYPE_BOX)
+#else
G_DEFINE_TYPE (EomPluginManager, eom_plugin_manager, GTK_TYPE_VBOX)
+#endif
#define PLUGIN_MANAGER_NAME_TITLE _("Plugin")
#define PLUGIN_MANAGER_ACTIVE_TITLE _("Enabled")
@@ -837,6 +841,11 @@ eom_plugin_manager_init (EomPluginManager *pm)
eom_debug (DEBUG_PLUGINS);
+#if GTK_CHECK_VERSION (3, 2, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (pm),
+ GTK_ORIENTATION_VERTICAL);
+#endif
+
pm->priv = EOM_PLUGIN_MANAGER_GET_PRIVATE (pm);
gtk_box_set_spacing (GTK_BOX (pm), 6);