mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
gobject: Cross-link from GType reference docs to GType conventions page
Make it a little easier to find the GType conventions page, which I guess should be the canonical guide to how to name things. This adds a brief mention of the valid characters in a type name to the conventions page. https://bugzilla.gnome.org/show_bug.cgi?id=743018
This commit is contained in:
@@ -232,6 +232,10 @@ struct _GTypeValueTable
|
||||
There are a number of conventions users are expected to follow when creating new types
|
||||
which are to be exported in a header file:
|
||||
<itemizedlist>
|
||||
<listitem><para>
|
||||
Type names (including object names) must be at least three
|
||||
characters long and start with ‘a–z’, ‘A–Z’ or ‘_’.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
Use the <function>object_method</function> pattern for function names: to invoke
|
||||
the method named foo on an instance of object type bar, call
|
||||
|
Reference in New Issue
Block a user