亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sec-finalization.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 2 頁
字號:
        is part of the public API. The <span class="STRUCTNAME">        GtkObject</span> implementation of the <span class=         "STRUCTNAME">destroy</span> method is called <tt class=         "FUNCTION">gtk_object_real_destroy()</tt>:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;static voidgtk_object_real_destroy (GtkObject *object){  if (GTK_OBJECT_CONNECTED (object))    gtk_signal_handlers_destroy (object);}&#13;</pre>          </td>        </tr>      </table>      <p>        This code simply cleans up any signal handlers associated        with the object. <tt class="FUNCTION">        gtk_object_real_destroy()</tt> is the default handler        invoked when the <span class="SYMBOL">"destroy"</span>        signal is emitted. <tt class="FUNCTION">        gtk_object_destroy()</tt> invokes the (possibly overridden)        class function <span class="STRUCTNAME">shutdown</span>;        the default shutdown method emits the <span class="SYMBOL">        "destroy"</span> signal.      </p>      <p>        Finalization is initiated by <tt class="FUNCTION">        gtk_object_unref()</tt>, if and only if the reference count        has reached 0. <tt class="FUNCTION">gtk_object_unref()</tt>        can be invoked directly by a user, but often <tt class=         "FUNCTION">gtk_object_destroy()</tt> invokes it. Here it        is:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;voidgtk_object_unref (GtkObject *object){  g_return_if_fail (object != NULL);  g_return_if_fail (GTK_IS_OBJECT (object));  g_return_if_fail (object-&gt;ref_count &gt; 0);    if (object-&gt;ref_count == 1)    {      gtk_object_destroy (object);        g_return_if_fail (object-&gt;ref_count &gt; 0);    }  object-&gt;ref_count -= 1;  if (object-&gt;ref_count == 0)    {      object-&gt;klass-&gt;finalize (object);    }}&#13;</pre>          </td>        </tr>      </table>      <p>        If an object has a reference count of 1, calling <tt class=         "FUNCTION">gtk_object_unref()</tt> invokes the shutdown and        destroy methods (via <tt class="FUNCTION">        gtk_object_destroy()</tt>) and then finalizes the object        (unless the reference count was incremented sometime during        the shutdown/destroy process; this is allowed and will        prevent finalization). If an object's reference count is        greater than 1 at the start of <tt class="FUNCTION">        gtk_object_unref()</tt>, the reference count is simply        decremented.      </p>      <p>        Again, notice that an object can be <i class="EMPHASIS">        destroyed</i> while the reference count is greater than 1        if the user calls <tt class="FUNCTION">        gtk_object_destroy()</tt>; if this happens, finalization        does not take place until the holders of the remaining        references call <tt class="FUNCTION">        gtk_object_unref()</tt>. In the most common case, the <tt        class="FUNCTION">gtk_object_destroy()</tt> implementation        holds the last reference count --- have another look at the        <tt class="FUNCTION">gtk_object_destroy()</tt> code with        this in mind.      </p>      <p>        For completeness, here is <span class="STRUCTNAME">        GtkObject</span>'s default <span class="STRUCTNAME">        finalize</span> method:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;static voidgtk_object_finalize (GtkObject *object){  gtk_object_notify_weaks (object);  g_datalist_clear (&amp;object-&gt;object_data);    gtk_type_free (GTK_OBJECT_TYPE (object), object);}&#13;</pre>          </td>        </tr>      </table>      <p>        The three function calls in this method do the following:      </p>      <ul>        <li>          <p>            Invoke "weak references," which are callbacks invoked            on object finalization. This is a little-used <span            class="STRUCTNAME">GtkObject</span> feature not            described in this book (usually connecting to the <span            class="SYMBOL">"destroy"</span> signal is more            appropriate).&#13;          </p>        </li>        <li>          <p>            Clear any object data (described in <a href=             "sec-objectdata.html">the section called <i>Attaching            Data to Objects</i></a>).&#13;          </p>        </li>        <li>          <p>            Free the instance struct. &#13;          </p>        </li>      </ul>      <p>        <a href="z57.html#WIDGETLIFECYCLE">the section called <i>        Widget Life Cycle</i> in the chapter called <i>GTK+        Basics</i></a> has more to say about reference counting and        destruction with respect to widgets.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="SEC-CHAINUP">Chaining Up</a>        </h2>        <p>          If an object overrides the shutdown, destroy, or finalize          methods, it should chain up to the default          implementation, to ensure that each parent class has a          chance to clean up. Here is an example of chaining up:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static voidgtk_widget_real_destroy (GtkObject *object){  /* ... */  if (parent_class-&gt;destroy)    parent_class-&gt;destroy (object);};&#13;</pre>            </td>          </tr>        </table>        <p>          <tt class="FUNCTION">gtk_widget_real_destroy()</tt> is          installed in the widget's class struct in the class          initialization function, overwriting the <span class=           "STRUCTNAME">GtkObject</span> default. <span class=           "STRUCTNAME">parent_class</span> is a pointer to the          parent's class struct; usually you will want to store          this pointer in your class initialization function, as          <span class="STRUCTNAME">GtkWidget</span> does:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;static GtkObjectClass *parent_class = NULL;/* ... code omitted ... */static voidgtk_widget_class_init (GtkWidgetClass *klass){  GtkObjectClass *object_class;    object_class = (GtkObjectClass*) klass;    parent_class = gtk_type_class (gtk_object_get_type ());  /* ... code omitted ... */    object_class-&gt;set_arg = gtk_widget_set_arg;  object_class-&gt;get_arg = gtk_widget_get_arg;  object_class-&gt;shutdown = gtk_widget_shutdown;  object_class-&gt;destroy = gtk_widget_real_destroy;  object_class-&gt;finalize = gtk_widget_finalize;} &#13;</pre>            </td>          </tr>        </table>        <p>          Of course, if <span class="STRUCTNAME">          parent_class</span> is not a <span class="STRUCTNAME">          GtkObjectClass*</span>, you will need to cast it with the          <tt class="FUNCTION">GTK_OBJECT_CLASS()</tt> macro.        </p>        <p>          An aside: notice that you should <i class="EMPHASIS">          not</i> chain up when implementing <span class=          "STRUCTNAME">get_arg</span> and <span class="STRUCTNAME">          set_arg</span> --- GTK+ special-cases these methods in          <tt class="FUNCTION">gtk_object_set()</tt> and <tt class=           "FUNCTION">gtk_object_get()</tt>. Recall that the <span          class="STRUCTNAME">GtkObject</span> base class          initializer zeroes these two methods, rather than leaving          the default implementation. When setting or getting an          argument value, GTK+ uses the information provided on          argument registration to jump directly to the correct          class struct and invoke only the correct <span class=           "STRUCTNAME">get_arg</span> or <span class="STRUCTNAME">          set_arg</span> method. Chaining up would be a much slower          way to implement the same thing (and would require unique          argument IDs within the same class ancestry).        </p>      </div>    </div>    <div class="NAVFOOTER">      <br>      <br>      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="z109.html"><font color="#0000ff" size="2"><b>            &lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="sec-objectdata.html"><font color="#0000ff"            size="2"><b>Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>        <tr>          <td colspan="2" align="left">            <font color="#000000" size="2"><b>Signals</b></font>          </td>          <td colspan="2" align="right">            <font color="#000000" size="2"><b>Attaching Data to            Objects</b></font>          </td>        </tr>      </table>    </div>  </body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品系列在线| 粉嫩av一区二区三区| 天堂一区二区在线免费观看| 亚洲精品久久7777| 国产精品灌醉下药二区| 欧美一区二区三区在线电影| 欧美久久久久久蜜桃| 欧美xxxxx裸体时装秀| 国产剧情av麻豆香蕉精品| 欧美aⅴ一区二区三区视频| 午夜精品久久久| 老司机精品视频在线| 国产成人精品午夜视频免费| 丁香另类激情小说| 色哟哟国产精品| 欧美一级免费大片| 中文字幕一区视频| 免费精品视频在线| 91黄色激情网站| 欧美xxxxx裸体时装秀| 亚洲欧美偷拍另类a∨色屁股| 亚洲综合小说图片| 欧美日韩精品一区二区三区四区 | 国产成人免费xxxxxxxx| 国产精品99久久久久久有的能看| 北岛玲一区二区三区四区| 欧美优质美女网站| 日韩三级视频中文字幕| 17c精品麻豆一区二区免费| 精品一区二区三区在线观看 | 亚洲狠狠丁香婷婷综合久久久| 国产精品一区免费视频| 国产精品三级视频| 国产sm精品调教视频网站| 欧美色图第一页| 亚洲人成网站在线| 日本视频在线一区| 国产精品一区二区在线看| 在线观看日产精品| 亚洲伦在线观看| 色综合久久久久久久| 91色视频在线| 一区二区三区免费看视频| 本田岬高潮一区二区三区| 久久久久久久久伊人| 日韩福利电影在线观看| 欧美日韩国产综合草草| 蜜臀久久99精品久久久画质超高清 | 久久久久久免费毛片精品| 国产很黄免费观看久久| 中文字幕亚洲一区二区av在线| 日韩av网站在线观看| 欧美mv和日韩mv的网站| 日本大胆欧美人术艺术动态| 日韩一区二区三区av| 激情五月婷婷综合| 国产精品女上位| 欧美三电影在线| 奇米888四色在线精品| 久久亚洲综合av| 国产精品996| 丝袜脚交一区二区| 国产精品区一区二区三| 欧美日韩aaa| 在线免费观看日本一区| 成人不卡免费av| 国产一区二区电影| 亚洲欧美日本在线| 综合电影一区二区三区 | 国产一区二区三区高清播放| 亚洲与欧洲av电影| 一区二区三区四区中文字幕| 久久九九久久九九| 欧美一区午夜视频在线观看| 色婷婷av一区| 精品视频一区二区三区免费| 欧美在线不卡一区| 精品久久久久一区| 国产午夜精品一区二区三区嫩草 | 奇米综合一区二区三区精品视频| 亚洲黄色片在线观看| 精品少妇一区二区三区视频免付费| 日韩一级黄色大片| 欧美精品1区2区| 日韩欧美一区二区免费| 国产喂奶挤奶一区二区三区| 久久老女人爱爱| 亚洲精选免费视频| 韩国精品久久久| 欧美精品视频www在线观看| 日本国产一区二区| 久久蜜桃av一区精品变态类天堂 | 国产一区二区电影| 欧美精品色综合| 国产精品每日更新| 欧美经典一区二区三区| 一个色在线综合| 精品一区二区免费视频| 成人午夜看片网址| 激情久久五月天| 成人毛片在线观看| 成人网男人的天堂| 欧美色网一区二区| 国产精品情趣视频| 中文在线一区二区| 中文字幕在线一区免费| 亚洲444eee在线观看| 国产精品99久久久久久久vr| 日韩精品最新网址| 亚洲天堂中文字幕| 狠狠狠色丁香婷婷综合激情| 国产麻豆日韩欧美久久| 欧美性感一区二区三区| 夜夜夜精品看看| 日本最新不卡在线| 成人免费高清视频在线观看| 欧美一区二区福利在线| 亚洲国产日韩a在线播放性色| 美腿丝袜一区二区三区| 91同城在线观看| 日本一区二区视频在线观看| 国产精品12区| 国产精品久久久久久一区二区三区| 一区二区三区在线不卡| 91免费版在线| 日韩国产欧美在线观看| 国产三级一区二区| 国产成人夜色高潮福利影视| 欧美性色黄大片| 1024亚洲合集| 亚洲大片免费看| 黄页网站大全一区二区| 欧美激情综合五月色丁香 | 在线免费观看日韩欧美| 国产精品久久久久久久第一福利 | 91麻豆文化传媒在线观看| 免费不卡在线视频| 一级做a爱片久久| 欧美日韩大陆在线| 一本色道久久综合亚洲aⅴ蜜桃 | 欧美成人艳星乳罩| 成人黄色综合网站| 美腿丝袜一区二区三区| 一卡二卡欧美日韩| 欧美国产日产图区| 精品国产污污免费网站入口 | 午夜精品成人在线视频| 亚洲欧美日韩国产一区二区三区| 久久久99久久精品欧美| 欧美性生活大片视频| 色就色 综合激情| 91丨porny丨蝌蚪视频| 成人黄色软件下载| 国产大陆a不卡| 欧美在线一区二区| 在线视频亚洲一区| 91丨九色丨蝌蚪丨老版| 国产一区二区剧情av在线| 另类小说图片综合网| 国产乱淫av一区二区三区| 国模冰冰炮一区二区| 国产成人高清视频| 99在线精品一区二区三区| 91蝌蚪porny九色| 91麻豆精品在线观看| 欧美体内she精视频| 欧美日韩一区二区三区四区五区| 国产福利91精品一区| 国产精品小仙女| 欧美日韩在线播| 亚洲国产高清在线| 亚洲不卡av一区二区三区| 亚洲自拍另类综合| 波多野结衣91| 欧美精品一区二区三区视频| 亚洲色图19p| 国产一区二区0| 在线国产亚洲欧美| 国产精品亲子伦对白| 香蕉久久夜色精品国产使用方法| 91免费国产在线| 综合激情网...| 99久久精品国产麻豆演员表| 欧美精品色综合| 亚洲免费看黄网站| av高清久久久| 国产欧美一区二区精品性色| 午夜精品久久久久久久99水蜜桃 | 久久五月婷婷丁香社区| 亚洲超碰精品一区二区| 色综合天天做天天爱| 中文字幕在线免费不卡| 国产激情91久久精品导航| 日韩免费成人网| 狠狠色丁香久久婷婷综合丁香| 欧美日韩一区二区三区四区| 亚洲天堂久久久久久久| 一本久道久久综合中文字幕| 国产日韩精品久久久| 99久久精品情趣|