~ubuntu-branches/ubuntu/saucy/gtk-doc/saucy

« back to all changes in this revision

Viewing changes to tests/gobject/src/gobject.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-02-17 17:11:41 UTC
  • mto: (1.2.8 upstream) (4.1.2 squeeze)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20090217171141-nobu8ey8kqtq5alx
Import upstream version 1.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * This file contains non-sense code for the sole purpose of testing the docs.
6
6
 * We can link to the #GtkdocObject:otest property and the #GtkdocObject::otest
7
7
 * signal.
8
 
 * A new instance can be created using the gtkdoc_object_new() function.
 
8
 * A new instance can be created using the gtkdoc_object_new() function. The
 
9
 * whole lifecycle usualy looks like shown in this example: |[
 
10
 * GObject *myobj;
 
11
 * 
 
12
 * myobj = gtkdoc_object_new();
 
13
 * // do somehing
 
14
 * g_object_unref (myobj);
 
15
 * ]|
 
16
 *
 
17
 * You can also change parameters:
 
18
 * <informalexample>
 
19
 * <programlisting><xi:include xmlns:xi="http://www.w3.org/2003/XInclude" parse="text" href="../../examples/gobject.c" /></programlisting>
 
20
 * </informalexample>
9
21
 */
10
22
 
11
23
#include <glib.h>
27
39
 * Create a new instance
28
40
 *
29
41
 * Returns: the instance or %NULL in case of an error
 
42
 *
 
43
 * Since: 0.1
30
44
 */
31
45
GtkdocObject *gtkdoc_object_new (void) {
32
46
  return(NULL);
33
47
}
34
48
 
 
49
/**
 
50
 * gtkdoc_object_set_otest:
 
51
 * @self: the object
 
52
 * @value: the new otest value
 
53
 *
 
54
 * Set the #GtkdocObject:otest property.
 
55
 *
 
56
 * Deprecated: Use g_object_set(obj,&quot;otest&quot;,value,NULL); instead.
 
57
 *
 
58
 * Since: 0.5
 
59
 */
 
60
void gtkdoc_object_set_otest (GObject *self, const gchar *value) {
 
61
  
 
62
}
 
63
 
 
64
/**
 
65
 * gtkdoc_object_frobnicate:
 
66
 * @self: the object
 
67
 * @n: number of iterations
 
68
 *
 
69
 * Frobnicate the content of @self @n times.
 
70
 *
 
71
 * Since: 0.5
 
72
 */
 
73
void gtkdoc_object_frobnicate (GObject *self, gint n) {
 
74
  
 
75
}
35
76
/* methods */
36
77
 
37
78
/* class internals */