[epiphany] ephy-file-helpers: do not use deprecated APIs



commit cad2d39410c6309b1bf5d5b4e8e912ada7e91c16
Author: Xan Lopez <xan gnome org>
Date:   Thu Jan 6 14:31:15 2011 +0100

    ephy-file-helpers: do not use deprecated APIs

 lib/ephy-file-helpers.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/lib/ephy-file-helpers.c b/lib/ephy-file-helpers.c
index 9e59136..78a0739 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);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]