summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-01-11 16:38:34 +0000
committerBastien Nocera <hadess@hadess.net>2011-01-11 16:38:34 +0000
commitb518321abb3f5c7ae139250f3144e495b15ff406 (patch)
tree3b0f6a3d9201c6e9e13c08d8a0eeb23458e5ff44
parent0bac1fe06a00ae1d1d01e814b039c9dbde356479 (diff)
downloadtotem-b518321abb3f5c7ae139250f3144e495b15ff406.tar.gz
all: Remove use of deprecated GdkAppLaunchContext
As it's been removed in recent GTK+ versions.
-rw-r--r--browser-plugin/totem-plugin-viewer.c11
-rw-r--r--src/plugins/brasero-disc-recorder/totem-disc-recorder.c10
2 files changed, 2 insertions, 19 deletions
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 76a51da2d..b0ecaca2e 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 ab437e2ed..454589252 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;