Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dictionary: replace deprecated gdk_flush
  • Loading branch information
raveit65 committed Sep 23, 2018
1 parent 3a9e118 commit 8f7ec5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mate-dictionary/src/gdict-aligned-window.c
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 8f7ec5e

Please sign in to comment.