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

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

?? question_index.sgml

?? linux下電話本所依賴的一些圖形庫
?? SGML
?? 第 1 頁 / 共 3 頁
字號:
<link linkend="gtk-widget-modify-bg">gtk_widget_modify_bg()</link>,<link linkend="gtk-widget-modify-base">gtk_widget_modify_base()</link>,and <linklinkend="gtk-widget-modify-text">gtk_widget_modify_text()</link>.  See<link linkend="gtk-Resource-Files">GTK+ resource files</link> for morediscussion. You can also change widget color by installing a resourcefile and parsing it with <linklinkend="gtk-rc-add-default-file">gtk_rc_add_default_file()</link>.The advantage of a resource file is that users can then override thecolor you've chosen.</para><para>To change the background color for widgets such as <linklinkend="GtkLabel">GtkLabel</link> that have no background, place themin a <link linkend="GtkEventBox">GtkEventBox</link> and set thebackground of the event box.  </para></answer></qandaentry><qandaentry><question><para>How do I change the font of a widget?</para></question><answer><para>This has several possible answers, depending on what exactly you want toachieve. One option is <linklinkend="gtk-widget-modify-font">gtk_widget_modify_font()</link>. Note that this function can be used to change only the font size, as in the following example:<programlisting> PangoFontDesc *font_desc = pango_font_description_new (); pango_font_description_set_size (font_desc, 40); gtk_widget_modify_font (widget, font); pango_font_description_free (font_desc);</programlisting></para><para>If you want to make the text of a label larger, you can use <linklinkend="gtk-label-set-markup">gtk_label_set_markup()</link>:<programlisting>gtk_label_set_markup (label, "&lt;big&gt;big text&lt;/big&gt;");</programlisting>This is preferred for many apps because it's a relative size to the user's chosen font size. See <link linkend="g-markup-escape-text">g_markup_escape_text()</link> if you are constructing such strings on the fly.</para><para>You can also change the font of a widget by putting<programlisting> gtk-font-name = "Sans 30"</programlisting>in a resource file and parsing it with <linklinkend="gtk-rc-add-default-file">gtk_rc_add_default_file()</link>.The advantage of a resource file is that users can then override thefont you've chosen. See<link linkend="gtk-Resource-Files">GTK+ resource files</link> for morediscussion. </para></answer></qandaentry><qandaentry><question><para>How do I disable/ghost/desensitize a widget?</para></question><answer><para> In GTK+ a disabled widget is termed "insensitive." See<linklinkend="gtk-widget-set-sensitive">gtk_widget_set_sensitive()</link>.</para></answer></qandaentry></qandadiv><qandadiv><title><link linkend="GtkTextView">GtkTextView</link></title><qandaentry><question><para>How do I get the contents of the entire text widget as a string?</para></question><answer><para>See <link          linkend="gtk-text-buffer-get-bounds">gtk_text_buffer_get_bounds()</link>          and <link          linkend="gtk-text-buffer-get-text">gtk_text_buffer_get_text()</link>or <link          linkend="gtk-text-iter-get-text">gtk_text_iter_get_text()</link>.</para><para><informalexample><programlisting>  GtkTextIter start, end;  GtkTextBuffer *buffer;  char *text;  buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (text_view));  gtk_text_buffer_get_bounds (buffer, &amp;start, &amp;end);  text = gtk_text_iter_get_text (&amp;start, &amp;end);  /* use text */  g_free (text);</programlisting></informalexample></para></answer></qandaentry><qandaentry><question><para>How do I make a text widget display its complete contents in a specific font?</para></question><answer><para>If you use <link	      linkend="gtk-text-buffer-insert-with-tags">gtk_text_buffer_insert_with_tags()</link> with appropriate tags to select the font, the inserted text will have the desired appearance, but text typed in by the user before or after the tagged block will appear in the default style. </para><para>To ensure that all text has the desired appearance, use <link		linkend="gtk-widget-modify-font">gtk_widget_modify_font()</link> to change the default font for the widget.</para></answer></qandaentry><qandaentry><question><para>How do I make a text view scroll to the end of the buffer automatically ?</para></question><answer><para>The "insert" <link linkend="GtkTextMark">mark</link> marks the insertion pointwhere <link linkend="gtk-text-buffer-insert">gtk_text_buffer_insert()</link>inserts new text into the buffer. The text is inserted <emphasis>before</emphasis> the "insert" mark, so that it generally stays at the end of the buffer. If it gets explicitly moved to some other position, e.g. when the user selects some text, use <link linkend="gtk-text-buffer-move-mark">gtk_text_buffer_move_mark()</link>to set it to the desired location before inserting more text. The "insert" mark of a buffer can be obtained with <linklinkend="gtk-text-buffer-get-insert">gtk_text_buffer_get_insert()</link>.</para><para> To ensure that the end of the buffer remains visible, use<link		linkend="gtk-text-view-scroll-to-mark">gtk_text_view_scroll_to_mark()</link> to scroll to the "insert" mark after inserting new text.</para></answer></qandaentry></qandadiv><qandadiv><title><link linkend="GtkTreeView">GtkTreeView</link></title><qandaentry><question><para>How do I associate some data with a row in the tree?</para></question><answer><para>Remember that the <link linkend="GtkTreeModel">GtkTreeModel</link>columns don't necessarily have to be displayed. So you can putnon-user-visible data in your model just like any other data, andretrieve it with <linklinkend="gtk-tree-model-get">gtk_tree_model_get()</link>.See the <link linkend="TreeWidget">tree widget overview</link>.</para></answer></qandaentry><qandaentry><question><para>What's the <link linkend="GtkTreeView">GtkTreeView</link> equivalent of <link linkend="gtk-clist-find-row-from-data">gtk_clist_find_row_from_data()</link>?</para></question><answer><para>As there is no separate data column in the <link linkend="GtkTreeModel">GtkTreeModel</link>, there's nobuilt in function to find the iter from data.  You can write a customsearching function to walk the tree and find the data, or use<link linkend="gtk-tree-model-foreach">gtk_tree_model_foreach()</link>.</para></answer></qandaentry><qandaentry><question><para>How do I put an image and some text in the same column?</para></question><answer><para>You can pack more than one <linklinkend="GtkCellRenderer">GtkCellRenderer</link> into a single<link linkend="GtkTreeViewColumn">GtkTreeViewColumn</link> using<link      linkend="gtk-tree-view-column-pack-start">gtk_tree_view_column_pack_start()</link> or <link linkend="gtk-tree-view-column-pack-end">gtk_tree_view_column_pack_end()</link>. So pack both a <linklinkend="GtkCellRendererPixbuf">GtkCellRendererPixbuf</link>and a <linklinkend="GtkCellRendererText">GtkCellRendererText</link> into thecolumn.</para></answer></qandaentry><qandaentry><question><para>I can set data easily on my <link		linkend="GtkTreeStore">GtkTreeStore</link>/<link		linkend="GtkListStore">GtkListStore</link> models using  <linklinkend="gtk-tree-model-get">gtk_list_store_set()</link> and <linklinkend="gtk-tree-model-get">gtk_tree_store_set()</link>, but can't read	      it back?</para></question><answer><para>Both the <link		linkend="GtkTreeStore">GtkTreeStore</link> and the <link		linkend="GtkListStore">GtkListStore</link> implement the	      <link linkend="GtkTreeModel">GtkTreeModel</link>		interface.  Consequentially, the can use any function		this interface implements.  The easiest way to read a		set of data back is to use <linklinkend="gtk-tree-model-get">gtk_tree_model_get()</link>.</para></answer></qandaentry><qandaentry><question><para>How do I change the way that numbers are formatted by <link linkend="GtkTreeView">GtkTreeView</link>?</para></question><answer><para>Use <link linkend="gtk-tree-view-insert-column-with-data-func">gtk_tree_view_insert_column_with_data_func()</link> or <link linkend="gtk-tree-view-column-set-cell-data-func">gtk_tree_view_column_set_cell_data_func()</link>and do the conversion from number to string yourself (with, say, <link linkend="g-strdup-printf">g_strdup_printf()</link>).</para><para>The following example demonstrates this:<informalexample><programlisting>enum {  DOUBLE_COLUMN,  N_COLUMNS};GtkListStore *mycolumns;GtkTreeView *treeview;void my_cell_double_to_text (GtkTreeViewColumn *tree_column,	                GtkCellRenderer   *cell,                         GtkTreeModel      *tree_model,	                GtkTreeIter       *iter,                         gpointer           data){  GtkCellRendererText *cell_text = (GtkCellRendererText *)cell;  gdouble d;  gchar *text;  /* Get the double value from the model. */  gtk_tree_model_get (tree_model, iter, (gint)data, &amp;d, -1);  /* Now we can format the value ourselves. */  text = g_strdup_printf ("&percnt;.2f", d);  g_object_set (cell, "text", text, NULL);  g_free (text);}void set_up_new_columns (GtkTreeView *myview){  GtkCellRendererText *renderer;  GtkTreeViewColumn *column;  GtkListStore *mycolumns;  /* Create the data model and associate it with the given TreeView */  mycolumns = gtk_list_store_new (N_COLUMNS, G_TYPE_DOUBLE);  gtk_tree_view_set_model (myview, GTK_TREE_MODEL (mycolumns));  /* Create a GtkCellRendererText */  renderer = gtk_cell_renderer_text_new ();  /* Create a new column that has a title ("Example column"),   * uses the above created renderer that will render the double   * value into text from the associated model's rows.    */  column = gtk_tree_view_column_new ();  gtk_tree_view_column_set_title  (column, "Example column");  renderer = gtk_cell_renderer_text_new ();  gtk_tree_view_column_pack_start (column, renderer, TRUE);  /* Append the new column after the GtkTreeView's previous columns. */  gtk_tree_view_append_column (GTK_TREE_VIEW (myview), column);  /* Since we created the column by hand, we can set it up for our   * needs, e.g. set its minimum and maximum width, etc.   */  /* Set up a custom function that will be called when the column content   * is rendered. We use the func_data pointer as an index into our   * model. This is convenient when using multi column lists.    */  gtk_tree_view_column_set_cell_data_func (column, renderer,	                                   my_cell_double_to_text,                                            (gpointer)DOUBLE_COLUMN, NULL);}</programlisting></informalexample></para></answer></qandaentry></qandadiv></qandaset></refsect1></refentry>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜亚洲精品羞羞网站| 精品国产一区a| 97aⅴ精品视频一二三区| 国产在线精品一区二区三区不卡| 日韩国产精品大片| 日韩av成人高清| 蜜桃一区二区三区在线| 天天综合天天综合色| 免费成人av在线播放| 免费成人av在线播放| 韩国精品主播一区二区在线观看| 另类中文字幕网| 国产激情偷乱视频一区二区三区| 国产成人精品www牛牛影视| 国产成人精品综合在线观看| 国产成人av资源| 色94色欧美sute亚洲线路一久| 欧美色精品在线视频| 日韩片之四级片| 中文字幕欧美三区| 亚洲精品一卡二卡| 裸体在线国模精品偷拍| 成人黄页毛片网站| 欧美色图在线观看| 久久久噜噜噜久噜久久综合| 1024精品合集| 蜜乳av一区二区三区| 国产黄色成人av| 在线视频欧美精品| 精品国产99国产精品| 亚洲欧美日本在线| 久久不见久久见免费视频7| 波多野结衣在线一区| 欧美日韩国产综合久久| 国产日韩精品一区二区三区在线| 亚洲欧美视频一区| 男女男精品视频网| 93久久精品日日躁夜夜躁欧美| 欧美精品vⅰdeose4hd| 国产精品日韩精品欧美在线| 视频在线观看一区| 波多野结衣的一区二区三区| 欧美一级日韩不卡播放免费| 中文字幕日本不卡| 久久精品99久久久| 欧美色综合影院| 国产日韩欧美在线一区| 蜜臀久久久久久久| 在线观看视频一区| 国产精品免费aⅴ片在线观看| 三级在线观看一区二区 | 5858s免费视频成人| 国产精品色哟哟| 国产一区二区三区在线观看免费视频 | 国产欧美一区视频| 免费在线看一区| 欧美日韩一区二区三区在线| 国产精品久久久久久久午夜片| 麻豆国产欧美日韩综合精品二区| 欧美婷婷六月丁香综合色| 国产精品麻豆久久久| 国产一区二区三区视频在线播放| 欧美日韩综合不卡| 亚洲一区二区免费视频| 色88888久久久久久影院野外| 欧美国产禁国产网站cc| 国内精品自线一区二区三区视频| 欧美丰满美乳xxx高潮www| 亚洲成在线观看| 欧美四级电影在线观看| 一片黄亚洲嫩模| 欧美视频日韩视频| 午夜精品久久久久久久蜜桃app| 91麻豆国产福利在线观看| 国产精品久久久久久久午夜片| 国产91色综合久久免费分享| 亚洲国产精品成人综合| 成人97人人超碰人人99| 亚洲欧洲av一区二区三区久久| 成人中文字幕在线| 日韩一区在线看| 色哟哟日韩精品| 亚洲成人在线免费| 91精品国产综合久久精品性色| 日韩精品国产欧美| 日韩视频免费观看高清完整版| 老司机午夜精品| 26uuu国产在线精品一区二区| 国产一区二区成人久久免费影院| 久久中文娱乐网| 成人av资源站| 亚洲一区在线电影| 欧美大度的电影原声| 国产成人a级片| 一区二区三区**美女毛片| 欧美老肥妇做.爰bbww视频| 男女男精品视频| 国产精品你懂的| 欧美三级视频在线播放| 激情综合色播五月| 中文字幕佐山爱一区二区免费| 欧美日韩免费观看一区三区| 久久精品国产亚洲高清剧情介绍| 国产午夜亚洲精品羞羞网站| 一本大道综合伊人精品热热| 美女视频网站久久| 国产精品人成在线观看免费| 欧美精品日韩精品| 国产69精品久久99不卡| 午夜电影一区二区| 亚洲国产精品黑人久久久| 欧美日韩一区二区在线观看| 国产成人av自拍| 日韩综合在线视频| 亚洲天堂网中文字| 欧美大片在线观看一区二区| 色婷婷久久久亚洲一区二区三区| 精品一区二区三区视频| 一区二区三区产品免费精品久久75| 欧美成人aa大片| 欧美最猛黑人xxxxx猛交| 国产高清在线观看免费不卡| 亚洲1区2区3区视频| 日本一区二区综合亚洲| 欧美一级久久久| 91丝袜高跟美女视频| 国产精品夜夜爽| 日本一道高清亚洲日美韩| 亚洲激情一二三区| 亚洲国产精品黑人久久久| 欧美大胆一级视频| 欧美二区乱c少妇| 99精品国产视频| 高清beeg欧美| 国产乱一区二区| 久久国产麻豆精品| 蜜臀av一区二区| 亚洲chinese男男1069| 亚洲激情校园春色| 亚洲丝袜制服诱惑| 中文字幕欧美区| 国产丝袜在线精品| 久久精品网站免费观看| 久久久亚洲精品一区二区三区| 欧美一区二区视频网站| 91精品国产一区二区人妖| 欧美日韩一区二区三区视频| 欧洲av一区二区嗯嗯嗯啊| 在线一区二区三区做爰视频网站| 91视频在线看| 在线观看亚洲专区| 欧美日韩一区二区三区不卡| 在线一区二区三区| 欧美性三三影院| 91精品久久久久久蜜臀| 欧美一区二区三区四区在线观看 | 亚洲免费三区一区二区| 日韩理论片一区二区| 亚洲婷婷综合色高清在线| 亚洲另类在线视频| 亚洲一区二区三区中文字幕在线| 亚洲一区二区三区中文字幕| 日日夜夜免费精品视频| 青青草国产精品97视觉盛宴| 久久66热偷产精品| 国产成人免费视频一区| 99久久伊人久久99| 欧美视频在线不卡| 91精品国产91久久久久久一区二区| 91精品国产黑色紧身裤美女| 久久伊人蜜桃av一区二区| 国产精品视频看| 亚洲一级二级在线| 久久国产人妖系列| aaa国产一区| 欧美日韩一区久久| 久久久不卡影院| 一区二区三区日韩欧美精品| 青青草成人在线观看| 岛国精品一区二区| 欧美色涩在线第一页| 欧美成人精品福利| 亚洲视频免费看| 免费xxxx性欧美18vr| av不卡免费在线观看| 91.麻豆视频| 国产精品乱人伦| 天堂蜜桃91精品| 成人h精品动漫一区二区三区| 精品视频资源站| 欧美精彩视频一区二区三区| 亚洲最大成人网4388xx| 激情文学综合网| 欧美午夜精品一区二区三区| 久久影院电视剧免费观看| 亚洲一区二区欧美激情| 成人丝袜视频网| 精品国产1区2区3区| 一区二区三区美女视频| 国产呦精品一区二区三区网站|