summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 15:44:53 +0200
committerinfirit <[email protected]>2014-07-25 15:56:38 +0200
commit4c546d7e8754f291990a1d95363a88cd3d96c3ce (patch)
tree2cd92222411df551a2cf8b41e5b0437935b5eee3 /src
parent716caf1ea3be8fe204d6616f9875a5c8f5d17a01 (diff)
downloadeom-4c546d7e8754f291990a1d95363a88cd3d96c3ce.tar.bz2
eom-4c546d7e8754f291990a1d95363a88cd3d96c3ce.tar.xz
Use gtk_paned_new() instead gtk_[h|v]paned_new()
Based on eog commit 1564455e2585cfee8dd30d7adbe65715608aee03 From Javier Jardón <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/eom-window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c
index b2925df..7cfde7b 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -478,7 +478,11 @@ eom_window_collection_mode_changed_cb (GSettings *settings, gchar *key, gpointer
if (resizable) {
mode = EOM_THUMB_NAV_MODE_MULTIPLE_ROWS;
+#if GTK_CHECK_VERSION (3, 2, 0)
+ priv->layout = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
+#else
priv->layout = gtk_vpaned_new ();
+#endif
if (position == 0) {
gtk_paned_pack1 (GTK_PANED (priv->layout), hpaned, TRUE, FALSE);
@@ -507,7 +511,11 @@ eom_window_collection_mode_changed_cb (GSettings *settings, gchar *key, gpointer
if (resizable) {
mode = EOM_THUMB_NAV_MODE_MULTIPLE_COLUMNS;
+#if GTK_CHECK_VERSION (3, 2, 0)
+ priv->layout = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
priv->layout = gtk_hpaned_new ();
+#endif
if (position == 1) {
gtk_paned_pack1 (GTK_PANED (priv->layout), priv->nav, FALSE, TRUE);
@@ -4437,7 +4445,11 @@ eom_window_construct_ui (EomWindow *window)
priv->layout = gtk_vbox_new (FALSE, 2);
+#if GTK_CHECK_VERSION (3, 2, 0)
+ hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
hpaned = gtk_hpaned_new ();
+#endif
priv->sidebar = eom_sidebar_new ();
/* The sidebar shouldn't be shown automatically on show_all(),