[geany/geany-plugins] 69fddd: Merge pull request #857 from LarsGit223/autoclose-gtk3
Frank Lanitz
git-noreply at xxxxx
Thu May 16 05:32:30 UTC 2019
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Thu, 16 May 2019 05:32:30 UTC
Commit: 69fddd4454498944dc2cb218385cb665026eb2d7
https://github.com/geany/geany-plugins/commit/69fddd4454498944dc2cb218385cb665026eb2d7
Log Message:
-----------
Merge pull request #857 from LarsGit223/autoclose-gtk3
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