[totem] all: Remove use of deprecated GdkAppLaunchContext



commit b518321abb3f5c7ae139250f3144e495b15ff406
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 11 16:38:34 2011 +0000

    all: Remove use of deprecated GdkAppLaunchContext
    
    As it's been removed in recent GTK+ versions.

 browser-plugin/totem-plugin-viewer.c               |   11 +----------
 .../brasero-disc-recorder/totem-disc-recorder.c    |   10 +---------
 2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 76a51da..b0ecaca 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -580,8 +580,6 @@ totem_embedded_launch_player (TotemEmbedded *embedded,
  			      guint32 user_time)
 {
 	GList *uris = NULL;
-	GdkScreen *screen;
-	GAppLaunchContext *ctx;
 	gboolean result;
 	const char *uri;
 
@@ -596,14 +594,7 @@ totem_embedded_launch_player (TotemEmbedded *embedded,
 		uri = embedded->current_uri;
 	}
 
-	ctx = G_APP_LAUNCH_CONTEXT (gdk_app_launch_context_new ());
-	screen = gtk_widget_get_screen (embedded->window);
-	gdk_app_launch_context_set_screen (GDK_APP_LAUNCH_CONTEXT (ctx), screen);
-
-	gdk_app_launch_context_set_timestamp (GDK_APP_LAUNCH_CONTEXT (ctx), user_time);
-	gdk_app_launch_context_set_icon (GDK_APP_LAUNCH_CONTEXT (ctx), g_app_info_get_icon (embedded->app));
-
-	result = g_app_info_launch_uris (embedded->app, uris, ctx, NULL);
+	result = g_app_info_launch_uris (embedded->app, uris, NULL, NULL);
 
 	g_list_free (uris);
 
diff --git a/src/plugins/brasero-disc-recorder/totem-disc-recorder.c b/src/plugins/brasero-disc-recorder/totem-disc-recorder.c
index ab437e2..4545892 100644
--- a/src/plugins/brasero-disc-recorder/totem-disc-recorder.c
+++ b/src/plugins/brasero-disc-recorder/totem-disc-recorder.c
@@ -79,17 +79,14 @@ totem_disc_recorder_plugin_start_burning (TotemDiscRecorderPlugin *pi,
 					  gboolean copy)
 {
 	GtkWindow *main_window;
-	GdkScreen *screen;
 	gchar *command_line;
 	GList *uris;
 	GAppInfo *info;
-	GdkAppLaunchContext *context;
 	GError *error = NULL;
 	int xid;
 
 	/* Build a command line to use */
 	main_window = totem_get_main_window (pi->priv->totem);
-	screen = gtk_widget_get_screen (GTK_WIDGET (main_window));
 	xid = gdk_x11_window_get_xid (gtk_widget_get_window (GTK_WIDGET (main_window)));
 	g_object_unref (main_window);
 
@@ -106,16 +103,11 @@ totem_disc_recorder_plugin_start_burning (TotemDiscRecorderPlugin *pi,
 	if (error != NULL)
 		goto error;
 
-	/* Create a launch context and launch it */
-	context = gdk_app_launch_context_new ();
-	gdk_app_launch_context_set_screen (context, screen);
-
 	uris = g_list_prepend (NULL, (gpointer) path);
-	g_app_info_launch_uris (info, uris, G_APP_LAUNCH_CONTEXT (context), &error);
+	g_app_info_launch_uris (info, uris, NULL, &error);
 	g_list_free (uris);
 
 	g_object_unref (info);
-	g_object_unref (context);
 
 	if (error != NULL)
 		goto error;



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