Skip to content

Commit e92ca08

Browse files
01mickojohanmalm
authored andcommitted
main.c let GTK decide the size of the window
- also small tweak to row height
1 parent f147912 commit e92ca08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ activate(GtkApplication *app, gpointer user_data)
2121
/* window */
2222
state->window = gtk_application_window_new(app);
2323
gtk_window_set_title(GTK_WINDOW(state->window), "Tweaks");
24-
gtk_window_set_default_size(GTK_WINDOW(state->window), 800, 600);
2524

2625
/* grid */
2726
GtkWidget *grid = gtk_grid_new();
@@ -30,6 +29,7 @@ activate(GtkApplication *app, gpointer user_data)
3029
GtkWidget *separator = gtk_separator_new(GTK_ORIENTATION_VERTICAL);
3130
GtkWidget *stack = gtk_stack_new();
3231
GtkWidget *bottom_buttons = gtk_button_box_new(GTK_ORIENTATION_HORIZONTAL);
32+
gtk_grid_set_row_spacing(GTK_GRID(grid), 10);
3333
gtk_grid_attach(GTK_GRID(grid), sidebar, 0, 0, 1, 2);
3434
gtk_grid_attach(GTK_GRID(grid), separator, 1, 0, 1, 2);
3535
gtk_grid_attach(GTK_GRID(grid), stack, 2, 0, 1, 1);

0 commit comments

Comments
 (0)