diff options
author | raveit65 <[email protected]> | 2018-06-28 13:05:34 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-06-29 21:28:50 +0200 |
commit | 36d1856586e0caaa5c3417ec9f2322a110ccb4b8 (patch) | |
tree | e0606543ca7770380d2a41b1fbdf1792395dca8f | |
parent | 5e296c116916039b88fd0c20bfcc464777f845b1 (diff) | |
download | mate-panel-36d1856586e0caaa5c3417ec9f2322a110ccb4b8.tar.bz2 mate-panel-36d1856586e0caaa5c3417ec9f2322a110ccb4b8.tar.xz |
main: replace deprecated gdk_flush
-rw-r--r-- | mate-panel/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/main.c b/mate-panel/main.c index 0c98be8b..343747ca 100644 --- a/mate-panel/main.c +++ b/mate-panel/main.c @@ -70,6 +70,7 @@ main (int argc, char **argv) char *desktopfile; GOptionContext *context; GError *error; + GdkDisplay *display; GdkScreen *screen; GtkCssProvider *css; GtkStyleProvider *provider; @@ -174,7 +175,8 @@ main (int argc, char **argv) /* Flush to make sure our struts are seen by everyone starting * immediate after (eg, the caja desktop). */ - gdk_flush (); + display = gdk_display_get_default (); + gdk_display_flush (display); /* Do this at the end, to be sure that we're really ready when * connecting to the session manager */ |