summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-14 17:48:57 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-14 17:48:57 +0100
commit402caf8204916e5bb6fbeca2fbf4becfd616df27 (patch)
tree76f8f20137b18013de9b6b991763e0dca3a39a1f /src
parent8a8e85bf8de79e4ac183e653b0363a11ed0bad87 (diff)
downloadeom-402caf8204916e5bb6fbeca2fbf4becfd616df27.tar.bz2
eom-402caf8204916e5bb6fbeca2fbf4becfd616df27.tar.xz
GTK3: replace more deprecated GtkVBox usage
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);