Skip to content


panel-widget: 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 c4aedbd commit 5e296c1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions mate-panel/panel-widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ panel_widget_applet_drag_start (PanelWidget *panel,
FALSE, fleur_cursor, NULL, NULL, NULL);

g_object_unref (fleur_cursor);
gdk_flush ();
gdk_display_flush (display);

if (status != GDK_GRAB_SUCCESS) {
g_warning (G_STRLOC ": failed to grab pointer (errorcode: %d)",
Expand Down Expand Up @@ -1847,7 +1847,7 @@ panel_widget_applet_drag_end (PanelWidget *panel)
gtk_grab_remove (panel->currently_dragged_applet->applet);
panel_widget_applet_drag_end_no_grab (panel);
panel_toplevel_pop_autohide_disabler (panel->toplevel);
gdk_flush ();
gdk_display_flush (display);

/*get pos of the cursor location in panel coordinates*/
Expand Down Expand Up @@ -2547,6 +2547,7 @@ panel_widget_reparent (PanelWidget *old_panel,
AppletData *ad;
GtkWidget *focus_widget = NULL;
AppletInfo* info;
GdkDisplay *display;

g_return_val_if_fail(PANEL_IS_WIDGET(old_panel), FALSE);
g_return_val_if_fail(PANEL_IS_WIDGET(new_panel), FALSE);
Expand Down Expand Up @@ -2598,7 +2599,8 @@ panel_widget_reparent (PanelWidget *old_panel,
gtk_window_present (GTK_WINDOW (new_panel->toplevel));

display = gtk_widget_get_display (GTK_WIDGET (new_panel));
gdk_display_flush (display);

emit_applet_moved (new_panel, ad);

Expand Down

0 comments on commit 5e296c1

Please sign in to comment.