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
2043
2043
><code class="function">g_object_ref()</code></a> instead.</p>
2046
2046
Adds a reference to a widget. This function is exactly the same
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