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

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

?? z79.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Saving Configuration Information    </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="Gnome Application Basics" href=     "cha-startup.html">    <link rel="PREVIOUS" title="Argument Parsing with popt" href=     "z77.html">    <link rel="NEXT" title="Session Management" href=     "sec-sessionmanagement.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="z77.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-sessionmanagement.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="Z79">Saving Configuration Information</a>      </h1>      <p>        <tt class="APPLICATION">libgnome</tt> comes with the        ability to store simple key-value pairs in plain text        configuration files. Convenience routines are provided for        numeric and boolean types which transparently convert to        and from a text representation of each type. The standard        location for Gnome configuration files is <tt class=         "FILENAME">~/.gnome</tt>, and the library will use that        location by default. However, the library can be used with        any file. There are also variants of each function which        save to <tt class="FILENAME">~/.gnome_private</tt>, a        directory with user permissions only. The basic functions        to store and retrieve data are listed in <a href=         "z79.html#STARTUP-GNOMECONFIGGET">Figure 4 in the section        called <i>Reading Stored Config Data</i></a> and <a href=         "z79.html#STARTUP-GNOMECONFIGSET">Figure 5 in the section        called <i>Storing Data In Configuration Files</i></a>. This        module of <tt class="APPLICATION">libgnome</tt> is often        referred to as <tt class="APPLICATION">gnome-config</tt>.        Don't confuse this usage of "gnome-config" with the <tt        class="APPLICATION">gnome-config</tt> script that reports        the compile and link flags for Gnome programs.      </p>      <p>        The <tt class="APPLICATION">gnome-config</tt> functions        work with a <i class="FIRSTTERM">path</i>. A path has three        components:      </p>      <ul>        <li>          <p>            The <i class="FIRSTTERM">filename</i> to use,            underneath the <tt class="FILENAME">~/.gnome</tt> or            <tt class="FILENAME">~/.gnome_private</tt> directory.            By convention this is the name of your application.            &#13;          </p>        </li>        <li>          <p>            A <i class="FIRSTTERM">section</i>---a logical            subcategory of related configuration information.&#13;          </p>        </li>        <li>          <p>            A <i class="FIRSTTERM">key</i>---the key half of a            key-value pair. The key is actually associated with a            piece of configuration data.&#13;          </p>        </li>      </ul>      <p>        A path is passed to Gnome as a string, with the form <tt        class="APPLICATION">"/filename/section/key"</tt>. If you        want to use a filename which is <i class="EMPHASIS">not</i>        in the standard Gnome directories, you can bracket the        entire path with the <tt class="APPLICATION">'='</tt>        character and it will be interpreted as absolute. You can        even use this as a simple datafile format (it is used for        the <tt class="APPLICATION">.desktop</tt> files programs        install in order to appear on the Gnome panel menu).        However, XML (perhaps using the <tt class="APPLICATION">        gnome-xml</tt> package) is almost certainly a better choice        for that. XML may also be a better choice for storing some        kinds of configuration information; the primary advantage        of the <tt class="APPLICATION">libgnome</tt> configuration        library is its simplicity.      </p>      <p>        <tt class="APPLICATION">gnome-config</tt> has a long        history; it was first written for the WINE Windows emulator        project, then used in the GNU Midnight Commander file        manager, and finally migrated into the Gnome libraries. The        plan is to replace <tt class="APPLICATION">        gnome-config</tt> with something more powerful in the next        version of Gnome; we want to support per-host        configuration, backends such as LDAP, and other features.        However, the <tt class="APPLICATION">gnome-config</tt> API        will almost certainly be supported even if the underlying        engine changes dramatically.      </p>      <div class="SECT2">        <h2 class="SECT2">          <a name="Z80">Reading Stored Config Data</a>        </h2>        <p>          Retrieving data from files is simple. You simply call a          function to retrieve the value for a given key. The          value-retrieving functions (shown in <a href=           "z79.html#STARTUP-GNOMECONFIGGET">Figure 4</a>) accept a          path as their argument. For example, you might ask          whether the user wants to see a dialog box:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gboolean show_dialog;  show_dialog =     gnome_config_get_bool("/myapp/General/dialog"); &#13;</pre>            </td>          </tr>        </table>        <p>          If the config file doesn't exist yet, or there is no key          matching the path you provide, these functions return 0,          <span class="STRUCTNAME">FALSE</span>, or <span class=           "STRUCTNAME">NULL</span>. The functions that return a          string return allocated memory; you should <tt class=           "FUNCTION">g_free()</tt> the returned string. The string          vector functions return an allocated vector full of          allocated strings (<tt class="FUNCTION">g_strfreev()</tt>          is the easiest way to free this vector).        </p>        <p>          You can specify a default value to be returned if the key          does not exist; to do so, append an <span class=           "STRUCTNAME">"=value"</span> to the path. For example:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gboolean show_dialog;  show_dialog =     gnome_config_get_bool("/myapp/General/dialog=true"); &#13;</pre>            </td>          </tr>        </table>        <p>          Each function has a <span class="STRUCTNAME">          with_default</span> variant; these tell you whether the          return value was taken from a config file or from the          default you specified. For example:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gboolean show_dialog;  gboolean used_default;  show_dialog =     gnome_config_get_bool_with_default("/myapp/General/dialog=true",                                        &amp;used_default);   if (used_default)    printf("Default value used for show_dialog\n");&#13;</pre>            </td>          </tr>        </table>        <p>          <tt class="FUNCTION">gnome_config_push_prefix()</tt> and          <tt class="FUNCTION">gnome_config_pop_prefix()</tt> (in          <a href="z79.html#STARTUP-GNOMECONFIGMISC">Figure 7 in          the section called <i>Other Config File          Operations</i></a>) can be used to avoid specifying the          entire path each time. For example:        </p>        <table border="0" bgcolor="#E0E0E0" width="100%">          <tr>            <td><pre class="PROGRAMLISTING">&#13;  gboolean show_dialog;  gnome_config_push_prefix("/myapp/General/");  show_dialog =     gnome_config_get_bool("dialog=true");   gnome_config_pop_prefix();&#13;</pre>            </td>          </tr>        </table>        <p>          These functions also work when saving values.        </p>        <p>          The configuration functions with <span class=          "STRUCTNAME">private</span> in their name use a <tt          class="FILENAME">.gnome_private</tt> directory with          restricted permissions, as discussed above. The <span          class="STRUCTNAME">translated_string</span> functions          qualify the provided key with the name of the current          locale; these are used when Gnome reads <tt class=           "APPLICATION">.desktop</tt> files (see <a href=           "z72.html#SEC-.DESKTOP">the section called <i><tt class=           "APPLICATION">.desktop</tt> Entries</i> in the chapter          called <i>Creating Your Source Tree</i></a>) and are          probably not useful to applications.        </p>        <div class="FIGURE">          <a name="STARTUP-GNOMECONFIGGET"></a>          <div class="FUNCSYNOPSIS">            <a name="STARTUP-GNOMECONFIGGET.SYNOPSIS"></a>            <table border="0" bgcolor="#E0E0E0" width="100%">              <tr>                <td><pre class="FUNCSYNOPSISINFO">#include &lt;libgnome/gnome-config.h&gt;</pre>                </td>              </tr>            </table>            <p>              <code><code class="FUNCDEF">gchar* <tt class=              "FUNCTION">gnome_config_get_string</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gchar* <tt class=              "FUNCTION">              gnome_config_get_translated_string</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gint <tt class=              "FUNCTION">gnome_config_get_int</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gdouble <tt class=               "FUNCTION">gnome_config_get_float</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gboolean <tt class=               "FUNCTION">gnome_config_get_bool</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">void <tt class=              "FUNCTION">gnome_config_get_vector</tt></code>(const              gchar* <tt class="PARAMETER"><i>path</i></tt>, gint*              <tt class="PARAMETER"><i>argcp</i></tt>, gchar*** <tt              class="PARAMETER"><i>argvp</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gchar* <tt class=              "FUNCTION">              gnome_config_private_get_string</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gchar* <tt class=              "FUNCTION">              gnome_config_private_get_translated_string</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gint <tt class=              "FUNCTION">              gnome_config_private_get_int</tt></code>(const gchar*              <tt class="PARAMETER"><i>path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gdouble <tt class=               "FUNCTION">              gnome_config_private_get_float</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gboolean <tt class=               "FUNCTION">              gnome_config_private_get_bool</tt></code>(const              gchar* <tt class="PARAMETER"><i>              path</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">void <tt class=              "FUNCTION">              gnome_config_private_get_vector</tt></code>(const              gchar* <tt class="PARAMETER"><i>path</i></tt>, gint*              <tt class="PARAMETER"><i>argcp</i></tt>, gchar*** <tt              class="PARAMETER"><i>argvp</i></tt>);</code>            </p>            <p>              <code><code class="FUNCDEF">gchar* <tt class=              "FUNCTION">              gnome_config_get_string_with_default</tt></code>(const              gchar* <tt class="PARAMETER"><i>path</i></tt>,              gboolean* <tt class="PARAMETER"><i>              was_default</i></tt>);</code>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲老妇xxxxxx| 亚洲国产精品av| 国产二区国产一区在线观看| 亚洲视频你懂的| 久久久久久麻豆| 在线成人午夜影院| 日本精品视频一区二区三区| 99久久精品免费| 岛国av在线一区| 高清不卡在线观看av| 国产精品12区| 国产一区二区三区免费看 | 日本一区二区三区四区| 欧美一区二区三区公司| 欧美另类z0zxhd电影| 精品视频123区在线观看| 色婷婷亚洲精品| 色偷偷久久一区二区三区| 97精品视频在线观看自产线路二| 成人av网址在线| 成人一级黄色片| 国产成人免费视频| 99国产精品国产精品毛片| 91网页版在线| 在线看国产日韩| 欧美一二三区在线| 久久影音资源网| 欧美韩国一区二区| 亚洲人妖av一区二区| 亚洲综合丝袜美腿| 久久国产精品一区二区| 国产精品123| 一本高清dvd不卡在线观看| 欧美三级视频在线播放| 日韩一区二区影院| 国产日韩欧美a| 亚洲精品视频免费看| 午夜久久久影院| 精品在线亚洲视频| 成人午夜电影网站| 欧美性受xxxx黑人xyx性爽| 欧美一区二区三区色| 久久精品夜色噜噜亚洲aⅴ| 国产精品欧美一区二区三区| 亚洲综合自拍偷拍| 另类小说欧美激情| 97久久超碰精品国产| 3751色影院一区二区三区| 久久久久久久av麻豆果冻| 亚洲精品老司机| 老司机午夜精品| 91啦中文在线观看| 精品国产3级a| 亚洲精品国产成人久久av盗摄| 婷婷中文字幕一区三区| 国产91丝袜在线18| 制服视频三区第一页精品| 久久五月婷婷丁香社区| 国产精品伦一区二区三级视频| 亚洲国产一区二区视频| 国产传媒一区在线| 欧美亚洲动漫精品| 国产精品毛片无遮挡高清| 亚洲成人av一区二区| 成人做爰69片免费看网站| 911精品国产一区二区在线| 中文字幕一区二区三区四区不卡 | www.亚洲人| 日本高清不卡一区| 国产欧美日韩在线观看| 蜜臀av性久久久久蜜臀aⅴ流畅| 不卡高清视频专区| 欧美本精品男人aⅴ天堂| 亚洲亚洲精品在线观看| 成人高清免费观看| 亚洲精品一区二区三区影院| 亚洲综合色噜噜狠狠| youjizz久久| 国产亚洲精品中文字幕| 日本不卡中文字幕| 99久免费精品视频在线观看 | 国产精品午夜久久| 日本vs亚洲vs韩国一区三区 | 91精品国产丝袜白色高跟鞋| 亚洲麻豆国产自偷在线| 成人一区二区三区视频| 国产亚洲短视频| 国产在线视视频有精品| 日韩欧美一区二区视频| 日韩精品亚洲专区| 欧美日韩不卡视频| 亚州成人在线电影| 欧美另类高清zo欧美| 午夜精品成人在线视频| 精品视频在线免费| 日韩成人精品在线| 日韩午夜在线观看| 美女视频网站久久| 精品毛片乱码1区2区3区| 麻豆高清免费国产一区| 日韩欧美不卡在线观看视频| 久久精品国产澳门| 久久久久国产一区二区三区四区| 国产激情一区二区三区| 欧美国产国产综合| 成人性视频免费网站| 国产精品视频九色porn| 99国产精品久久久| 亚洲午夜电影在线| 欧美肥妇毛茸茸| 免费成人在线观看视频| 337p日本欧洲亚洲大胆精品| 国产精品一级二级三级| 国产精品妹子av| 色婷婷综合久久久中文一区二区| 亚洲第一狼人社区| 日韩欧美不卡在线观看视频| 国产suv精品一区二区6| 最好看的中文字幕久久| 欧美日韩久久一区| 国产自产视频一区二区三区| 日韩理论片网站| 69久久夜色精品国产69蝌蚪网| 久久福利视频一区二区| 国产精品久久久久久妇女6080| 欧美亚洲综合在线| 蜜臀av国产精品久久久久| 久久久久久久久久久久久久久99| 99精品桃花视频在线观看| 午夜日韩在线电影| 日韩免费一区二区三区在线播放| 成人国产精品视频| 午夜久久电影网| 国产日产欧美精品一区二区三区| 色欧美片视频在线观看在线视频| 免费视频最近日韩| 亚洲欧美激情视频在线观看一区二区三区| 欧美老肥妇做.爰bbww视频| 国产一区二区毛片| 亚洲成人tv网| 亚洲欧洲一区二区在线播放| 91精品国产黑色紧身裤美女| 成人免费视频一区| 久久精品国产色蜜蜜麻豆| 综合分类小说区另类春色亚洲小说欧美| 欧美日韩精品一区二区三区| 国产成人精品亚洲午夜麻豆| 天堂资源在线中文精品| 国产精品另类一区| 精品日产卡一卡二卡麻豆| 91黄色免费网站| 成人少妇影院yyyy| 精品一区二区三区久久| 性久久久久久久久久久久| 亚洲三级免费观看| 国产精品人人做人人爽人人添| 91精品午夜视频| 欧美色成人综合| 色综合亚洲欧洲| 国产不卡视频在线播放| 麻豆中文一区二区| 肉色丝袜一区二区| 悠悠色在线精品| 国产精品蜜臀av| 中文字幕av一区二区三区| 精品国产sm最大网站免费看| 欧美一区二区三区思思人| 欧美日韩精品一二三区| 欧美三级日韩三级| 色菇凉天天综合网| av网站免费线看精品| 成人一区二区三区在线观看| 国产精品一卡二| 国产麻豆日韩欧美久久| 久久精品理论片| 日本免费在线视频不卡一不卡二| 五月天激情综合| 首页亚洲欧美制服丝腿| 午夜精品一区二区三区三上悠亚| 亚洲午夜三级在线| 亚洲国产成人精品视频| 五月激情综合网| 日本一道高清亚洲日美韩| 日本亚洲免费观看| 国产乱淫av一区二区三区| 国产福利91精品| 91视频观看免费| 欧美日韩激情在线| 欧美一区二区三区四区在线观看 | 波多野结衣中文字幕一区二区三区| 国产成人aaa| www.亚洲精品| 在线亚洲+欧美+日本专区| 在线看日韩精品电影| 欧美日韩不卡一区二区| 精品国产乱码91久久久久久网站| 久久亚洲精品小早川怜子| 中文字幕第一页久久| 一区二区免费看| 美女视频免费一区|