Skip to content
Permalink
Browse files

panel-util: replace deprecated gdk_flush

  • Loading branch information...
raveit65 committed Jun 28, 2018
1 parent 36d1856 commit edb3e0d94cc2c0493bbf88496bf4b5ccdca03f54
Showing with 4 additions and 2 deletions.
  1. +4 −2 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);
}
}

0 comments on commit edb3e0d

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