~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/html/GtkWidget.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-09-23 09:50:04 UTC
  • mfrom: (1.5.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: james.westby@ubuntu.com-20090923095004-e9xauadn4bjs5n7m
Tags: upstream-2.18.0
Import upstream version 2.18.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1027
1027
modifiers and signal and allows to specify accelerators.
1028
1028
</p>
1029
1029
<div class="example">
1030
 
<a name="id1214331"></a><p class="title"><b>Example 54. A UI definition fragment specifying an accelerator</b></p>
 
1030
<a name="id1163181"></a><p class="title"><b>Example 54. A UI definition fragment specifying an accelerator</b></p>
1031
1031
<div class="example-contents"><pre class="programlisting">
1032
1032
&lt;object class="GtkButton"&gt;
1033
1033
  &lt;accelerator key="q" modifiers="GDK_CONTROL_MASK" signal="clicked"/&gt;
1040
1040
Properties on the accessible implementation of an object can be set by accessing the
1041
1041
internal child "accessible" of a <span class="structname">GtkWidget</span>.
1042
1042
<div class="example">
1043
 
<a name="id1214356"></a><p class="title"><b>Example 55. A UI definition fragment specifying an accessible</b></p>
 
1043
<a name="id1163206"></a><p class="title"><b>Example 55. A UI definition fragment specifying an accessible</b></p>
1044
1044
<div class="example-contents"><pre class="programlisting">
1045
1045
&lt;object class="GtkButton" id="label1"/&gt;
1046
1046
  &lt;property name="label"&gt;I am a Label for a Button&lt;/property&gt;
2039
2039
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
2040
2040
<h3 class="title">Warning</h3>
2041
2041
<p><code class="literal">gtk_widget_ref</code> has been deprecated since version 2.12 and should not be used in newly-written code. Use <a
2042
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-ref"
 
2042
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"
2043
2043
><code class="function">g_object_ref()</code></a> instead.</p>
2044
2044
</div>
2045
2045
<p>
2046
2046
Adds a reference to a widget. This function is exactly the same
2047
2047
as calling <a
2048
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-ref"
 
2048
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"
2049
2049
><code class="function">g_object_ref()</code></a>, and exists mostly for historical
2050
2050
reasons. It can still be convenient to avoid casting a widget
2051
2051
to a <a
2077
2077
<div class="warning" title="Warning" style="margin-left: 0.5in; margin-right: 0.5in;">
2078
2078
<h3 class="title">Warning</h3>
2079
2079
<p><code class="literal">gtk_widget_unref</code> has been deprecated since version 2.12 and should not be used in newly-written code. Use <a
2080
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-unref"
 
2080
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"
2081
2081
><code class="function">g_object_unref()</code></a> instead.</p>
2082
2082
</div>
2083
2083
<p>
2084
2084
Inverse of <a class="link" href="GtkWidget.html#gtk-widget-ref" title="gtk_widget_ref ()"><code class="function">gtk_widget_ref()</code></a>. Equivalent to <a
2085
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-unref"
 
2085
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"
2086
2086
><code class="function">g_object_unref()</code></a>.</p>
2087
2087
<p>
2088
2088
</p>
2110
2110
widget from its container or the list of toplevels results in the
2111
2111
widget being finalized, unless you've added additional references
2112
2112
to the widget with <a
2113
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-ref"
 
2113
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"
2114
2114
><code class="function">g_object_ref()</code></a>.
2115
2115
</p>
2116
2116
<p>
4640
4640
<td> the modifier style for the widget. This rc style is
4641
4641
  owned by the widget. If you want to keep a pointer to value this
4642
4642
  around, you must add a refcount using <a
4643
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-ref"
 
4643
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"
4644
4644
><code class="function">g_object_ref()</code></a>.
4645
4645
</td>
4646
4646
</tr>
5061
5061
><span class="type">GdkPixbuf</span></a> are shared with the rest of
5062
5062
the application and should not be modified. The pixbuf should be freed
5063
5063
after use with <a
5064
 
href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-unref"
 
5064
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"
5065
5065
><code class="function">g_object_unref()</code></a>.</p>
5066
5066
<p>
5067
5067
</p>