[gnome-panel] docs: build libgnome-panel documentation
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] docs: build libgnome-panel documentation
- Date: Tue, 18 Oct 2016 01:08:24 +0000 (UTC)
commit bab95ba007c8527a02e5c6fc2cc4b15abf0f26e3
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 18 04:03:07 2016 +0300
docs: build libgnome-panel documentation
Makefile.am | 1 +
configure.ac | 4 +
docs/Makefile.am | 7 ++
docs/reference/Makefile.am | 7 ++
docs/reference/libgnome-panel/Makefile.am | 95 ++++++++++++++++++++
.../libgnome-panel/libgnome-panel-docs.xml | 43 +++++++++
libgnome-panel/gp-applet-info.c | 9 ++
libgnome-panel/gp-applet.c | 22 +++++
libgnome-panel/gp-module-info.c | 9 ++
libgnome-panel/gp-module.h | 57 ++++++++++++
10 files changed, 254 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index bf62d4d..ffa577a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,7 @@ SUBDIRS = \
libpanel-applet \
applets \
doc \
+ docs \
help \
data \
man \
diff --git a/configure.ac b/configure.ac
index 063de8f..29f3921 100644
--- a/configure.ac
+++ b/configure.ac
@@ -287,6 +287,10 @@ AC_CONFIG_FILES([
doc/reference/Makefile
doc/reference/libpanel-applet/Makefile
+ docs/Makefile
+ docs/reference/Makefile
+ docs/reference/libgnome-panel/Makefile
+
help/Makefile
help/clock/Makefile
help/fish/Makefile
diff --git a/docs/Makefile.am b/docs/Makefile.am
new file mode 100644
index 0000000..e777263
--- /dev/null
+++ b/docs/Makefile.am
@@ -0,0 +1,7 @@
+NULL =
+
+SUBDIRS = \
+ reference \
+ $(NULL)
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
new file mode 100644
index 0000000..47ee70e
--- /dev/null
+++ b/docs/reference/Makefile.am
@@ -0,0 +1,7 @@
+NULL =
+
+SUBDIRS = \
+ libgnome-panel \
+ $(NULL)
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/libgnome-panel/Makefile.am b/docs/reference/libgnome-panel/Makefile.am
new file mode 100644
index 0000000..9a7d8d5
--- /dev/null
+++ b/docs/reference/libgnome-panel/Makefile.am
@@ -0,0 +1,95 @@
+NULL =
+
+# The name of the module, e.g. 'glib'.
+DOC_MODULE = libgnome-panel
+
+# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
+#DOC_MODULE_VERSION=2
+
+# The top-level XML file.
+DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
+
+# Directories containing the source code.
+# gtk-doc will search all .c and .h files beneath these paths
+# for inline comments documenting functions and macros.
+# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
+DOC_SOURCE_DIR = $(top_srcdir)/libgnome-panel
+
+# Extra options to pass to gtkdoc-scangobj. Normally not needed.
+SCANGOBJ_OPTIONS =
+
+# Extra options to supply to gtkdoc-scan.
+# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
+SCAN_OPTIONS = --rebuild-types --rebuild-sections
+
+# Extra options to supply to gtkdoc-mkdb
+# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
+MKDB_OPTIONS = --xml-mode --output-format=xml
+
+# Extra options to supply to gtkdoc-mkhtml
+MKHTML_OPTIONS =
+
+# Extra options to supply to gtkdoc-fixref. Normally not needed.
+# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
+FIXXREF_OPTIONS =
+
+# Used for dependencies. The docs will be rebuilt if any of these change.
+# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
+# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
+HFILE_GLOB = $(top_srcdir)/libgnome-panel/gp-*.h
+CFILE_GLOB = $(top_srcdir)/libgnome-panel/gp-*.c
+
+# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
+# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
+EXTRA_HFILES =
+
+# Header files or dirs to ignore when scanning. Use base file/dir names
+# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
+IGNORE_HFILES = \
+ gp-applet-info-private.h \
+ gp-applet-private.h \
+ gp-enum-types.h \
+ gp-module-info-private.h \
+ $(NULL)
+
+# Images to copy into HTML directory.
+# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
+HTML_IMAGES =
+
+# Extra files that are included by $(DOC_MAIN_SGML_FILE).
+# e.g. content_files=running.xml building.xml changes-2.0.xml
+content_files =
+
+# Files where gtk-doc abbrevations (#GtkWidget) are expanded
+# e.g. expand_content_files=running.xml
+expand_content_files =
+
+# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
+# Only needed if you are using gtkdoc-scangobj to dynamically query widget
+# signals and properties.
+# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
+# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
+GTKDOC_CFLAGS = \
+ -I$(top_srcdir)/libgnome-panel \
+ -I$(top_builddir)/libgnome-panel \
+ $(LIBGNOME_PANEL_CFLAGS) \
+ $(NULL)
+
+GTKDOC_LIBS = \
+ $(top_builddir)/libgnome-panel/libgnome-panel.la \
+ $(LIBGNOME_PANEL_LIBS) \
+ $(NULL)
+
+# This includes the standard gtk-doc make rules, copied by gtkdocize.
+include $(top_srcdir)/gtk-doc.make
+
+# Comment this out if you want 'make check' to test you doc status
+# and run some sanity checks
+if ENABLE_GTK_DOC
+TESTS_ENVIRONMENT = \
+ DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
+ SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
+TESTS = $(GTKDOC_CHECK)
+endif
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/libgnome-panel/libgnome-panel-docs.xml
b/docs/reference/libgnome-panel/libgnome-panel-docs.xml
new file mode 100644
index 0000000..5159029
--- /dev/null
+++ b/docs/reference/libgnome-panel/libgnome-panel-docs.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+ "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
+[
+ <!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
+ <!ENTITY % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
+ %gtkdocentities;
+]>
+<book id="index">
+ <bookinfo>
+ <title>GNOME Panel Reference Manual</title>
+ <releaseinfo>
+ This document is for the GNOME Panel library, version &package_version;.
+ The latest version of this documentation can be found on-line at
+ <ulink role="online-location"
url="https://developer.gnome.org/libgnome-panel/unstable/">https://developer.gnome.org/libgnome-panel/unstable/</ulink>.
+ </releaseinfo>
+ </bookinfo>
+
+ <chapter>
+ <title>API Reference</title>
+ <xi:include href="xml/gp-applet.xml"/>
+ <xi:include href="xml/gp-applet-info.xml"/>
+ <xi:include href="xml/gp-module-info.xml"/>
+ <xi:include href="xml/gp-module.xml"/>
+ </chapter>
+
+ <chapter id="object-tree">
+ <title>Object Hierarchy</title>
+ <xi:include href="xml/tree_index.sgml"/>
+ </chapter>
+
+ <index id="api-index-full">
+ <title>API Index</title>
+ <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
+ </index>
+
+ <index id="deprecated-api-index" role="deprecated">
+ <title>Index of deprecated API</title>
+ <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
+ </index>
+
+ <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
+</book>
diff --git a/docs/reference/libgnome-panel/libgnome-panel-overrides.txt
b/docs/reference/libgnome-panel/libgnome-panel-overrides.txt
new file mode 100644
index 0000000..e69de29
diff --git a/libgnome-panel/gp-applet-info.c b/libgnome-panel/gp-applet-info.c
index 01bf35c..219822c 100644
--- a/libgnome-panel/gp-applet-info.c
+++ b/libgnome-panel/gp-applet-info.c
@@ -15,6 +15,15 @@
* along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
+/**
+ * SECTION: gp-applet-info
+ * @title: GpAppletInfo
+ * @short_description: the applet info
+ * @include: libngome-panel/gp-module.h
+ *
+ * #GpAppletInfo is used to provide full info about applet.
+ */
+
#include "config.h"
#include "gp-applet-info-private.h"
diff --git a/libgnome-panel/gp-applet.c b/libgnome-panel/gp-applet.c
index 495ca20..a7c929e 100644
--- a/libgnome-panel/gp-applet.c
+++ b/libgnome-panel/gp-applet.c
@@ -22,6 +22,28 @@
* Mark McLoughlin <mark skynet ie>
*/
+/**
+ * SECTION: gp-applet
+ * @title: GpApplet
+ * @short_description: a widget embedded in a panel
+ * @include: libngome-panel/gp-applet.h
+ *
+ * Applets are small applications that are embedded in the GNOME Panel. They
+ * can be used to give quick access to some features, or to display the state
+ * of something specific.
+ *
+ * The #GpApplet API hides all of the embedding process as it handles all
+ * the communication with the GNOME Panel. It is a subclass of #GtkEventBox,
+ * so you can add any kind of widgets to it.
+ */
+
+/**
+ * GpApplet:
+ *
+ * #GpApplet is an opaque data structure and can only be accessed using
+ * the following functions.
+ */
+
#include "config.h"
#include "gp-applet-private.h"
diff --git a/libgnome-panel/gp-module-info.c b/libgnome-panel/gp-module-info.c
index e0664e1..fa509cb 100644
--- a/libgnome-panel/gp-module-info.c
+++ b/libgnome-panel/gp-module-info.c
@@ -15,6 +15,15 @@
* along with this library; if not, see <https://www.gnu.org/licenses/>.
*/
+/**
+ * SECTION: gp-module-info
+ * @title: GpModuleInfo
+ * @short_description: a module info
+ * @include: libngome-panel/gp-module.h
+ *
+ * #GpModuleInfo is used to provide info about loaded module.
+ */
+
#include "config.h"
#include <stdarg.h>
diff --git a/libgnome-panel/gp-module.h b/libgnome-panel/gp-module.h
index a1729a8..b6921bb 100644
--- a/libgnome-panel/gp-module.h
+++ b/libgnome-panel/gp-module.h
@@ -25,6 +25,15 @@
G_BEGIN_DECLS
/**
+ * SECTION: gp-module
+ * @title: Module
+ * @short_description: a module with one or more applets
+ * @include: libngome-panel/gp-module.h
+ *
+ * A module with one or more applets.
+ */
+
+/**
* GP_MODULE_ABI_VERSION:
*
* The version of the module system's ABI.
@@ -108,16 +117,64 @@ typedef GType (* GpModuleGetAppletType) (const gchar *applet);
typedef gboolean (* GpModuleSetupAbout) (GtkAboutDialog *dialog,
const gchar *applet);
+/**
+ * gp_module_get_info:
+ * @abi_version: (out): return location for module ABI version
+ *
+ * Required API for GNOME Panel modules to implement, see %GpModuleGetInfo.
+ *
+ * Returns: (transfer full): a newly created #GpModuleInfo.
+ */
GpModuleInfo *gp_module_get_info (guint32 *abi_version);
+/**
+ * gp_module_load:
+ * @module: a #GTypeModule
+ *
+ * Required API for GNOME Panel modules to implement.
+ */
void gp_module_load (GTypeModule *module);
+/**
+ * gp_module_unload:
+ * @module: a #GTypeModule
+ *
+ * Required API for GNOME Panel modules to implement.
+ */
void gp_module_unload (GTypeModule *module);
+/**
+ * gp_module_get_applet_info:
+ * @applet: the applet id
+ *
+ * Required API for GNOME Panel modules to implement, see
+ * %GpModuleGetAppletInfo.
+ *
+ * Returns: (transfer full): a newly created #GpAppletInfo.
+ */
GpAppletInfo *gp_module_get_applet_info (const gchar *applet);
+/**
+ * gp_module_get_applet_type:
+ * @applet: the applet id
+ *
+ * Required API for GNOME Panel modules to implement, see
+ * %GpModuleGetAppletType.
+ *
+ * Returns: a previously registered #GType.
+ */
GType gp_module_get_applet_type (const gchar *applet);
+/**
+ * gp_module_setup_about:
+ * @dialog: a #GtkAboutDialog
+ * @applet: the applet id
+ *
+ * Optional API for GNOME Panel modules to implement, see
+ * %GpModuleSetupAbout.
+ *
+ * Returns: %TRUE if dialog is ready, %FALSE otherwise.
+ */
gboolean gp_module_setup_about (GtkAboutDialog *dialog,
const gchar *applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]