aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-file-helpers.c
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2011-01-06 21:31:15 +0800
committerXan Lopez <xan@gnome.org>2011-01-06 21:31:15 +0800
commitcad2d39410c6309b1bf5d5b4e8e912ada7e91c16 (patch)
tree54c31a9216d2989b42cf5ab57e70df976b283c4b /lib/ephy-file-helpers.c
parent53f693ecfadf4bca1975f8cf90f63129b9f67fa4 (diff)
downloadgsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar.gz
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar.bz2
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar.lz
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar.xz
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.tar.zst
gsoc2013-epiphany-cad2d39410c6309b1bf5d5b4e8e912ada7e91c16.zip
ephy-file-helpers: do not use deprecated APIs
Diffstat (limited to 'lib/ephy-file-helpers.c')
-rw-r--r--lib/ephy-file-helpers.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 9e591365b..78a07397d 100644
--- a/lib/ephy-file-helpers.c
+++ b/lib/ephy-file-helpers.c
@@ -775,7 +775,6 @@ ephy_file_launch_application (GAppInfo *app,
GdkScreen *screen;
gboolean res;
- context = gdk_app_launch_context_new ();
if (widget)
{
display = gtk_widget_get_display (widget);
@@ -786,8 +785,8 @@ ephy_file_launch_application (GAppInfo *app,
display = gdk_display_get_default ();
screen = gdk_screen_get_default ();
}
-
- gdk_app_launch_context_set_display (context, display);
+
+ context = gdk_display_get_app_launch_context (display);
gdk_app_launch_context_set_screen (context, screen);
gdk_app_launch_context_set_timestamp (context, user_time);