From a35ba125d69f168eac654545fcf2f909954e74ec Mon Sep 17 00:00:00 2001 From: Skif-off Date: Sat, 5 Oct 2024 01:09:10 +0400 Subject: [PATCH] FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch from issues/690) --- geanylua/glspi_dlg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/geanylua/glspi_dlg.c b/geanylua/glspi_dlg.c index 2c5395746..a6a4c7a23 100644 --- a/geanylua/glspi_dlg.c +++ b/geanylua/glspi_dlg.c @@ -163,10 +163,12 @@ static gint glspi_choose(lua_State* L) scroll=gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW (scroll), GTK_SHADOW_IN); gtk_container_add(GTK_CONTAINER(gtk_dialog_get_content_area(GTK_DIALOG(dialog))),scroll); + gtk_widget_set_vexpand(scroll, TRUE); gtk_container_add(GTK_CONTAINER(scroll),tree); - gtk_widget_set_size_request(tree, 320, 240); + gtk_widget_set_size_request(scroll, 320, 240); gtk_widget_show_all(dialog); gtk_window_set_resizable(GTK_WINDOW(dialog), TRUE);