summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-10 11:28:29 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:49:21 +0200
commit1466df20591105550738a1d0784a623af9909abf (patch)
tree4025c64b0972498d07dd700b1eef5dbd9aefb60b /src
parent48cc04df5933644ade234ce16ac8a6ee817bb867 (diff)
downloadcaja-1466df20591105550738a1d0784a623af9909abf.tar.bz2
caja-1466df20591105550738a1d0784a623af9909abf.tar.xz
[navigation-window] Use gtk_paned_new for GTK3 instead of gtk_[h|v]paned_new
http://git.gnome.org/browse/nautilus/commit/?id=0609431a5cb3803d0b98bd333f90e3c7796f86b7
Diffstat (limited to 'src')
-rw-r--r--src/caja-navigation-window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c
index eba87c47..e5622af7 100644
--- a/src/caja-navigation-window.c
+++ b/src/caja-navigation-window.c
@@ -140,7 +140,11 @@ caja_navigation_window_init (CajaNavigationWindow *window)
window->details->header_size_group = gtk_size_group_new (GTK_SIZE_GROUP_VERTICAL);
gtk_size_group_set_ignore_hidden (window->details->header_size_group, FALSE);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ window->details->content_paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
window->details->content_paned = gtk_hpaned_new ();
+#endif
gtk_table_attach (GTK_TABLE (CAJA_WINDOW (window)->details->table),
window->details->content_paned,
/* X direction */ /* Y direction */
@@ -154,7 +158,11 @@ caja_navigation_window_init (CajaNavigationWindow *window)
TRUE, FALSE);
gtk_widget_show (vbox);
+#if GTK_CHECK_VERSION(3, 0, 0)
+ hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
hpaned = gtk_hpaned_new ();
+#endif
gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0);
gtk_widget_show (hpaned);
window->details->split_view_hpane = hpaned;