[geany/geany-plugins] 8e6b2c: autoclose: fixed deprecated gtk call for gtk3

LarsGit223 git-noreply at xxxxx
Sun May 12 17:11:32 UTC 2019


Branch:      refs/heads/master
Author:      LarsGit223 <lars_paulsen at web.de>
Committer:   LarsGit223 <lars_paulsen at web.de>
Date:        Sun, 12 May 2019 17:11:32 UTC
Commit:      8e6b2c78e72b2d3f74562599f3fbd30f31e20e2f
             https://github.com/geany/geany-plugins/commit/8e6b2c78e72b2d3f74562599f3fbd30f31e20e2f

Log Message:
-----------
autoclose: fixed deprecated gtk call for gtk3


Modified Paths:
--------------
    autoclose/src/autoclose.c

Modified: autoclose/src/autoclose.c
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -1005,7 +1005,11 @@ plugin_autoclose_configure(G_GNUC_UNUSED GeanyPlugin *plugin, GtkDialog *dialog,
 	vbox = gtk_vbox_new(FALSE, 0);
 	scrollbox = gtk_scrolled_window_new(NULL, NULL);
 	gtk_widget_set_size_request(GTK_WIDGET(scrollbox), -1, 400);
+#if GTK_CHECK_VERSION(3, 8, 0)
+	gtk_container_add(GTK_CONTAINER(scrollbox), vbox);
+#else
 	gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollbox), vbox);
+#endif
 	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollbox),
 		GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list