gdkapplaunchcontext: Fix docs a bit
authorPhaedrus Leeds <mwleeds@protonmail.com>
Tue, 1 Feb 2022 18:55:54 +0000 (10:55 -0800)
committerPhaedrus Leeds <mwleeds@protonmail.com>
Tue, 1 Feb 2022 19:17:55 +0000 (11:17 -0800)
The set_screen() and set_display() methods no longer exist.

gdk/gdkapplaunchcontext.c

index f68a4c4d524e7c9b3e2675ef1504c8beb24a489e..6ce9536b0ff48e49118c88f3fa39b16651301325 100644 (file)
@@ -31,8 +31,7 @@
  * `GdkAppLaunchContext` handles launching an application in a graphical context.
  *
  * It is an implementation of `GAppLaunchContext` that provides startup
- * notification and allows to launch applications on a specific screen
- * or workspace.
+ * notification and allows to launch applications on a specific workspace.
  *
  * ## Launching an application
  *
@@ -41,7 +40,6 @@
  *
  * context = gdk_display_get_app_launch_context (display);
  *
- * gdk_app_launch_context_set_display (display);
  * gdk_app_launch_context_set_timestamp (gdk_event_get_time (event));
  *
  * if (!g_app_info_launch_default_for_uri ("http://www.gtk.org", context, &error))
@@ -196,6 +194,10 @@ gdk_app_launch_context_get_display (GdkAppLaunchContext *context)
  * This only works when running under a window manager that
  * supports multiple workspaces, as described in the
  * [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec).
+ * Specifically this sets the `_NET_WM_DESKTOP` property described
+ * in that spec.
+ *
+ * This only works when using the X11 backend.
  *
  * When the workspace is not specified or @desktop is set to -1,
  * it is up to the window manager to pick one, typically it will