diff options
author | raveit65 <[email protected]> | 2018-06-28 12:47:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-06-29 21:28:50 +0200 |
commit | 5e296c116916039b88fd0c20bfcc464777f845b1 (patch) | |
tree | 212bd80a27da4c70b8e7c0282a52509c80bacede | |
parent | c4aedbddc01da6c0bf439e4229d77ae4c137df45 (diff) | |
download | mate-panel-5e296c116916039b88fd0c20bfcc464777f845b1.tar.bz2 mate-panel-5e296c116916039b88fd0c20bfcc464777f845b1.tar.xz |
panel-widget: replace deprecated gdk_flush
-rw-r--r-- | mate-panel/panel-widget.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c index a11e4432..555308f5 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -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)", @@ -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*/ @@ -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); @@ -2598,7 +2599,8 @@ panel_widget_reparent (PanelWidget *old_panel, } gtk_window_present (GTK_WINDOW (new_panel->toplevel)); - gdk_flush(); + display = gtk_widget_get_display (GTK_WIDGET (new_panel)); + gdk_display_flush (display); emit_applet_moved (new_panel, ad); |