[gtk+/treeview-refactor: 228/257] docs: Move documentation to inline comments: gdkapplaunchcontext
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor: 228/257] docs: Move documentation to inline comments: gdkapplaunchcontext
- Date: Tue, 16 Nov 2010 07:17:11 +0000 (UTC)
commit bb218b08e993b839864a47cbcc776da0e53b075f
Author: Javier Jardón <jjardon gnome org>
Date: Mon Nov 15 03:18:45 2010 +0100
docs: Move documentation to inline comments: gdkapplaunchcontext
docs/reference/gdk/tmpl/.gitignore | 1 +
docs/reference/gdk/tmpl/gdkapplaunchcontext.sgml | 110 ----------------------
gdk/gdkapplaunchcontext.c | 28 ++++++
3 files changed, 29 insertions(+), 110 deletions(-)
---
diff --git a/docs/reference/gdk/tmpl/.gitignore b/docs/reference/gdk/tmpl/.gitignore
index 9c314b9..a05bd1c 100644
--- a/docs/reference/gdk/tmpl/.gitignore
+++ b/docs/reference/gdk/tmpl/.gitignore
@@ -1,6 +1,7 @@
cairo_interaction.sgml
colors.sgml
dnd.sgml
+gdkapplaunchcontext.sgml
pixbufs.sgml
regions.sgml
windows.sgml
diff --git a/gdk/gdkapplaunchcontext.c b/gdk/gdkapplaunchcontext.c
index 46fd99a..1bd4dbb 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]