gdk3 3.1.6-x64-mingw32 → 3.1.7-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/gdk3/loader.rb +1 -0
- 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/gtktextview.h +1 -2
- data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +3 -3
- 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/Gtk-3.0.gir +39 -35
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +22 -22
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +4 -4
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevicePad.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDrawingContext.html +4 -4
- data/vendor/local/share/gtk-doc/html/gdk3/GdkFrameClock.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +6 -6
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +39 -39
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +7 -7
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +5 -5
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +54 -54
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +9 -9
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +1 -1
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +73 -73
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +1 -1
- 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 +24 -24
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +10 -10
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.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 +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +42 -42
- 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/GtkFileChooser.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGLArea.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGesture.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureMultiPress.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGestureSingle.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +9 -9
- 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 +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +1 -1
- 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/GtkPrintContext.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +19 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.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 +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +10 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +77 -77
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +94 -94
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +38 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +16 -16
- 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 +323 -323
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +61 -59
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +0 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ch26s02.html +59 -59
- 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 +46 -46
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +5 -5
- 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-migrating-theme-GtkStyleContext-engines.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +27 -27
- 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 +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +46 -46
- 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 +29 -29
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +46 -46
- 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 +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +1 -0
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +1 -1
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/es/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/hr/LC_MESSAGES/gtk30.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/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/lv/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30-properties.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/sr/LC_MESSAGES/gtk30-properties.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-properties.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-properties.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 +10 -10
@@ -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 <a href="../
|
75
|
+
macros <a href="../gdk4/gdk4-General.html#GDK-VERSION-MIN-REQUIRED:CAPS"><code class="literal">GDK_VERSION_MIN_REQUIRED</code></a> and <a href="../gdk4/gdk4-General.html#GDK-VERSION-MAX-ALLOWED:CAPS"><code class="literal">GDK_VERSION_MAX_ALLOWED</code></a>,
|
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 @@ GAppLaunchContext <span class="gtkdoc opt">*</span>context<span class="gtkdoc op
|
|
311
311
|
GError <span class="gtkdoc opt">*</span>error <span class="gtkdoc opt">=</span> NULL<span class="gtkdoc opt">;</span>
|
312
312
|
|
313
313
|
info <span class="gtkdoc opt">= (</span>GAppInfo<span class="gtkdoc opt">*)</span> <span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new">g_desktop_app_info_new</a></span> <span class="gtkdoc opt">(</span><span class="string">"epiphany.desktop"</span><span class="gtkdoc opt">);</span>
|
314
|
-
context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc opt">*)</span> <span class="function"><a href="../
|
314
|
+
context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc opt">*)</span> <span class="function"><a href="../gdk4/GdkDisplay.html#gdk-display-get-app-launch-context">gdk_display_get_app_launch_context</a></span> <span class="gtkdoc opt">(</span>display<span class="gtkdoc opt">);</span>
|
315
315
|
<span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html#g-app-info-launch">g_app_info_launch</a></span> <span class="gtkdoc opt">(</span>info<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">,</span> context<span class="gtkdoc opt">, &</span>error<span class="gtkdoc opt">);</span>
|
316
316
|
|
317
317
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>error<span class="gtkdoc opt">)</span>
|
@@ -337,7 +337,7 @@ context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc
|
|
337
337
|
with <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html#g-app-info-create-from-commandline"><code class="function">g_app_info_create_from_commandline()</code></a>, or you can use the
|
338
338
|
more lowlevel <code class="literal">g_spawn</code> family of functions
|
339
339
|
(e.g. <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html#g-spawn-command-line-async"><code class="function">g_spawn_command_line_async()</code></a>), 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>
|
@@ -357,7 +357,7 @@ context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc
|
|
357
357
|
The <span class="type">GdkGC</span> and <span class="type">GdkImage</span> objects, as well as all the functions using
|
358
358
|
them, are gone. This includes the <code class="literal">gdk_draw</code> family
|
359
359
|
of functions like <code class="function">gdk_draw_rectangle()</code> and <code class="function">gdk_draw_drawable()</code>. As
|
360
|
-
<span class="type">GdkGC</span> is roughly equivalent to <
|
360
|
+
<span class="type">GdkGC</span> is roughly equivalent to <span class="type">cairo_t</span> and <span class="type">GdkImage</span> was used for
|
361
361
|
drawing images to GdkWindows, which cairo supports automatically,
|
362
362
|
a transition is usually straightforward.
|
363
363
|
</p>
|
@@ -390,8 +390,8 @@ context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc
|
|
390
390
|
pixbuf<span class="gtkdoc opt">,</span>
|
391
391
|
<span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span>
|
392
392
|
x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">,</span>
|
393
|
-
<span class="function"><a href="
|
394
|
-
<span class="function"><a href="
|
393
|
+
<span class="function"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width">gdk_pixbuf_get_width</a></span> <span class="gtkdoc opt">(</span>pixbuf<span class="gtkdoc opt">),</span>
|
394
|
+
<span class="function"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height">gdk_pixbuf_get_height</a></span> <span class="gtkdoc opt">(</span>pixbuf<span class="gtkdoc opt">),</span>
|
395
395
|
GDK_RGB_DITHER_NORMAL<span class="gtkdoc opt">,</span>
|
396
396
|
<span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span></pre></td>
|
397
397
|
</tr>
|
@@ -410,10 +410,10 @@ context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc
|
|
410
410
|
2
|
411
411
|
3
|
412
412
|
4</pre></td>
|
413
|
-
<td class="listing_code"><pre class="programlisting">cairo_t <span class="gtkdoc opt">*</span>cr <span class="gtkdoc opt">=</span> <span class="function"
|
414
|
-
<span class="function"><a href="../
|
415
|
-
<span class="function"
|
416
|
-
<span class="function"
|
413
|
+
<td class="listing_code"><pre class="programlisting">cairo_t <span class="gtkdoc opt">*</span>cr <span class="gtkdoc opt">=</span> <span class="function">gdk_cairo_create</span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">);</span>
|
414
|
+
<span class="function"><a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf">gdk_cairo_set_source_pixbuf</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> pixbuf<span class="gtkdoc opt">,</span> x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">);</span>
|
415
|
+
<span class="function">cairo_paint</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
416
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
417
417
|
</tr>
|
418
418
|
</tbody>
|
419
419
|
</table>
|
@@ -421,9 +421,9 @@ context <span class="gtkdoc opt">= (</span>GAppLaunchContext<span class="gtkdoc
|
|
421
421
|
|
422
422
|
<p>
|
423
423
|
Note that very similar code can be used when porting code
|
424
|
-
using GdkPixmap to <
|
425
|
-
<
|
426
|
-
<a href="../
|
424
|
+
using GdkPixmap to <span class="type">cairo_surface_t</span> by calling
|
425
|
+
<code class="function">cairo_set_source_surface()</code> instead of
|
426
|
+
<a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a>.
|
427
427
|
</p>
|
428
428
|
</div>
|
429
429
|
</div>
|
@@ -493,12 +493,12 @@ gc <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.h
|
|
493
493
|
cairo_surface_t <span class="gtkdoc opt">*</span>surface<span class="gtkdoc opt">;</span>
|
494
494
|
|
495
495
|
surface <span class="gtkdoc opt">= ...</span>
|
496
|
-
cr <span class="gtkdoc opt">=</span> <span class="function"
|
497
|
-
<span class="function"
|
498
|
-
<span class="function"
|
499
|
-
<span class="function"
|
500
|
-
<span class="function"
|
501
|
-
<span class="function"
|
496
|
+
cr <span class="gtkdoc opt">=</span> <span class="function">gdk_cairo_create</span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">);</span>
|
497
|
+
<span class="function">cairo_set_source_surface</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> surface<span class="gtkdoc opt">,</span> x_origin<span class="gtkdoc opt">,</span> y_origin<span class="gtkdoc opt">);</span>
|
498
|
+
<span class="function">cairo_pattern_set_extend</span> <span class="gtkdoc opt">(</span><span class="function">cairo_get_source</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">),</span> CAIRO_EXTEND_REPEAT<span class="gtkdoc opt">);</span>
|
499
|
+
<span class="function">cairo_rectangle</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> width<span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">);</span>
|
500
|
+
<span class="function">cairo_fill</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
501
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
502
502
|
</tr>
|
503
503
|
</tbody>
|
504
504
|
</table>
|
@@ -508,7 +508,7 @@ cr <span class="gtkdoc opt">=</span> <span class="function"><a href="../html/gdk
|
|
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
|
-
<a href="../
|
511
|
+
<a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a> instead of <code class="function">cairo_set_source_surface()</code>.
|
512
512
|
</p>
|
513
513
|
</div>
|
514
514
|
</div>
|
@@ -576,28 +576,28 @@ GtkStateFlags flags<span class="gtkdoc opt">;</span>
|
|
576
576
|
GdkRGBA rgba<span class="gtkdoc opt">;</span>
|
577
577
|
cairo_t <span class="gtkdoc opt">*</span>cr<span class="gtkdoc opt">;</span>
|
578
578
|
|
579
|
-
cr <span class="gtkdoc opt">=</span> <span class="function"
|
579
|
+
cr <span class="gtkdoc opt">=</span> <span class="function">gdk_cairo_create</span> <span class="gtkdoc opt">(</span>drawable<span class="gtkdoc opt">);</span>
|
580
580
|
<span class="comment">/* clip */</span>
|
581
|
-
<span class="function"><a href="../
|
582
|
-
<span class="function"
|
581
|
+
<span class="function"><a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-rectangle">gdk_cairo_rectangle</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">, &</span>area<span class="gtkdoc opt">);</span>
|
582
|
+
<span class="function">cairo_clip</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
583
583
|
<span class="comment">/* set the correct source color */</span>
|
584
584
|
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>widget<span class="gtkdoc opt">));</span>
|
585
585
|
state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.html#gtk-widget-get-state-flags">gtk_widget_get_state_flags</a></span> <span class="gtkdoc opt">(</span>widget<span class="gtkdoc opt">);</span>
|
586
586
|
<span class="function"><a href="GtkStyleContext.html#gtk-style-context-get-color">gtk_style_context_get_color</a></span> <span class="gtkdoc opt">(</span>context<span class="gtkdoc opt">,</span> state<span class="gtkdoc opt">, &</span>rgba<span class="gtkdoc opt">);</span>
|
587
|
-
<span class="function"><a href="../
|
587
|
+
<span class="function"><a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-set-source-rgba">gdk_cairo_set_source_rgba</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">, &</span>rgba<span class="gtkdoc opt">);</span>
|
588
588
|
<span class="comment">/* draw the text */</span>
|
589
|
-
<span class="function"
|
590
|
-
<span class="function"><a href="
|
591
|
-
<span class="function"
|
589
|
+
<span class="function">cairo_move_to</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">);</span>
|
590
|
+
<span class="function"><a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> layout<span class="gtkdoc opt">);</span>
|
591
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
592
592
|
</tr>
|
593
593
|
</tbody>
|
594
594
|
</table>
|
595
595
|
</div>
|
596
596
|
|
597
597
|
<p>
|
598
|
-
Clipping using <
|
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>
|
@@ -609,7 +609,7 @@ state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidge
|
|
609
609
|
<p><b>No more stippling. </b>
|
610
610
|
Stippling is the usage of a bi-level mask, called a <span class="type">GdkBitmap</span>.
|
611
611
|
It was often used to achieve a checkerboard effect. You can use
|
612
|
-
<
|
612
|
+
<code class="function">cairo_mask()</code> to achieve this effect. To get a checkerbox mask,
|
613
613
|
you can use code like this:
|
614
614
|
</p>
|
615
615
|
<div class="informalexample">
|
@@ -645,14 +645,14 @@ state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidge
|
|
645
645
|
cairo_surface_t <span class="gtkdoc opt">*</span>surface<span class="gtkdoc opt">;</span>
|
646
646
|
cairo_pattern_t <span class="gtkdoc opt">*</span>pattern<span class="gtkdoc opt">;</span>
|
647
647
|
|
648
|
-
surface <span class="gtkdoc opt">=</span> <span class="function"
|
648
|
+
surface <span class="gtkdoc opt">=</span> <span class="function">cairo_image_surface_create_for_data</span> <span class="gtkdoc opt">(</span>data<span class="gtkdoc opt">,</span>
|
649
649
|
CAIRO_FORMAT_A8<span class="gtkdoc opt">,</span>
|
650
650
|
<span class="number">2</span><span class="gtkdoc opt">,</span> <span class="number">2</span><span class="gtkdoc opt">,</span>
|
651
651
|
<span class="number">4</span><span class="gtkdoc opt">);</span>
|
652
|
-
pattern <span class="gtkdoc opt">=</span> <span class="function"
|
653
|
-
<span class="function"
|
654
|
-
<span class="function"
|
655
|
-
<span class="function"
|
652
|
+
pattern <span class="gtkdoc opt">=</span> <span class="function">cairo_pattern_create_for_surface</span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">);</span>
|
653
|
+
<span class="function">cairo_surface_destroy</span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">);</span>
|
654
|
+
<span class="function">cairo_pattern_set_extend</span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> CAIRO_EXTEND_REPEAT<span class="gtkdoc opt">);</span>
|
655
|
+
<span class="function">cairo_pattern_set_filter</span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> CAIRO_FILTER_NEAREST<span class="gtkdoc opt">);</span>
|
656
656
|
|
657
657
|
<span class="keyword">return</span> pattern<span class="gtkdoc opt">;</span>
|
658
658
|
<span class="gtkdoc opt">}</span></pre></td>
|
@@ -671,7 +671,7 @@ state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidge
|
|
671
671
|
The <code class="function">gdk_draw_drawable()</code> function allowed using the same drawable
|
672
672
|
as source and target. This was often used to achieve a scrolling
|
673
673
|
effect. Cairo does not allow this yet. You can however use
|
674
|
-
<
|
674
|
+
<code class="function">cairo_push_group()</code> to get a different intermediate target that
|
675
675
|
you can copy to. So you can replace this code:
|
676
676
|
</p>
|
677
677
|
<div class="informalexample">
|
@@ -715,19 +715,19 @@ state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidge
|
|
715
715
|
11
|
716
716
|
12
|
717
717
|
13</pre></td>
|
718
|
-
<td class="listing_code"><pre class="programlisting">cairo_t <span class="gtkdoc opt">*</span>cr <span class="gtkdoc opt">=</span> <span class="function"
|
718
|
+
<td class="listing_code"><pre class="programlisting">cairo_t <span class="gtkdoc opt">*</span>cr <span class="gtkdoc opt">=</span> <span class="function">cairo_create</span> <span class="gtkdoc opt">(</span>surface<span class="gtkdoc opt">);</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"><a href="../
|
722
|
-
<span class="function"
|
721
|
+
<span class="function"><a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-rectangle">gdk_cairo_rectangle</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">, &</span>area<span class="gtkdoc opt">);</span>
|
722
|
+
<span class="function">cairo_clip</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
723
723
|
<span class="comment">/* Now push a group to change the target */</span>
|
724
|
-
<span class="function"
|
725
|
-
<span class="function"
|
726
|
-
<span class="function"
|
724
|
+
<span class="function">cairo_push_group</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
725
|
+
<span class="function">cairo_set_source_surface</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> surface<span class="gtkdoc opt">,</span> dx<span class="gtkdoc opt">,</span> dy<span class="gtkdoc opt">);</span>
|
726
|
+
<span class="function">cairo_paint</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
727
727
|
<span class="comment">/* Now copy the intermediate target back */</span>
|
728
|
-
<span class="function"
|
729
|
-
<span class="function"
|
730
|
-
<span class="function"
|
728
|
+
<span class="function">cairo_pop_group_to_source</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
729
|
+
<span class="function">cairo_paint</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
|
730
|
+
<span class="function">cairo_destroy</span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
|
731
731
|
</tr>
|
732
732
|
</tbody>
|
733
733
|
</table>
|
@@ -737,7 +737,7 @@ state <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidge
|
|
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
|
-
<a href="../
|
740
|
+
<a href="../gdk4/gdk4-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a> 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
|
@@ -749,7 +749,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
749
749
|
function. This is often used to draw text shadows or selections.
|
750
750
|
Pango’s cairo support does not yet provide this functionality. If
|
751
751
|
you use Pango layouts that change colors, the easiest way to achieve
|
752
|
-
a similar effect is using <a href="
|
752
|
+
a similar effect is using <a href="../pango/pango-Cairo-Rendering.html#pango-cairo-layout-path"><code class="function">pango_cairo_layout_path()</code></a> and <code class="function">cairo_fill()</code>
|
753
753
|
instead of <code class="function">gdk_draw_layout_with_colors()</code>. Note that this results in
|
754
754
|
a slightly uglier-looking text, as subpixel anti-aliasing is not
|
755
755
|
supported.
|
@@ -55,7 +55,7 @@
|
|
55
55
|
background<span class="gtkdoc opt">-</span>color<span class="gtkdoc opt">:</span> <span class="gtkdoc ppc">#f3329d;</span>
|
56
56
|
<span class="gtkdoc opt">}</span>
|
57
57
|
|
58
|
-
GtkTreeView
|
58
|
+
GtkTreeView <span class="gtkdoc kwc">row</span><span class="gtkdoc opt">::</span>nth<span class="gtkdoc opt">-</span><span class="function">child</span> <span class="gtkdoc opt">(</span>even<span class="gtkdoc opt">) {</span>
|
59
59
|
background<span class="gtkdoc opt">-</span>color<span class="gtkdoc opt">:</span> <span class="gtkdoc ppc">#dddddd;</span>
|
60
60
|
<span class="gtkdoc opt">}</span></pre></td>
|
61
61
|
</tr>
|
@@ -118,9 +118,9 @@
|
|
118
118
|
xthickness <span class="gtkdoc opt">=</span> <span class="number">1</span>
|
119
119
|
ythickness <span class="gtkdoc opt">=</span> <span class="number">1</span>
|
120
120
|
|
121
|
-
|
122
|
-
|
123
|
-
|
121
|
+
<span class="gtkdoc kwc">GtkButton</span><span class="gtkdoc opt">::</span>child<span class="gtkdoc opt">-</span>displacement<span class="gtkdoc opt">-</span>x <span class="gtkdoc opt">=</span> <span class="number">1</span>
|
122
|
+
<span class="gtkdoc kwc">GtkButton</span><span class="gtkdoc opt">::</span>child<span class="gtkdoc opt">-</span>displacement<span class="gtkdoc opt">-</span>y <span class="gtkdoc opt">=</span> <span class="number">1</span>
|
123
|
+
<span class="gtkdoc kwc">GtkCheckButton</span><span class="gtkdoc opt">::</span>indicator<span class="gtkdoc opt">-</span>size <span class="gtkdoc opt">=</span> <span class="number">14</span>
|
124
124
|
|
125
125
|
bg<span class="gtkdoc opt">[</span>NORMAL<span class="gtkdoc opt">] =</span> @bg_color
|
126
126
|
bg<span class="gtkdoc opt">[</span>PRELIGHT<span class="gtkdoc opt">] =</span> <span class="function">shade</span> <span class="gtkdoc opt">(</span><span class="number">1.02</span><span class="gtkdoc opt">,</span> @bg_color<span class="gtkdoc opt">)</span>
|
@@ -385,7 +385,7 @@ color1 <span class="gtkdoc opt">= &</span>style<span class="gtkdoc opt">->
|
|
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 <a href="../
|
388
|
+
With <a class="link" href="GtkStyleContext.html" title="GtkStyleContext"><span class="type">GtkStyleContext</span></a>, you generally use <a href="../gdk4/gdk4-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> 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 @@ GdkRGBA color2<span class="gtkdoc opt">;</span>
|
|
413
413
|
|
414
414
|
<span class="gtkdoc opt">...</span>
|
415
415
|
|
416
|
-
<span class="function"><a href="../
|
416
|
+
<span class="function"><a href="../gdk4/gdk4-RGBA-Colors.html#gdk-rgba-free">gdk_rgba_free</a></span> <span class="gtkdoc opt">(</span>color1<span class="gtkdoc opt">);</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 <a href="../
|
37
|
+
"focus-color" property with the type <a href="../gdk4/gdk4-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>, 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>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<a class="link" href="GtkStyleContext.html#gtk-render-frame-gap" title="gtk_render_frame_gap ()"><code class="function">gtk_render_frame_gap()</code></a>: Renders a frame border with a gap on one side.
|
64
64
|
</td></tr>
|
65
65
|
<tr><td>
|
66
|
-
<a class="link" href="GtkStyleContext.html#gtk-render-layout" title="gtk_render_layout ()"><code class="function">gtk_render_layout()</code></a>: Renders a <a href="
|
66
|
+
<a class="link" href="GtkStyleContext.html#gtk-render-layout" title="gtk_render_layout ()"><code class="function">gtk_render_layout()</code></a>: Renders a <a href="../pango/pango-Layout-Objects.html#PangoLayout-struct"><span class="type">PangoLayout</span></a>.
|
67
67
|
</td></tr>
|
68
68
|
<tr><td>
|
69
69
|
<a class="link" href="GtkStyleContext.html#gtk-render-handle" title="gtk_render_handle ()"><code class="function">gtk_render_handle()</code></a>: Renders all kind of handles and resize grips,
|
@@ -101,7 +101,7 @@
|
|
101
101
|
a progressbar or a spinner.
|
102
102
|
</td></tr>
|
103
103
|
<tr><td>
|
104
|
-
<a class="link" href="GtkStyleContext.html#gtk-render-icon-pixbuf" title="gtk_render_icon_pixbuf ()"><code class="function">gtk_render_icon_pixbuf()</code></a>: Renders an icon into a <a href="
|
104
|
+
<a class="link" href="GtkStyleContext.html#gtk-render-icon-pixbuf" title="gtk_render_icon_pixbuf ()"><code class="function">gtk_render_icon_pixbuf()</code></a>: Renders an icon into a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a>.
|
105
105
|
</td></tr>
|
106
106
|
</table>
|
107
107
|
<p>
|
@@ -547,7 +547,7 @@ 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"><a href="../
|
550
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="../gdk4/gdk4-Windows.html#gdk-window-set-events">gdk_window_set_events</a></span> <span class="gtkdoc opt">(</span>gdk_window<span class="gtkdoc opt">,</span>
|
551
551
|
GDK_BUTTON_PRESS_MASK <span class="gtkdoc opt">|</span> GDK_BUTTON_RELEASE_MASK<span class="gtkdoc opt">);</span></pre></td>
|
552
552
|
</tr>
|
553
553
|
</tbody>
|
@@ -563,7 +563,7 @@ 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"><a href="../
|
566
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="../gdk4/gdk4-Windows.html#gdk-window-set-events">gdk_window_set_events</a></span> <span class="gtkdoc opt">(</span>gdk_window<span class="gtkdoc opt">,</span>
|
567
567
|
<span class="gtkdoc opt">(</span>GdkEventMask<span class="gtkdoc opt">)</span> GDK_BUTTON_PRESS_MASK <span class="gtkdoc opt">|</span> GDK_BUTTON_RELEASE_MASK<span class="gtkdoc opt">);</span></pre></td>
|
568
568
|
</tr>
|
569
569
|
</tbody>
|
@@ -604,15 +604,15 @@ How do I load an image or animation from a file?
|
|
604
604
|
<p>
|
605
605
|
To load an image file straight into a display widget, use
|
606
606
|
<a class="link" href="GtkImage.html#gtk-image-new-from-file" title="gtk_image_new_from_file ()"><code class="function">gtk_image_new_from_file()</code></a> <a href="#ftn.id-1.2.5.3.3.1.12.2.1.2" class="footnote" name="id-1.2.5.3.3.1.12.2.1.2"><sup class="footnote">[1]</sup></a>.
|
607
|
-
To load an image for another purpose, use <a href="
|
608
|
-
load an animation, use <a href="
|
609
|
-
<a href="
|
610
|
-
use it in combination with <a href="
|
607
|
+
To load an image for another purpose, use <a href="../gdk-pixbuf/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file"><code class="function">gdk_pixbuf_new_from_file()</code></a>. To
|
608
|
+
load an animation, use <a href="../gdk-pixbuf/gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-file"><code class="function">gdk_pixbuf_animation_new_from_file()</code></a>.
|
609
|
+
<a href="../gdk-pixbuf/gdk-pixbuf-Animations.html#gdk-pixbuf-animation-new-from-file"><code class="function">gdk_pixbuf_animation_new_from_file()</code></a> can also load non-animated images, so
|
610
|
+
use it in combination with <a href="../gdk-pixbuf/gdk-pixbuf-Animations.html#gdk-pixbuf-animation-is-static-image"><code class="function">gdk_pixbuf_animation_is_static_image()</code></a> to load a
|
611
611
|
file of unknown type.
|
612
612
|
</p>
|
613
613
|
<p>
|
614
614
|
To load an image or animation file asynchronously (without blocking), use
|
615
|
-
<a href="
|
615
|
+
<a href="../gdk-pixbuf/GdkPixbufLoader.html#GdkPixbufLoader-struct"><span class="type">GdkPixbufLoader</span></a>.
|
616
616
|
</p>
|
617
617
|
</td>
|
618
618
|
</tr>
|
@@ -628,7 +628,7 @@ How do I draw text ?
|
|
628
628
|
<td align="left" valign="top"></td>
|
629
629
|
<td align="left" valign="top">
|
630
630
|
<p>
|
631
|
-
To draw a piece of text, use a Pango layout and <a href="
|
631
|
+
To draw a piece of text, use a Pango layout and <a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout"><code class="function">pango_cairo_show_layout()</code></a>.
|
632
632
|
</p>
|
633
633
|
<div class="informalexample">
|
634
634
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
@@ -641,10 +641,10 @@ To draw a piece of text, use a Pango layout and <a href="/home/mclasen/gnome/sha
|
|
641
641
|
5
|
642
642
|
6</pre></td>
|
643
643
|
<td class="listing_code"><pre class="programlisting">layout <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.html#gtk-widget-create-pango-layout">gtk_widget_create_pango_layout</a></span> <span class="gtkdoc opt">(</span>widget<span class="gtkdoc opt">,</span> text<span class="gtkdoc opt">);</span>
|
644
|
-
fontdesc <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
645
|
-
<span class="function"><a href="
|
646
|
-
<span class="function"><a href="
|
647
|
-
<span class="function"><a href="
|
644
|
+
fontdesc <span class="gtkdoc opt">=</span> <span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-from-string">pango_font_description_from_string</a></span> <span class="gtkdoc opt">(</span><span class="string">"Luxi Mono 12"</span><span class="gtkdoc opt">);</span>
|
645
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">,</span> fontdesc<span class="gtkdoc opt">);</span>
|
646
|
+
<span class="function"><a href="../pango/pango-Cairo-Rendering.html#pango-cairo-show-layout">pango_cairo_show_layout</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> layout<span class="gtkdoc opt">);</span>
|
647
|
+
<span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span> <span class="gtkdoc opt">(</span>fontdesc<span class="gtkdoc opt">);</span>
|
648
648
|
<span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">);</span></pre></td>
|
649
649
|
</tr>
|
650
650
|
</tbody>
|
@@ -673,7 +673,7 @@ How do I measure the size of a piece of text ?
|
|
673
673
|
<td align="left" valign="top">
|
674
674
|
<p>
|
675
675
|
To obtain the size of a piece of text, use a Pango layout and
|
676
|
-
<a href="
|
676
|
+
<a href="../pango/pango-Layout-Objects.html#pango-layout-get-pixel-size"><code class="function">pango_layout_get_pixel_size()</code></a>, using code like the following:
|
677
677
|
</p>
|
678
678
|
<div class="informalexample">
|
679
679
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
@@ -686,10 +686,10 @@ To obtain the size of a piece of text, use a Pango layout and
|
|
686
686
|
5
|
687
687
|
6</pre></td>
|
688
688
|
<td class="listing_code"><pre class="programlisting">layout <span class="gtkdoc opt">=</span> <span class="function"><a href="GtkWidget.html#gtk-widget-create-pango-layout">gtk_widget_create_pango_layout</a></span> <span class="gtkdoc opt">(</span>widget<span class="gtkdoc opt">,</span> text<span class="gtkdoc opt">);</span>
|
689
|
-
fontdesc <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
690
|
-
<span class="function"><a href="
|
691
|
-
<span class="function"><a href="
|
692
|
-
<span class="function"><a href="
|
689
|
+
fontdesc <span class="gtkdoc opt">=</span> <span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-from-string">pango_font_description_from_string</a></span> <span class="gtkdoc opt">(</span><span class="string">"Luxi Mono 12"</span><span class="gtkdoc opt">);</span>
|
690
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">,</span> fontdesc<span class="gtkdoc opt">);</span>
|
691
|
+
<span class="function"><a href="../pango/pango-Layout-Objects.html#pango-layout-get-pixel-size">pango_layout_get_pixel_size</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">, &</span>width<span class="gtkdoc opt">, &</span>height<span class="gtkdoc opt">);</span>
|
692
|
+
<span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span> <span class="gtkdoc opt">(</span>fontdesc<span class="gtkdoc opt">);</span>
|
693
693
|
<span class="function"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>layout<span class="gtkdoc opt">);</span></pre></td>
|
694
694
|
</tr>
|
695
695
|
</tbody>
|
@@ -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 <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> 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">GdkVisual <span class="gtkdoc opt">*</span>visual<span class="gtkdoc opt">;</span>
|
778
778
|
|
779
|
-
visual <span class="gtkdoc opt">=</span> <span class="function"
|
779
|
+
visual <span class="gtkdoc opt">=</span> <span class="function">gdk_screen_get_rgba_visual</span> <span class="gtkdoc opt">(</span>screen<span class="gtkdoc opt">);</span>
|
780
780
|
<span class="keyword">if</span> <span class="gtkdoc opt">(</span>visual <span class="gtkdoc opt">==</span> NULL<span class="gtkdoc opt">)</span>
|
781
|
-
visual <span class="gtkdoc opt">=</span> <span class="function"
|
781
|
+
visual <span class="gtkdoc opt">=</span> <span class="function">gdk_screen_get_system_visual</span> <span class="gtkdoc opt">(</span>screen<span class="gtkdoc opt">);</span>
|
782
782
|
|
783
783
|
<span class="function"><a href="GtkWidget.html#gtk-widget-set-visual">gtk_widget_set_visual</a></span> <span class="gtkdoc opt">(</span><span class="function">GTK_WIDGET</span> <span class="gtkdoc opt">(</span>window<span class="gtkdoc opt">),</span> visual<span class="gtkdoc opt">);</span></pre></td>
|
784
784
|
</tr>
|
@@ -920,10 +920,10 @@ achieve. One option is <a class="link" href="GtkWidget.html#gtk-widget-override-
|
|
920
920
|
2
|
921
921
|
3
|
922
922
|
4</pre></td>
|
923
|
-
<td class="listing_code"><pre class="programlisting">PangoFontDesc <span class="gtkdoc opt">*</span>font_desc <span class="gtkdoc opt">=</span> <span class="function"><a href="
|
924
|
-
<span class="function"><a href="
|
923
|
+
<td class="listing_code"><pre class="programlisting">PangoFontDesc <span class="gtkdoc opt">*</span>font_desc <span class="gtkdoc opt">=</span> <span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-new">pango_font_description_new</a></span> <span class="gtkdoc opt">();</span>
|
924
|
+
<span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-set-size">pango_font_description_set_size</a></span> <span class="gtkdoc opt">(</span>font_desc<span class="gtkdoc opt">,</span> <span class="number">40</span><span class="gtkdoc opt">);</span>
|
925
925
|
<span class="function"><a href="GtkWidget.html#gtk-widget-override-font">gtk_widget_override_font</a></span> <span class="gtkdoc opt">(</span>widget<span class="gtkdoc opt">,</span> font<span class="gtkdoc opt">);</span>
|
926
|
-
<span class="function"><a href="
|
926
|
+
<span class="function"><a href="../pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span> <span class="gtkdoc opt">(</span>font_desc<span class="gtkdoc opt">);</span></pre></td>
|
927
927
|
</tr>
|
928
928
|
</tbody>
|
929
929
|
</table>
|
@@ -1366,7 +1366,7 @@ Render extension).
|
|
1366
1366
|
<a name="id-1.2.5.3.3.6.4"></a><a name="id-1.2.5.3.3.6.4.1"></a><p><b>6.3.</b></p>
|
1367
1367
|
</td>
|
1368
1368
|
<td align="left" valign="top"><p>
|
1369
|
-
Can I use cairo to draw on a <a href="
|
1369
|
+
Can I use cairo to draw on a <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf-struct"><span class="type">GdkPixbuf</span></a> ?
|
1370
1370
|
</p></td>
|
1371
1371
|
</tr>
|
1372
1372
|
<tr class="answer">
|
@@ -1384,7 +1384,7 @@ pixel format used by GdkPixbuf.
|
|
1384
1384
|
<br><hr style="width:100; text-align:left;margin-left: 0">
|
1385
1385
|
<div id="ftn.id-1.2.5.3.3.1.12.2.1.2" class="footnote"><p><a href="#id-1.2.5.3.3.1.12.2.1.2" class="para"><sup class="para">[1] </sup></a> If the file load fails,
|
1386
1386
|
<a class="link" href="GtkImage.html#gtk-image-new-from-file" title="gtk_image_new_from_file ()"><code class="function">gtk_image_new_from_file()</code></a> will display no image graphic — to detect
|
1387
|
-
a failed load yourself, use <a href="
|
1387
|
+
a failed load yourself, use <a href="../gdk-pixbuf/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file"><code class="function">gdk_pixbuf_new_from_file()</code></a> directly, then
|
1388
1388
|
<a class="link" href="GtkImage.html#gtk-image-new-from-pixbuf" title="gtk_image_new_from_pixbuf ()"><code class="function">gtk_image_new_from_pixbuf()</code></a>.</p></div>
|
1389
1389
|
</div>
|
1390
1390
|
</div>
|
@@ -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><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
268
268
|
<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
269
269
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
270
|
-
<em class="parameter"><code><a href="../
|
270
|
+
<em class="parameter"><code><a href="../gdk4/gdk4-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
271
271
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> 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 <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
317
317
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
318
|
-
<em class="parameter"><code><a href="../
|
318
|
+
<em class="parameter"><code><a href="../gdk4/gdk4-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> 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, <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-
|
|
403
403
|
<pre class="programlisting"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
404
404
|
gtk_accel_map_change_entry (<em class="parameter"><code>const <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
405
405
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
406
|
-
<em class="parameter"><code><a href="../
|
406
|
+
<em class="parameter"><code><a href="../gdk4/gdk4-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
407
407
|
<em class="parameter"><code><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> 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
|
<a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path,
|
777
777
|
<a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key,
|
778
|
-
<a href="../
|
778
|
+
<a href="../gdk4/gdk4-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods,
|
779
779
|
<a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> 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,
|