Skip to content

Commit

Permalink
FIX: GeanyLua: 'Choose' dialog size/appearance (b4n's patch from issu…
Browse files Browse the repository at this point in the history
…es/690)
  • Loading branch information
Skif-off committed Oct 7, 2024
1 parent 6ab2fb4 commit efa4c25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geanylua/glspi_dlg.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,14 @@ 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);
#if GTK_CHECK_VERSION(3, 0, 0)
gtk_widget_set_vexpand(scroll, TRUE);
#endif
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);

Expand Down

0 comments on commit efa4c25

Please sign in to comment.