Add deprecation guards for deprecated GdkAppLaunchContext API
Also adapt the docs to not use deprecated API.
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user