亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
男人操女人的视频在线观看欧美| aaa欧美日韩| 亚洲一区二区三区免费视频| 亚洲国产岛国毛片在线| 久久精品欧美一区二区三区不卡 | 日本视频在线一区| 免费精品视频在线| 国产在线观看一区二区| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲一线二线三线久久久| 首页综合国产亚洲丝袜| 天天色 色综合| 美女视频免费一区| 国产91色综合久久免费分享| 成人动漫视频在线| 在线免费不卡视频| 91精品国产福利| 久久久久国产精品免费免费搜索| 亚洲国产精品精华液ab| 亚洲黄一区二区三区| 日产欧产美韩系列久久99| 日韩中文字幕91| 激情文学综合网| 91色在线porny| 91精品国产麻豆| 国产精品日日摸夜夜摸av| 一区二区三区中文字幕精品精品| 午夜久久久久久久久| 国产福利一区在线观看| 色天使色偷偷av一区二区 | 裸体健美xxxx欧美裸体表演| 精品影院一区二区久久久| 不卡av在线免费观看| av午夜一区麻豆| 日韩欧美在线观看一区二区三区| 亚洲国产一区二区a毛片| 免费av成人在线| 国产激情视频一区二区三区欧美| 精彩视频一区二区三区| 日本道在线观看一区二区| 欧美mv日韩mv| 亚洲一区二区三区三| 成人综合在线视频| 成人国产亚洲欧美成人综合网 | 欧美在线三级电影| 亚洲精品一区二区三区蜜桃下载| 亚洲免费av高清| 国产精品 欧美精品| 欧美伦理视频网站| 亚洲国产经典视频| 国内精品国产成人国产三级粉色| 欧美在线视频不卡| 综合久久久久久久| 国产激情一区二区三区| 在线成人小视频| 亚洲女同一区二区| 不卡视频一二三| 国产亚洲精品久| 久久国产尿小便嘘嘘尿| 91精品国产入口| 国产99精品在线观看| 欧美成人激情免费网| 亚洲国产精品一区二区久久恐怖片| 成人爱爱电影网址| 国产日产欧产精品推荐色| 麻豆成人久久精品二区三区小说| 欧美午夜在线一二页| 亚洲女人小视频在线观看| 成人丝袜18视频在线观看| 国产女人18水真多18精品一级做| 国精产品一区一区三区mba视频 | 中文字幕的久久| 极品少妇一区二区三区精品视频 | 国产精品一二三| 精品88久久久久88久久久| 久久国产精品72免费观看| 日韩三级免费观看| 久久se这里有精品| 日韩欧美你懂的| 久久66热偷产精品| 久久影视一区二区| 丁香六月综合激情| **欧美大码日韩| 91高清在线观看| 午夜一区二区三区视频| 欧美一级夜夜爽| 国模少妇一区二区三区| 久久精品一区二区| a4yy欧美一区二区三区| 日韩一区在线看| 欧美日韩高清一区二区三区| 蜜桃在线一区二区三区| 久久人人97超碰com| 成人不卡免费av| 亚洲成人av一区二区三区| 欧美精品乱人伦久久久久久| 麻豆精品视频在线| 久久嫩草精品久久久精品一| av一区二区久久| 婷婷中文字幕综合| 久久久国产精品麻豆| 色噜噜狠狠色综合中国| 亚洲香蕉伊在人在线观| 欧美高清视频一二三区| 国产精品66部| 亚洲美女视频在线| 欧美va亚洲va国产综合| 91网站最新网址| 日本伊人精品一区二区三区观看方式| 欧美精品一区二区久久久| 国产精品夜夜嗨| 亚洲成人免费在线观看| 国产农村妇女毛片精品久久麻豆| 欧洲av一区二区嗯嗯嗯啊| 极品美女销魂一区二区三区| 亚洲精品成a人| 久久精品水蜜桃av综合天堂| 欧美日韩免费一区二区三区视频| 国产综合久久久久久鬼色| 亚洲午夜一区二区三区| 国产精品午夜免费| 欧美不卡一区二区| 欧美三级一区二区| eeuss鲁片一区二区三区在线看| 石原莉奈在线亚洲三区| 亚洲欧美一区二区在线观看| 久久一区二区三区四区| 欧美日韩一卡二卡| 在线影视一区二区三区| 国产精品夜夜嗨| 精品一区二区三区久久久| 亚洲精品国产无套在线观| 国产精品欧美一区二区三区| 久久影视一区二区| 日韩免费电影网站| 91精品麻豆日日躁夜夜躁| 在线观看亚洲精品视频| 91蜜桃在线免费视频| 99久久精品免费看| 风间由美性色一区二区三区| 国产在线精品视频| 裸体一区二区三区| 久久99久久精品| 热久久国产精品| 亚洲国产你懂的| 亚洲成av人片在线| 亚洲6080在线| 日韩和欧美的一区| 五月开心婷婷久久| 日韩黄色小视频| 蜜桃视频在线一区| 极品美女销魂一区二区三区| 天天av天天翘天天综合网| 国产精品少妇自拍| 亚洲摸摸操操av| 亚洲精品午夜久久久| 久久久久久久久久久黄色| 日韩精品一区国产麻豆| 91精品国产入口| 精品久久久久一区二区国产| 久久久三级国产网站| 中文字幕久久午夜不卡| 日韩码欧中文字| 亚洲黄色免费电影| 三级欧美韩日大片在线看| 三级在线观看一区二区| 狠狠色狠狠色合久久伊人| 精品一区二区av| 国内久久婷婷综合| 成人国产电影网| 91亚洲精品一区二区乱码| 欧美三日本三级三级在线播放| 91麻豆精品国产91久久久久久久久| 日韩午夜小视频| 欧美一级专区免费大片| 久久精品视频在线免费观看| 1000部国产精品成人观看| 亚洲成人免费在线观看| 婷婷六月综合亚洲| 北条麻妃国产九九精品视频| 日本精品视频一区二区| 色av综合在线| 在线不卡一区二区| 亚洲自拍偷拍欧美| 在线免费观看一区| 亚洲精品成a人| 99久久久久免费精品国产| 风间由美一区二区三区在线观看| 97久久超碰精品国产| 欧美日韩国产高清一区| 久久久久88色偷偷免费 | 久久99国产精品尤物| av欧美精品.com| 欧美一卡二卡三卡四卡| 亚洲欧洲国产日韩| 国产一区二区三区在线观看免费视频| 色视频欧美一区二区三区| 精品日韩在线观看| 亚洲国产精品欧美一二99| 国产成人综合网站|