diff options
author | Hib Eris <hib@hiberis.nl> | 2013-05-16 21:06:56 +0200 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2013-05-21 18:09:41 +0200 |
commit | f536a4ec37246e10f03fe4de309bd31deb6a4727 (patch) | |
tree | 5d45020079580ea8db5b4c6627acb118b28c2ea2 /test | |
parent | c10f2f8777927d8cfe547941ea2f70fcce14da7a (diff) |
Do not use deprecated gtk_scrolled_window_add_with_viewport()
https://bugs.freedesktop.org/show_bug.cgi?id=64683
Diffstat (limited to 'test')
-rw-r--r-- | test/gtk-test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gtk-test.cc b/test/gtk-test.cc index 6deb401a..aab7951d 100644 --- a/test/gtk-test.cc +++ b/test/gtk-test.cc @@ -306,8 +306,12 @@ view_new (PopplerDocument *doc) gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); +#if GTK_CHECK_VERSION(3, 7, 8) + gtk_container_add(GTK_CONTAINER(sw), view->drawing_area); +#else gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), view->drawing_area); +#endif gtk_widget_show (view->drawing_area); gtk_box_pack_end (GTK_BOX (vbox), sw, TRUE, TRUE, 0); |