Skip to content

Commit

Permalink
Merge pull request #857 from LarsGit223/autoclose-gtk3
Browse files Browse the repository at this point in the history
autoclose: fixed deprecated gtk call for gtk3
  • Loading branch information
frlan authored May 16, 2019
2 parents 07d586e + 8e6b2c7 commit 69fddd4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoclose/src/autoclose.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 69fddd4

Please sign in to comment.