summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-06-28 13:13:17 +0200
committerraveit65 <[email protected]>2018-06-29 21:28:50 +0200
commitedb3e0d94cc2c0493bbf88496bf4b5ccdca03f54 (patch)
tree524d9bfd2212596a9049df707b00c3e8b8ade517
parent36d1856586e0caaa5c3417ec9f2322a110ccb4b8 (diff)
downloadmate-panel-edb3e0d94cc2c0493bbf88496bf4b5ccdca03f54.tar.bz2
mate-panel-edb3e0d94cc2c0493bbf88496bf4b5ccdca03f54.tar.xz
panel-util: replace deprecated gdk_flush
-rw-r--r--mate-panel/panel-util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mate-panel/panel-util.c b/mate-panel/panel-util.c
index f9832473..1106f034 100644
--- a/mate-panel/panel-util.c
+++ b/mate-panel/panel-util.c
@@ -106,17 +106,19 @@ panel_push_window_busy (GtkWidget *window)
if (busy == 1) {
GdkWindow *win;
+ GdkDisplay *display;
gtk_widget_set_sensitive (window, FALSE);
win = gtk_widget_get_window (window);
+ display = gdk_display_get_default ();
if (win != NULL) {
- GdkCursor *cursor = gdk_cursor_new_for_display (gdk_display_get_default (),
+ GdkCursor *cursor = gdk_cursor_new_for_display (display,
GDK_WATCH);
gdk_window_set_cursor (win, cursor);
g_object_unref (cursor);
- gdk_flush ();
+ gdk_display_flush (display);
}
}