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

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

?? sec-gnomeuiinfo.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 2 頁
字號(hào):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Menus and Toolbars with GnomeUIInfo    </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="The Main Window: GnomeApp" href=     "cha-main.html">    <link rel="PREVIOUS" title="The Main Window: GnomeApp" href=     "cha-main.html">    <link rel="NEXT" title="Adding a Status Bar" href="z91.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="cha-main.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="z91.html"><font color="#0000ff" size="2"><b>            Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="SECT1">      <h1 class="SECT1">        <a name="SEC-GNOMEUIINFO">Menus and Toolbars with <span        class="STRUCTNAME">GnomeUIInfo</span></a>      </h1>      <p>        It's tedious to create large menus, especially if they have        features such as icons and keyboard accelerators. Gnome        provides a simple solution. You assemble a <span class=         "STRUCTNAME">GnomeUIInfo</span> struct as a template for        each menu item, simply listing its characteristics: name,        icon, accelerator, and so on. The Gnome libraries can        automatically create menus from arrays of <span class=         "STRUCTNAME">GnomeUIInfo</span> templates. The same method        works with toolbars.      </p>      <p>        Here's the declaration of <span class="STRUCTNAME">struct        GnomeUIInfo</span>.      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;typedef struct {  GnomeUIInfoType type;  gchar* label;  gchar* hint;    gpointer moreinfo;      gpointer user_data;  gpointer unused_data;  GnomeUIPixmapType pixmap_type;  gpointer pixmap_info;  guint accelerator_key;  GdkModifierType ac_mods;  GtkWidget* widget;} GnomeUIInfo;&#13;</pre>          </td>        </tr>      </table>      <p>        A static initializer is the most convenient way to fill in        the struct (but of course you can create it dynamically if        you prefer). Gnome's routines accept an array of <span        class="STRUCTNAME">GnomeUIInfo</span>, and macros are        provided to simplify and standardize the most common static        initializers. Here's a typical example, a File menu:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;static GnomeUIInfo file_menu[] = {  GNOMEUIINFO_MENU_NEW_ITEM(N_("_New Window"),                            N_("Create a new text viewer window"),                             new_app_cb, NULL),  GNOMEUIINFO_MENU_OPEN_ITEM(open_cb,NULL),  GNOMEUIINFO_MENU_SAVE_AS_ITEM(save_as_cb,NULL),  GNOMEUIINFO_SEPARATOR,  GNOMEUIINFO_MENU_CLOSE_ITEM(close_cb,NULL),  GNOMEUIINFO_MENU_EXIT_ITEM(exit_cb,NULL),  GNOMEUIINFO_END};&#13;</pre>          </td>        </tr>      </table>      <p>        There isn't always a nice macro for the menu item you want,        so sometimes you must manually specify each element of the        struct:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;{   GNOME_APP_UI_ITEM, N_("_Select All"),  N_("Select all cells in the spreadsheet"),   select_all_cb, NULL,  NULL, 0, 0, 'a', GDK_CONTROL_MASK }&#13;</pre>          </td>        </tr>      </table>      <p>        By now you're probably wondering what the struct members        mean. Simple enough. Here's a breakdown:      </p>      <ul>        <li>          <p>            <span class="STRUCTNAME">type</span> is a type marker            from the <span class="STRUCTNAME">            GnomeUIInfoType</span> enumeration. See <a href=             "sec-gnomeuiinfo.html#TAB-UIINFOTYPES">Table            1</a>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">label</span> is the text of            the menu or toolbar button. It should be marked for            internationalization with the <span class="STRUCTNAME">            N_()</span> macro.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">hint</span> is a long            description of the item's function. For toolbar            buttons, it will appear in a tooltip; for menus, it can            be made to appear in the statusbar.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">moreinfo</span> depends on the            <span class="STRUCTNAME">type</span> of the item. See            <a href="sec-gnomeuiinfo.html#TAB-UIINFOTYPES">Table            1</a>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">user_data</span> will be            passed to your callback function, if this item type has            a callback.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">unused_data</span> should be            set to <span class="STRUCTNAME">NULL</span>, and is not            used yet. It may be used in future versions of            Gnome.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">pixmap_type</span> is a value            from the <span class="STRUCTNAME">            GnomeUIPixmapType</span> enumeration; its purpose is to            specify the type of the next member, <span class=             "STRUCTNAME">pixmap_info</span>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">pixmap_info</span> can be raw            pixmap data, a filename, or the name of a Gnome stock            pixmap.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">accelerator_key</span> is the            key to be used as an accelerator for this item . You            can use a character such as <span class="STRUCTNAME">            'a'</span>, or a value from <tt class="FILENAME">            gdk/gdkkeysyms.h</tt>. &#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">ac_mods</span> is a modifier            mask to be used with the accelerator.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">widget</span> should be <span            class="STRUCTNAME">NULL</span>; Gnome fills it in when            it creates the menu item or toolbar button. You can            then retrieve it, if you need to manipulate the widget            in some way.&#13;          </p>        </li>      </ul>      <p>        You might also be wondering why the menu item names contain        an underscore. The underscore is used to mark the key        shortcut for the menu item; translators can move it around        as needed to make it intuitive in their language. Gnome        will parse the menu item name to obtain the accelerator,        then remove the underscore.      </p>      <p>        <a href="sec-gnomeuiinfo.html#TAB-UIINFOTYPES">Table 1</a>        summarizes the possible values for the <span class=         "STRUCTNAME">type</span> field of a <span class=        "STRUCTNAME">GnomeUIInfo</span> struct. See <tt class=         "FILENAME">libgnomeui/gnome-app-helper.h</tt> for more        details. There are actually a few more possible values, but        the others are used internally by the library. The values        in <a href="sec-gnomeuiinfo.html#TAB-UIINFOTYPES">Table        1</a> should be sufficient for application code.      </p>      <div class="TABLE">        <a name="TAB-UIINFOTYPES"></a>        <p>          <b>Table 1. <span class="STRUCTNAME">          GnomeUIInfoType</span> Values</b>        </p>        <table border="1" bgcolor="#E0E0E0" cellspacing="0"        cellpadding="4" class="CALSTABLE">          <tr>            <th align="LEFT" valign="TOP">              <span class="STRUCTNAME">GnomeUIInfoType</span>            </th>            <th align="LEFT" valign="TOP">              Description            </th>            <th align="LEFT" valign="TOP">              <span class="STRUCTNAME">moreinfo</span> Field            </th>          </tr>          <tr>            <td align="LEFT" valign="TOP">              <span class="STRUCTNAME">              GNOME_APP_UI_ENDOFINFO</span>            </td>            <td align="LEFT" valign="TOP">              Terminates a table of <span class="STRUCTNAME">              GnomeUIInfo</span>            </td>            <td align="LEFT" valign="TOP">              None            </td>          </tr>          <tr>            <td align="LEFT" valign="TOP">              <span class="STRUCTNAME">GNOME_APP_UI_ITEM</span>            </td>            <td align="LEFT" valign="TOP">              Normal item (or radio item inside radio group)            </td>            <td align="LEFT" valign="TOP">              Callback function            </td>          </tr>          <tr>            <td align="LEFT" valign="TOP">              <span class="STRUCTNAME">              GNOME_APP_UI_TOGGLEITEM</span>            </td>            <td align="LEFT" valign="TOP">              Toggle/check item            </td>            <td align="LEFT" valign="TOP">              Callback function            </td>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
九色|91porny| 久久精品一二三| 亚洲国产成人av网| 欧美在线视频日韩| 亚洲男人的天堂在线观看| 视频在线观看一区二区三区| 国产精品99久久久久久久vr| 粉嫩一区二区三区性色av| 欧美三级在线播放| 午夜视频一区二区| 日韩av电影免费观看高清完整版| 91.成人天堂一区| 欧美一级在线免费| 一本色道综合亚洲| 91色porny在线视频| 成人性色生活片| 国产制服丝袜一区| 国产美女一区二区三区| 国产精品色婷婷久久58| 国产成人免费网站| 亚洲欧美色综合| 91精品国产手机| 色天使久久综合网天天| 强制捆绑调教一区二区| 日韩一区二区不卡| 成人国产视频在线观看| 亚洲久草在线视频| 日韩一区二区在线免费观看| 亚洲国产sm捆绑调教视频| 成人午夜私人影院| 久久久久九九视频| 亚洲观看高清完整版在线观看| 欧美日韩激情在线| 国产一区二区三区国产| 亚洲人成网站色在线观看| 欧美日韩免费高清一区色橹橹 | 国产精品99久| 亚洲视频一区二区在线| 欧美一区二区免费| 色悠悠久久综合| 国内精品伊人久久久久av影院| 亚洲女爱视频在线| 精品国产亚洲在线| 欧美日韩国产影片| www.av亚洲| 成人中文字幕电影| 久久97超碰色| 五月天丁香久久| 亚洲一二三四在线观看| 亚洲欧美综合色| 中文字幕av一区二区三区免费看| 欧美日韩精品欧美日韩精品| 成人高清在线视频| av电影在线观看不卡| 精品一区二区三区在线观看| 性做久久久久久免费观看欧美| 国产欧美日韩一区二区三区在线观看| 91麻豆精品国产无毒不卡在线观看 | 国内精品久久久久影院一蜜桃| 亚洲老司机在线| 亚洲美女淫视频| 一区二区三区欧美亚洲| 最新日韩av在线| 亚洲欧美另类图片小说| 一区二区三区资源| 一区二区三区中文字幕精品精品| 中文字幕一区不卡| 亚洲高清视频在线| 日本欧美一区二区| 国产成人亚洲精品狼色在线| av一区二区不卡| 色妞www精品视频| 欧美一级二级三级蜜桃| 精品免费99久久| 国产精品第一页第二页第三页| 国产精品国产三级国产aⅴ原创 | 久久久久久久久久久99999| 国产精品理伦片| 亚洲一区视频在线| 免费成人在线观看视频| 国产一区二区美女诱惑| jlzzjlzz国产精品久久| 欧美精品tushy高清| 日韩欧美在线1卡| 中文字幕亚洲区| 免费在线看成人av| 色狠狠色狠狠综合| 国产女人18水真多18精品一级做| 亚洲精品国产第一综合99久久| 精品一区二区影视| 欧美揉bbbbb揉bbbbb| 久久久久久久电影| 午夜欧美视频在线观看| 成人午夜视频福利| 久久网站热最新地址| 亚洲国产欧美日韩另类综合 | 欧美图区在线视频| 18成人在线观看| 国产精品一级片| 日韩欧美你懂的| 日本伊人精品一区二区三区观看方式| 成人黄色小视频在线观看| 日韩欧美黄色影院| 午夜精品成人在线视频| 99久久精品免费精品国产| 久久久高清一区二区三区| 奇米色777欧美一区二区| 欧美美女喷水视频| 亚洲第一会所有码转帖| 69久久夜色精品国产69蝌蚪网| 亚洲视频一区二区在线| 色综合天天综合网国产成人综合天 | zzijzzij亚洲日本少妇熟睡| 精品欧美黑人一区二区三区| 奇米一区二区三区av| 欧美日韩国产美| 青青青伊人色综合久久| 久久嫩草精品久久久精品一| 狠狠色2019综合网| 国产精品乱码久久久久久| 成人精品高清在线| 一区二区三区在线免费播放| 欧美色综合影院| 国产成人亚洲综合a∨婷婷图片| 国产夜色精品一区二区av| 国产成人在线观看免费网站| 亚洲图片激情小说| 91精品福利在线一区二区三区 | 91蜜桃在线免费视频| 亚洲国产综合色| 欧美一区二区精品在线| 国产在线乱码一区二区三区| 国产精品美女久久久久久久网站| 欧美午夜精品久久久久久超碰| 精品一区二区影视| 一区二区不卡在线播放| 欧美精品一区二区久久久| 99热国产精品| 国产在线国偷精品免费看| 亚洲免费高清视频在线| 久久综合九色综合97婷婷| 91蜜桃免费观看视频| 精彩视频一区二区三区| 欧美日韩国产大片| 日韩伦理免费电影| 欧美精品v国产精品v日韩精品 | 久久久久免费观看| 91麻豆精品国产91| 97久久超碰国产精品| 国产一区二区在线影院| 午夜a成v人精品| 亚洲尤物在线视频观看| 国产精品毛片高清在线完整版| 日韩一本二本av| 欧美一区二区三区视频免费播放| 色素色在线综合| 日本道精品一区二区三区| 粉嫩av一区二区三区在线播放 | 丁香桃色午夜亚洲一区二区三区| 日本成人在线视频网站| 午夜精品福利一区二区蜜股av| 亚洲免费在线观看| 亚洲国产va精品久久久不卡综合| 自拍偷拍国产亚洲| 亚洲成人三级小说| 蜜桃视频第一区免费观看| 国产一区二区毛片| 91精品福利在线| 日韩一区二区电影| 夜夜亚洲天天久久| 丁香六月久久综合狠狠色| 欧美精品黑人性xxxx| 亚洲自拍偷拍麻豆| 91在线视频18| 国产精品久久久久一区| 国内成人精品2018免费看| 欧美精品丝袜中出| 偷拍一区二区三区| 欧美视频一区二区三区四区| 亚洲欧洲制服丝袜| 成人午夜视频在线| 国产精品国产a级| 国产aⅴ综合色| 国产欧美日韩在线看| 国产成人精品一区二区三区四区| 日韩视频一区二区三区在线播放 | 成人黄色777网| 久久综合av免费| 国产精品久久久久久久蜜臀| 亚洲影院理伦片| 欧美综合亚洲图片综合区| 国产精品入口麻豆九色| 蜜臀av一区二区三区| 欧洲日韩一区二区三区| 久久精品一区八戒影视| 日日摸夜夜添夜夜添国产精品| 成人自拍视频在线| 国产日韩精品一区二区三区| 美女被吸乳得到大胸91| 9191精品国产综合久久久久久|