summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-08-09 12:22:45 +0200
committerraveit65 <[email protected]>2016-08-12 22:37:47 +0200
commitf7308f8d78c839411b76b6e45868156dd3543506 (patch)
tree4169334262d209c14db4ef22b3393873e5bde4c4 /src/caja-navigation-window.c
parentf5164f75918a8e65ccde9565c4fd9f366064172e (diff)
downloadcaja-f7308f8d78c839411b76b6e45868156dd3543506.tar.bz2
caja-f7308f8d78c839411b76b6e45868156dd3543506.tar.xz
GTK+-3 window: port GtkTable to GtkGrid
Diffstat (limited to 'src/caja-navigation-window.c')
-rw-r--r--src/caja-navigation-window.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c
index fbaaf5a4..8c1db6a8 100644
--- a/src/caja-navigation-window.c
+++ b/src/caja-navigation-window.c
@@ -153,15 +153,20 @@ caja_navigation_window_init (CajaNavigationWindow *window)
#if GTK_CHECK_VERSION(3, 0, 0)
window->details->content_paned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+ gtk_widget_set_hexpand (window->details->content_paned, TRUE);
+ gtk_widget_set_vexpand (window->details->content_paned, TRUE);
+ gtk_grid_attach (GTK_GRID (CAJA_WINDOW (window)->details->grid),
+ window->details->content_paned,
+ 0, 3, 1, 1);
#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 */
0, 1, 3, 4,
GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_EXPAND | GTK_FILL | GTK_SHRINK,
0, 0);
+#endif
gtk_widget_show (window->details->content_paned);
vbox = gtk_vbox_new (FALSE, 0);
@@ -198,7 +203,12 @@ caja_navigation_window_init (CajaNavigationWindow *window)
toolbar = gtk_ui_manager_get_widget (ui_manager, "/Toolbar");
#if GTK_CHECK_VERSION(3, 0, 0)
gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), GTK_STYLE_CLASS_PRIMARY_TOOLBAR);
-#endif
+ window->details->toolbar = toolbar;
+ gtk_widget_set_hexpand (toolbar, TRUE);
+ gtk_grid_attach (GTK_GRID (CAJA_WINDOW (window)->details->grid),
+ toolbar,
+ 0, 1, 1, 1);
+#else
window->details->toolbar = toolbar;
gtk_table_attach (GTK_TABLE (CAJA_WINDOW (window)->details->table),
toolbar,
@@ -206,6 +216,7 @@ caja_navigation_window_init (CajaNavigationWindow *window)
0, 1, 1, 2,
GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0,
0, 0);
+#endif
gtk_widget_show (toolbar);
caja_navigation_window_initialize_toolbars (window);