Skip to content

Commit c490029

Browse files
sc0wlukefromdc
authored andcommitted
caja-spatial-window.c: avoid deprecated 'gtk_vbox_new'
1 parent 99cf0ca commit c490029

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎src/caja-spatial-window.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,10 +1002,8 @@ caja_spatial_window_init (CajaSpatialWindow *window)
10021002
pane = caja_window_pane_new (win);
10031003
win->details->panes = g_list_prepend (win->details->panes, pane);
10041004

1005-
/* FIXME: changing this to gtk_box_new breaks desktop :-/
1006-
* see https://github.com/mate-desktop/caja/issues/591
1007-
*/
1008-
vbox = gtk_vbox_new (FALSE, 0);
1005+
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
1006+
gtk_box_set_homogeneous (GTK_BOX (vbox), TRUE);
10091007
gtk_widget_set_hexpand (vbox, TRUE);
10101008
gtk_widget_set_vexpand (vbox, TRUE);
10111009
gtk_grid_attach (GTK_GRID (CAJA_WINDOW (window)->details->grid),

0 commit comments

Comments
 (0)