Skip to content

Commit

Permalink
panel-util: replace deprecated gdk_flush
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Jun 29, 2018
1 parent 36d1856 commit edb3e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mate-panel/panel-util.c
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit edb3e0d

Please sign in to comment.