summaryrefslogtreecommitdiff
path: root/gdk/gdkapplaunchcontext.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-11-15 03:18:45 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-11-16 16:20:47 +0900
commitbb218b08e993b839864a47cbcc776da0e53b075f (patch)
treea6626977c081f38c63d334fcf802e6c5c2e6cc13 /gdk/gdkapplaunchcontext.c
parent3166767c36415d210cdbee5131612502769d9f9c (diff)
downloadgtk+-bb218b08e993b839864a47cbcc776da0e53b075f.tar.gz
docs: Move documentation to inline comments: gdkapplaunchcontext
Diffstat (limited to 'gdk/gdkapplaunchcontext.c')
-rw-r--r--gdk/gdkapplaunchcontext.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c
index 46fd99a4fd..1bd4dbbf29 100644
--- a/gdk/gdkapplaunchcontext.c
+++ b/gdk/gdkapplaunchcontext.c
@@ -29,6 +29,34 @@
#include "gdkintl.h"
+/**
+ * SECTION:gdkapplaunchcontext
+ * @Short_description: Startup notification for applications
+ * @Title: Application launching
+ *
+ * GdkAppLaunchContext is an implementation of #GAppLaunchContext that
+ * handles launching an application in a graphical context. It provides
+ * startup notification and allows to launch applications on a specific
+ * screen or workspace.
+ * <example>
+ * <title>Launching an application</title>
+ * <programlisting>
+ * GdkAppLaunchContext *context;
+ *
+ * context = gdk_app_launch_context_new (<!-- -->);
+ *
+ * gdk_app_launch_context_set_screen (my_screen);
+ * gdk_app_launch_context_set_timestamp (event->time);
+ *
+ * if (!g_app_info_launch_default_for_uri ("http://www.gtk.org", context, &error))
+ * g_warning ("Launching failed: %s\n", error->message);
+ *
+ * g_object_unref (context);
+ * </programlisting>
+ * </example>
+ */
+
+
static void gdk_app_launch_context_finalize (GObject *object);
static gchar * gdk_app_launch_context_get_display (GAppLaunchContext *context,
GAppInfo *info,