From 4c546d7e8754f291990a1d95363a88cd3d96c3ce Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 25 Jul 2014 15:44:53 +0200 Subject: Use gtk_paned_new() instead gtk_[h|v]paned_new() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on eog commit 1564455e2585cfee8dd30d7adbe65715608aee03 From Javier Jardón --- src/eom-window.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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(), -- cgit v1.2.1