summaryrefslogtreecommitdiff
path: root/src/ui/tile-preview.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/tile-preview.c
parentc3ab92182c2a97d74c5b8cbd6dade9b48fab5c95 (diff)
downloadmarco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.bz2
marco-ed1a6302c87c6070bbec549ec36c5b56c12a6564.tar.xz
avoid deprecated gdk_display_get_screen
Diffstat (limited to 'src/ui/tile-preview.c')
-rw-r--r--src/ui/tile-preview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c
index 88962467..d99529ff 100644
--- a/src/ui/tile-preview.c
+++ b/src/ui/tile-preview.c
@@ -124,12 +124,12 @@ on_preview_window_style_set (GtkWidget *widget,
}
MetaTilePreview *
-meta_tile_preview_new (int screen_number)
+meta_tile_preview_new (void)
{
MetaTilePreview *preview;
GdkScreen *screen;
- screen = gdk_display_get_screen (gdk_display_get_default (), screen_number);
+ screen = gdk_display_get_default_screen (gdk_display_get_default ());
preview = g_new (MetaTilePreview, 1);