diff options
author | ZenWalker <[email protected]> | 2017-08-03 01:35:11 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2017-08-03 01:35:11 +0200 |
commit | 5c71288da328bf36434240658714a9874fbd851f (patch) | |
tree | 05c6c1125b6b536c1d29ec9d534cf1e16b22e67f | |
parent | 3c9a2f357f52ca69f56523ccc98081d5561fc7e2 (diff) | |
download | mate-control-center-5c71288da328bf36434240658714a9874fbd851f.tar.bz2 mate-control-center-5c71288da328bf36434240658714a9874fbd851f.tar.xz |
avoid deprecated gdk_screen_make_display_name
-rw-r--r-- | libslab/document-tile.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libslab/document-tile.c b/libslab/document-tile.c index b32bb0dc..a5f72dd0 100644 --- a/libslab/document-tile.c +++ b/libslab/document-tile.c @@ -1130,12 +1130,15 @@ send_to_trigger (Tile *tile, TileEvent *event, TileAction *action) } } - char *display; - display = gdk_screen_make_display_name (gtk_widget_get_screen (GTK_WIDGET (tile))); + GdkDisplay *display; + char *display_name; + + display = gdk_screen_get_display (gtk_widget_get_screen (GTK_WIDGET (tile))); + display_name = g_strdup (gdk_display_get_name (display)); g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, set_environment, - &display, NULL, &error); - g_free (display); + &display_name, NULL, &error); + g_free (display_name); if (error) handle_g_error (&error, "error in %s", G_STRFUNC); |