~ubuntu-branches/ubuntu/natty/glib2.0/natty

« back to all changes in this revision

Viewing changes to docs/reference/gobject/html/howto-gobject-chainup.html

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-08 13:28:27 UTC
  • mfrom: (1.59.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20110308132827-odxdwb2fdtji2avm
Tags: 2.28.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
      To explicitly chain up to the implementation of the virtual method in the parent class, 
55
55
      you first need a handle to the original parent class structure. This pointer can then be used to 
56
56
      access the original class function pointer and invoke it directly.
57
 
      <sup>[<a name="id651699" href="#ftn.id651699" class="footnote">11</a>]</sup>
 
57
      <sup>[<a name="id693920" href="#ftn.id693920" class="footnote">11</a>]</sup>
58
58
    </p>
59
59
<p>The function <code class="function"><a class="link" href="gobject-Type-Information.html#g-type-class-peek-parent" title="g_type_class_peek_parent ()">g_type_class_peek_parent</a></code> is used to access the original parent 
60
60
    class structure. Its input is a pointer to the class of the derived object and it returns a pointer
81
81
  </p>
82
82
<div class="footnotes">
83
83
<br><hr width="100" align="left">
84
 
<div class="footnote"><p><sup>[<a id="ftn.id651699" href="#id651699" class="para">11</a>] </sup>
 
84
<div class="footnote"><p><sup>[<a id="ftn.id693920" href="#id693920" class="para">11</a>] </sup>
85
85
          The <span class="emphasis"><em>original</em></span> adjective used in this sentence is not innocuous. To fully 
86
86
          understand its meaning, you need to recall how class structures are initialized: for each object type,
87
87
          the class structure associated to this object is created by first copying the class structure of its