Add deprecation guards for deprecated GdkAppLaunchContext API

Also adapt the docs to not use deprecated API.
This commit is contained in:
Matthias Clasen
2010-12-24 17:37:00 -05:00
parent 1e13b42b9b
commit 1d41b98cf8
6 changed files with 10 additions and 7 deletions

View File

@ -144,7 +144,7 @@
GError *error = NULL;
info = g_desktop_app_info_new ("epiphany.desktop");
context = gdk_app_launch_context_new ();
context = gdk_display_get_app_launch_context (display);
g_app_info_launch (info, NULL, context, &error);
if (error)