aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-18 02:21:52 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-18 02:21:52 +0100
commite487b2b1a06f82639cf64639501521a233138748 (patch)
tree0bd8c110f25cdef1c428765529d5680f738bce8a /src
parentd108bc7139222e9fe3a08587e492a72963c9872f (diff)
Wider to allow space for scrollbar
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6d63a1d..362414f 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2757,15 +2757,23 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
gtk_scrolled_window_set_propagate_natural_height(scrolled_window, true);
gtk_grid_attach(main_grid, GTK_WIDGET(scrolled_window), 0, main_grid_row++, 2, 1);
+ GtkGrid *scrolled_window_grid = GTK_GRID(gtk_grid_new());
+ gtk_container_add(GTK_CONTAINER(scrolled_window), GTK_WIDGET(scrolled_window_grid));
+ gtk_widget_set_vexpand(GTK_WIDGET(scrolled_window_grid), true);
+ gtk_widget_set_hexpand(GTK_WIDGET(scrolled_window_grid), true);
+ gtk_grid_set_row_spacing(scrolled_window_grid, 0);
+ gtk_grid_set_column_spacing(scrolled_window_grid, 0);
+ gtk_widget_set_margin(GTK_WIDGET(scrolled_window_grid), 0, 0, 0, 0);
+
GtkGrid *grid = GTK_GRID(gtk_grid_new());
- gtk_container_add(GTK_CONTAINER(scrolled_window), GTK_WIDGET(grid));
+ gtk_container_add(GTK_CONTAINER(scrolled_window_grid), GTK_WIDGET(grid));
gtk_widget_set_halign(GTK_WIDGET(grid), GTK_ALIGN_CENTER);
gtk_widget_set_valign(GTK_WIDGET(grid), GTK_ALIGN_START);
gtk_widget_set_vexpand(GTK_WIDGET(grid), true);
gtk_widget_set_hexpand(GTK_WIDGET(grid), true);
gtk_grid_set_row_spacing(grid, 10);
gtk_grid_set_column_spacing(grid, 10);
- gtk_widget_set_margin(GTK_WIDGET(grid), 10, 10, 10, 10);
+ gtk_widget_set_margin(GTK_WIDGET(grid), 10, 10, 25, 25);
GtkFrame *capture_target_frame = GTK_FRAME(gtk_frame_new("Capture target"));
gtk_grid_attach(grid, GTK_WIDGET(capture_target_frame), 0, grid_row++, 2, 1);