From aeb2c5ed7406db3616a820655837bb225c115f05 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Sat, 1 Feb 2025 23:44:30 +0100 Subject: [PATCH] Allow shrinking the preferences dialog again Use a more flexible way of setting the default preference window size to allow shrinking the window if desired. Related to #4195. --- data/geany.glade | 1 + src/prefs.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/data/geany.glade b/data/geany.glade index d76d8ae5aa..7c3508d43c 100644 --- a/data/geany.glade +++ b/data/geany.glade @@ -761,6 +761,7 @@ False Preferences True + 600 geany dialog True diff --git a/src/prefs.c b/src/prefs.c index 29b420a334..81cc3d6234 100644 --- a/src/prefs.c +++ b/src/prefs.c @@ -1751,7 +1751,6 @@ void prefs_show_dialog(void) ui_widgets.prefs_dialog = create_prefs_dialog(); gtk_widget_set_name(ui_widgets.prefs_dialog, "GeanyPrefsDialog"); gtk_window_set_transient_for(GTK_WINDOW(ui_widgets.prefs_dialog), GTK_WINDOW(main_widgets.window)); - gtk_widget_set_size_request(ui_widgets.prefs_dialog, 600, -1); /* init the file encoding combo boxes */ {