From 8f7ec5e662517247500737617e4aaa5e083e5bc5 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 14 Sep 2018 10:09:57 +0200 Subject: dictionary: replace deprecated gdk_flush --- mate-dictionary/src/gdict-aligned-window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mate-dictionary') diff --git a/mate-dictionary/src/gdict-aligned-window.c b/mate-dictionary/src/gdict-aligned-window.c index a87de3d5..a9881cd6 100644 --- a/mate-dictionary/src/gdict-aligned-window.c +++ b/mate-dictionary/src/gdict-aligned-window.c @@ -162,6 +162,7 @@ gdict_aligned_window_position (GdictAlignedWindow *window) gint x, y; GdkGravity gravity = GDK_GRAVITY_NORTH_WEST; GdkWindow *gdk_window; + GdkDisplay *display; g_assert (GDICT_IS_ALIGNED_WINDOW (window)); priv = window->priv; @@ -172,7 +173,8 @@ gdict_aligned_window_position (GdictAlignedWindow *window) align_widget = priv->align_widget; gdk_window = gtk_widget_get_window (align_widget); - gdk_flush (); + display = gdk_display_get_default (); + gdk_display_flush (display); gdk_window_get_geometry (gtk_widget_get_window (GTK_WIDGET (window)), NULL, NULL, &our_width, &our_height); -- cgit v1.2.1