[gtk+] docs: Move documentation to inline comments: gdkapplaunchcontext



commit 8ca6882e8897d8b2fc5b0ce6177110fea9b093d0
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]