diff options
author | raveit65 <[email protected]> | 2018-05-05 17:47:25 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-05-07 02:36:35 -0400 |
commit | 2392093542a0819ad186885b2b0969870dfcafe0 (patch) | |
tree | e10c408c2f09e9d32e99204a407345196bc830e6 /src/file-manager/fm-desktop-icon-view.c | |
parent | 5ed053f9c332465a173c3ceeb8e3e16dfdbfc440 (diff) | |
download | caja-2392093542a0819ad186885b2b0969870dfcafe0.tar.bz2 caja-2392093542a0819ad186885b2b0969870dfcafe0.tar.xz |
replace deprecated gdk_flush
Diffstat (limited to 'src/file-manager/fm-desktop-icon-view.c')
-rw-r--r-- | src/file-manager/fm-desktop-icon-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index 42186a70..54e5d265 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -321,6 +321,7 @@ fm_desktop_icon_view_handle_middle_click (CajaIconContainer *icon_container, XButtonEvent x_event; GdkDevice *keyboard = NULL, *pointer = NULL, *cur; GdkSeat *seat; + GdkDisplay *display; seat = gdk_display_get_default_seat (gtk_widget_get_display (GTK_WIDGET (icon_container))); pointer = gdk_seat_get_pointer (seat); @@ -350,7 +351,8 @@ fm_desktop_icon_view_handle_middle_click (CajaIconContainer *icon_container, } /* Stop the event because we don't want anyone else dealing with it. */ - gdk_flush (); + display = gtk_widget_get_display (GTK_WIDGET (icon_container)); + gdk_display_flush (display); g_signal_stop_emission_by_name (icon_container, "middle_click"); /* build an X event to represent the middle click. */ |