summaryrefslogtreecommitdiff
path: root/src/ui/fixedtip.c
diff options
context:
space:
mode:
authorZenWalker <[email protected]>2017-07-29 02:10:08 +0200
committerZenWalker <[email protected]>2017-07-29 02:10:08 +0200
commited1a6302c87c6070bbec549ec36c5b56c12a6564 (patch)
tree1e5042d3a0e8159065360af12d9f9467d6f5f134 /src/ui/fixedtip.c
parentc3ab92182c2a97d74c5b8cbd6dade9b48fab5c95 (diff)
downloadmarco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.bz2
marco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.xz
avoid deprecated gdk_display_get_screen
Diffstat (limited to 'src/ui/fixedtip.c')
-rw-r--r--src/ui/fixedtip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index 7de93d9b..688f5f1d 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -62,8 +62,7 @@ draw_handler (GtkWidget *widget,
}
void
-meta_fixed_tip_show (int screen_number,
- int root_x, int root_y,
+meta_fixed_tip_show (int root_x, int root_y,
const char *markup_text)
{
gint w;
@@ -82,7 +81,7 @@ meta_fixed_tip_show (int screen_number,
gtk_style_context_add_class (gtk_widget_get_style_context (tip),
GTK_STYLE_CLASS_TOOLTIP);
- screen = gdk_display_get_screen (gdk_display_get_default (), screen_number);
+ screen = gdk_display_get_default_screen (gdk_display_get_default ());
visual = gdk_screen_get_rgba_visual (screen);
gtk_window_set_screen (GTK_WINDOW (tip), screen);