[Github-comments] [geany/geany-plugins] Problem with "Lua Script" after upgrade (GTK 3) (#690)

Colomban Wendling notifications at xxxxx
Sat Nov 7 22:38:53 UTC 2020


@Skif-off try:
```diff
diff --git a/geanylua/glspi_dlg.c b/geanylua/glspi_dlg.c
index f0553853..c7d9718a 100644
--- a/geanylua/glspi_dlg.c
+++ b/geanylua/glspi_dlg.c
@@ -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);
 
```

(the shadow type is just me not liking the borderless scrolled view when there is no other widgets making a border)

However, I don't understand why you see a "missing image" image under GTK3.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/690#issuecomment-723503783
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201107/1595b4c3/attachment-0001.htm>


More information about the Github-comments mailing list