Skip to content
Permalink
Browse files

dictionary: replace deprecated gdk_flush

  • Loading branch information...
raveit65 committed Sep 14, 2018
1 parent 3a9e118 commit 8f7ec5e662517247500737617e4aaa5e083e5bc5
Showing with 3 additions and 1 deletion.
  1. +3 −1 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);

0 comments on commit 8f7ec5e

Please sign in to comment.
You can’t perform that action at this time.