summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-24 14:11:27 +0200
committerraveit65 <[email protected]>2017-05-16 17:51:14 +0200
commitefc1a7d9cc5bb2a9cc264de3c0c8a01c8901ad84 (patch)
treeab168430f3d928af7b3d0a0d6f070a11695e7aad /libslab
parentf959ba1c1b8dca8f9f7df57f4b484b8f017c0090 (diff)
downloadmate-control-center-efc1a7d9cc5bb2a9cc264de3c0c8a01c8901ad84.tar.bz2
mate-control-center-efc1a7d9cc5bb2a9cc264de3c0c8a01c8901ad84.tar.xz
libslab: don't use deprecated gdk_app_launch_context_new ()
Diffstat (limited to 'libslab')
-rw-r--r--libslab/directory-tile.c2
-rw-r--r--libslab/document-tile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libslab/directory-tile.c b/libslab/directory-tile.c
index ecd5b23a..0a6f1920 100644
--- a/libslab/directory-tile.c
+++ b/libslab/directory-tile.c
@@ -646,7 +646,7 @@ open_with_default_trigger (Tile *tile, TileEvent *event, TileAction *action)
{
uris = g_list_append (uris, TILE (tile)->uri);
- launch_context = gdk_app_launch_context_new ();
+ launch_context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (tile)));
gdk_app_launch_context_set_screen (launch_context,
gtk_widget_get_screen (GTK_WIDGET (tile)));
gdk_app_launch_context_set_timestamp (launch_context,
diff --git a/libslab/document-tile.c b/libslab/document-tile.c
index 89f37478..b32bb0dc 100644
--- a/libslab/document-tile.c
+++ b/libslab/document-tile.c
@@ -889,7 +889,7 @@ open_with_default_trigger (Tile *tile, TileEvent *event, TileAction *action)
if (priv->default_app)
{
uris = g_list_append (uris, TILE (tile)->uri);
- launch_context = gdk_app_launch_context_new ();
+ launch_context = gdk_display_get_app_launch_context (gtk_widget_get_display (GTK_WIDGET (tile)));
gdk_app_launch_context_set_screen (launch_context,
gtk_widget_get_screen (GTK_WIDGET (tile)));
gdk_app_launch_context_set_timestamp (launch_context,