summaryrefslogtreecommitdiff
path: root/mate-dictionary/src/gdict-window.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-05-30 12:22:36 +0200
committerraveit65 <[email protected]>2016-05-30 17:33:02 +0200
commit49821e9824babbd8719898db610a4fbf7a396b2e (patch)
treed1d7b23e6da5bc0b2bbd9802ee3a7dcd6332d1cf /mate-dictionary/src/gdict-window.c
parent2347a5e66d2b986932631e862ea3fc8b987d5b0b (diff)
downloadmate-utils-49821e9824babbd8719898db610a4fbf7a396b2e.tar.bz2
mate-utils-49821e9824babbd8719898db610a4fbf7a396b2e.tar.xz
GTK+3 mdict window: Do not use deprecate composite-child API
It's useless anyway. https://bugzilla.gnome.org/show_bug.cgi?id=745022 taken from: https://git.gnome.org/browse/gnome-dictionary/commit/?id=f353608
Diffstat (limited to 'mate-dictionary/src/gdict-window.c')
-rw-r--r--mate-dictionary/src/gdict-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c
index 90356d46..cec563f6 100644
--- a/mate-dictionary/src/gdict-window.c
+++ b/mate-dictionary/src/gdict-window.c
@@ -1737,7 +1737,9 @@ gdict_window_constructor (GType type,
/* recover the state */
gdict_window_load_state (window);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_push_composite_child ();
+#endif
window->main_box = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), window->main_box);
@@ -2011,7 +2013,9 @@ gdict_window_constructor (GType type,
gtk_widget_grab_focus (window->entry);
+#if !GTK_CHECK_VERSION(3,0,0)
gtk_widget_pop_composite_child ();
+#endif
window->in_construction = FALSE;