summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/pluma-file-browser-widget.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/filebrowser/pluma-file-browser-widget.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/filebrowser/pluma-file-browser-widget.c')
-rw-r--r--plugins/filebrowser/pluma-file-browser-widget.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c
index cc2575ca..9dca7c99 100644
--- a/plugins/filebrowser/pluma-file-browser-widget.c
+++ b/plugins/filebrowser/pluma-file-browser-widget.c
@@ -240,8 +240,13 @@ static void on_action_filter_binary (GtkAction * action,
static void on_action_bookmark_open (GtkAction * action,
PlumaFileBrowserWidget * obj);
+#if GTK_CHECK_VERSION (3, 0, 0)
+PLUMA_PLUGIN_DEFINE_TYPE (PlumaFileBrowserWidget, pluma_file_browser_widget,
+ GTK_TYPE_BOX)
+#else
PLUMA_PLUGIN_DEFINE_TYPE (PlumaFileBrowserWidget, pluma_file_browser_widget,
GTK_TYPE_VBOX)
+#endif
static void
free_name_icon (gpointer data)
@@ -1260,6 +1265,10 @@ pluma_file_browser_widget_init (PlumaFileBrowserWidget * obj)
free_name_icon);
gtk_box_set_spacing (GTK_BOX (obj), 3);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (obj),
+ GTK_ORIENTATION_VERTICAL);
+#endif
obj->priv->busy_cursor = gdk_cursor_new (GDK_WATCH);
}