gdk3 3.2.5-x86-mingw32 → 3.2.6-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/COPYING.LIB +502 -0
- data/README.md +25 -0
- data/Rakefile +6 -6
- data/gdk3.gemspec +41 -0
- data/lib/gdk3/cursor.rb +13 -0
- data/lib/gdk3/loader.rb +23 -5
- data/test/test-gdk-cursor.rb +17 -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/gtk/gtklistbox.h +1 -1
- 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/libgailutil-3.la +1 -1
- data/vendor/local/lib/libgdk-3.dll.a +0 -0
- data/vendor/local/lib/libgdk-3.la +2 -2
- data/vendor/local/lib/libgtk-3.dll.a +0 -0
- data/vendor/local/lib/libgtk-3.la +2 -2
- data/vendor/local/lib/libgtkreftestprivate.dll.a +0 -0
- data/vendor/local/lib/libgtkreftestprivate.la +1 -1
- 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/aclocal/gtk-3.0.m4 +6 -13
- data/vendor/local/share/gir-1.0/Gdk-3.0.gir +14 -6
- data/vendor/local/share/gir-1.0/Gtk-3.0.gir +11 -11
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkFrameClock.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-RGBA-Colors.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventController.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGLArea.html +22 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGesture.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureMultiPress.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureSingle.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListBox.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkModelButton.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPadController.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPopover.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +275 -275
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +53 -53
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s03.html +7 -1
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s04.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/ch26s02.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk3/ch32s05.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/chap-input-handling.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +1 -1
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/zh_TW/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 +1 -1
- 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 +7 -60
@@ -67,12 +67,12 @@ Deprecated GTK+ functions are annotated to make the compiler
|
|
67
67
|
emit warnings when they are used (e.g. with gcc, you need to use
|
68
68
|
the -Wdeprecated-declarations option). If these warnings are
|
69
69
|
problematic, they can be turned off by defining the preprocessor
|
70
|
-
symbol <
|
70
|
+
symbol <code class="literal">GDK_DISABLE_DEPRECATION_WARNINGS</code> by using the commandline
|
71
71
|
option <code class="literal">-DGDK_DISABLE_DEPRECATION_WARNINGS</code>
|
72
72
|
</p>
|
73
73
|
<p>
|
74
74
|
GTK+ deprecation annotations are versioned; by defining the
|
75
|
-
macros <
|
75
|
+
macros <code class="literal">GDK_VERSION_MIN_REQUIRED</code> and <code class="literal">GDK_VERSION_MAX_ALLOWED</code>,
|
76
76
|
you can specify the range of GTK+ versions whose API you want
|
77
77
|
to use. APIs that were deprecated before or introduced after
|
78
78
|
this range will trigger compiler warnings.
|
@@ -311,7 +311,7 @@
|
|
311
311
|
<span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> NULL</span><span class="symbol">;</span>
|
312
312
|
|
313
313
|
<span class="normal">info </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GAppInfo</span><span class="symbol">*)</span><span class="normal"> </span><span class="function">g_desktop_app_info_new</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"epiphany.desktop"</span><span class="symbol">);</span>
|
314
|
-
<span class="normal">context </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GAppLaunchContext</span><span class="symbol">*)</span><span class="normal"> </span><span class="function"
|
314
|
+
<span class="normal">context </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GAppLaunchContext</span><span class="symbol">*)</span><span class="normal"> </span><span class="function">gdk_display_get_app_launch_context</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">display</span><span class="symbol">);</span>
|
315
315
|
<span class="function">g_app_info_launch</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info</span><span class="symbol">,</span><span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> context</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
316
316
|
|
317
317
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">)</span>
|
@@ -337,7 +337,7 @@
|
|
337
337
|
with <code class="function">g_app_info_create_from_commandline()</code>, or you can use the
|
338
338
|
more lowlevel <code class="literal">g_spawn</code> family of functions
|
339
339
|
(e.g. <code class="function">g_spawn_command_line_async()</code>), and pass <code class="envar">DISPLAY</code>
|
340
|
-
in the environment. <
|
340
|
+
in the environment. <code class="function">gdk_screen_make_display_name()</code> can be
|
341
341
|
used to find the right value for the <code class="envar">DISPLAY</code>
|
342
342
|
environment variable.
|
343
343
|
</li>
|
@@ -410,8 +410,8 @@
|
|
410
410
|
2
|
411
411
|
3
|
412
412
|
4</pre></td>
|
413
|
-
<td class="listing_code"><pre class="programlisting"><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
414
|
-
<span class="function"
|
413
|
+
<td class="listing_code"><pre class="programlisting"><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
414
|
+
<span class="function">gdk_cairo_set_source_pixbuf</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> pixbuf</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
415
415
|
<span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
416
416
|
<span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span></pre></td>
|
417
417
|
</tr>
|
@@ -423,7 +423,7 @@
|
|
423
423
|
Note that very similar code can be used when porting code
|
424
424
|
using GdkPixmap to <span class="type">cairo_surface_t</span> by calling
|
425
425
|
<code class="function">cairo_set_source_surface()</code> instead of
|
426
|
-
<
|
426
|
+
<code class="function">gdk_cairo_set_source_pixbuf()</code>.
|
427
427
|
</p>
|
428
428
|
</div>
|
429
429
|
</div>
|
@@ -493,7 +493,7 @@
|
|
493
493
|
<span class="usertype">cairo_surface_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">surface</span><span class="symbol">;</span>
|
494
494
|
|
495
495
|
<span class="normal">surface </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">...</span>
|
496
|
-
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
496
|
+
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
497
497
|
<span class="function">cairo_set_source_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> surface</span><span class="symbol">,</span><span class="normal"> x_origin</span><span class="symbol">,</span><span class="normal"> y_origin</span><span class="symbol">);</span>
|
498
498
|
<span class="function">cairo_pattern_set_extend</span><span class="normal"> </span><span class="symbol">(</span><span class="function">cairo_get_source</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">),</span><span class="normal"> CAIRO_EXTEND_REPEAT</span><span class="symbol">);</span>
|
499
499
|
<span class="function">cairo_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> width</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
|
@@ -508,7 +508,7 @@
|
|
508
508
|
The surface here can be either an image surface or a X surface,
|
509
509
|
and can either be created on the spot or kept around for caching purposes.
|
510
510
|
Another alternative is to use pixbufs instead of surfaces with
|
511
|
-
<
|
511
|
+
<code class="function">gdk_cairo_set_source_pixbuf()</code> instead of <code class="function">cairo_set_source_surface()</code>.
|
512
512
|
</p>
|
513
513
|
</div>
|
514
514
|
</div>
|
@@ -576,15 +576,15 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
576
576
|
<span class="usertype">GdkRGBA</span><span class="normal"> rgba</span><span class="symbol">;</span>
|
577
577
|
<span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
|
578
578
|
|
579
|
-
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
579
|
+
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">drawable</span><span class="symbol">);</span>
|
580
580
|
<span class="comment">/* clip */</span>
|
581
|
-
<span class="function"
|
581
|
+
<span class="function">gdk_cairo_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">area</span><span class="symbol">);</span>
|
582
582
|
<span class="function">cairo_clip</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
583
583
|
<span class="comment">/* set the correct source color */</span>
|
584
584
|
<span class="normal">context </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style-context">gtk_widget_get_style_context</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">));</span>
|
585
585
|
<span class="normal">state </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-state-flags">gtk_widget_get_state_flags</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">);</span>
|
586
586
|
<span class="function"><a href="GtkStyleContext.html#gtk-style-context-get-color">gtk_style_context_get_color</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">,</span><span class="normal"> state</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">rgba</span><span class="symbol">);</span>
|
587
|
-
<span class="function"
|
587
|
+
<span class="function">gdk_cairo_set_source_rgba</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">rgba</span><span class="symbol">);</span>
|
588
588
|
<span class="comment">/* draw the text */</span>
|
589
589
|
<span class="function">cairo_move_to</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
|
590
590
|
<span class="function">pango_cairo_show_layout</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
@@ -597,7 +597,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
597
597
|
<p>
|
598
598
|
Clipping using <code class="function">cairo_clip()</code> is of course not restricted to text
|
599
599
|
rendering and can be used everywhere where GC clips were used.
|
600
|
-
And using <
|
600
|
+
And using <code class="function">gdk_cairo_set_source_color()</code> with style colors should
|
601
601
|
be used in all the places where a style’s GC was used to achieve
|
602
602
|
a particular color.
|
603
603
|
</p>
|
@@ -718,7 +718,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
718
718
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
719
719
|
<span class="comment">/* clipping restricts the intermediate surface's size, so it's a good idea</span>
|
720
720
|
<span class="comment"> * to use it. */</span>
|
721
|
-
<span class="function"
|
721
|
+
<span class="function">gdk_cairo_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">area</span><span class="symbol">);</span>
|
722
722
|
<span class="function">cairo_clip</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
723
723
|
<span class="comment">/* Now push a group to change the target */</span>
|
724
724
|
<span class="function">cairo_push_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
@@ -737,7 +737,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
737
737
|
The surface here can be either an image surface or a X surface,
|
738
738
|
and can either be created on the spot or kept around for caching purposes.
|
739
739
|
Another alternative is to use pixbufs instead of surfaces with
|
740
|
-
<
|
740
|
+
<code class="function">gdk_cairo_set_source_pixbuf()</code> instead of <code class="function">cairo_set_source_surface()</code>.
|
741
741
|
|
742
742
|
The cairo developers plan to add self-copies in the future to allow
|
743
743
|
exactly this effect, so you might want to keep up on cairo
|
@@ -385,7 +385,7 @@
|
|
385
385
|
</div>
|
386
386
|
|
387
387
|
<p>
|
388
|
-
With <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>, you generally use <
|
388
|
+
With <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>, you generally use <span class="type">GdkRGBA</span> instead of <span class="type">GdkColor</span>
|
389
389
|
and the code looks like this:
|
390
390
|
</p>
|
391
391
|
<div class="informalexample">
|
@@ -413,7 +413,7 @@
|
|
413
413
|
|
414
414
|
<span class="symbol">...</span>
|
415
415
|
|
416
|
-
<span class="function"
|
416
|
+
<span class="function">gdk_rgba_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">color1</span><span class="symbol">);</span></pre></td>
|
417
417
|
</tr>
|
418
418
|
</tbody>
|
419
419
|
</table>
|
data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
The installed properties depend on the <a class="link" href="GtkThemingEngine.html#GtkThemingEngine--name" title="The “name” property"><span class="type">“name”</span></a> property,
|
35
35
|
so they should be added in the <code class="literal"><code class="function">constructed()</code></code> vfunc.
|
36
36
|
For example, if an engine with the name "Clearlooks" installs a
|
37
|
-
"focus-color" property with the type <
|
37
|
+
"focus-color" property with the type <span class="type">GdkRGBA</span>, the property
|
38
38
|
<code class="literal">-Clearlooks-focus-color</code> will be registered and
|
39
39
|
accepted in CSS like this:
|
40
40
|
</p>
|
@@ -547,8 +547,8 @@ code:
|
|
547
547
|
<tr>
|
548
548
|
<td class="listing_lines" align="right"><pre>1
|
549
549
|
2</pre></td>
|
550
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"
|
551
|
-
<span class="normal">
|
550
|
+
<td class="listing_code"><pre class="programlisting"><span class="function">gdk_window_set_events</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gdk_window</span><span class="symbol">,</span>
|
551
|
+
<span class="normal"> GDK_BUTTON_PRESS_MASK </span><span class="symbol">|</span><span class="normal"> GDK_BUTTON_RELEASE_MASK</span><span class="symbol">);</span></pre></td>
|
552
552
|
</tr>
|
553
553
|
</tbody>
|
554
554
|
</table>
|
@@ -563,8 +563,8 @@ while in C++ you must write:
|
|
563
563
|
<tr>
|
564
564
|
<td class="listing_lines" align="right"><pre>1
|
565
565
|
2</pre></td>
|
566
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"
|
567
|
-
<span class="normal"> </span><span class="symbol">(</span><span class="normal"
|
566
|
+
<td class="listing_code"><pre class="programlisting"><span class="function">gdk_window_set_events</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gdk_window</span><span class="symbol">,</span>
|
567
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="normal">GdkEventMask</span><span class="symbol">)</span><span class="normal"> GDK_BUTTON_PRESS_MASK </span><span class="symbol">|</span><span class="normal"> GDK_BUTTON_RELEASE_MASK</span><span class="symbol">);</span></pre></td>
|
568
568
|
</tr>
|
569
569
|
</tbody>
|
570
570
|
</table>
|
@@ -756,10 +756,10 @@ How do I create a transparent toplevel window ?
|
|
756
756
|
<p>
|
757
757
|
To make a window transparent, it needs to use a visual which supports that.
|
758
758
|
This is done by getting the RGBA visual of the screen with
|
759
|
-
<
|
760
|
-
<
|
759
|
+
<code class="function">gdk_screen_get_rgba_visual()</code> and setting it on the window. Note that
|
760
|
+
<code class="function">gdk_screen_get_rgba_visual()</code> will return <code class="literal">NULL</code> if transparent windows
|
761
761
|
are not supported on the screen, you should fall back to
|
762
|
-
<
|
762
|
+
<code class="function">gdk_screen_get_system_visual()</code> in that case. Additionally, note that this
|
763
763
|
will change from screen to screen, so it needs to be repeated whenever the
|
764
764
|
window is moved to a different screen.
|
765
765
|
</p>
|
@@ -776,9 +776,9 @@ window is moved to a different screen.
|
|
776
776
|
7</pre></td>
|
777
777
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GdkVisual</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">visual</span><span class="symbol">;</span>
|
778
778
|
|
779
|
-
<span class="normal">visual </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
779
|
+
<span class="normal">visual </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_screen_get_rgba_visual</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">screen</span><span class="symbol">);</span>
|
780
780
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">visual </span><span class="symbol">==</span><span class="normal"> NULL</span><span class="symbol">)</span>
|
781
|
-
<span class="normal"> visual </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
781
|
+
<span class="normal"> visual </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gdk_screen_get_system_visual</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">screen</span><span class="symbol">);</span>
|
782
782
|
|
783
783
|
<span class="function"><a href="GtkWidget.html#gtk-widget-set-visual">gtk_widget_set_visual</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WIDGET</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> visual</span><span class="symbol">);</span></pre></td>
|
784
784
|
</tr>
|
@@ -267,7 +267,7 @@ the <a class="link" href="gtk3-Accelerator-Maps.html#GtkAccelMap-changed" title=
|
|
267
267
|
<span class="c_punctuation">(</span>*GtkAccelMapForeach<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">gpointer</span> data</code></em>,
|
268
268
|
<em class="parameter"><code>const <span class="type">gchar</span> *accel_path</code></em>,
|
269
269
|
<em class="parameter"><code><span class="type">guint</span> accel_key</code></em>,
|
270
|
-
<em class="parameter"><code><
|
270
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> accel_mods</code></em>,
|
271
271
|
<em class="parameter"><code><span class="type">gboolean</span> changed</code></em>);</pre>
|
272
272
|
<div class="refsect3">
|
273
273
|
<a name="GtkAccelMapForeach.parameters"></a><h4>Parameters</h4>
|
@@ -315,7 +315,7 @@ during runtime and would need to be saved during an accelerator dump)</p></td>
|
|
315
315
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
316
316
|
gtk_accel_map_add_entry (<em class="parameter"><code>const <span class="type">gchar</span> *accel_path</code></em>,
|
317
317
|
<em class="parameter"><code><span class="type">guint</span> accel_key</code></em>,
|
318
|
-
<em class="parameter"><code><
|
318
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> accel_mods</code></em>);</pre>
|
319
319
|
<p>Registers a new accelerator with the global accelerator map.
|
320
320
|
This function should only be called once per <em class="parameter"><code>accel_path</code></em>
|
321
321
|
|
@@ -403,7 +403,7 @@ is known, <code class="literal">FALSE</code> otherwise</p>
|
|
403
403
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
404
404
|
gtk_accel_map_change_entry (<em class="parameter"><code>const <span class="type">gchar</span> *accel_path</code></em>,
|
405
405
|
<em class="parameter"><code><span class="type">guint</span> accel_key</code></em>,
|
406
|
-
<em class="parameter"><code><
|
406
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> accel_mods</code></em>,
|
407
407
|
<em class="parameter"><code><span class="type">gboolean</span> replace</code></em>);</pre>
|
408
408
|
<p>Changes the <em class="parameter"><code>accel_key</code></em>
|
409
409
|
and <em class="parameter"><code>accel_mods</code></em>
|
@@ -775,7 +775,7 @@ Refer to <a class="link" href="gtk3-Accelerator-Maps.html#gtk-accel-map-lock-pat
|
|
775
775
|
user_function (<a class="link" href="gtk3-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> *object,
|
776
776
|
<span class="type">gchar</span> *accel_path,
|
777
777
|
<span class="type">guint</span> accel_key,
|
778
|
-
<
|
778
|
+
<span class="type">GdkModifierType</span> accel_mods,
|
779
779
|
<span class="type">gpointer</span> user_data)</pre>
|
780
780
|
<p>Notifies of a change in the global accelerator map.
|
781
781
|
The path is also used as the detail for the signal,
|
@@ -191,10 +191,10 @@ Selectors
|
|
191
191
|
in the <a class="link" href="GtkCssProvider.html" title="GtkCssProvider"><span class="type">GtkCssProvider</span></a> documentation. Inside the binding set
|
192
192
|
definition, key combinations are bound to one or more specific
|
193
193
|
signal emissions on the target widget. Key combinations are strings
|
194
|
-
consisting of an optional <
|
194
|
+
consisting of an optional <span class="type">GdkModifierType</span> name and
|
195
195
|
key names
|
196
196
|
such as those defined in <code class="literal">gdk/gdkkeysyms.h</code>
|
197
|
-
or returned from <
|
197
|
+
or returned from <code class="function">gdk_keyval_name()</code>, they have to be parsable by
|
198
198
|
<a class="link" href="gtk3-Keyboard-Accelerators.html#gtk-accelerator-parse" title="gtk_accelerator_parse ()"><code class="function">gtk_accelerator_parse()</code></a>. Specifications of signal emissions consist
|
199
199
|
of a string identifying the signal name, and a list of signal specific
|
200
200
|
arguments in parenthesis.</p>
|
@@ -327,7 +327,7 @@ of the key presses, e.g. by an entry’s parent widget, is now possible.</p>
|
|
327
327
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
328
328
|
gtk_binding_entry_add_signall (<em class="parameter"><code><a class="link" href="gtk3-Bindings.html#GtkBindingSet" title="struct GtkBindingSet"><span class="type">GtkBindingSet</span></a> *binding_set</code></em>,
|
329
329
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
330
|
-
<em class="parameter"><code><
|
330
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>,
|
331
331
|
<em class="parameter"><code>const <span class="type">gchar</span> *signal_name</code></em>,
|
332
332
|
<em class="parameter"><code><span class="type">GSList</span> *binding_args</code></em>);</pre>
|
333
333
|
<p>Override or install a new key binding for <em class="parameter"><code>keyval</code></em>
|
@@ -470,7 +470,7 @@ or the type name of a class used in <a class="link" href="gtk3-Bindings.html#gtk
|
|
470
470
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
471
471
|
gtk_bindings_activate (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
|
472
472
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
473
|
-
<em class="parameter"><code><
|
473
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>);</pre>
|
474
474
|
<p>Find a key binding matching <em class="parameter"><code>keyval</code></em>
|
475
475
|
and <em class="parameter"><code>modifiers</code></em>
|
476
476
|
and activate the
|
@@ -513,7 +513,7 @@ binding on <em class="parameter"><code>object</code></em>
|
|
513
513
|
<a name="gtk-bindings-activate-event"></a><h3>gtk_bindings_activate_event ()</h3>
|
514
514
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
515
515
|
gtk_bindings_activate_event (<em class="parameter"><code><span class="type">GObject</span> *object</code></em>,
|
516
|
-
<em class="parameter"><code><
|
516
|
+
<em class="parameter"><code><span class="type">GdkEventKey</span> *event</code></em>);</pre>
|
517
517
|
<p>Looks up key bindings for <em class="parameter"><code>object</code></em>
|
518
518
|
to find one matching
|
519
519
|
<em class="parameter"><code>event</code></em>
|
@@ -534,7 +534,7 @@ gtk_bindings_activate_event (<em class="parameter"><code><span class="type">GObj
|
|
534
534
|
</tr>
|
535
535
|
<tr>
|
536
536
|
<td class="parameter_name"><p>event</p></td>
|
537
|
-
<td class="parameter_description"><p>a <
|
537
|
+
<td class="parameter_description"><p>a <span class="type">GdkEventKey</span></p></td>
|
538
538
|
<td class="parameter_annotations"> </td>
|
539
539
|
</tr>
|
540
540
|
</tbody>
|
@@ -552,7 +552,7 @@ gtk_bindings_activate_event (<em class="parameter"><code><span class="type">GObj
|
|
552
552
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
553
553
|
gtk_binding_set_activate (<em class="parameter"><code><a class="link" href="gtk3-Bindings.html#GtkBindingSet" title="struct GtkBindingSet"><span class="type">GtkBindingSet</span></a> *binding_set</code></em>,
|
554
554
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
555
|
-
<em class="parameter"><code><
|
555
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>,
|
556
556
|
<em class="parameter"><code><span class="type">GObject</span> *object</code></em>);</pre>
|
557
557
|
<p>Find a key binding matching <em class="parameter"><code>keyval</code></em>
|
558
558
|
and <em class="parameter"><code>modifiers</code></em>
|
@@ -603,7 +603,7 @@ gtk_binding_set_activate (<em class="parameter"><code><a class="link" href="gtk3
|
|
603
603
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
604
604
|
gtk_binding_entry_add_signal (<em class="parameter"><code><a class="link" href="gtk3-Bindings.html#GtkBindingSet" title="struct GtkBindingSet"><span class="type">GtkBindingSet</span></a> *binding_set</code></em>,
|
605
605
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
606
|
-
<em class="parameter"><code><
|
606
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>,
|
607
607
|
<em class="parameter"><code>const <span class="type">gchar</span> *signal_name</code></em>,
|
608
608
|
<em class="parameter"><code><span class="type">guint</span> n_args</code></em>,
|
609
609
|
<em class="parameter"><code>...</code></em>);</pre>
|
@@ -638,7 +638,7 @@ be of the given type). There must be <em class="parameter"><code>n_args</code></
|
|
638
638
|
9
|
639
639
|
10</pre></td>
|
640
640
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkBindingSet</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">binding_set</span><span class="symbol">;</span>
|
641
|
-
<span class="usertype">GdkModifierType</span><span class="normal"> modmask </span><span class="symbol">=</span><span class="normal">
|
641
|
+
<span class="usertype">GdkModifierType</span><span class="normal"> modmask </span><span class="symbol">=</span><span class="normal"> GDK_CONTROL_MASK</span><span class="symbol">;</span>
|
642
642
|
<span class="type">int</span><span class="normal"> count </span><span class="symbol">=</span><span class="normal"> </span><span class="number">1</span><span class="symbol">;</span>
|
643
643
|
<span class="function"><a href="gtk3-Bindings.html#gtk-binding-entry-add-signal">gtk_binding_entry_add_signal</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">binding_set</span><span class="symbol">,</span>
|
644
644
|
<span class="normal"> GDK_KEY_space</span><span class="symbol">,</span>
|
@@ -780,7 +780,7 @@ the expected token otherwise</p>
|
|
780
780
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
781
781
|
gtk_binding_entry_skip (<em class="parameter"><code><a class="link" href="gtk3-Bindings.html#GtkBindingSet" title="struct GtkBindingSet"><span class="type">GtkBindingSet</span></a> *binding_set</code></em>,
|
782
782
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
783
|
-
<em class="parameter"><code><
|
783
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>);</pre>
|
784
784
|
<p>Install a binding on <em class="parameter"><code>binding_set</code></em>
|
785
785
|
which causes key lookups
|
786
786
|
to be aborted, to prevent bindings from lower priority sets
|
@@ -820,7 +820,7 @@ to be activated.</p>
|
|
820
820
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
821
821
|
gtk_binding_entry_remove (<em class="parameter"><code><a class="link" href="gtk3-Bindings.html#GtkBindingSet" title="struct GtkBindingSet"><span class="type">GtkBindingSet</span></a> *binding_set</code></em>,
|
822
822
|
<em class="parameter"><code><span class="type">guint</span> keyval</code></em>,
|
823
|
-
<em class="parameter"><code><
|
823
|
+
<em class="parameter"><code><span class="type">GdkModifierType</span> modifiers</code></em>);</pre>
|
824
824
|
<p>Remove a binding previously installed via
|
825
825
|
<a class="link" href="gtk3-Bindings.html#gtk-binding-entry-add-signal" title="gtk_binding_entry_add_signal ()"><code class="function">gtk_binding_entry_add_signal()</code></a> on <em class="parameter"><code>binding_set</code></em>
|
826
826
|
.</p>
|
@@ -1006,7 +1006,7 @@ represented by a GtkBindingEntry.</p>
|
|
1006
1006
|
<td class="struct_member_annotations"> </td>
|
1007
1007
|
</tr>
|
1008
1008
|
<tr>
|
1009
|
-
<td class="struct_member_name"><p><
|
1009
|
+
<td class="struct_member_name"><p><span class="type">GdkModifierType</span> <em class="structfield"><code><a name="GtkBindingEntry.modifiers"></a>modifiers</code></em>;</p></td>
|
1010
1010
|
<td class="struct_member_description"><p>key modifiers to match</p></td>
|
1011
1011
|
<td class="struct_member_annotations"> </td>
|
1012
1012
|
</tr>
|
@@ -123,7 +123,7 @@
|
|
123
123
|
</tr>
|
124
124
|
<tr>
|
125
125
|
<td class="function_type">
|
126
|
-
<
|
126
|
+
<span class="returnvalue">GdkDisplay</span> *
|
127
127
|
</td>
|
128
128
|
<td class="function_name">
|
129
129
|
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-display" title="gtk_clipboard_get_display ()">gtk_clipboard_get_display</a> <span class="c_punctuation">()</span>
|
@@ -339,7 +339,7 @@
|
|
339
339
|
</tr>
|
340
340
|
<tr>
|
341
341
|
<td class="function_type">
|
342
|
-
<
|
342
|
+
<span class="returnvalue">GdkAtom</span>
|
343
343
|
</td>
|
344
344
|
<td class="function_name">
|
345
345
|
<a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-selection" title="gtk_clipboard_get_selection ()">gtk_clipboard_get_selection</a> <span class="c_punctuation">()</span>
|
@@ -392,8 +392,8 @@
|
|
392
392
|
<p>The <a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> object represents a clipboard of data shared
|
393
393
|
between different processes or between different widgets in
|
394
394
|
the same process. Each clipboard is identified by a name encoded as a
|
395
|
-
<
|
396
|
-
<
|
395
|
+
<span class="type">GdkAtom</span>. (Conversion to and from strings can be done with
|
396
|
+
<code class="function">gdk_atom_intern()</code> and <code class="function">gdk_atom_name()</code>.) The default clipboard
|
397
397
|
corresponds to the “CLIPBOARD” atom; another commonly used clipboard
|
398
398
|
is the “PRIMARY” clipboard, which, in X, traditionally contains
|
399
399
|
the currently selected text.</p>
|
@@ -573,7 +573,7 @@ supplied to
|
|
573
573
|
<a name="GtkClipboardTargetsReceivedFunc"></a><h3>GtkClipboardTargetsReceivedFunc ()</h3>
|
574
574
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
575
575
|
<span class="c_punctuation">(</span>*GtkClipboardTargetsReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
576
|
-
<em class="parameter"><code><
|
576
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> *atoms</code></em>,
|
577
577
|
<em class="parameter"><code><span class="type">gint</span> n_atoms</code></em>,
|
578
578
|
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
579
579
|
<p>A function to be called when the results of <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-request-targets" title="gtk_clipboard_request_targets ()"><code class="function">gtk_clipboard_request_targets()</code></a>
|
@@ -595,7 +595,7 @@ are received, or when the request fails.</p>
|
|
595
595
|
<tr>
|
596
596
|
<td class="parameter_name"><p>atoms</p></td>
|
597
597
|
<td class="parameter_description"><p>the supported targets,
|
598
|
-
as array of <
|
598
|
+
as array of <span class="type">GdkAtom</span>, or <code class="literal">NULL</code> if retrieving the data failed. </p></td>
|
599
599
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=n_atoms]</span></td>
|
600
600
|
</tr>
|
601
601
|
<tr>
|
@@ -621,7 +621,7 @@ supplied to
|
|
621
621
|
<a name="GtkClipboardRichTextReceivedFunc"></a><h3>GtkClipboardRichTextReceivedFunc ()</h3>
|
622
622
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
623
623
|
<span class="c_punctuation">(</span>*GtkClipboardRichTextReceivedFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
624
|
-
<em class="parameter"><code><
|
624
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> format</code></em>,
|
625
625
|
<em class="parameter"><code>const <span class="type">guint8</span> *text</code></em>,
|
626
626
|
<em class="parameter"><code><span class="type">gsize</span> length</code></em>,
|
627
627
|
<em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
|
@@ -810,7 +810,7 @@ argument passed to <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-set-
|
|
810
810
|
<div class="refsect2">
|
811
811
|
<a name="gtk-clipboard-get"></a><h3>gtk_clipboard_get ()</h3>
|
812
812
|
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
813
|
-
gtk_clipboard_get (<em class="parameter"><code><
|
813
|
+
gtk_clipboard_get (<em class="parameter"><code><span class="type">GdkAtom</span> selection</code></em>);</pre>
|
814
814
|
<p>Returns the clipboard object for the given selection.
|
815
815
|
See <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-for-display" title="gtk_clipboard_get_for_display ()"><code class="function">gtk_clipboard_get_for_display()</code></a> for complete details.</p>
|
816
816
|
<div class="refsect3">
|
@@ -823,7 +823,7 @@ See <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-get-for-display" ti
|
|
823
823
|
</colgroup>
|
824
824
|
<tbody><tr>
|
825
825
|
<td class="parameter_name"><p>selection</p></td>
|
826
|
-
<td class="parameter_description"><p>a <
|
826
|
+
<td class="parameter_description"><p>a <span class="type">GdkAtom</span> which identifies the clipboard to use</p></td>
|
827
827
|
<td class="parameter_annotations"> </td>
|
828
828
|
</tr></tbody>
|
829
829
|
</table></div>
|
@@ -841,26 +841,26 @@ owned by GTK+, must not be freed or unreffed. </p>
|
|
841
841
|
<div class="refsect2">
|
842
842
|
<a name="gtk-clipboard-get-for-display"></a><h3>gtk_clipboard_get_for_display ()</h3>
|
843
843
|
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
844
|
-
gtk_clipboard_get_for_display (<em class="parameter"><code><
|
845
|
-
<em class="parameter"><code><
|
844
|
+
gtk_clipboard_get_for_display (<em class="parameter"><code><span class="type">GdkDisplay</span> *display</code></em>,
|
845
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> selection</code></em>);</pre>
|
846
846
|
<p>Returns the clipboard object for the given selection.
|
847
847
|
Cut/copy/paste menu items and keyboard shortcuts should use
|
848
|
-
the default clipboard, returned by passing <
|
848
|
+
the default clipboard, returned by passing <code class="literal">GDK_SELECTION_CLIPBOARD</code> for <em class="parameter"><code>selection</code></em>
|
849
849
|
.
|
850
|
-
(<
|
850
|
+
(<code class="literal">GDK_NONE</code> is supported as a synonym for GDK_SELECTION_CLIPBOARD
|
851
851
|
for backwards compatibility reasons.)
|
852
852
|
The currently-selected object or text should be provided on the clipboard
|
853
|
-
identified by <
|
854
|
-
conceptually copy the contents of the <
|
853
|
+
identified by <span class="type">GDK_SELECTION_PRIMARY</span>. Cut/copy/paste menu items
|
854
|
+
conceptually copy the contents of the <span class="type">GDK_SELECTION_PRIMARY</span> clipboard
|
855
855
|
to the default clipboard, i.e. they copy the selection to what the
|
856
856
|
user sees as the clipboard.</p>
|
857
|
-
<p>(Passing <
|
857
|
+
<p>(Passing <span class="type">GDK_NONE</span> is the same as using <code class="literal">gdk_atom_intern
|
858
858
|
("CLIPBOARD", FALSE)</code>.</p>
|
859
859
|
<p>See the
|
860
860
|
<a class="ulink" href="http://www.freedesktop.org/Standards/clipboards-spec" target="_top">FreeDesktop Clipboard Specification</a>
|
861
861
|
for a detailed discussion of the “CLIPBOARD” vs. “PRIMARY”
|
862
862
|
selections under the X window system. On Win32 the
|
863
|
-
<
|
863
|
+
<span class="type">GDK_SELECTION_PRIMARY</span> clipboard is essentially ignored.)</p>
|
864
864
|
<p>It’s possible to have arbitrary named clipboards; if you do invent
|
865
865
|
new clipboards, you should prefix the selection name with an
|
866
866
|
underscore (because the ICCCM requires that nonstandard atoms are
|
@@ -878,12 +878,12 @@ clipboard, you might call it “_FOO_SPECIAL_CLIPBOARD”.</p>
|
|
878
878
|
<tbody>
|
879
879
|
<tr>
|
880
880
|
<td class="parameter_name"><p>display</p></td>
|
881
|
-
<td class="parameter_description"><p>the <
|
881
|
+
<td class="parameter_description"><p>the <span class="type">GdkDisplay</span> for which the clipboard is to be retrieved or created.</p></td>
|
882
882
|
<td class="parameter_annotations"> </td>
|
883
883
|
</tr>
|
884
884
|
<tr>
|
885
885
|
<td class="parameter_name"><p>selection</p></td>
|
886
|
-
<td class="parameter_description"><p>a <
|
886
|
+
<td class="parameter_description"><p>a <span class="type">GdkAtom</span> which identifies the clipboard to use.</p></td>
|
887
887
|
<td class="parameter_annotations"> </td>
|
888
888
|
</tr>
|
889
889
|
</tbody>
|
@@ -902,9 +902,9 @@ GTK+, must not be freed or unrefd. </p>
|
|
902
902
|
<hr>
|
903
903
|
<div class="refsect2">
|
904
904
|
<a name="gtk-clipboard-get-display"></a><h3>gtk_clipboard_get_display ()</h3>
|
905
|
-
<pre class="programlisting"><
|
905
|
+
<pre class="programlisting"><span class="returnvalue">GdkDisplay</span> *
|
906
906
|
gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
907
|
-
<p>Gets the <
|
907
|
+
<p>Gets the <span class="type">GdkDisplay</span> associated with <em class="parameter"><code>clipboard</code></em>
|
908
908
|
</p>
|
909
909
|
<div class="refsect3">
|
910
910
|
<a name="gtk-clipboard-get-display.parameters"></a><h4>Parameters</h4>
|
@@ -923,7 +923,7 @@ gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk
|
|
923
923
|
</div>
|
924
924
|
<div class="refsect3">
|
925
925
|
<a name="gtk-clipboard-get-display.returns"></a><h4>Returns</h4>
|
926
|
-
<p>the <
|
926
|
+
<p>the <span class="type">GdkDisplay</span> associated with <em class="parameter"><code>clipboard</code></em>
|
927
927
|
. </p>
|
928
928
|
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
|
929
929
|
</div>
|
@@ -933,7 +933,7 @@ gtk_clipboard_get_display (<em class="parameter"><code><a class="link" href="gtk
|
|
933
933
|
<div class="refsect2">
|
934
934
|
<a name="gtk-clipboard-get-default"></a><h3>gtk_clipboard_get_default ()</h3>
|
935
935
|
<pre class="programlisting"><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="returnvalue">GtkClipboard</span></a> *
|
936
|
-
gtk_clipboard_get_default (<em class="parameter"><code><
|
936
|
+
gtk_clipboard_get_default (<em class="parameter"><code><span class="type">GdkDisplay</span> *display</code></em>);</pre>
|
937
937
|
<p>Returns the default clipboard object for use with cut/copy/paste menu items
|
938
938
|
and keyboard shortcuts.</p>
|
939
939
|
<div class="refsect3">
|
@@ -946,7 +946,7 @@ and keyboard shortcuts.</p>
|
|
946
946
|
</colgroup>
|
947
947
|
<tbody><tr>
|
948
948
|
<td class="parameter_name"><p>display</p></td>
|
949
|
-
<td class="parameter_description"><p>the <
|
949
|
+
<td class="parameter_description"><p>the <span class="type">GdkDisplay</span> for which the clipboard is to be retrieved.</p></td>
|
950
950
|
<td class="parameter_annotations"> </td>
|
951
951
|
</tr></tbody>
|
952
952
|
</table></div>
|
@@ -1239,7 +1239,7 @@ requested format.</p>
|
|
1239
1239
|
<a name="gtk-clipboard-request-contents"></a><h3>gtk_clipboard_request_contents ()</h3>
|
1240
1240
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
1241
1241
|
gtk_clipboard_request_contents (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
1242
|
-
<em class="parameter"><code><
|
1242
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>,
|
1243
1243
|
<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboardReceivedFunc" title="GtkClipboardReceivedFunc ()"><span class="type">GtkClipboardReceivedFunc</span></a> callback</code></em>,
|
1244
1244
|
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
|
1245
1245
|
<p>Requests the contents of clipboard as the given target.
|
@@ -1533,7 +1533,7 @@ or the retrieval fails. (It will always be called one way or the other.). </p></
|
|
1533
1533
|
<a name="gtk-clipboard-wait-for-contents"></a><h3>gtk_clipboard_wait_for_contents ()</h3>
|
1534
1534
|
<pre class="programlisting"><a class="link" href="gtk3-Selections.html#GtkSelectionData"><span class="returnvalue">GtkSelectionData</span></a> *
|
1535
1535
|
gtk_clipboard_wait_for_contents (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
1536
|
-
<em class="parameter"><code><
|
1536
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>);</pre>
|
1537
1537
|
<p>Requests the contents of the clipboard using the given target.
|
1538
1538
|
This function waits for the data to be received using the main
|
1539
1539
|
loop, so events, timeouts, etc, may be dispatched during the wait.</p>
|
@@ -1646,7 +1646,7 @@ converted into an image.). </p>
|
|
1646
1646
|
<pre class="programlisting"><span class="returnvalue">guint8</span> *
|
1647
1647
|
gtk_clipboard_wait_for_rich_text (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
1648
1648
|
<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>,
|
1649
|
-
<em class="parameter"><code><
|
1649
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> *format</code></em>,
|
1650
1650
|
<em class="parameter"><code><span class="type">gsize</span> *length</code></em>);</pre>
|
1651
1651
|
<p>Requests the contents of the clipboard as rich text. This function
|
1652
1652
|
waits for the data to be received using the main loop, so events,
|
@@ -1879,7 +1879,7 @@ the actual URI data.</p>
|
|
1879
1879
|
<a name="gtk-clipboard-wait-for-targets"></a><h3>gtk_clipboard_wait_for_targets ()</h3>
|
1880
1880
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
1881
1881
|
gtk_clipboard_wait_for_targets (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
1882
|
-
<em class="parameter"><code><
|
1882
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> **targets</code></em>,
|
1883
1883
|
<em class="parameter"><code><span class="type">gint</span> *n_targets</code></em>);</pre>
|
1884
1884
|
<p>Returns a list of targets that are present on the clipboard, or <code class="literal">NULL</code>
|
1885
1885
|
if there aren’t any targets available. The returned list must be
|
@@ -1929,7 +1929,7 @@ otherwise <code class="literal">FALSE</code>.</p>
|
|
1929
1929
|
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
1930
1930
|
gtk_clipboard_wait_is_target_available
|
1931
1931
|
(<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>,
|
1932
|
-
<em class="parameter"><code><
|
1932
|
+
<em class="parameter"><code><span class="type">GdkAtom</span> target</code></em>);</pre>
|
1933
1933
|
<p>Checks if a clipboard supports pasting data of a given type. This
|
1934
1934
|
function can be used to determine if a “Paste” menu item should be
|
1935
1935
|
insensitive or not.</p>
|
@@ -1951,7 +1951,7 @@ insensitive or not.</p>
|
|
1951
1951
|
</tr>
|
1952
1952
|
<tr>
|
1953
1953
|
<td class="parameter_name"><p>target</p></td>
|
1954
|
-
<td class="parameter_description"><p>A <
|
1954
|
+
<td class="parameter_description"><p>A <span class="type">GdkAtom</span> indicating which target to look for.</p></td>
|
1955
1955
|
<td class="parameter_annotations"> </td>
|
1956
1956
|
</tr>
|
1957
1957
|
</tbody>
|
@@ -1974,7 +1974,7 @@ gtk_clipboard_set_can_store (<em class="parameter"><code><a class="link" href="g
|
|
1974
1974
|
application exits or when <a class="link" href="gtk3-Clipboards.html#gtk-clipboard-store" title="gtk_clipboard_store ()"><code class="function">gtk_clipboard_store()</code></a> is called.</p>
|
1975
1975
|
<p>This value is reset when the clipboard owner changes.
|
1976
1976
|
Where the clipboard data is stored is platform dependent,
|
1977
|
-
see <
|
1977
|
+
see <code class="function">gdk_display_store_clipboard()</code> for more information.</p>
|
1978
1978
|
<div class="refsect3">
|
1979
1979
|
<a name="gtk-clipboard-set-can-store.parameters"></a><h4>Parameters</h4>
|
1980
1980
|
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
@@ -2034,7 +2034,7 @@ around after the application has quit.</p>
|
|
2034
2034
|
<hr>
|
2035
2035
|
<div class="refsect2">
|
2036
2036
|
<a name="gtk-clipboard-get-selection"></a><h3>gtk_clipboard_get_selection ()</h3>
|
2037
|
-
<pre class="programlisting"><
|
2037
|
+
<pre class="programlisting"><span class="returnvalue">GdkAtom</span>
|
2038
2038
|
gtk_clipboard_get_selection (<em class="parameter"><code><a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard</code></em>);</pre>
|
2039
2039
|
<p>Gets the selection that this clipboard is for.</p>
|
2040
2040
|
<div class="refsect3">
|
@@ -2072,7 +2072,7 @@ gtk_clipboard_get_selection (<em class="parameter"><code><a class="link" href="g
|
|
2072
2072
|
<a name="GtkClipboard-owner-change"></a><h3>The <code class="literal">“owner-change”</code> signal</h3>
|
2073
2073
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
2074
2074
|
user_function (<a class="link" href="gtk3-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> *clipboard,
|
2075
|
-
<
|
2075
|
+
<span class="type">GdkEvent</span> *event,
|
2076
2076
|
<span class="type">gpointer</span> user_data)</pre>
|
2077
2077
|
<p>The ::owner-change signal is emitted when GTK+ receives an
|
2078
2078
|
event that indicates that the ownership of the selection
|