mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-07 11:09:39 +02:00
fix typos
This commit is contained in:
parent
f6059af110
commit
29e635059f
@ -3,6 +3,7 @@
|
|||||||
Fix typos: Invokation --> Invocation (in various places)
|
Fix typos: Invokation --> Invocation (in various places)
|
||||||
|
|
||||||
* glib/tmpl/error_reporting.sgml: Fix a typo.
|
* glib/tmpl/error_reporting.sgml: Fix a typo.
|
||||||
|
* gobject/tut_howto.xml: Several typos.
|
||||||
|
|
||||||
2005-08-05 Matthias Clasen <mclasen@redhat.com>
|
2005-08-05 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
@ -556,7 +556,7 @@ void maman_bar_do_action (MamanBar *self, /* parameters */)
|
|||||||
</programlisting>
|
</programlisting>
|
||||||
The code above simply redirects the do_action call to the relevant class function. Some users,
|
The code above simply redirects the do_action call to the relevant class function. Some users,
|
||||||
concerned about performance, do not provide the <function>maman_bar_do_action</function>
|
concerned about performance, do not provide the <function>maman_bar_do_action</function>
|
||||||
wrapper function and require users to de-reference the class pointer themselves. This is not such
|
wrapper function and require users to dereference the class pointer themselves. This is not such
|
||||||
a great idea in terms of encapsulation and makes it difficult to change the object's implementation
|
a great idea in terms of encapsulation and makes it difficult to change the object's implementation
|
||||||
afterwards, should this be needed.
|
afterwards, should this be needed.
|
||||||
</para>
|
</para>
|
||||||
@ -564,7 +564,7 @@ void maman_bar_do_action (MamanBar *self, /* parameters */)
|
|||||||
<para>
|
<para>
|
||||||
Other users, also concerned by performance issues, declare the <function>maman_bar_do_action</function>
|
Other users, also concerned by performance issues, declare the <function>maman_bar_do_action</function>
|
||||||
function inline in the header file. This, however, makes it difficult to change the
|
function inline in the header file. This, however, makes it difficult to change the
|
||||||
object's implementation later (although easier than requiring users to directly de-reference the class
|
object's implementation later (although easier than requiring users to directly dereference the class
|
||||||
function) and is often difficult to write in a portable way (the <emphasis>inline</emphasis> keyword
|
function) and is often difficult to write in a portable way (the <emphasis>inline</emphasis> keyword
|
||||||
is not part of the C standard).
|
is not part of the C standard).
|
||||||
</para>
|
</para>
|
||||||
@ -825,7 +825,7 @@ void maman_ibaz_do_action (MamanIbaz *self);
|
|||||||
<xref linkend="gtype-non-instantiable-classed-init"/>,
|
<xref linkend="gtype-non-instantiable-classed-init"/>,
|
||||||
<function>base_init</function> is run once for each interface implementation
|
<function>base_init</function> is run once for each interface implementation
|
||||||
instanciation)</para></listitem>
|
instanciation)</para></listitem>
|
||||||
<listitem><para><function>maman_ibaz_do_action</function> de-references the class
|
<listitem><para><function>maman_ibaz_do_action</function> dereferences the class
|
||||||
structure to access its associated class function and calls it.
|
structure to access its associated class function and calls it.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
@ -1700,7 +1700,7 @@ g_object_do_class_init (GObjectClass *class)
|
|||||||
1, G_TYPE_PARAM);
|
1, G_TYPE_PARAM);
|
||||||
}
|
}
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<function><link linkend="g-signal-new">g_signal_new</link></function> creates a <type><link linkend="GClosure">GClosure</link></type> which de-references the
|
<function><link linkend="g-signal-new">g_signal_new</link></function> creates a <type><link linkend="GClosure">GClosure</link></type> which dereferences the
|
||||||
type's class structure to access the class function pointer and invoke it if it not NULL. The
|
type's class structure to access the class function pointer and invoke it if it not NULL. The
|
||||||
class function is ignored it is set to NULL.
|
class function is ignored it is set to NULL.
|
||||||
</para>
|
</para>
|
||||||
@ -1711,7 +1711,7 @@ g_object_do_class_init (GObjectClass *class)
|
|||||||
a part of the process to the user without requiring the user to subclass the object to override
|
a part of the process to the user without requiring the user to subclass the object to override
|
||||||
one of the class functions. The alternative to subclassing, that is, the use of signals
|
one of the class functions. The alternative to subclassing, that is, the use of signals
|
||||||
to delegate processing to the user, is, however, a bit less optimal in terms of speed: rather
|
to delegate processing to the user, is, however, a bit less optimal in terms of speed: rather
|
||||||
than just de-referencing a function pointer in a class structure, you must start the whole
|
than just dereferencing a function pointer in a class structure, you must start the whole
|
||||||
process of signal emission which is a bit heavyweight.
|
process of signal emission which is a bit heavyweight.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user