From: Stepan Kasal Date: Wed, 10 Aug 2005 11:07:55 +0000 (+0000) Subject: fix typos X-Git-Tag: GLIB_2_8_0~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29e635059f606d9e6f607b2eefb17ffe3d7a12fc;p=platform%2Fupstream%2Fglib.git fix typos --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 437372e..0cf2156 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -3,6 +3,7 @@ Fix typos: Invokation --> Invocation (in various places) * glib/tmpl/error_reporting.sgml: Fix a typo. + * gobject/tut_howto.xml: Several typos. 2005-08-05 Matthias Clasen diff --git a/docs/reference/gobject/tut_howto.xml b/docs/reference/gobject/tut_howto.xml index 1f32337..bca4aaf 100644 --- a/docs/reference/gobject/tut_howto.xml +++ b/docs/reference/gobject/tut_howto.xml @@ -11,7 +11,7 @@ --> - How To define and implement a new GObject ? + How To define and implement a new GObject? Clearly, this is one of the most common question people ask: they just want to crank code and @@ -556,7 +556,7 @@ void maman_bar_do_action (MamanBar *self, /* parameters */) The code above simply redirects the do_action call to the relevant class function. Some users, concerned about performance, do not provide the maman_bar_do_action - 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 afterwards, should this be needed. @@ -564,7 +564,7 @@ void maman_bar_do_action (MamanBar *self, /* parameters */) Other users, also concerned by performance issues, declare the maman_bar_do_action 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 inline keyword is not part of the C standard). @@ -756,10 +756,10 @@ b_method_to_call (B *obj, int a) --> - How To define and implement Interfaces ? + How To define and implement Interfaces? - How To define Interfaces ? + How To define Interfaces? The bulk of interface definition has already been shown in @@ -825,7 +825,7 @@ void maman_ibaz_do_action (MamanIbaz *self); , base_init is run once for each interface implementation instanciation) - maman_ibaz_do_action de-references the class + maman_ibaz_do_action dereferences the class structure to access its associated class function and calls it. @@ -871,7 +871,7 @@ void maman_ibaz_do_action (MamanIbaz *self) - How To define and implement an implementation of an Interface ? + How To define and implement an implementation of an Interface? Once the interface is defined, implementing it is rather trivial. Source code showing how to do this @@ -1357,7 +1357,7 @@ needed closures that one can use. -How to provide more flexibility to users ? +How to provide more flexibility to users? The previous implementation does the job but the signal facility of GObject can be used to provide even more flexibility to this file change notification mechanism. One of the key ideas is to make the process @@ -1700,7 +1700,7 @@ g_object_do_class_init (GObjectClass *class) 1, G_TYPE_PARAM); } - g_signal_new creates a GClosure which de-references the + g_signal_new creates a GClosure which dereferences 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. @@ -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 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 - 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. @@ -1728,7 +1728,7 @@ g_object_do_class_init (GObjectClass *class)