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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? faqs.html

?? GTK+_ Gnome Application Development
?? HTML
?? 第 1 頁 / 共 4 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Frequently Asked Questions    </title>    <meta name="GENERATOR" content=    "Modular DocBook HTML Stylesheet Version 1.45">    <link rel="HOME" title="GTK+ / Gnome Application Development"    href="ggad.html">    <link rel="UP" title="Appendices" href="appendices.html">    <link rel="PREVIOUS" title="Table of Header Files" href=     "headers.html">    <link rel="NEXT" title="Online Resources" href="online.html">  </head>  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink=   "#840084" alink="#0000FF">    <div class="NAVHEADER">      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <th colspan="4" align="center">            <font color="#000000" size="2">GTK+ / Gnome Application            Development</font>          </th>        </tr>        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="headers.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="online.html"><font color="#0000ff" size="2">            <b>Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="CHAPTER">      <h1>        <a name="FAQS">Frequently Asked Questions</a>      </h1>      <p>        This chapter contains some commonly-asked questions, and        answers, with references to the rest of the book. See the        table of contents for a summary of the questions.      </p>      <div class="SECT1">        <h1 class="SECT1">          <a name="Z827">Questions, with Answers</a>        </h1>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z828">How do I make my application beep?</a>          </h2>          <p>            Call the <tt class="FUNCTION">gdk_beep()</tt> function.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z829">When do I need to destroy my            widgets?</a>          </h2>          <p>            See <a href="z57.html#WIDGETLIFECYCLE">the section            called <i>Widget Life Cycle</i> in the chapter called            <i>GTK+ Basics</i></a> for the simple answer, and <a            href="sec-finalization.html">the section called <i>            Object Finalization</i> in the chapter called <i>The            GTK+ Object and Type System</i></a> for more details.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z830">When I turn on memory profiling in glib,            my application becomes unstable. What gives?</a>          </h2>          <p>            Normally <tt class="FUNCTION">g_malloc()</tt> and <tt            class="FUNCTION">g_free()</tt> are just wrappers around            <tt class="FUNCTION">malloc()</tt> and <tt class=             "FUNCTION">free()</tt>, with a couple of extra features            described in <a href="cha-glib.html#GLIB-MEMORY">the            section called <i>Memory</i> in the chapter called <i>            glib: Portability and Utility</i></a>. However, when            you turn on memory profiling, they are no longer            interchangeable with <tt class="FUNCTION">malloc()</tt>            and <tt class="FUNCTION">free()</tt>. So anytime you            incorrectly mix the two pairs of functions, your            program will crash.          </p>          <p>            If you're using the GNU C library, which comes with            nearly all Linux distributions, it has a special            feature which can help you debug this. Set the <tt            class="APPLICATION">MALLOC_CHECK_</tt> environment            variable to <tt class="APPLICATION">2</tt> before            running your program, then run the program in <tt            class="APPLICATION">gdb</tt>. As soon as <tt class=             "FUNCTION">free()</tt> gets a pointer not created by            <tt class="FUNCTION">malloc()</tt>, <tt class=            "FUNCTION">abort()</tt> will be called.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z831">To create a custom display, I want to            place widgets in arbitrary locations, or move them            around rapidly, or draw to them directly. How?</a>          </h2>          <p>            You are probably fighting a losing battle. Widgets            really aren't what you want, most likely. Consider            using a <tt class="CLASSNAME">GtkDrawingArea</tt> or            the <tt class="CLASSNAME">GnomeCanvas</tt> to create            your custom display.          </p>          <p>            If you really need interactive widgets, such as a <tt            class="CLASSNAME">GtkEntry</tt> or <tt class=            "CLASSNAME">GtkButton</tt>, you can try to use <tt            class="CLASSNAME">GtkLayout</tt> or <tt class=            "CLASSNAME">GtkFixed</tt>.          </p>          <p>            If you have very specialized needs, you probably need            to write your own widget. <a href="cha-widget.html">the            chapter called <i>Writing a <tt class="CLASSNAME">            GtkWidget</tt></i></a> tells you how to do so.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z832">Why does my memory debugging tool show            memory leaks in glib?</a>          </h2>          <p>            glib does not call <tt class="FUNCTION">malloc()</tt>            every time it needs a new node in a data structure. If            it did, building linked lists (for example) would be            substantially slower. Instead, glib caches pools of            equal-sized "memory chunks" for use in these data            structures. Since the chunks are still available for            recycling when your program exits, they are never <tt            class="FUNCTION">free()</tt>d. (Of course, the            operating system will reclaim the memory, but tools            such as <tt class="APPLICATION">ccmalloc</tt> and <tt            class="APPLICATION">Purify</tt> will report it as a            memory leak.)          </p>          <p>            To get around this, you can plug a new <span class=             "STRUCTNAME">GAllocator</span> into most of the data            structures. A <span class="STRUCTNAME">            GAllocator</span> is a pool of memory as described            above. Just create an allocator manually, so you have a            pointer to it; you can then free the allocator when you            are finished. <a href="faqs.html#FL-GLISTALLOCATOR">            Figure 1</a> summarizes the relevant functions for            <span class="STRUCTNAME">GList</span>. A quick glance            through <tt class="FILENAME">glib.h</tt> will reveal            the corresponding functions for other data structures.          </p>          <p>            The <tt class="APPLICATION">name</tt> argument to <tt            class="FUNCTION">g_allocator_new()</tt> is used in            debugging messages; the <tt class="APPLICATION">            n_preallocs</tt> argument is passed through to <tt            class="FUNCTION">g_mem_chunk_new()</tt>.          </p>          <div class="FIGURE">            <a name="FL-GLISTALLOCATOR"></a>            <div class="FUNCSYNOPSIS">              <a name="FL-GLISTALLOCATOR.SYNOPSIS"></a>              <table border="0" bgcolor="#E0E0E0" width="100%">                <tr>                  <td><pre class="FUNCSYNOPSISINFO">#include &lt;glib.h&gt;</pre>                  </td>                </tr>              </table>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                g_list_push_allocator</tt></code>(GAllocator* <tt                class="PARAMETER"><i>allocator</i></tt>);</code>              </p>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">                g_list_pop_allocator</tt></code>(void);</code>              </p>              <p>                <code><code class="FUNCDEF">GAllocator* <tt class=                 "FUNCTION">g_allocator_new</tt></code>(gchar* <tt                class="PARAMETER"><i>name</i></tt>, guint <tt                class="PARAMETER"><i>n_preallocs</i></tt>);</code>              </p>              <p>                <code><code class="FUNCDEF">void <tt class=                "FUNCTION">g_allocator_free</tt></code>(GAllocator*                <tt class="PARAMETER"><i>                allocator</i></tt>);</code>              </p>            </div>            <p>              <b>Figure 1. Functions for replacing the <span class=               "STRUCTNAME">GList</span> memory allocator</b>            </p>          </div>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z833">I get a bunch of "assertion failed"            warnings from GTK+. What causes these?</a>          </h2>          <p>            These come from the <tt class="FUNCTION">            g_return_if_fail()</tt> checks at the beginning of many            GTK+ functions. (They will only appear if your copy of            GTK+ was compiled with debugging turned on---and            hopefully it was if you are writing an application.)            You will need to look at the exact assertion that            failed to see what causes the warning. A common one: if            you accidentally access a destroyed widget or object,            you will have a pointer to memory garbage. Among other            things, this means the type tag will be invalid; so            GTK+'s runtime type checks will fail.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z834">Why are some things in Gnome rather than            GTK+?</a>          </h2>          <p>            Historical accident, mostly. Sometimes there is a            reason; for example, GTK+ does not include <tt class=             "APPLICATION">gdk_imlib</tt>, so does not include any            widgets that rely on it. In very general terms, GTK+            imposes less "policy" than Gnome; some Gnome widgets            are deliberately inflexible to keep people from            creating an inconsistent user interface. GTK+ does not            take this approach. Finally, some of the Gnome widgets            were considered too "experimental" to go in GTK+ at the            time. However, the core Gnome widgets discussed in this            book are not in this category.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z835">How can I center a window on the            screen?</a>          </h2>          <p>            If the window is a <tt class="CLASSNAME">            GnomeDialog</tt>, this is user-configurable and you            should not do it. In most other cases it would be a bit            strange; but there are exceptions, such as splash            screens. The function you want is <tt class="FUNCTION">            gtk_window_set_position()</tt>; you can leave the            window's position up to the window manager (the            default), ask to have it centered, or ask to have it            appear wherever the mouse pointer is. There is an            enumeration which corresponds to these settings: <span            class="STRUCTNAME">GTK_WIN_POS_NONE</span>, <span            class="STRUCTNAME">GTK_WIN_POS_CENTER</span>, <span            class="STRUCTNAME">GTK_WIN_POS_MOUSE</span>. For            example:          </p>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="PROGRAMLISTING">&#13;  gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER);&#13;</pre>              </td>            </tr>          </table>          <p>            You should do this <i class="EMPHASIS">before</i>            calling <tt class="FUNCTION">gtk_widget_show()</tt>,            because the function affects where the window appears            when it is first placed on-screen.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色天天综合色天天久久| 亚洲精品成a人| 亚洲精品老司机| 午夜精品一区二区三区免费视频| 国内外精品视频| 国产精品色哟哟| 欧美日韩午夜在线| 高清视频一区二区| 午夜精彩视频在线观看不卡| 精品国产污污免费网站入口| 97久久精品人人做人人爽50路| 蜜乳av一区二区| 国产精品成人网| 欧美久久久久中文字幕| 国产做a爰片久久毛片| 亚洲一区成人在线| 国产午夜亚洲精品午夜鲁丝片| 91国模大尺度私拍在线视频| 精品夜夜嗨av一区二区三区| 国产女主播一区| 欧美日韩在线播放三区四区| 国产精品亚洲视频| 日韩中文欧美在线| 久久久91精品国产一区二区精品| 欧美一区二区三区在线看| av在线播放成人| 狠狠色丁香婷婷综合| 亚洲欧美日韩一区| 国产精品蜜臀在线观看| 日韩美女视频在线| 欧美日韩另类一区| 精品亚洲成a人在线观看| 日韩av中文字幕一区二区| 亚洲美女一区二区三区| 国产欧美一区二区精品忘忧草 | 久久精品国产成人一区二区三区 | 久久成人av少妇免费| 中文字幕五月欧美| www国产成人免费观看视频 深夜成人网| 国产aⅴ综合色| 国产精品一区二区男女羞羞无遮挡 | 日韩一区二区三区免费看 | 久久综合网色—综合色88| 日本韩国精品在线| 成人综合在线观看| 国产在线精品免费av| 国产精品影视在线观看| 精品久久久久久久久久久院品网| 欧美亚洲国产一区在线观看网站| 一本到三区不卡视频| 亚洲一区二区成人在线观看| 日韩理论片中文av| ww久久中文字幕| 久久精品男人天堂av| 精品久久久久香蕉网| 日韩亚洲欧美在线| 日韩一卡二卡三卡国产欧美| 欧美电视剧在线观看完整版| 6080日韩午夜伦伦午夜伦| 欧美日本国产视频| 91.xcao| 欧美视频一区二区在线观看| 4438x亚洲最大成人网| 在线日韩一区二区| 精品视频一区三区九区| 欧美精品乱码久久久久久按摩| 精彩视频一区二区三区| 成人三级在线视频| av中文字幕一区| 色呦呦国产精品| 欧美主播一区二区三区美女| 色综合天天性综合| 国产一区二区三区香蕉| 欧美大胆一级视频| 色88888久久久久久影院野外| 九九**精品视频免费播放| 久久精品国产77777蜜臀| 久久精品国内一区二区三区| 日韩av中文字幕一区二区| 国产一区二区在线看| 国产69精品久久久久毛片| av电影在线观看一区| 日本福利一区二区| 欧美色精品在线视频| 欧美一区二区人人喊爽| 亚洲嫩草精品久久| 一区二区三区在线看| 蜜桃av一区二区三区电影| 丁香激情综合国产| 欧美美女黄视频| 国产精品久久久久久久久果冻传媒| 亚洲成人午夜影院| 国产成人av电影在线| 欧美日韩免费在线视频| 国产亚洲自拍一区| 午夜电影一区二区| 国产99久久久国产精品免费看| 欧美日韩国产综合视频在线观看| 中文在线一区二区| 亚洲欧美国产高清| 亚洲图片欧美一区| 亚洲国产成人porn| 国产精品一级二级三级| 欧美性猛片aaaaaaa做受| 久久久久国产精品厨房| 亚洲第一福利一区| 99精品在线观看视频| 欧美一区二区视频观看视频| 伊人色综合久久天天| 成人综合在线网站| 久久免费电影网| 奇米精品一区二区三区在线观看一| 成人动漫一区二区在线| 亚洲精品一区二区三区香蕉| 日韩黄色在线观看| 色婷婷亚洲综合| 国产精品美日韩| 激情文学综合丁香| 日韩欧美不卡在线观看视频| 亚洲成人黄色小说| 色网站国产精品| 国产精品福利一区二区三区| 国产美女av一区二区三区| 日韩小视频在线观看专区| 亚洲综合色自拍一区| 色一情一伦一子一伦一区| 日韩精品一区二区在线观看| 成人sese在线| 日韩视频一区二区三区| 亚洲嫩草精品久久| zzijzzij亚洲日本少妇熟睡| 久久综合五月天婷婷伊人| 日韩在线一区二区三区| 欧美日韩精品免费观看视频| 亚洲黄色小视频| 99免费精品视频| 亚洲欧洲精品一区二区精品久久久| 国产成人在线免费观看| 国产欧美精品一区aⅴ影院| 国产成人综合网站| 国产喷白浆一区二区三区| 国产精品一二三在| 国产精品国产三级国产aⅴ入口| 成人伦理片在线| 亚洲天天做日日做天天谢日日欢| 岛国一区二区在线观看| 一区免费观看视频| 色综合天天综合在线视频| 一区二区三区91| 欧美日韩国产美女| 日韩电影一二三区| 精品国产乱码久久久久久免费| 麻豆视频观看网址久久| 精品入口麻豆88视频| 国产一区二区在线视频| 国产精品乱人伦一区二区| 亚洲免费观看高清完整| 亚洲黄色av一区| 国产精品私人影院| 日韩精品亚洲专区| 777午夜精品视频在线播放| 免费在线观看一区| 国产无人区一区二区三区| 99麻豆久久久国产精品免费| 亚洲国产成人va在线观看天堂 | 色激情天天射综合网| 亚洲成在线观看| 精品久久免费看| 暴力调教一区二区三区| 亚洲丶国产丶欧美一区二区三区| 欧美人动与zoxxxx乱| 黄色小说综合网站| 亚洲精选视频在线| 日韩欧美中文字幕公布| 成人午夜激情在线| 亚洲一级片在线观看| 精品sm捆绑视频| 一本久久a久久免费精品不卡| 亚洲成av人片在线观看| 久久综合成人精品亚洲另类欧美 | 中文字幕日本不卡| 欧美一区二区三区不卡| 成人午夜av在线| 五月综合激情日本mⅴ| 日韩一区中文字幕| 2017欧美狠狠色| 亚洲欧洲日韩综合一区二区| 欧美日韩激情在线| 久久www免费人成看片高清| 国产精品麻豆视频| 欧美一级片免费看| www.色精品| 美洲天堂一区二卡三卡四卡视频| 国产精品电影一区二区三区| 欧美一区二区在线视频| 99久久777色| 国产精品一区二区视频| 午夜日韩在线电影| 亚洲天堂福利av| 久久―日本道色综合久久|