[gnome-packagekit] Do not use the deprecated gdk_app_launch_context_new()
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Do not use the deprecated gdk_app_launch_context_new()
- Date: Tue, 4 Jan 2011 14:12:29 +0000 (UTC)
commit e54aca6e7950e04e0e1317b295ce60c8e6f1d6d7
Author: Richard Hughes <richard hughsie com>
Date: Tue Jan 4 14:13:03 2011 +0000
Do not use the deprecated gdk_app_launch_context_new()
src/gpk-helper-run.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gpk-helper-run.c b/src/gpk-helper-run.c
index b28d126..a52d53d 100644
--- a/src/gpk-helper-run.c
+++ b/src/gpk-helper-run.c
@@ -61,7 +61,6 @@ gpk_helper_run_path (GpkHelperRun *helper, const gchar *filename)
gboolean ret = FALSE;
GError *error = NULL;
GAppInfo *app = NULL;
- GAppLaunchContext *context = NULL;
/* check have value */
if (filename == NULL) {
@@ -71,10 +70,7 @@ gpk_helper_run_path (GpkHelperRun *helper, const gchar *filename)
/* launch application */
app = G_APP_INFO(g_desktop_app_info_new_from_filename (filename));
- context = G_APP_LAUNCH_CONTEXT(gdk_app_launch_context_new ());
-// app = (GAppInfo*)g_desktop_app_info_new_from_filename (filename);
-// context = (GAppLaunchContext*)gdk_app_launch_context_new ();
- ret = g_app_info_launch (app, NULL, context, &error);
+ ret = g_app_info_launch (app, NULL, NULL, &error);
if (!ret) {
g_warning ("failed to launch: %s", error->message);
g_error_free (error);
@@ -82,8 +78,6 @@ gpk_helper_run_path (GpkHelperRun *helper, const gchar *filename)
out:
if (app != NULL)
g_object_unref (app);
- if (context != NULL)
- g_object_unref (context);
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]