summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-06-28 14:37:38 +0200
committerraveit65 <[email protected]>2018-06-28 18:08:03 +0200
commit08076debace1dc487d946e0fe1d5328a9e4639ed (patch)
tree17860e4c188999f269bf9e1c60ffd22222cc6afe
parentb22dff4194ba1024ba99069057b466bf47120bab (diff)
downloadmate-panel-08076debace1dc487d946e0fe1d5328a9e4639ed.tar.bz2
mate-panel-08076debace1dc487d946e0fe1d5328a9e4639ed.tar.xz
panel-force-quit: replace deprecated gdk_flush
-rw-r--r--mate-panel/panel-force-quit.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index 5a994fdc..ff6fdd12 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -196,14 +196,16 @@ kill_window_response (GtkDialog *dialog,
gpointer user_data)
{
if (response_id == GTK_RESPONSE_ACCEPT) {
- Display *display;
+ GdkDisplay *display;
+ Display *xdisplay;
Window window = (Window) user_data;
- display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (dialog)));
+ display = gtk_widget_get_display (GTK_WIDGET (dialog));
+ xdisplay = GDK_DISPLAY_XDISPLAY (display);
gdk_error_trap_push ();
- XKillClient (display, window);
- gdk_flush ();
+ XKillClient (xdisplay, window);
+ gdk_display_flush (display);
gdk_error_trap_pop_ignored ();
}
@@ -352,5 +354,5 @@ panel_force_quit (GdkScreen *screen,
return;
}
- gdk_flush ();
+ gdk_display_flush (display);
}