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

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

?? faqs.html

?? GTK+_ Gnome Application Development
?? HTML
?? 第 1 頁 / 共 4 頁
字號:
            <a name="Z836">Is there a widget that does            printing?</a>          </h2>          <p>            No. When people ask this question they are usually            looking for an abstract interface that draws either to            the screen or to a printer. There is nothing like that            in GTK+ right now. <tt class="CLASSNAME">            GnomeCanvas</tt> will probably have a feature like this            in a future version.          </p>          <p>            There is a <tt class="APPLICATION">gnome-print</tt>            library available, which handles many unpleasant            low-level details when dealing with fonts and            PostScript. It also comes with a printer-selection            dialog.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z837">When I <tt class="FUNCTION">fork()</tt>,            I get a bunch of warnings and my program crashes.            What's going on?</a>          </h2>          <p>            There are two things to remember:          </p>          <ol type="1">            <li>              <p>                The child process must not try to use the GUI;                since it shares file descriptors with the parent,                including GTK+'s connection to the X server, GTK+                will become very confused.&#13;              </p>            </li>            <li>              <p>                The child process must be terminated with <tt                class="FUNCTION">_exit()</tt> rather than <tt                class="FUNCTION">exit()</tt>; calling <tt class=                 "FUNCTION">exit()</tt> will shut down GTK+ and                confuse the parent process. (GTK+ registers a                "cleanup" function using <tt class="FUNCTION">                atexit()</tt>.)&#13;              </p>            </li>          </ol>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z838">When do I need to call <tt class=             "FUNCTION">gtk_widget_realize()</tt> vs. <tt class=             "FUNCTION">gtk_widget_show()</tt>?</a>          </h2>          <p>            <a href="z57.html#SEC-REALIZINGSHOWING">the section            called <i>Realizing, Mapping, and Showing</i> in the            chapter called <i>GTK+ Basics</i></a> goes into some            detail on this. But here is a brief summary.          </p>          <p>            Showing a widget implies mapping it eventually (to be            precise, it schedules the widget to be mapped when its            parent widgets are mapped). Mapping a widget means            calling <tt class="FUNCTION">gdk_window_show()</tt> to            display the widget's <span class="STRUCTNAME">            GdkWindow</span> on the screen (if it has a <span            class="STRUCTNAME">GdkWindow</span>, some widgets            don't). To map a widget you must first realize it.            Therefore showing a widget implies realizing it.            Therefore if you show a widget you don't need to            explicitly realize it with <tt class="FUNCTION">            gtk_widget_realize()</tt> because it will be realized            eventually anyway.          </p>          <p>            There's one exception, however. To <i class=            "FIRSTTERM">realize</i> a widget means to allocate X            server resources for it, most notably a <span class=             "STRUCTNAME">GdkWindow</span>. Some things you might            want to do require the <span class="STRUCTNAME">            GdkWindow</span> to exist, so you might want to force a            widget to be realized immediately. <tt class=            "FUNCTION">gtk_widget_realize()</tt> does this. Since            parent widgets must be realized before their children,            <tt class="FUNCTION">gtk_widget_realize()</tt> will            immediately realize all of a widget's parents as well.            One of these parents must be a toplevel window, or            realization will not be possible.          </p>          <p>            If you force-realize a widget, you still have to call            <tt class="FUNCTION">gtk_widget_show()</tt> since            realization does not map the widget.          </p>          <p>            A good but not foolproof rule of thumb: if you are            using <span class="STRUCTNAME">            GTK_WIDGET(widget)-&gt;window</span>, you will need            <span class="STRUCTNAME">widget</span> to be realized.          </p>          <p>            However, it should be noted that force-realizing a            widget is always a mildly bad idea; it is inefficient            and uncomfortably low-level. In many cases you can work            around the need to do so.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z839">When creating a pixmap, I get the            warning: <tt class="APPLICATION">Creating pixmap from            xpm with NULL window and colormap</tt>. What's            wrong?</a>          </h2>          <p>            Creating a pixmap requires a colormap. <tt class=             "FUNCTION">gdk_pixmap_create_from_xpm_d()</tt> requires            a <span class="STRUCTNAME">GdkWindow</span> argument in            order to extract a colormap. You are probably trying to            use the <span class="STRUCTNAME">window</span> field of            an unrealized widget, which is <span class=            "STRUCTNAME">NULL</span>. You might try the newer            function, <tt class="FUNCTION">            gdk_pixmap_colormap_create_from_xpm_d()</tt> which            accepts a colormap argument; if you pass in a colormap,            its window argument can be <span class="STRUCTNAME">            NULL</span>. However, using Imlib instead is a still            better solution; Imlib's pixmap routines are faster            anyway.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z840">How can I separate the GUI from the rest            of my application?</a>          </h2>          <p>            For a variety of reasons, an application's graphical            interface tends to be an exceptionally volatile and            ever-changing piece of software. It's the focus of most            user requests for change. It is difficult to plan and            execute well the first time around---often you will            discover that some aspect of it is unpleasant to use            only after you have written it. Making things worse,            graphical interfaces are not portable across machines;            Gnome works on X windows, but if your application is            useful, it won't be long before someone wants to run            your application on another system, or have a            command-line version, or have a web-based interface.            You might even want to have two interfaces in the same            version---perhaps the GUI, and a scripting language            such as Guile.          </p>          <p>            In practical terms, this means that any large            application should have a radical separation between            its various <i class="FIRSTTERM">frontends</i>, or            interfaces, and the <i class="FIRSTTERM">backend</i>.            The backend should contain all the ``hard parts'': your            algorithms and data structures, the real work done by            the application. Think of it as an abstract ``model''            being displayed to and manipulated by the user.          </p>          <p>            Each frontend should be a ``view'' and a            ``controller.'' As a ``view,'' the frontend must note            any changes in the backend, and change the display            accordingly. As a ``controller,'' the frontend must            allow the user to relay requests for change to the            backend (it defines how manipulations of the frontend            translate into changes in the model).          </p>          <p>            There are many ways to discipline yourself to keep your            application separated. A couple of useful ideas:          </p>          <ul>            <li>              <p>                Write the backend as a library; if this becomes                undesirable for any reason, you can always                statically link.&#13;              </p>            </li>            <li>              <p>                Write at least two frontends from the start; one or                both can be ugly prototypes, you just want to get                an idea how to structure the backend. Remember,                frontends should be easy; the backend has the hard                parts.&#13;              </p>            </li>          </ul>          <p>            If one of your frontends is Gnome- or GTK+- based, an            excellent choice for the other is an interactive Guile            terminal. Your non-expert end users probably won't use            it, but it's a great debugging tool; you can prototype            and test the backend using easy-to-write Guile            bindings, and add the graphical controls only when            things are working. When you're done, you'll have a            scriptable application almost for free.          </p>          <p>            If your application can potentially be run in batch            mode, command line and web interfaces are also            relatively easy to write, useful for debugging, and            will keep you disciplined.          </p>          <p>            Finally, if your project is large enough to justify the            bother and complexity, consider using a cross-platform            frontend layer to share code between GUI frontends on            different platforms. This approach is taken by Mozilla            (<a href="http://www.mozilla.org" target=            "_top">http://www.mozilla.org</a>), and the AbiSource            office suite (<a href="http://www.abisource.com"            target="_top">http://www.abisource.com</a>). It might            be interesting to have a look at their code.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z841">I don't like the default appearance of            [some widget]. How do I change its appearance?</a>          </h2>          <p>            Don't program your preferences. GTK+ unfortunately has            all sorts of look and feel settings that the programmer            can affect. For example, you can change the appearance            of the ``expanders'' in a <tt class="CLASSNAME">            GtkCTree</tt>---they can be triangles, squares, or            circles. By default they are squares. You change them            by calling <tt class="FUNCTION">            gtk_ctree_set_expander_style()</tt>.          </p>          <p>            There's no good reason to call this function in an            application. Ever. Think about why you would call            it---because you happen to like that expander style            better. It's a purely cosmetic issue. However, if you            do call it, you've just made your application's look            and feel different from that of every other            application. This is <i class="EMPHASIS">harmful</i>,            because it confuses users and even gives them a sense            that your application is ``unprofessional'' or ``not            quite right.''          </p>          <p>            ``But I want my favorite expanders!,'' you might whine.            Don't despair. There is a correct way to handle this            situation. Variable aspects of look and feel should be            configurable <i class="EMPHASIS">at runtime</i> by <i            class="EMPHASIS">users</i>. What's more, it should be            configurable <i class="EMPHASIS">globally</i>, for <i            class="EMPHASIS">all applications at once</i>. GTK+            provides themes for precisely this purpose.          </p>          <p>            Unfortunately themes do not yet cover all aspects of            look and feel, and so the temptation remains to            hard-code these in your application. You must resist.            If you are dead-set against the default expander style,            or the default dialog position, or whatever, then do            the work to make it configurable on the library level            and submit that code to the GTK+ or Gnome maintainers.          </p>          <p>            You have to do this on the library level---think about            it. If you provide an application-specific way to            configure look and feel, nothing has really been            gained; if someone does like a particular expander            style, they have to go through each program deciding if            and how the style can be changed. Some programs will            invariably be ``stuck'' with the default, since the            authors of those programs didn't make it configurable.            The resulting mess is very annoying to users.          </p>          <p>            Gnome already has solutions for a number of common            cases. For example, GTK+ lets you pop up a dialog at            the mouse pointer, in the center of the screen, or            wherever the window manager wants; there is no reason            you should pick your favorite and use it in your            application. Thus <tt class="CLASSNAME">            GnomeDialog</tt> loads a user preference for the            dialog's initial position. This preference can be set            from the Gnome control center.          </p>        </div>        <div class="SECT2">          <h2 class="SECT2">            <a name="Z842">Thanks for the lecture, but I have a

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看国产91| 亚洲曰韩产成在线| 国产精品久久久久天堂| 综合色中文字幕| 午夜精品福利一区二区三区av| 日韩黄色免费电影| 国产.欧美.日韩| 在线观看视频一区二区欧美日韩| 91麻豆精品国产91久久久| 久久久久国产精品人| 亚洲激情av在线| 韩国三级中文字幕hd久久精品| 99久久久无码国产精品| 欧美巨大另类极品videosbest| 国产日韩欧美在线一区| 亚洲一区二区三区中文字幕| 久久www免费人成看片高清| 91丨porny丨户外露出| 欧美一区午夜精品| 国产精品美女久久久久久2018| 日韩精品亚洲专区| 成人av资源网站| 日韩欧美国产不卡| 亚洲精品成人天堂一二三| 久久精品国产99国产精品| 日本韩国欧美三级| 亚洲一区二区欧美| 国产一区日韩二区欧美三区| 在线精品视频免费播放| 国产女主播一区| 免费观看一级欧美片| 色老头久久综合| 欧美激情一区二区三区在线| 日韩成人一级片| 一本到高清视频免费精品| 久久久精品天堂| 日韩精品亚洲一区二区三区免费| 99riav久久精品riav| 久久影院视频免费| 三级久久三级久久| 91色视频在线| 国产欧美日韩三区| 国内精品在线播放| 欧美一级艳片视频免费观看| 亚洲精品国产无套在线观| 成人性色生活片免费看爆迷你毛片| 日韩一区二区三区av| 五月天精品一区二区三区| 色婷婷狠狠综合| 国产精品美女久久久久久久网站| 久久疯狂做爰流白浆xx| 欧美日韩精品免费| 亚洲综合色区另类av| 97精品久久久午夜一区二区三区| 久久久青草青青国产亚洲免观| 人人狠狠综合久久亚洲| 欧美日韩精品一区二区在线播放 | 天天色天天爱天天射综合| 91小视频免费看| 国产精品午夜免费| 国产精品88av| 午夜伦理一区二区| 91黄色在线观看| 亚洲欧美日韩国产另类专区| 高清国产一区二区| 国产拍欧美日韩视频二区| 国产一区二区三区香蕉| 精品盗摄一区二区三区| 美国欧美日韩国产在线播放| 日韩一区二区在线免费观看| 日韩中文字幕不卡| 91精品国产综合久久婷婷香蕉 | 欧美精品免费视频| 亚洲一区中文在线| 欧美羞羞免费网站| 日日骚欧美日韩| 欧美一区二区三区视频免费播放| 亚洲va欧美va人人爽| 欧美日韩国产中文| 视频一区二区三区中文字幕| 欧美另类变人与禽xxxxx| 日韩一区欧美二区| 日韩一级在线观看| 久久国产精品色婷婷| 精品少妇一区二区三区日产乱码| 狠狠色狠狠色综合系列| 久久久久国产精品免费免费搜索| 国产成人精品综合在线观看| 国产精品热久久久久夜色精品三区| 成人在线一区二区三区| 中文欧美字幕免费| 色久优优欧美色久优优| 亚洲国产精品欧美一二99| 6080亚洲精品一区二区| 男女男精品视频| 亚洲精品一区在线观看| 东方欧美亚洲色图在线| 国产精品美女久久久久av爽李琼| av男人天堂一区| 亚洲激情图片小说视频| 欧美一区日韩一区| 韩国成人福利片在线播放| 国产精品久久久久一区| 在线亚洲人成电影网站色www| 亚洲午夜精品在线| 日韩欧美国产一区二区三区| 国产乱一区二区| 亚洲欧美色一区| 欧美久久久久久久久| 国产综合一区二区| 亚洲特级片在线| 在线成人高清不卡| 国产精品一色哟哟哟| 亚洲男人的天堂一区二区| 欧美精品一二三区| 国产精品一区三区| 亚洲国产另类精品专区| 亚洲香肠在线观看| 精品久久久久久久人人人人传媒 | 国产亚洲欧美一区在线观看| av电影在线观看一区| 亚洲18色成人| 国产亚洲成aⅴ人片在线观看 | 国产精品热久久久久夜色精品三区 | 欧美三级电影在线观看| 国产一区二区视频在线| 亚洲精品成人少妇| 久久综合色婷婷| 91福利视频久久久久| 国产美女视频91| 亚洲综合小说图片| 久久久久久久久久久电影| 欧美日韩国产区一| 国产精品18久久久久久vr| 亚洲图片欧美色图| 国产精品女同一区二区三区| 7777精品伊人久久久大香线蕉| 高清不卡一区二区| 奇米色777欧美一区二区| 自拍偷拍国产精品| 久久夜色精品国产欧美乱极品| 一本到不卡精品视频在线观看| 国产一区不卡在线| 日韩精品免费专区| 亚洲丝袜精品丝袜在线| 久久精品免费在线观看| 欧美人妇做爰xxxⅹ性高电影| 成人的网站免费观看| 激情成人午夜视频| 午夜国产精品一区| 一区二区在线免费| 国产精品美女一区二区| 午夜视频一区二区三区| 中文字幕一区二区在线播放| 久久亚洲精品小早川怜子| 7777精品伊人久久久大香线蕉完整版 | 成人手机电影网| 美国三级日本三级久久99| 亚洲成人动漫在线免费观看| 国产精品福利电影一区二区三区四区| 欧美一级理论性理论a| 91天堂素人约啪| 丁香另类激情小说| 激情综合色综合久久综合| 亚洲国产成人高清精品| 亚洲综合在线电影| 亚洲色图欧美激情| 国产精品网站在线观看| 国产午夜精品理论片a级大结局 | 欧美aⅴ一区二区三区视频| 洋洋成人永久网站入口| 综合久久一区二区三区| 国产精品久久久久天堂| 国产精品―色哟哟| 中文字幕av在线一区二区三区| 精品国产一区二区亚洲人成毛片| 99视频在线精品| 99久久伊人网影院| 成人h动漫精品一区二| 成人av免费在线| 成人午夜av电影| 成人深夜视频在线观看| 国产黄人亚洲片| 国产成人精品免费| 国产91在线看| 成熟亚洲日本毛茸茸凸凹| 福利视频网站一区二区三区| 国产成人自拍网| 成人激情视频网站| 不卡一区二区三区四区| 久久人人超碰精品| 国产日产欧美一区| 国产精品毛片a∨一区二区三区| 国产精品素人一区二区| 欧美国产综合一区二区| 国产精品久久久久久一区二区三区| 国产精品对白交换视频| 亚洲日本在线天堂| 亚洲成人激情综合网| 日韩电影免费一区|