gdk3 3.1.0-x86-mingw32 → 3.1.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +1 -2
- data/lib/gdk3/rectangle.rb +5 -3
- data/test/run-test.rb +2 -1
- data/vendor/local/bin/gtk-builder-tool.exe +0 -0
- data/vendor/local/bin/gtk-encode-symbolic-svg.exe +0 -0
- data/vendor/local/bin/gtk-launch.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
- data/vendor/local/bin/gtk-query-settings.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/gtk3-demo-application.exe +0 -0
- data/vendor/local/bin/gtk3-demo.exe +0 -0
- data/vendor/local/bin/gtk3-icon-browser.exe +0 -0
- data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
- data/vendor/local/bin/libepoxy-0.dll +0 -0
- data/vendor/local/bin/libgailutil-3-0.dll +0 -0
- data/vendor/local/bin/libgdk-3-0.dll +0 -0
- data/vendor/local/bin/libgtk-3-0.dll +0 -0
- data/vendor/local/bin/libgtkreftestprivate-0.dll +0 -0
- data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +1 -1
- data/vendor/local/include/gtk-3.0/gdk/gdkwindow.h +2 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkcombobox.h +1 -1
- data/vendor/local/include/gtk-3.0/gtk/gtkflowbox.h +5 -0
- data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +3 -3
- data/vendor/local/lib/girepository-1.0/Gdk-3.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -1
- data/vendor/local/lib/libepoxy.dll.a +0 -0
- data/vendor/local/lib/libgailutil-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.la +1 -1
- data/vendor/local/lib/libgtk-3.dll.a +0 -0
- data/vendor/local/lib/libgtk-3.la +1 -1
- data/vendor/local/lib/libgtkreftestprivate.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Gdk-3.0.gir +12 -3
- data/vendor/local/share/gir-1.0/Gtk-3.0.gir +51 -18
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +8 -0
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +6 -0
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Testing.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +2 -0
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3.devhelp2 +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +1 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +2 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +13 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFlowBox.html +54 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +40 -0
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRevealer.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +8 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/LayoutContainers.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/TextWidget.html +27 -16
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-22.html +4 -0
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +4 -0
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-full.html +8 -0
- data/vendor/local/share/gtk-doc/html/gtk3/ch26s02.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-builder-tool.html +17 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +2 -0
- data/vendor/local/share/gtk-doc/html/gtk3/gtkobjects.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +2 -2
- data/vendor/local/share/icons/Adwaita/icon-theme.cache +0 -0
- data/vendor/local/share/icons/hicolor/icon-theme.cache +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/man/man1/broadwayd.1 +1 -1
- data/vendor/local/share/man/man1/gtk-builder-tool.1 +12 -2
- data/vendor/local/share/man/man1/gtk-encode-symbolic-svg.1 +1 -1
- data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
- data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
- data/vendor/local/share/man/man1/gtk-query-settings.1 +1 -1
- data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-demo-application.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-demo.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-icon-browser.1 +1 -1
- data/vendor/local/share/man/man1/gtk3-widget-factory.1 +1 -1
- metadata +14 -11
@@ -15,7 +15,7 @@
|
|
15
15
|
<div>
|
16
16
|
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GAIL Reference Manual</p></th></tr></table></div>
|
17
17
|
<div><p class="releaseinfo">
|
18
|
-
Version 3.22.
|
18
|
+
Version 3.22.7
|
19
19
|
|
20
20
|
The latest version of this documentation can be found on-line at
|
21
21
|
<a class="ulink" href="http://developer.gnome.org/gail-libgail-util/unstable/" target="_top">http://developer.gnome.org/gail-libgail-util/unstable/</a>.
|
@@ -406,6 +406,14 @@
|
|
406
406
|
</dt>
|
407
407
|
<dd></dd>
|
408
408
|
<dt>
|
409
|
+
<a class="link" href="gdk3-Windows.html#gdk-window-process-all-updates" title="gdk_window_process_all_updates ()">gdk_window_process_all_updates</a>, function in <a class="link" href="gdk3-Windows.html" title="Windows">Windows</a>
|
410
|
+
</dt>
|
411
|
+
<dd></dd>
|
412
|
+
<dt>
|
413
|
+
<a class="link" href="gdk3-Windows.html#gdk-window-process-updates" title="gdk_window_process_updates ()">gdk_window_process_updates</a>, function in <a class="link" href="gdk3-Windows.html" title="Windows">Windows</a>
|
414
|
+
</dt>
|
415
|
+
<dd></dd>
|
416
|
+
<dt>
|
409
417
|
<a class="link" href="gdk3-Windows.html#gdk-window-set-background" title="gdk_window_set_background ()">gdk_window_set_background</a>, function in <a class="link" href="gdk3-Windows.html" title="Windows">Windows</a>
|
410
418
|
</dt>
|
411
419
|
<dd></dd>
|
@@ -289,6 +289,12 @@ cairo_surface_t <span class="gtkdoc opt">*</span>surface <span class="gtkdoc opt
|
|
289
289
|
</div>
|
290
290
|
|
291
291
|
<p></p>
|
292
|
+
<p>Note that unlike <code class="function">cairo_surface_create_similar_image()</code>, the new
|
293
|
+
surface's device scale is set to <em class="parameter"><code>scale</code></em>
|
294
|
+
, or to the scale factor of
|
295
|
+
<em class="parameter"><code>window</code></em>
|
296
|
+
if <em class="parameter"><code>scale</code></em>
|
297
|
+
is 0.</p>
|
292
298
|
<div class="refsect3">
|
293
299
|
<a name="gdk-window-create-similar-image-surface.parameters"></a><h4>Parameters</h4>
|
294
300
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -208,7 +208,7 @@ be warped and <em class="parameter"><code>window</code></em>
|
|
208
208
|
origin will be used as mouse pointer
|
209
209
|
location for the event.</p>
|
210
210
|
<p>Also, <a class="link" href="gdk3-Testing.html#gdk-test-simulate-key" title="gdk_test_simulate_key ()"><code class="function">gdk_test_simulate_key()</code></a> is a fairly low level function,
|
211
|
-
for most testing purposes, <
|
211
|
+
for most testing purposes, <code class="function">gtk_test_widget_send_key()</code> is the
|
212
212
|
right function to call which will generate a key press event
|
213
213
|
followed by its accompanying key release event.</p>
|
214
214
|
<div class="refsect3">
|
@@ -4388,6 +4388,7 @@ gdk_window_thaw_updates (<em class="parameter"><code><a class="link" href="gdk3-
|
|
4388
4388
|
<a name="gdk-window-process-all-updates"></a><h3>gdk_window_process_all_updates ()</h3>
|
4389
4389
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
4390
4390
|
gdk_window_process_all_updates (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
4391
|
+
<div class="warning"><p><code class="literal">gdk_window_process_all_updates</code> has been deprecated since version 3.22 and should not be used in newly-written code.</p></div>
|
4391
4392
|
<p>Calls <a class="link" href="gdk3-Windows.html#gdk-window-process-updates" title="gdk_window_process_updates ()"><code class="function">gdk_window_process_updates()</code></a> for all windows (see <a class="link" href="gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>)
|
4392
4393
|
in the application.</p>
|
4393
4394
|
</div>
|
@@ -4397,6 +4398,7 @@ in the application.</p>
|
|
4397
4398
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
4398
4399
|
gdk_window_process_updates (<em class="parameter"><code><a class="link" href="gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
|
4399
4400
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> update_children</code></em>);</pre>
|
4401
|
+
<div class="warning"><p><code class="literal">gdk_window_process_updates</code> has been deprecated since version 3.22 and should not be used in newly-written code.</p></div>
|
4400
4402
|
<p>Sends one or more expose events to <em class="parameter"><code>window</code></em>
|
4401
4403
|
. The areas in each
|
4402
4404
|
expose event will cover the entire update area for the window (see
|
@@ -428,8 +428,8 @@
|
|
428
428
|
<keyword type="function" name="gdk_window_get_update_area ()" link="gdk3-Windows.html#gdk-window-get-update-area"/>
|
429
429
|
<keyword type="function" name="gdk_window_freeze_updates ()" link="gdk3-Windows.html#gdk-window-freeze-updates"/>
|
430
430
|
<keyword type="function" name="gdk_window_thaw_updates ()" link="gdk3-Windows.html#gdk-window-thaw-updates"/>
|
431
|
-
<keyword type="function" name="gdk_window_process_all_updates ()" link="gdk3-Windows.html#gdk-window-process-all-updates"/>
|
432
|
-
<keyword type="function" name="gdk_window_process_updates ()" link="gdk3-Windows.html#gdk-window-process-updates"/>
|
431
|
+
<keyword type="function" name="gdk_window_process_all_updates ()" link="gdk3-Windows.html#gdk-window-process-all-updates" deprecated="3.22"/>
|
432
|
+
<keyword type="function" name="gdk_window_process_updates ()" link="gdk3-Windows.html#gdk-window-process-updates" deprecated="3.22"/>
|
433
433
|
<keyword type="function" name="gdk_window_set_debug_updates ()" link="gdk3-Windows.html#gdk-window-set-debug-updates" deprecated="3.22"/>
|
434
434
|
<keyword type="function" name="gdk_window_enable_synchronized_configure ()" link="gdk3-Windows.html#gdk-window-enable-synchronized-configure" deprecated="3.8: this function is no longer needed" since="2.6"/>
|
435
435
|
<keyword type="function" name="gdk_window_configure_finished ()" link="gdk3-Windows.html#gdk-window-configure-finished" deprecated="3.8: this function is no longer needed" since="2.6"/>
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<div>
|
16
16
|
<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">GDK 3 Reference Manual</p></th></tr></table></div>
|
17
17
|
<div><p class="releaseinfo">
|
18
|
-
This document is for the GDK 3 library, version 3.22.
|
18
|
+
This document is for the GDK 3 library, version 3.22.7
|
19
19
|
|
20
20
|
The latest versions can be found online at
|
21
21
|
<a class="ulink" href="http://developer.gnome.org/gdk3/" target="_top">http://developer.gnome.org/gdk3/</a>.
|
@@ -465,8 +465,7 @@ displays these as clickable links. By default, it calls <a class="link" href="gt
|
|
465
465
|
when a user clicks one. The behaviour can be overridden with the
|
466
466
|
<a class="link" href="GtkAboutDialog.html#GtkAboutDialog-activate-link" title="The “activate-link” signal"><span class="type">“activate-link”</span></a> signal.</p>
|
467
467
|
<p>To specify a person with an email address, use a string like
|
468
|
-
"Edgar Allan Poe <edgar
|
469
|
-
>". To specify a website with a title,
|
468
|
+
"Edgar Allan Poe <edgar@poe.com>". To specify a website with a title,
|
470
469
|
use a string like "GTK+ team http://www.gtk.org".</p>
|
471
470
|
<p>To make constructing a GtkAboutDialog as convenient as possible, you can
|
472
471
|
use the function <a class="link" href="GtkAboutDialog.html#gtk-show-about-dialog" title="gtk_show_about_dialog ()"><code class="function">gtk_show_about_dialog()</code></a> which constructs and shows a dialog
|
@@ -1975,7 +1975,7 @@ the allocated width of the combo box.</p>
|
|
1975
1975
|
/* signals */
|
1976
1976
|
void (* changed) (GtkComboBox *combo_box);
|
1977
1977
|
gchar *(* format_entry_text) (GtkComboBox *combo_box,
|
1978
|
-
|
1978
|
+
const gchar *path);
|
1979
1979
|
};
|
1980
1980
|
</pre>
|
1981
1981
|
<div class="refsect3">
|
@@ -2055,7 +2055,6 @@ the model is empty.</p>
|
|
2055
2055
|
<pre class="programlisting"> “cell-area” <a class="link" href="GtkCellArea.html" title="GtkCellArea"><span class="type">GtkCellArea</span></a> *</pre>
|
2056
2056
|
<p>The <a class="link" href="GtkCellArea.html" title="GtkCellArea"><span class="type">GtkCellArea</span></a> used to layout cell renderers for this combo box.</p>
|
2057
2057
|
<p>If no area is specified when creating the combo box with <a class="link" href="GtkComboBox.html#gtk-combo-box-new-with-area" title="gtk_combo_box_new_with_area ()"><code class="function">gtk_combo_box_new_with_area()</code></a>
|
2058
|
-
|
2059
2058
|
a horizontally oriented <a class="link" href="GtkCellAreaBox.html" title="GtkCellAreaBox"><span class="type">GtkCellAreaBox</span></a> will be used.</p>
|
2060
2059
|
<p>Flags: Read / Write / Construct Only</p>
|
2061
2060
|
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
@@ -2291,7 +2290,6 @@ entry is displayed.</p>
|
|
2291
2290
|
<em class="parameter"><code>path</code></em>
|
2292
2291
|
. That string will then be used to set the text in the combo box's entry.
|
2293
2292
|
The default signal handler uses the text from the GtkComboBox::entry-text-column
|
2294
|
-
|
2295
2293
|
model column.</p>
|
2296
2294
|
<p>Here's an example signal handler which fetches data from the model and
|
2297
2295
|
displays it in the entry.</p>
|
@@ -2316,8 +2314,7 @@ displays it in the entry.</p>
|
|
2316
2314
|
15
|
2317
2315
|
16
|
2318
2316
|
17
|
2319
|
-
18
|
2320
|
-
19</pre></td>
|
2317
|
+
18</pre></td>
|
2321
2318
|
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static</span> gchar<span class="gtkdoc opt">*</span>
|
2322
2319
|
<span class="function">format_entry_text_callback</span> <span class="gtkdoc opt">(</span>GtkComboBox <span class="gtkdoc opt">*</span>combo<span class="gtkdoc opt">,</span>
|
2323
2320
|
<span class="gtkdoc kwb">const</span> gchar <span class="gtkdoc opt">*</span>path<span class="gtkdoc opt">,</span>
|
@@ -2331,7 +2328,6 @@ displays it in the entry.</p>
|
|
2331
2328
|
|
2332
2329
|
<span class="function"><a href="GtkTreeModel.html#gtk-tree-model-get-iter-from-string">gtk_tree_model_get_iter_from_string</a></span> <span class="gtkdoc opt">(</span>model<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">,</span> path<span class="gtkdoc opt">);</span>
|
2333
2330
|
<span class="function"><a href="GtkTreeModel.html#gtk-tree-model-get">gtk_tree_model_get</a></span> <span class="gtkdoc opt">(</span>model<span class="gtkdoc opt">, &</span>iter<span class="gtkdoc opt">,</span>
|
2334
|
-
|
2335
2331
|
THE_DOUBLE_VALUE_COLUMN<span class="gtkdoc opt">, &</span>value<span class="gtkdoc opt">,</span>
|
2336
2332
|
<span class="gtkdoc opt">-</span><span class="number">1</span><span class="gtkdoc opt">);</span>
|
2337
2333
|
|
@@ -2216,10 +2216,9 @@ indices in the layout to byte indices in the entry contents.</p>
|
|
2216
2216
|
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
2217
2217
|
gtk_entry_layout_index_to_text_index (<em class="parameter"><code><a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
|
2218
2218
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> layout_index</code></em>);</pre>
|
2219
|
-
<p>Converts from a position in the entry
|
2220
|
-
|
2221
|
-
|
2222
|
-
with text retrieved via <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#pango-layout-get-text"><code class="function">pango_layout_get_text()</code></a>).</p>
|
2219
|
+
<p>Converts from a position in the entry’s <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> (returned by
|
2220
|
+
<a class="link" href="GtkEntry.html#gtk-entry-get-layout" title="gtk_entry_get_layout ()"><code class="function">gtk_entry_get_layout()</code></a>) to a position in the entry contents
|
2221
|
+
(returned by <a class="link" href="GtkEntry.html#gtk-entry-get-text" title="gtk_entry_get_text ()"><code class="function">gtk_entry_get_text()</code></a>).</p>
|
2223
2222
|
<div class="refsect3">
|
2224
2223
|
<a name="gtk-entry-layout-index-to-text-index.parameters"></a><h4>Parameters</h4>
|
2225
2224
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -2253,9 +2252,10 @@ with text retrieved via <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pa
|
|
2253
2252
|
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
|
2254
2253
|
gtk_entry_text_index_to_layout_index (<em class="parameter"><code><a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> *entry</code></em>,
|
2255
2254
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> text_index</code></em>);</pre>
|
2256
|
-
<p>Converts from a position in the entry
|
2257
|
-
<a class="link" href="GtkEntry.html#gtk-entry-get-
|
2258
|
-
(returned by <a class="link" href="GtkEntry.html#gtk-entry-get-
|
2255
|
+
<p>Converts from a position in the entry contents (returned
|
2256
|
+
by <a class="link" href="GtkEntry.html#gtk-entry-get-text" title="gtk_entry_get_text ()"><code class="function">gtk_entry_get_text()</code></a>) to a position in the
|
2257
|
+
entry’s <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a> (returned by <a class="link" href="GtkEntry.html#gtk-entry-get-layout" title="gtk_entry_get_layout ()"><code class="function">gtk_entry_get_layout()</code></a>,
|
2258
|
+
with text retrieved via <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#pango-layout-get-text"><code class="function">pango_layout_get_text()</code></a>).</p>
|
2259
2259
|
<div class="refsect3">
|
2260
2260
|
<a name="gtk-entry-text-index-to-layout-index.parameters"></a><h4>Parameters</h4>
|
2261
2261
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -4225,6 +4225,10 @@ ignore unknown values.</p>
|
|
4225
4225
|
<pre class="programlisting"> “attributes” <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttrList-struct"><span class="type">PangoAttrList</span></a> *</pre>
|
4226
4226
|
<p>A list of Pango attributes to apply to the text of the entry.</p>
|
4227
4227
|
<p>This is mainly useful to change the size or weight of the text.</p>
|
4228
|
+
<p>The <a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>'s <em class="parameter"><code>start_index</code></em>
|
4229
|
+
and <em class="parameter"><code>end_index</code></em>
|
4230
|
+
must refer to the
|
4231
|
+
<a class="link" href="GtkEntryBuffer.html" title="GtkEntryBuffer"><span class="type">GtkEntryBuffer</span></a> text, i.e. without the preedit string.</p>
|
4228
4232
|
<p>Flags: Read / Write</p>
|
4229
4233
|
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
4230
4234
|
</div>
|
@@ -5206,7 +5210,7 @@ Ctrl-v and Shift-Insert.</p>
|
|
5206
5210
|
<a name="GtkEntry-populate-popup"></a><h3>The <code class="literal">“populate-popup”</code> signal</h3>
|
5207
5211
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
5208
5212
|
user_function (<a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> *entry,
|
5209
|
-
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *
|
5213
|
+
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *widget,
|
5210
5214
|
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
5211
5215
|
<p>The ::populate-popup signal gets emitted before showing the
|
5212
5216
|
context menu of the entry.</p>
|
@@ -5236,7 +5240,7 @@ type of <em class="parameter"><code>widget</code></em>
|
|
5236
5240
|
<td class="parameter_annotations"> </td>
|
5237
5241
|
</tr>
|
5238
5242
|
<tr>
|
5239
|
-
<td class="parameter_name"><p>
|
5243
|
+
<td class="parameter_name"><p>widget</p></td>
|
5240
5244
|
<td class="parameter_description"><p>the container that is being populated</p></td>
|
5241
5245
|
<td class="parameter_annotations"> </td>
|
5242
5246
|
</tr>
|
@@ -69,6 +69,14 @@
|
|
69
69
|
</tr>
|
70
70
|
<tr>
|
71
71
|
<td class="function_type">
|
72
|
+
<a class="link" href="GtkFlowBox.html#GtkFlowBoxChild"><span class="returnvalue">GtkFlowBoxChild</span></a> *
|
73
|
+
</td>
|
74
|
+
<td class="function_name">
|
75
|
+
<a class="link" href="GtkFlowBox.html#gtk-flow-box-get-child-at-pos" title="gtk_flow_box_get_child_at_pos ()">gtk_flow_box_get_child_at_pos</a> <span class="c_punctuation">()</span>
|
76
|
+
</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td class="function_type">
|
72
80
|
<span class="returnvalue">void</span>
|
73
81
|
</td>
|
74
82
|
<td class="function_name">
|
@@ -646,6 +654,52 @@ with the given index exists. </p>
|
|
646
654
|
</div>
|
647
655
|
<hr>
|
648
656
|
<div class="refsect2">
|
657
|
+
<a name="gtk-flow-box-get-child-at-pos"></a><h3>gtk_flow_box_get_child_at_pos ()</h3>
|
658
|
+
<pre class="programlisting"><a class="link" href="GtkFlowBox.html#GtkFlowBoxChild"><span class="returnvalue">GtkFlowBoxChild</span></a> *
|
659
|
+
gtk_flow_box_get_child_at_pos (<em class="parameter"><code><a class="link" href="GtkFlowBox.html" title="GtkFlowBox"><span class="type">GtkFlowBox</span></a> *box</code></em>,
|
660
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
|
661
|
+
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
|
662
|
+
<p>Gets the child in the (<em class="parameter"><code>x</code></em>
|
663
|
+
, <em class="parameter"><code>y</code></em>
|
664
|
+
) position.</p>
|
665
|
+
<div class="refsect3">
|
666
|
+
<a name="gtk-flow-box-get-child-at-pos.parameters"></a><h4>Parameters</h4>
|
667
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
668
|
+
<colgroup>
|
669
|
+
<col width="150px" class="parameters_name">
|
670
|
+
<col class="parameters_description">
|
671
|
+
<col width="200px" class="parameters_annotations">
|
672
|
+
</colgroup>
|
673
|
+
<tbody>
|
674
|
+
<tr>
|
675
|
+
<td class="parameter_name"><p>box</p></td>
|
676
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkFlowBox.html" title="GtkFlowBox"><span class="type">GtkFlowBox</span></a></p></td>
|
677
|
+
<td class="parameter_annotations"> </td>
|
678
|
+
</tr>
|
679
|
+
<tr>
|
680
|
+
<td class="parameter_name"><p>x</p></td>
|
681
|
+
<td class="parameter_description"><p>the x coordinate of the child</p></td>
|
682
|
+
<td class="parameter_annotations"> </td>
|
683
|
+
</tr>
|
684
|
+
<tr>
|
685
|
+
<td class="parameter_name"><p>y</p></td>
|
686
|
+
<td class="parameter_description"><p>the y coordinate of the child</p></td>
|
687
|
+
<td class="parameter_annotations"> </td>
|
688
|
+
</tr>
|
689
|
+
</tbody>
|
690
|
+
</table></div>
|
691
|
+
</div>
|
692
|
+
<div class="refsect3">
|
693
|
+
<a name="gtk-flow-box-get-child-at-pos.returns"></a><h4>Returns</h4>
|
694
|
+
<p> the child widget, which will
|
695
|
+
always be a <a class="link" href="GtkFlowBox.html#GtkFlowBoxChild"><span class="type">GtkFlowBoxChild</span></a> or <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in case no child widget
|
696
|
+
exists for the given x and y coordinates. </p>
|
697
|
+
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></p>
|
698
|
+
</div>
|
699
|
+
<p class="since">Since: 3.22.6</p>
|
700
|
+
</div>
|
701
|
+
<hr>
|
702
|
+
<div class="refsect2">
|
649
703
|
<a name="gtk-flow-box-set-hadjustment"></a><h3>gtk_flow_box_set_hadjustment ()</h3>
|
650
704
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
651
705
|
gtk_flow_box_set_hadjustment (<em class="parameter"><code><a class="link" href="GtkFlowBox.html" title="GtkFlowBox"><span class="type">GtkFlowBox</span></a> *box</code></em>,
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<div class="refnamediv"><table width="100%"><tr>
|
32
32
|
<td valign="top">
|
33
33
|
<h2><span class="refentrytitle"><a name="GtkGrid.top_of_page"></a>GtkGrid</span></h2>
|
34
|
-
<p>GtkGrid — Pack widgets in
|
34
|
+
<p>GtkGrid — Pack widgets in rows and columns</p>
|
35
35
|
</td>
|
36
36
|
<td class="gallery_image" valign="top" align="right"></td>
|
37
37
|
</tr></table></div>
|
@@ -189,6 +189,14 @@
|
|
189
189
|
</tr>
|
190
190
|
<tr>
|
191
191
|
<td class="function_type">
|
192
|
+
<span class="returnvalue">void</span>
|
193
|
+
</td>
|
194
|
+
<td class="function_name">
|
195
|
+
<a class="link" href="GtkMenu.html#gtk-menu-place-on-monitor" title="gtk_menu_place_on_monitor ()">gtk_menu_place_on_monitor</a> <span class="c_punctuation">()</span>
|
196
|
+
</td>
|
197
|
+
</tr>
|
198
|
+
<tr>
|
199
|
+
<td class="function_type">
|
192
200
|
<a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
193
201
|
</td>
|
194
202
|
<td class="function_name">
|
@@ -1559,6 +1567,38 @@ be popped up or -1, if no monitor has been set</p>
|
|
1559
1567
|
</div>
|
1560
1568
|
<hr>
|
1561
1569
|
<div class="refsect2">
|
1570
|
+
<a name="gtk-menu-place-on-monitor"></a><h3>gtk_menu_place_on_monitor ()</h3>
|
1571
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
1572
|
+
gtk_menu_place_on_monitor (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>,
|
1573
|
+
<em class="parameter"><code><a href="http://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a> *monitor</code></em>);</pre>
|
1574
|
+
<p>Places <em class="parameter"><code>menu</code></em>
|
1575
|
+
on the given monitor.</p>
|
1576
|
+
<div class="refsect3">
|
1577
|
+
<a name="gtk-menu-place-on-monitor.parameters"></a><h4>Parameters</h4>
|
1578
|
+
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
1579
|
+
<colgroup>
|
1580
|
+
<col width="150px" class="parameters_name">
|
1581
|
+
<col class="parameters_description">
|
1582
|
+
<col width="200px" class="parameters_annotations">
|
1583
|
+
</colgroup>
|
1584
|
+
<tbody>
|
1585
|
+
<tr>
|
1586
|
+
<td class="parameter_name"><p>menu</p></td>
|
1587
|
+
<td class="parameter_description"><p>a <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a></p></td>
|
1588
|
+
<td class="parameter_annotations"> </td>
|
1589
|
+
</tr>
|
1590
|
+
<tr>
|
1591
|
+
<td class="parameter_name"><p>monitor</p></td>
|
1592
|
+
<td class="parameter_description"><p>the monitor to place the menu on</p></td>
|
1593
|
+
<td class="parameter_annotations"> </td>
|
1594
|
+
</tr>
|
1595
|
+
</tbody>
|
1596
|
+
</table></div>
|
1597
|
+
</div>
|
1598
|
+
<p class="since">Since: <a class="link" href="api-index-3-22.html#api-index-3.22">3.22</a></p>
|
1599
|
+
</div>
|
1600
|
+
<hr>
|
1601
|
+
<div class="refsect2">
|
1562
1602
|
<a name="gtk-menu-get-tearoff-state"></a><h3>gtk_menu_get_tearoff_state ()</h3>
|
1563
1603
|
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
1564
1604
|
gtk_menu_get_tearoff_state (<em class="parameter"><code><a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> *menu</code></em>);</pre>
|
@@ -123,7 +123,7 @@ GtkPageSetupUnixDialog implements
|
|
123
123
|
</div>
|
124
124
|
<div class="refsect1">
|
125
125
|
<a name="GtkPageSetupUnixDialog.includes"></a><h2>Includes</h2>
|
126
|
-
<pre class="synopsis">#include <gtk/
|
126
|
+
<pre class="synopsis">#include <gtk/gtkunixprint.h>
|
127
127
|
</pre>
|
128
128
|
</div>
|
129
129
|
<div class="refsect1">
|
@@ -369,7 +369,7 @@
|
|
369
369
|
</div>
|
370
370
|
<div class="refsect1">
|
371
371
|
<a name="GtkPrintJob.includes"></a><h2>Includes</h2>
|
372
|
-
<pre class="synopsis">#include <gtk/
|
372
|
+
<pre class="synopsis">#include <gtk/gtkunixprint.h>
|
373
373
|
</pre>
|
374
374
|
</div>
|
375
375
|
<div class="refsect1">
|
@@ -283,7 +283,7 @@ GtkPrintUnixDialog implements
|
|
283
283
|
</div>
|
284
284
|
<div class="refsect1">
|
285
285
|
<a name="GtkPrintUnixDialog.includes"></a><h2>Includes</h2>
|
286
|
-
<pre class="synopsis">#include <gtk/
|
286
|
+
<pre class="synopsis">#include <gtk/gtkunixprint.h>
|
287
287
|
</pre>
|
288
288
|
</div>
|
289
289
|
<div class="refsect1">
|
@@ -306,7 +306,7 @@ step size used in activity mode can be set.</p>
|
|
306
306
|
3
|
307
307
|
4</pre></td>
|
308
308
|
<td class="listing_code"><pre class="programlisting">progressbar<span class="gtkdoc opt">[.</span>osd<span class="gtkdoc opt">]</span>
|
309
|
-
╰── trough
|
309
|
+
╰── trough<span class="gtkdoc opt">[.</span>empty<span class="gtkdoc opt">][.</span>full<span class="gtkdoc opt">]</span>
|
310
310
|
├── <span class="gtkdoc opt">[</span>text<span class="gtkdoc opt">]</span>
|
311
311
|
╰── progress<span class="gtkdoc opt">[.</span>pulse<span class="gtkdoc opt">]</span></pre></td>
|
312
312
|
</tr>
|
@@ -283,7 +283,7 @@ transition type of <em class="parameter"><code>revealer</code></em>
|
|
283
283
|
<a name="gtk-revealer-get-child-revealed"></a><h3>gtk_revealer_get_child_revealed ()</h3>
|
284
284
|
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
285
285
|
gtk_revealer_get_child_revealed (<em class="parameter"><code><a class="link" href="GtkRevealer.html" title="GtkRevealer"><span class="type">GtkRevealer</span></a> *revealer</code></em>);</pre>
|
286
|
-
<p>Returns whether the child is fully revealed,
|
286
|
+
<p>Returns whether the child is fully revealed, in other words whether
|
287
287
|
the transition to the revealed state is completed.</p>
|
288
288
|
<div class="refsect3">
|
289
289
|
<a name="gtk-revealer-get-child-revealed.parameters"></a><h4>Parameters</h4>
|
@@ -1182,7 +1182,7 @@ gtk_scrolled_window_set_capture_button_press
|
|
1182
1182
|
(<em class="parameter"><code><a class="link" href="GtkScrolledWindow.html" title="GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a> *scrolled_window</code></em>,
|
1183
1183
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> capture_button_press</code></em>);</pre>
|
1184
1184
|
<p>Changes the behaviour of <em class="parameter"><code>scrolled_window</code></em>
|
1185
|
-
|
1185
|
+
with regard to the initial
|
1186
1186
|
event that possibly starts kinetic scrolling. When <em class="parameter"><code>capture_button_press</code></em>
|
1187
1187
|
|
1188
1188
|
is set to <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the event is captured by the scrolled window, and
|
@@ -1230,8 +1230,15 @@ the token parsed, or a GSTRING holding an unparsed statement</p></td>
|
|
1230
1230
|
<div class="refsect2">
|
1231
1231
|
<a name="GtkSettings--color-hash"></a><h3>The <code class="literal">“color-hash”</code> property</h3>
|
1232
1232
|
<pre class="programlisting"> “color-hash” <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> *</pre>
|
1233
|
-
<p>
|
1233
|
+
<p>Holds a hash table representation of the <a class="link" href="GtkSettings.html#GtkSettings--gtk-color-scheme" title="The “gtk-color-scheme” property"><span class="type">“gtk-color-scheme”</span></a>
|
1234
|
+
setting, mapping color names to <span class="type">GdkColors</span>.</p>
|
1235
|
+
<p><span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span></p>
|
1236
|
+
<div class="warning">
|
1237
|
+
<p><code class="literal">GtkSettings:color-hash</code> has been deprecated since version 3.8 and should not be used in newly-written code.</p>
|
1238
|
+
<p>Will always return an empty hash table.</p>
|
1239
|
+
</div>
|
1234
1240
|
<p>Flags: Read</p>
|
1241
|
+
<p class="since">Since: 2.10</p>
|
1235
1242
|
</div>
|
1236
1243
|
<hr>
|
1237
1244
|
<div class="refsect2">
|
@@ -7926,7 +7926,7 @@ and that is normally done using <a class="link" href="GtkContainer.html#gtk-cont
|
|
7926
7926
|
<p>If you want to force an area of a window to be redrawn,
|
7927
7927
|
use <a href="http://developer.gnome.org/gdk3/gdk4-Windows.html#gdk-window-invalidate-rect"><code class="function">gdk_window_invalidate_rect()</code></a> or <a href="http://developer.gnome.org/gdk3/gdk4-Windows.html#gdk-window-invalidate-region"><code class="function">gdk_window_invalidate_region()</code></a>.
|
7928
7928
|
To cause the redraw to be done immediately, follow that call
|
7929
|
-
with a call to <
|
7929
|
+
with a call to <code class="function">gdk_window_process_updates()</code>.</p>
|
7930
7930
|
<div class="refsect3">
|
7931
7931
|
<a name="gtk-widget-send-expose.parameters"></a><h4>Parameters</h4>
|
7932
7932
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -10820,7 +10820,7 @@ gtk_widget_set_window (<em class="parameter"><code><a class="link" href="GtkWidg
|
|
10820
10820
|
<em class="parameter"><code><a href="http://developer.gnome.org/gdk3/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
|
10821
10821
|
<p>Sets a widget’s window. This function should only be used in a
|
10822
10822
|
widget’s <a class="link" href="GtkWidget.html#GtkWidget-realize" title="The “realize” signal"><span class="type">“realize”</span></a> implementation. The <code class="literal">window</code> passed is
|
10823
|
-
usually either new window created with <
|
10823
|
+
usually either new window created with <code class="function">gdk_window_new()</code>, or the
|
10824
10824
|
window of its parent widget as returned by
|
10825
10825
|
<a class="link" href="GtkWidget.html#gtk-widget-get-parent-window" title="gtk_widget_get_parent_window ()"><code class="function">gtk_widget_get_parent_window()</code></a>.</p>
|
10826
10826
|
<p>Widgets must indicate whether they will create their own <a href="http://developer.gnome.org/gdk3/gdk4-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
<span class="refentrytitle"><a href="GtkBox.html">GtkBox</a></span><span class="refpurpose"> — A container box</span>
|
28
28
|
</dt>
|
29
29
|
<dt>
|
30
|
-
<span class="refentrytitle"><a href="GtkGrid.html">GtkGrid</a></span><span class="refpurpose"> — Pack widgets in
|
30
|
+
<span class="refentrytitle"><a href="GtkGrid.html">GtkGrid</a></span><span class="refpurpose"> — Pack widgets in rows and columns</span>
|
31
31
|
</dt>
|
32
32
|
<dt>
|
33
33
|
<span class="refentrytitle"><a href="GtkRevealer.html">GtkRevealer</a></span><span class="refpurpose"> — Hide and show with animation</span>
|
@@ -161,13 +161,10 @@ displays after the widget is created with <a class="link" href="GtkTextView.html
|
|
161
161
|
<a name="id-1.3.11.2.5"></a><h2>Example of Changing Text Attributes</h2>
|
162
162
|
<p>
|
163
163
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
standard <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> functions such as <a class="link" href="GtkWidget.html#gtk-widget-modify-font" title="gtk_widget_modify_font ()"><code class="function">gtk_widget_modify_font()</code></a> or
|
169
|
-
<a class="link" href="GtkWidget.html#gtk-widget-override-color" title="gtk_widget_override_color ()"><code class="function">gtk_widget_override_color()</code></a>. For other attributes there are dedicated methods on
|
170
|
-
<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> such as <a class="link" href="GtkTextView.html#gtk-text-view-set-tabs" title="gtk_text_view_set_tabs ()"><code class="function">gtk_text_view_set_tabs()</code></a>.
|
164
|
+
The way to affect text attributes in <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> is to
|
165
|
+
apply tags that change the attributes for a region of text.
|
166
|
+
For text features that come from the theme — such as font and
|
167
|
+
foreground color — use CSS to override their default values.
|
171
168
|
|
172
169
|
</p>
|
173
170
|
<div class="informalexample">
|
@@ -204,13 +201,22 @@ standard <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="ty
|
|
204
201
|
28
|
205
202
|
29
|
206
203
|
30
|
207
|
-
31
|
204
|
+
31
|
205
|
+
32
|
206
|
+
33
|
207
|
+
34
|
208
|
+
35
|
209
|
+
36
|
210
|
+
37
|
211
|
+
38</pre></td>
|
208
212
|
<td class="listing_code"><pre class="programlisting">GtkWidget <span class="gtkdoc opt">*</span>view<span class="gtkdoc opt">;</span>
|
209
213
|
GtkTextBuffer <span class="gtkdoc opt">*</span>buffer<span class="gtkdoc opt">;</span>
|
210
214
|
GtkTextIter start<span class="gtkdoc opt">,</span> end<span class="gtkdoc opt">;</span>
|
211
215
|
PangoFontDescription <span class="gtkdoc opt">*</span>font_desc<span class="gtkdoc opt">;</span>
|
212
216
|
GdkRGBA rgba<span class="gtkdoc opt">;</span>
|
213
217
|
GtkTextTag <span class="gtkdoc opt">*</span>tag<span class="gtkdoc opt">;</span>
|
218
|
+
GtkCssProvider <span class="gtkdoc opt">*</span>provider<span class="gtkdoc opt">;</span>
|
219
|
+
GtkStyleContext <span class="gtkdoc opt">*</span>context<span class="gtkdoc opt">;</span>
|
214
220
|
|
215
221
|
view <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkTextView.html#gtk-text-view-new">gtk_text_view_new</a></span> <span class="gtkdoc opt">();</span>
|
216
222
|
|
@@ -218,14 +224,19 @@ buffer <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkText
|
|
218
224
|
|
219
225
|
<span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-set-text">gtk_text_buffer_set_text</a></span> <span class="gtkdoc opt">(</span>buffer<span class="gtkdoc opt">,</span> <span class="string">"Hello, this is some text"</span><span class="gtkdoc opt">, -</span><span class="number">1</span><span class="gtkdoc opt">);</span>
|
220
226
|
|
221
|
-
<span class="comment">/* Change default font throughout the widget */</span>
|
222
|
-
|
223
|
-
<span class="function"><a href="
|
224
|
-
<span class="
|
225
|
-
|
226
|
-
<span class="
|
227
|
-
<span class="
|
228
|
-
<span class="
|
227
|
+
<span class="comment">/* Change default font and color throughout the widget */</span>
|
228
|
+
provider <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkCssProvider.html#gtk-css-provider-new">gtk_css_provider_new</a></span> <span class="gtkdoc opt">();</span>
|
229
|
+
<span class="function"><a href="GtkCssProvider.html#gtk-css-provider-load-from-data">gtk_css_provider_load_from_data</a></span> <span class="gtkdoc opt">(</span>provider<span class="gtkdoc opt">,</span>
|
230
|
+
<span class="string">"textview {"</span>
|
231
|
+
<span class="string">" font: 15 serif;"</span>
|
232
|
+
<span class="string">" color: green;"</span>
|
233
|
+
<span class="string">"}"</span><span class="gtkdoc opt">,</span>
|
234
|
+
<span class="gtkdoc opt">-</span><span class="number">1</span><span class="gtkdoc opt">,</span>
|
235
|
+
NULL<span class="gtkdoc opt">);</span>
|
236
|
+
context <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.html#gtk-widget-get-style-context">gtk_widget_get_style_context</a></span> <span class="gtkdoc opt">(</span>view<span class="gtkdoc opt">);</span>
|
237
|
+
<span class="function"><a href="GtkStyleContext.html#gtk-style-context-add-provider">gtk_style_context_add_provider</a></span> <span class="gtkdoc opt">(</span>context<span class="gtkdoc opt">,</span>
|
238
|
+
<span class="function">GTK_STYLE_PROVIDER</span> <span class="gtkdoc opt">(</span>provider<span class="gtkdoc opt">),</span>
|
239
|
+
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION<span class="gtkdoc opt">);</span>
|
229
240
|
|
230
241
|
<span class="comment">/* Change left margin throughout the widget */</span>
|
231
242
|
<span class="function"><a href="GtkTextView.html#gtk-text-view-set-left-margin">gtk_text_view_set_left_margin</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_TEXT_VIEW</span> <span class="gtkdoc opt">(</span>view<span class="gtkdoc opt">),</span> <span class="number">30</span><span class="gtkdoc opt">);</span>
|