diff options
author | raveit65 <[email protected]> | 2016-08-09 12:22:45 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-08-12 22:37:47 +0200 |
commit | f7308f8d78c839411b76b6e45868156dd3543506 (patch) | |
tree | 4169334262d209c14db4ef22b3393873e5bde4c4 /src/caja-spatial-window.c | |
parent | f5164f75918a8e65ccde9565c4fd9f366064172e (diff) | |
download | caja-f7308f8d78c839411b76b6e45868156dd3543506.tar.bz2 caja-f7308f8d78c839411b76b6e45868156dd3543506.tar.xz |
GTK+-3 window: port GtkTable to GtkGrid
Diffstat (limited to 'src/caja-spatial-window.c')
-rw-r--r-- | src/caja-spatial-window.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/caja-spatial-window.c b/src/caja-spatial-window.c index fa426dcf..83e65011 100644 --- a/src/caja-spatial-window.c +++ b/src/caja-spatial-window.c @@ -1008,6 +1008,23 @@ caja_spatial_window_init (CajaSpatialWindow *window) win = CAJA_WINDOW (window); +#if GTK_CHECK_VERSION(3, 0, 0) + gtk_widget_set_hexpand (win->details->statusbar, TRUE); + gtk_grid_attach (GTK_GRID (win->details->grid), + win->details->statusbar, + 0, 5, 1, 1); + gtk_widget_show (win->details->statusbar); + + pane = caja_window_pane_new (win); + win->details->panes = g_list_prepend (win->details->panes, pane); + + vbox = gtk_vbox_new (FALSE, 0); + gtk_widget_set_hexpand (vbox, TRUE); + gtk_widget_set_vexpand (vbox, TRUE); + gtk_grid_attach (GTK_GRID (CAJA_WINDOW (window)->details->grid), + vbox, + 0, 1, 1, 3); +#else gtk_table_attach (GTK_TABLE (win->details->table), win->details->statusbar, /* X direction */ /* Y direction */ @@ -1026,6 +1043,7 @@ caja_spatial_window_init (CajaSpatialWindow *window) 0, 1, 1, 4, GTK_EXPAND | GTK_FILL | GTK_SHRINK, GTK_EXPAND | GTK_FILL | GTK_SHRINK, 0, 0); +#endif gtk_widget_show (vbox); window->details->content_box = vbox; |