gtk-doc r578 - in trunk: . tests/gobject/examples tests/gobject/src
- From: stefkost svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk-doc r578 - in trunk: . tests/gobject/examples tests/gobject/src
- Date: Sun, 8 Jun 2008 06:18:47 +0000 (UTC)
Author: stefkost
Date: Sun Jun 8 06:18:47 2008
New Revision: 578
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=578&view=rev
Log:
* TODO:
Add more ideas.
* gtkdoc-scangobj.in:
* gtkdoc-scanobj.in:
Merge two fwrite calls.
* tests/gobject/examples/gobject.c:
* tests/gobject/src/gobject.c:
Demostrate how to include source fragments from external files.
* tests/gobject/src/giface.h:
* tests/gobject/src/gobject.h:
Documents two entries.
Added:
trunk/tests/gobject/examples/
trunk/tests/gobject/examples/gobject.c
Modified:
trunk/ChangeLog
trunk/TODO
trunk/gtkdoc-scangobj.in
trunk/gtkdoc-scanobj.in
trunk/tests/gobject/src/giface.h
trunk/tests/gobject/src/gobject.c
trunk/tests/gobject/src/gobject.h
Modified: trunk/TODO
==============================================================================
--- trunk/TODO (original)
+++ trunk/TODO Sun Jun 8 06:18:47 2008
@@ -41,3 +41,8 @@
where TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
http://www.gnu.org/software/libtool/manual/automake/DESTDIR.html
+= Output =
+* html
+ * would be good to be able to have page titles as a concatenation of document
+ name and page name (gtk+:GtkWIdget)
+
Modified: trunk/gtkdoc-scangobj.in
==============================================================================
--- trunk/gtkdoc-scangobj.in (original)
+++ trunk/gtkdoc-scangobj.in Sun Jun 8 06:18:47 2008
@@ -834,9 +834,8 @@
for (i = 0; i < level; i++)
fprintf (fp, " ");
- fprintf (fp, "%s", g_type_name (type));
- fprintf (fp, "\\n");
-
+ fprintf (fp, "%s\\n", g_type_name (type));
+
children = g_type_children (type, &n_children);
for (i=0; i < n_children; i++)
Modified: trunk/gtkdoc-scanobj.in
==============================================================================
--- trunk/gtkdoc-scanobj.in (original)
+++ trunk/gtkdoc-scanobj.in Sun Jun 8 06:18:47 2008
@@ -718,8 +718,7 @@
for (i = 0; i < level; i++)
fprintf (fp, " ");
- fprintf (fp, "%s", gtk_type_name (type));
- fprintf (fp, "\\n");
+ fprintf (fp, "%s\\n", gtk_type_name (type));
list = gtk_type_children_types (type);
Added: trunk/tests/gobject/examples/gobject.c
==============================================================================
--- (empty file)
+++ trunk/tests/gobject/examples/gobject.c Sun Jun 8 06:18:47 2008
@@ -0,0 +1,17 @@
+/* example for gobject usage */
+
+#include <glib.h>
+#include <glib-object.h>
+
+gint
+main(gint argc, gchar **argv)
+{
+ GObject *myobj;
+
+ myobj = gtkdoc_object_new();
+ g_object_set (myobj, "parameter", 5, NULL);
+ g_object_unref (myobj);
+
+ return 0;
+}
+
Modified: trunk/tests/gobject/src/giface.h
==============================================================================
--- trunk/tests/gobject/src/giface.h (original)
+++ trunk/tests/gobject/src/giface.h Sun Jun 8 06:18:47 2008
@@ -22,6 +22,7 @@
/**
* GtkdocIfaceInterface:
* @parent: this is a bug :/
+ * @test: overideable method
*
* class data of gtk-doc unit test interface
*/
Modified: trunk/tests/gobject/src/gobject.c
==============================================================================
--- trunk/tests/gobject/src/gobject.c (original)
+++ trunk/tests/gobject/src/gobject.c Sun Jun 8 06:18:47 2008
@@ -13,6 +13,11 @@
* // do somehing
* g_object_unref (myobj);
* ]|
+ *
+ * You can also change parameters:
+ * <informalexample>
+ * <programlisting><xi:include xmlns:xi="http://www.w3.org/2003/XInclude" parse="text" href="../../examples/gobject.c" /></programlisting>
+ * </informalexample>
*/
#include <glib.h>
Modified: trunk/tests/gobject/src/gobject.h
==============================================================================
--- trunk/tests/gobject/src/gobject.h (original)
+++ trunk/tests/gobject/src/gobject.h Sun Jun 8 06:18:47 2008
@@ -34,6 +34,7 @@
/**
* GtkdocObjectClass:
* @parent: this is a bug :/
+ * @test: overideable method
*
* class data of gtk-doc unit test class
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]