diff options
author | raveit65 <[email protected]> | 2018-09-14 10:09:57 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-09-23 16:32:48 +0200 |
commit | 8f7ec5e662517247500737617e4aaa5e083e5bc5 (patch) | |
tree | 3da8e88ec4552485972200df3e87b8c629a5e267 /mate-dictionary | |
parent | 3a9e1186d8b8bc8f45f860cb9f623fd63ea9a8a8 (diff) | |
download | mate-utils-8f7ec5e662517247500737617e4aaa5e083e5bc5.tar.bz2 mate-utils-8f7ec5e662517247500737617e4aaa5e083e5bc5.tar.xz |
dictionary: replace deprecated gdk_flush
Diffstat (limited to 'mate-dictionary')
-rw-r--r-- | mate-dictionary/src/gdict-aligned-window.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |