gdk3 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -2
- data/lib/2.0/gdk3.so +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-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-widget-factory.exe +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/include/gtk-3.0/gdk/gdkversionmacros.h +1 -1
- data/vendor/local/include/gtk-3.0/gtk/gtktextbufferrichtext.h +1 -1
- 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/gtk-3.0/3.0.0/immodules/im-am-et.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.la +1 -1
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll.a +0 -0
- data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.la +1 -1
- 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/pkgconfig/gail-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Gdk-3.0.gir +1 -1
- data/vendor/local/share/gir-1.0/Gtk-3.0.gir +42 -25
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +90 -90
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +28 -28
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gail-libgail-util3/libgail-util-main.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +115 -115
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +16 -16
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +104 -104
- data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplayManager.html +13 -13
- data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +103 -101
- data/vendor/local/share/gtk-doc/html/gdk3/annotation-glossary.html +5 -3
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-0.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-8.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Application-launching.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +48 -48
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Colors.html +16 -16
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +14 -14
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Drag-and-Drop.html +44 -44
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +122 -122
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +112 -113
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameClock.html +22 -22
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameTimings.html +19 -19
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +98 -98
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +26 -26
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Properties-and-Atoms.html +52 -52
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-RGBA-Colors.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +38 -38
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Testing.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +87 -87
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Visuals.html +54 -54
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +389 -389
- data/vendor/local/share/gtk-doc/html/gdk3/gdk3-X-Window-System-Interaction.html +137 -137
- data/vendor/local/share/gtk-doc/html/gdk3/index.html +3 -3
- data/vendor/local/share/gtk-doc/html/gdk3/index.sgml +1 -0
- data/vendor/local/share/gtk-doc/html/gdk3/reference.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/AbstractObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/Actions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/Application.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ApplicationChoosing.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/Builder.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ButtonWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/DeprecatedObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/DisplayWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +121 -121
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAccessible.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAction.html +158 -146
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionGroup.html +132 -126
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +28 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAdjustment.html +86 -81
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAlignment.html +56 -56
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserButton.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserDialog.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserWidget.html +58 -58
- data/vendor/local/share/gtk-doc/html/gtk3/GtkApplication.html +142 -142
- data/vendor/local/share/gtk-doc/html/gtk3/GtkApplicationWindow.html +49 -49
- data/vendor/local/share/gtk-doc/html/gtk3/GtkArrow.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAspectFrame.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBin.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBox.html +63 -63
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +55 -55
- data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +153 -153
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +94 -88
- data/vendor/local/share/gtk-doc/html/gtk3/GtkButtonBox.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCalendar.html +91 -91
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +182 -182
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaBox.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaContext.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +150 -147
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +32 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererCombo.html +26 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +21 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererProgress.html +24 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpin.html +10 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpinner.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +118 -109
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererToggle.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +34 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckButton.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckMenuItem.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserDialog.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserWidget.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelectionDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +140 -136
- data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBoxText.html +45 -44
- data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +103 -103
- data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +140 -104
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +71 -71
- data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +64 -64
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +330 -310
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryBuffer.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryCompletion.html +110 -110
- data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkExpander.html +69 -69
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +245 -243
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserButton.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserDialog.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserWidget.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFileFilter.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFixed.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +72 -64
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserWidget.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/GtkFrame.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHBox.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHButtonBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHPaned.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHSV.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHScale.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHScrollbar.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkHandleBox.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +70 -70
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContextSimple.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIMMulticontext.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +202 -211
- data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +251 -239
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +90 -89
- data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInfoBar.html +44 -44
- data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +223 -212
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLevelBar.html +56 -56
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLinkButton.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +74 -73
- data/vendor/local/share/gtk-doc/html/gtk3/GtkLockButton.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +126 -126
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuBar.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuButton.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuItem.html +81 -81
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuToolButton.html +20 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +54 -50
- data/vendor/local/share/gtk-doc/html/gtk3/GtkMisc.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkNotebook.html +179 -179
- data/vendor/local/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +58 -58
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetup.html +81 -81
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +79 -68
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +101 -77
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +71 -71
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintSettings.html +327 -215
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk3/GtkPrinter.html +101 -99
- data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +69 -69
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioAction.html +33 -32
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioButton.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioMenuItem.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioToolButton.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +103 -103
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentAction.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +109 -109
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserDialog.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserMenu.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserWidget.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentFilter.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +159 -159
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +65 -64
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScaleButton.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollbar.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +53 -51
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorMenuItem.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorToolItem.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +227 -227
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSizeGroup.html +17 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +18 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +106 -104
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinner.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +174 -167
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusbar.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +333 -333
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +305 -305
- data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkSwitch.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTable.html +94 -94
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTearoffMenuItem.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +327 -274
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +341 -327
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextMark.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +145 -139
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTagTable.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +354 -284
- data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleAction.html +30 -29
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleButton.html +49 -49
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleToolButton.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolButton.html +65 -64
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +67 -66
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +56 -56
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +41 -41
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk3/GtkToolbar.html +87 -69
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +173 -173
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelFilter.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelSort.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSelection.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +81 -80
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +508 -500
- data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +180 -179
- data/vendor/local/share/gtk-doc/html/gtk3/GtkUIManager.html +91 -86
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVBox.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVButtonBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVPaned.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVScale.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVScrollbar.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVSeparator.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/GtkVolumeButton.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +1012 -974
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +337 -337
- data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk3/LayoutContainers.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/MenusAndCombos.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/MiscObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/NumericEntry.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/Ornaments.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/PlugSocket.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/Printing.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/RecentDocuments.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/ScrollingWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/SelectorWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/TextWidget.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk3/TextWidgetObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/TreeWidget.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk3/TreeWidgetObjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/WindowWidgets.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/annotation-glossary.html +5 -3
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-0.html +2 -6
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-2.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-4.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-6.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-8.html +17 -2
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/api-index-full.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/broadwayd.html +15 -4
- data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk3/ch03.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/ch25s02.html +113 -113
- data/vendor/local/share/gtk-doc/html/gtk3/ch27s02.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk3/ch29s02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/ch29s03.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-gdkeventexpose-region.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-modifiers.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/checklist-named-icons.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/glossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-broadway.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-building.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-getting-started.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-launch.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +105 -105
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkGrid.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-checklist.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parsing.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-checklist.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-smclient-GtkApplication.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-theme-GtkStyleContext-engines.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-unique-GtkApplication.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-osx.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-query-immodules-3.0.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +104 -104
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-resources.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-running.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-update-icon-cache.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-wayland.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-windows.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk-x11.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +61 -61
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +119 -119
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +87 -87
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +115 -115
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkStyleProperties.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkWidgetPath.html +145 -145
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +294 -240
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +118 -118
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +276 -84
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +162 -162
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Standard-Enumerations.html +292 -4
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +131 -95
- data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +209 -54
- data/vendor/local/share/gtk-doc/html/gtk3/gtkbase.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/gtkobjects.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk3/index.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk3/index.sgml +156 -0
- data/vendor/local/share/gtk-doc/html/gtk3/migrating.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk3/pt06.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk3/theming.html +2 -2
- data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30.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/ja/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ml/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.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30.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/ug/LC_MESSAGES/gtk30-properties.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
- data/vendor/local/share/man/man1/broadwayd.1 +17 -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-update-icon-cache.1 +1 -1
- metadata +12 -11
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="pt06.html" title="Part VI. GTK+ Tools">
|
9
9
|
<link rel="prev" href="gtk-update-icon-cache.html" title="gtk-update-icon-cache">
|
10
10
|
<link rel="next" href="broadwayd.html" title="broadwayd">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -33,7 +33,7 @@
|
|
33
33
|
<div class="cmdsynopsis"><p><code class="command">gtk-launch</code> [APPLICATION] [URI...]</p></div>
|
34
34
|
</div>
|
35
35
|
<div class="refsect1">
|
36
|
-
<a name="
|
36
|
+
<a name="id-1.7.4.5"></a><h2>Description</h2>
|
37
37
|
<p>
|
38
38
|
<span class="command"><strong>gtk-launch</strong></span> launches an application using the given name.
|
39
39
|
The application is started with proper startup notification on a default
|
@@ -51,7 +51,7 @@ application.
|
|
51
51
|
</p>
|
52
52
|
</div>
|
53
53
|
<div class="refsect1">
|
54
|
-
<a name="
|
54
|
+
<a name="id-1.7.4.6"></a><h2>Options</h2>
|
55
55
|
<p>The following options are understood:</p>
|
56
56
|
<div class="variablelist"><table border="0" class="variablelist">
|
57
57
|
<colgroup>
|
@@ -67,6 +67,6 @@ application.
|
|
67
67
|
</div>
|
68
68
|
<div class="footer">
|
69
69
|
<hr>
|
70
|
-
Generated by GTK-Doc V1.18</div>
|
70
|
+
Generated by GTK-Doc V1.18.1</div>
|
71
71
|
</body>
|
72
72
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="migrating.html" title="Part V. Migrating from Previous Versions of GTK+">
|
9
9
|
<link rel="prev" href="migrating.html" title="Part V. Migrating from Previous Versions of GTK+">
|
10
10
|
<link rel="next" href="ch25s02.html" title="Changes that need to be done at the time of the switch">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
@@ -23,34 +23,34 @@
|
|
23
23
|
<div class="titlepage"><div><div><h2 class="title">
|
24
24
|
<a name="gtk-migrating-2-to-3"></a>Migrating from GTK+ 2.x to GTK+ 3</h2></div></div></div>
|
25
25
|
<div class="toc"><dl class="toc">
|
26
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
26
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3">Preparation in GTK+ 2.x</a></span></dt>
|
27
27
|
<dd><dl>
|
28
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
29
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
30
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
31
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
32
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
33
|
-
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#
|
28
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.3">Do not include individual headers</a></span></dt>
|
29
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.4">Do not use deprecated symbols</a></span></dt>
|
30
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.5">Use accessor functions instead of direct access</a></span></dt>
|
31
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.6">Replace GDK_<keyname> with GDK_KEY_<keyname></a></span></dt>
|
32
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.7">Use GIO for launching applications</a></span></dt>
|
33
|
+
<dt><span class="section"><a href="gtk-migrating-2-to-3.html#id-1.6.3.3.8">Use cairo for drawing</a></span></dt>
|
34
34
|
</dl></dd>
|
35
35
|
<dt><span class="section"><a href="ch25s02.html">Changes that need to be done at the time of the switch</a></span></dt>
|
36
36
|
<dd><dl>
|
37
|
-
<dt><span class="section"><a href="ch25s02.html#
|
38
|
-
<dt><span class="section"><a href="ch25s02.html#
|
39
|
-
<dt><span class="section"><a href="ch25s02.html#
|
40
|
-
<dt><span class="section"><a href="ch25s02.html#
|
41
|
-
<dt><span class="section"><a href="ch25s02.html#
|
42
|
-
<dt><span class="section"><a href="ch25s02.html#
|
43
|
-
<dt><span class="section"><a href="ch25s02.html#
|
44
|
-
<dt><span class="section"><a href="ch25s02.html#
|
45
|
-
<dt><span class="section"><a href="ch25s02.html#
|
46
|
-
<dt><span class="section"><a href="ch25s02.html#
|
47
|
-
<dt><span class="section"><a href="ch25s02.html#
|
48
|
-
<dt><span class="section"><a href="ch25s02.html#
|
49
|
-
<dt><span class="section"><a href="ch25s02.html#
|
50
|
-
<dt><span class="section"><a href="ch25s02.html#
|
51
|
-
<dt><span class="section"><a href="ch25s02.html#
|
52
|
-
<dt><span class="section"><a href="ch25s02.html#
|
53
|
-
<dt><span class="section"><a href="ch25s02.html#
|
37
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.3">Replace size_request by get_preferred_width/height</a></span></dt>
|
38
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.4">Replace GdkRegion by cairo_region_t</a></span></dt>
|
39
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.5">Replace GdkPixmap by cairo surfaces</a></span></dt>
|
40
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.6">Replace GdkColormap by GdkVisual</a></span></dt>
|
41
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.7">GdkDrawable is gone</a></span></dt>
|
42
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.8">Event filtering</a></span></dt>
|
43
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.9">Backend-specific code</a></span></dt>
|
44
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.10">GtkPlug and GtkSocket</a></span></dt>
|
45
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.11">The GtkWidget::draw signal</a></span></dt>
|
46
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.12">GtkProgressBar orientation</a></span></dt>
|
47
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.13">Check your expand and fill flags</a></span></dt>
|
48
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.14">Scrolling changes</a></span></dt>
|
49
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.15">GtkObject is gone</a></span></dt>
|
50
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.16">GtkEntryCompletion signal parameters</a></span></dt>
|
51
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.17">Resize grips</a></span></dt>
|
52
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.18">Prevent mixed linkage</a></span></dt>
|
53
|
+
<dt><span class="section"><a href="ch25s02.html#id-1.6.3.4.19">Install GTK+ modules in the right place</a></span></dt>
|
54
54
|
</dl></dd>
|
55
55
|
</dl></div>
|
56
56
|
<p>
|
@@ -64,7 +64,7 @@
|
|
64
64
|
</p>
|
65
65
|
<div class="section">
|
66
66
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
67
|
-
<a name="
|
67
|
+
<a name="id-1.6.3.3"></a>Preparation in GTK+ 2.x</h2></div></div></div>
|
68
68
|
<p>
|
69
69
|
The steps outlined in the following sections assume that your
|
70
70
|
application is working with GTK+ 2.24, which is the final stable
|
@@ -75,7 +75,7 @@
|
|
75
75
|
</p>
|
76
76
|
<div class="section">
|
77
77
|
<div class="titlepage"><div><div><h3 class="title">
|
78
|
-
<a name="
|
78
|
+
<a name="id-1.6.3.3.3"></a>Do not include individual headers</h3></div></div></div>
|
79
79
|
<p>
|
80
80
|
With GTK+ 2.x it was common to include just the header files for
|
81
81
|
a few widgets that your application was using, which could lead
|
@@ -134,7 +134,7 @@
|
|
134
134
|
</div>
|
135
135
|
<div class="section">
|
136
136
|
<div class="titlepage"><div><div><h3 class="title">
|
137
|
-
<a name="
|
137
|
+
<a name="id-1.6.3.3.4"></a>Do not use deprecated symbols</h3></div></div></div>
|
138
138
|
<p>
|
139
139
|
Over the years, a number of functions, and in some cases, entire
|
140
140
|
widgets have been deprecated. These deprecations are clearly spelled
|
@@ -156,13 +156,13 @@
|
|
156
156
|
Note that some parts of our API, such as enumeration values, are
|
157
157
|
not well covered by the deprecation warnings. In most cases, using
|
158
158
|
them will require you to also use deprecated functions, which will
|
159
|
-
trigger warnings. But some things, like the <code class="literal">GTK_DIALOG_NO_SEPARATOR</code>
|
159
|
+
trigger warnings. But some things, like the <a href="http://library.gnome.org/devel/gtk3/GtkDialog.html#GTK-DIALOG-NO-SEPARATOR:CAPS"><code class="literal">GTK_DIALOG_NO_SEPARATOR</code></a>
|
160
160
|
flag that has disappeared in GTK+ 3, may not.
|
161
161
|
</p>
|
162
162
|
</div>
|
163
163
|
<div class="section">
|
164
164
|
<div class="titlepage"><div><div><h3 class="title">
|
165
|
-
<a name="
|
165
|
+
<a name="id-1.6.3.3.5"></a>Use accessor functions instead of direct access</h3></div></div></div>
|
166
166
|
<p>
|
167
167
|
GTK+ 3 removes many implementation details and struct members from
|
168
168
|
its public headers.
|
@@ -259,7 +259,7 @@
|
|
259
259
|
</div>
|
260
260
|
<div class="section">
|
261
261
|
<div class="titlepage"><div><div><h3 class="title">
|
262
|
-
<a name="
|
262
|
+
<a name="id-1.6.3.3.6"></a>Replace GDK_<keyname> with GDK_KEY_<keyname></h3></div></div></div>
|
263
263
|
<p>
|
264
264
|
Key constants have gained a <code class="literal">_KEY_</code> infix.
|
265
265
|
For example, <code class="literal">GDK_a</code> is now
|
@@ -270,7 +270,7 @@
|
|
270
270
|
</div>
|
271
271
|
<div class="section">
|
272
272
|
<div class="titlepage"><div><div><h3 class="title">
|
273
|
-
<a name="
|
273
|
+
<a name="id-1.6.3.3.7"></a>Use GIO for launching applications</h3></div></div></div>
|
274
274
|
<p>
|
275
275
|
The <code class="literal">gdk_spawn</code> family of functions has been
|
276
276
|
deprecated in GDK 2.24 and removed from GDK 3. Various replacements
|
@@ -283,7 +283,7 @@
|
|
283
283
|
<a class="link" href="gtk3-Filesystem-utilities.html#gtk-show-uri" title="gtk_show_uri ()"><code class="function">gtk_show_uri()</code></a>; as an added benefit, your application will henceforth
|
284
284
|
respect the users preference for what application to use.</li>
|
285
285
|
<li class="listitem">If you are launching a regular, installed application that
|
286
|
-
has a desktop file, it is best to use GIOs <span class="type">GAppInfo</span> with a suitable
|
286
|
+
has a desktop file, it is best to use GIOs <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html"><span class="type">GAppInfo</span></a> with a suitable
|
287
287
|
launch context.
|
288
288
|
<div class="informalexample">
|
289
289
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
@@ -307,20 +307,20 @@
|
|
307
307
|
16</pre></td>
|
308
308
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GAppInfo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">info</span><span class="symbol">;</span>
|
309
309
|
<span class="usertype">GAppLaunchContext</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">context</span><span class="symbol">;</span>
|
310
|
-
<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"> <a href="/
|
310
|
+
<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"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
311
311
|
|
312
|
-
<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>
|
313
|
-
<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"><a href="http://developer.gnome.org/gdk2/GdkDisplay.html#gdk-display-get-app-launch-context">gdk_display_get_app_launch_context</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">display</span><span class="symbol">);</span>
|
314
|
-
<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"> <a href="/
|
312
|
+
<span class="normal">info </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html">GAppInfo</a></span><span class="symbol">*)</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/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="normal"> </span><span class="symbol">(</span><span class="string">"epiphany.desktop"</span><span class="symbol">);</span>
|
313
|
+
<span class="normal">context </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html#GAppLaunchContext">GAppLaunchContext</a></span><span class="symbol">*)</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/GdkDisplay.html#gdk-display-get-app-launch-context">gdk_display_get_app_launch_context</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">display</span><span class="symbol">);</span>
|
314
|
+
<span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html#g-app-info-launch">g_app_info_launch</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info</span><span class="symbol">,</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></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>
|
315
315
|
|
316
316
|
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">)</span>
|
317
317
|
<span class="normal"> </span><span class="cbracket">{</span>
|
318
|
-
<span class="normal"> </span><span class="function">g_warning</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to launch epiphany: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
319
|
-
<span class="normal"> </span><span class="function">g_error_free</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
318
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html#g-warning">g_warning</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Failed to launch epiphany: %s"</span><span class="symbol">,</span><span class="normal"> error</span><span class="symbol">-></span><span class="normal">message</span><span class="symbol">);</span>
|
319
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
320
320
|
<span class="normal"> </span><span class="cbracket">}</span>
|
321
321
|
|
322
|
-
<span class="function">g_object_unref</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info</span><span class="symbol">);</span>
|
323
|
-
<span class="function">g_object_unref</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">);</span></pre></td>
|
322
|
+
<span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">info</span><span class="symbol">);</span>
|
323
|
+
<span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">context</span><span class="symbol">);</span></pre></td>
|
324
324
|
</tr>
|
325
325
|
</tbody>
|
326
326
|
</table>
|
@@ -329,13 +329,13 @@
|
|
329
329
|
Remember that you have to include
|
330
330
|
<code class="filename">gio/gdesktopappinfo.h</code>
|
331
331
|
and use the <code class="filename">gio-unix-2.0</code> pkg-config file
|
332
|
-
when using <code class="function">g_desktop_app_info_new()</code>.
|
332
|
+
when using <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html#g-desktop-app-info-new"><code class="function">g_desktop_app_info_new()</code></a>.
|
333
333
|
</li>
|
334
334
|
<li class="listitem">If you are launching a custom commandline, you can
|
335
|
-
still use <code class="function">g_app_info_launch()</code> with a GAppInfo that is constructed
|
336
|
-
with <code class="function">g_app_info_create_from_commandline()</code>, or you can use the
|
335
|
+
still use <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAppInfo.html#g-app-info-launch"><code class="function">g_app_info_launch()</code></a> with a GAppInfo that is constructed
|
336
|
+
with <a href="/home/kou/work/ruby/ruby-gnome2.win32/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
|
337
337
|
more lowlevel <code class="literal">g_spawn</code> family of functions
|
338
|
-
(e.g. <code class="function">g_spawn_command_line_async()</code>), and pass <code class="envar">DISPLAY</code>
|
338
|
+
(e.g. <a href="/home/kou/work/ruby/ruby-gnome2.win32/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>
|
339
339
|
in the environment. <a href="http://developer.gnome.org/gdk2/GdkScreen.html#gdk-screen-make-display-name"><code class="function">gdk_screen_make_display_name()</code></a> can be
|
340
340
|
used to find the right value for the <code class="envar">DISPLAY</code>
|
341
341
|
environment variable.
|
@@ -346,17 +346,17 @@
|
|
346
346
|
</div>
|
347
347
|
<div class="section">
|
348
348
|
<div class="titlepage"><div><div><h3 class="title">
|
349
|
-
<a name="
|
349
|
+
<a name="id-1.6.3.3.8"></a>Use cairo for drawing</h3></div></div></div>
|
350
350
|
<p>
|
351
351
|
In GTK+ 3, the GDK drawing API (which closely mimics the X
|
352
352
|
drawing API, which is itself modeled after PostScript) has been
|
353
353
|
removed. All drawing in GTK+ 3 is done via cairo.
|
354
354
|
</p>
|
355
355
|
<p>
|
356
|
-
The <span class="type">GdkGC</span> and <span class="type">GdkImage</span> objects, as well as all the functions using
|
356
|
+
The <a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> and <a href="http://library.gnome.org/devel/gdk3/gdk2-Images.html#GdkImage"><span class="type">GdkImage</span></a> objects, as well as all the functions using
|
357
357
|
them, are gone. This includes the <code class="literal">gdk_draw</code> family
|
358
|
-
of functions like <code class="function">gdk_draw_rectangle()</code> and <code class="function">gdk_draw_drawable()</code>. As
|
359
|
-
<span class="type">GdkGC</span> is roughly equivalent to <
|
358
|
+
of functions like <a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-rectangle"><code class="function">gdk_draw_rectangle()</code></a> and <a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-drawable"><code class="function">gdk_draw_drawable()</code></a>. As
|
359
|
+
<a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#GdkGC"><span class="type">GdkGC</span></a> is roughly equivalent to <span class="type">cairo_t</span> and <a href="http://library.gnome.org/devel/gdk3/gdk2-Images.html#GdkImage"><span class="type">GdkImage</span></a> was used for
|
360
360
|
drawing images to GdkWindows, which cairo supports automatically,
|
361
361
|
a transition is usually straightforward.
|
362
362
|
</p>
|
@@ -366,7 +366,7 @@
|
|
366
366
|
was replaced.
|
367
367
|
</p>
|
368
368
|
<div class="example">
|
369
|
-
<a name="
|
369
|
+
<a name="id-1.6.3.3.8.5"></a><p class="title"><b>Example 114. Drawing a GdkPixbuf onto a GdkWindow</b></p>
|
370
370
|
<div class="example-contents">
|
371
371
|
<p>
|
372
372
|
Drawing a pixbuf onto a drawable used to be done like this:
|
@@ -384,14 +384,14 @@
|
|
384
384
|
7
|
385
385
|
8
|
386
386
|
9</pre></td>
|
387
|
-
<td class="listing_code"><pre class="programlisting"><span class="function">gdk_draw_pixbuf</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span>
|
387
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-pixbuf">gdk_draw_pixbuf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span>
|
388
388
|
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style">gtk_widget_get_style</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">)-></span><span class="normal">black_gc</span><span class="symbol">,</span>
|
389
389
|
<span class="normal"> pixbuf</span><span class="symbol">,</span>
|
390
390
|
<span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span>
|
391
391
|
<span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span>
|
392
392
|
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-width">gdk_pixbuf_get_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
393
393
|
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-The-GdkPixbuf-Structure.html#gdk-pixbuf-get-height">gdk_pixbuf_get_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixbuf</span><span class="symbol">),</span>
|
394
|
-
<span class="normal"> GDK_RGB_DITHER_NORMAL</span><span class="symbol">,</span>
|
394
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gdk3/gdk2-GdkRGB.html#GDK-RGB-DITHER-NORMAL:CAPS">GDK_RGB_DITHER_NORMAL</a></span><span class="symbol">,</span>
|
395
395
|
<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></pre></td>
|
396
396
|
</tr>
|
397
397
|
</tbody>
|
@@ -411,8 +411,8 @@
|
|
411
411
|
4</pre></td>
|
412
412
|
<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"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-create">gdk_cairo_create</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
413
413
|
<span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf">gdk_cairo_set_source_pixbuf</a></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>
|
414
|
-
<span class="function"
|
415
|
-
<span class="function"
|
414
|
+
<span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
415
|
+
<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>
|
416
416
|
</tr>
|
417
417
|
</tbody>
|
418
418
|
</table>
|
@@ -420,14 +420,14 @@
|
|
420
420
|
|
421
421
|
<p>
|
422
422
|
Note that very similar code can be used when porting code
|
423
|
-
using GdkPixmap to <
|
424
|
-
<
|
423
|
+
using GdkPixmap to <span class="type">cairo_surface_t</span> by calling
|
424
|
+
<code class="function">cairo_set_source_surface()</code> instead of
|
425
425
|
<a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a>.
|
426
426
|
</p>
|
427
427
|
</div>
|
428
428
|
</div>
|
429
429
|
<br class="example-break"><div class="example">
|
430
|
-
<a name="
|
430
|
+
<a name="id-1.6.3.3.8.6"></a><p class="title"><b>Example 115. Drawing a tiled GdkPixmap to a GdkWindow</b></p>
|
431
431
|
<div class="example-contents">
|
432
432
|
<p>
|
433
433
|
Tiled pixmaps are often used for drawing backgrounds.
|
@@ -456,15 +456,15 @@
|
|
456
456
|
|
457
457
|
<span class="comment">/* setup */</span>
|
458
458
|
<span class="normal">gc </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style">gtk_widget_get_style</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">)-></span><span class="normal">black_gc</span><span class="symbol">;</span>
|
459
|
-
<span class="function">gdk_gc_set_tile</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> pixmap</span><span class="symbol">);</span>
|
460
|
-
<span class="function">gdk_gc_set_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> GDK_TILED</span><span class="symbol">);</span>
|
461
|
-
<span class="function">gdk_gc_set_ts_origin</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</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>
|
459
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-tile">gdk_gc_set_tile</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> pixmap</span><span class="symbol">);</span>
|
460
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-fill">gdk_gc_set_fill</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#GDK-TILED:CAPS">GDK_TILED</a></span><span class="symbol">);</span>
|
461
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-ts-origin">gdk_gc_set_ts_origin</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</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>
|
462
462
|
<span class="comment">/* use */</span>
|
463
|
-
<span class="function">gdk_draw_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> gc</span><span class="symbol">,</span><span class="normal"> TRUE</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>
|
463
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-rectangle">gdk_draw_rectangle</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> gc</span><span class="symbol">,</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></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>
|
464
464
|
<span class="comment">/* restore */</span>
|
465
|
-
<span class="function">gdk_gc_set_tile</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="/
|
466
|
-
<span class="function">gdk_gc_set_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> GDK_SOLID</span><span class="symbol">);</span>
|
467
|
-
<span class="function">gdk_gc_set_ts_origin</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</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></pre></td>
|
465
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-tile">gdk_gc_set_tile</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
466
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-fill">gdk_gc_set_fill</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#GDK-SOLID:CAPS">GDK_SOLID</a></span><span class="symbol">);</span>
|
467
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-ts-origin">gdk_gc_set_ts_origin</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</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></pre></td>
|
468
468
|
</tr>
|
469
469
|
</tbody>
|
470
470
|
</table>
|
@@ -493,11 +493,11 @@
|
|
493
493
|
|
494
494
|
<span class="normal">surface </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">...</span>
|
495
495
|
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-create">gdk_cairo_create</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
496
|
-
<span class="function"
|
497
|
-
<span class="function"
|
498
|
-
<span class="function"
|
499
|
-
<span class="function"
|
500
|
-
<span class="function"
|
496
|
+
<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>
|
497
|
+
<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>
|
498
|
+
<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>
|
499
|
+
<span class="function">cairo_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
500
|
+
<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>
|
501
501
|
</tr>
|
502
502
|
</tbody>
|
503
503
|
</table>
|
@@ -507,12 +507,12 @@
|
|
507
507
|
The surface here can be either an image surface or a X surface,
|
508
508
|
and can either be created on the spot or kept around for caching purposes.
|
509
509
|
Another alternative is to use pixbufs instead of surfaces with
|
510
|
-
<a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a> instead of <
|
510
|
+
<a href="http://developer.gnome.org/gdk2/gdk3-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>.
|
511
511
|
</p>
|
512
512
|
</div>
|
513
513
|
</div>
|
514
514
|
<br class="example-break"><div class="example">
|
515
|
-
<a name="
|
515
|
+
<a name="id-1.6.3.3.8.7"></a><p class="title"><b>Example 116. Drawing a PangoLayout to a clipped area</b></p>
|
516
516
|
<div class="example-contents">
|
517
517
|
<p>
|
518
518
|
Drawing layouts clipped is often used to avoid overdraw or to
|
@@ -535,11 +535,11 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
535
535
|
|
536
536
|
<span class="comment">/* setup */</span>
|
537
537
|
<span class="normal">gc </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-style">gtk_widget_get_style</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">)-></span><span class="normal">text_gc</span><span class="symbol">[</span><span class="normal">state</span><span class="symbol">];</span>
|
538
|
-
<span class="function">gdk_gc_set_clip_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">area</span><span class="symbol">);</span>
|
538
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-clip-rectangle">gdk_gc_set_clip_rectangle</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">area</span><span class="symbol">);</span>
|
539
539
|
<span class="comment">/* use */</span>
|
540
|
-
<span class="function">gdk_draw_layout</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">drawable</span><span class="symbol">,</span><span class="normal"> gc</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
540
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-layout">gdk_draw_layout</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">drawable</span><span class="symbol">,</span><span class="normal"> gc</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
541
541
|
<span class="comment">/* restore */</span>
|
542
|
-
<span class="function">gdk_gc_set_clip_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="/
|
542
|
+
<span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Graphics-Contexts.html#gdk-gc-set-clip-rectangle">gdk_gc_set_clip_rectangle</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gc</span><span class="symbol">,</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
543
543
|
</tr>
|
544
544
|
</tbody>
|
545
545
|
</table>
|
@@ -578,23 +578,23 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
578
578
|
<span class="normal">cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-create">gdk_cairo_create</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">drawable</span><span class="symbol">);</span>
|
579
579
|
<span class="comment">/* clip */</span>
|
580
580
|
<span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-rectangle">gdk_cairo_rectangle</a></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>
|
581
|
-
<span class="function"
|
581
|
+
<span class="function">cairo_clip</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
582
582
|
<span class="comment">/* set the correct source color */</span>
|
583
583
|
<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>
|
584
584
|
<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>
|
585
585
|
<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>
|
586
586
|
<span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-rgba">gdk_cairo_set_source_rgba</a></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>
|
587
587
|
<span class="comment">/* draw the text */</span>
|
588
|
-
<span class="function"
|
589
|
-
<span class="function"
|
590
|
-
<span class="function"
|
588
|
+
<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>
|
589
|
+
<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>
|
590
|
+
<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>
|
591
591
|
</tr>
|
592
592
|
</tbody>
|
593
593
|
</table>
|
594
594
|
</div>
|
595
595
|
|
596
596
|
<p>
|
597
|
-
Clipping using <
|
597
|
+
Clipping using <code class="function">cairo_clip()</code> is of course not restricted to text
|
598
598
|
rendering and can be used everywhere where GC clips were used.
|
599
599
|
And using <a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-color"><code class="function">gdk_cairo_set_source_color()</code></a> with style colors should
|
600
600
|
be used in all the places where a style’s GC was used to achieve
|
@@ -604,11 +604,11 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
604
604
|
</div>
|
605
605
|
<br class="example-break"><div class="section">
|
606
606
|
<div class="titlepage"><div><div><h4 class="title">
|
607
|
-
<a name="
|
607
|
+
<a name="id-1.6.3.3.8.8"></a>What should you be aware of ?</h4></div></div></div>
|
608
608
|
<p><b>No more stippling. </b>
|
609
|
-
Stippling is the usage of a bi-level mask, called a <span class="type">GdkBitmap</span>.
|
609
|
+
Stippling is the usage of a bi-level mask, called a <a href="http://library.gnome.org/devel/gdk3/gdk2-Bitmaps-and-Pixmaps.html#GdkBitmap"><span class="type">GdkBitmap</span></a>.
|
610
610
|
It was often used to achieve a checkerboard effect. You can use
|
611
|
-
<
|
611
|
+
<code class="function">cairo_mask()</code> to achieve this effect. To get a checkerbox mask,
|
612
612
|
you can use code like this:
|
613
613
|
</p>
|
614
614
|
<div class="informalexample">
|
@@ -635,7 +635,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
635
635
|
18
|
636
636
|
19
|
637
637
|
20</pre></td>
|
638
|
-
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal">
|
638
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> cairo_pattern_t </span><span class="symbol">*</span>
|
639
639
|
<span class="function">gtk_color_button_get_checkered</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
640
640
|
<span class="cbracket">{</span>
|
641
641
|
<span class="normal"> </span><span class="comment">/* need to respect pixman's stride being a multiple of 4 */</span>
|
@@ -644,14 +644,14 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
644
644
|
<span class="normal"> </span><span class="usertype">cairo_surface_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">surface</span><span class="symbol">;</span>
|
645
645
|
<span class="normal"> </span><span class="usertype">cairo_pattern_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pattern</span><span class="symbol">;</span>
|
646
646
|
|
647
|
-
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
648
|
-
<span class="normal">
|
647
|
+
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_image_surface_create_for_data</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">data</span><span class="symbol">,</span>
|
648
|
+
<span class="normal"> CAIRO_FORMAT_A8</span><span class="symbol">,</span>
|
649
649
|
<span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span>
|
650
650
|
<span class="normal"> </span><span class="number">4</span><span class="symbol">);</span>
|
651
|
-
<span class="normal"> pattern </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
652
|
-
<span class="normal"> </span><span class="function"
|
653
|
-
<span class="normal"> </span><span class="function"
|
654
|
-
<span class="normal"> </span><span class="function"
|
651
|
+
<span class="normal"> pattern </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_pattern_create_for_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
652
|
+
<span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
|
653
|
+
<span class="normal"> </span><span class="function">cairo_pattern_set_extend</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pattern</span><span class="symbol">,</span><span class="normal"> CAIRO_EXTEND_REPEAT</span><span class="symbol">);</span>
|
654
|
+
<span class="normal"> </span><span class="function">cairo_pattern_set_filter</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pattern</span><span class="symbol">,</span><span class="normal"> CAIRO_FILTER_NEAREST</span><span class="symbol">);</span>
|
655
655
|
|
656
656
|
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> pattern</span><span class="symbol">;</span>
|
657
657
|
<span class="cbracket">}</span></pre></td>
|
@@ -667,10 +667,10 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
667
667
|
stippling is absent from text rendering, in particular <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>.
|
668
668
|
</p>
|
669
669
|
<p><b>Using the target also as source or mask. </b>
|
670
|
-
The <code class="function">gdk_draw_drawable()</code> function allowed using the same drawable
|
670
|
+
The <a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-drawable"><code class="function">gdk_draw_drawable()</code></a> function allowed using the same drawable
|
671
671
|
as source and target. This was often used to achieve a scrolling
|
672
672
|
effect. Cairo does not allow this yet. You can however use
|
673
|
-
<
|
673
|
+
<code class="function">cairo_push_group()</code> to get a different intermediate target that
|
674
674
|
you can copy to. So you can replace this code:
|
675
675
|
</p>
|
676
676
|
<div class="informalexample">
|
@@ -683,7 +683,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
683
683
|
4
|
684
684
|
5
|
685
685
|
6</pre></td>
|
686
|
-
<td class="listing_code"><pre class="programlisting"><span class="function">gdk_draw_drawable</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixmap</span><span class="symbol">,</span>
|
686
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-drawable">gdk_draw_drawable</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pixmap</span><span class="symbol">,</span>
|
687
687
|
<span class="normal"> gc</span><span class="symbol">,</span>
|
688
688
|
<span class="normal"> pixmap</span><span class="symbol">,</span>
|
689
689
|
<span class="normal"> area</span><span class="symbol">.</span><span class="normal">x </span><span class="symbol">+</span><span class="normal"> dx</span><span class="symbol">,</span><span class="normal"> area</span><span class="symbol">.</span><span class="normal">y </span><span class="symbol">+</span><span class="normal"> dy</span><span class="symbol">,</span>
|
@@ -714,19 +714,19 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
714
714
|
11
|
715
715
|
12
|
716
716
|
13</pre></td>
|
717
|
-
<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"
|
717
|
+
<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>
|
718
718
|
<span class="comment">/* clipping restricts the intermediate surface's size, so it's a good idea</span>
|
719
719
|
<span class="comment"> * to use it. */</span>
|
720
720
|
<span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-rectangle">gdk_cairo_rectangle</a></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>
|
721
|
-
<span class="function"
|
721
|
+
<span class="function">cairo_clip</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
722
722
|
<span class="comment">/* Now push a group to change the target */</span>
|
723
|
-
<span class="function"
|
724
|
-
<span class="function"
|
725
|
-
<span class="function"
|
723
|
+
<span class="function">cairo_push_group</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
724
|
+
<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"> dx</span><span class="symbol">,</span><span class="normal"> dy</span><span class="symbol">);</span>
|
725
|
+
<span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
726
726
|
<span class="comment">/* Now copy the intermediate target back */</span>
|
727
|
-
<span class="function"
|
728
|
-
<span class="function"
|
729
|
-
<span class="function"
|
727
|
+
<span class="function">cairo_pop_group_to_source</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
728
|
+
<span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
729
|
+
<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>
|
730
730
|
</tr>
|
731
731
|
</tbody>
|
732
732
|
</table>
|
@@ -736,7 +736,7 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
736
736
|
The surface here can be either an image surface or a X surface,
|
737
737
|
and can either be created on the spot or kept around for caching purposes.
|
738
738
|
Another alternative is to use pixbufs instead of surfaces with
|
739
|
-
<a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-cairo-set-source-pixbuf"><code class="function">gdk_cairo_set_source_pixbuf()</code></a> instead of <
|
739
|
+
<a href="http://developer.gnome.org/gdk2/gdk3-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>.
|
740
740
|
|
741
741
|
The cairo developers plan to add self-copies in the future to allow
|
742
742
|
exactly this effect, so you might want to keep up on cairo
|
@@ -744,12 +744,12 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
744
744
|
</p>
|
745
745
|
<p><b>Using pango_cairo_show_layout() instead of gdk_draw_layout_with_colors(). </b>
|
746
746
|
GDK provided a way to ignore the color attributes of text and use
|
747
|
-
a hardcoded text color with the <code class="function">gdk_draw_layout_with_colors()</code>
|
747
|
+
a hardcoded text color with the <a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-layout-with-colors"><code class="function">gdk_draw_layout_with_colors()</code></a>
|
748
748
|
function. This is often used to draw text shadows or selections.
|
749
749
|
Pango’s cairo support does not yet provide this functionality. If
|
750
750
|
you use Pango layouts that change colors, the easiest way to achieve
|
751
|
-
a similar effect is using <
|
752
|
-
instead of <code class="function">gdk_draw_layout_with_colors()</code>. Note that this results in
|
751
|
+
a similar effect is using <code class="function">pango_cairo_layout_path()</code> and <code class="function">cairo_fill()</code>
|
752
|
+
instead of <a href="http://library.gnome.org/devel/gdk3/gdk2-Drawing-Primitives.html#gdk-draw-layout-with-colors"><code class="function">gdk_draw_layout_with_colors()</code></a>. Note that this results in
|
753
753
|
a slightly uglier-looking text, as subpixel anti-aliasing is not
|
754
754
|
supported.
|
755
755
|
</p>
|
@@ -759,6 +759,6 @@ Another alternative is to use pixbufs instead of surfaces with
|
|
759
759
|
</div>
|
760
760
|
<div class="footer">
|
761
761
|
<hr>
|
762
|
-
Generated by GTK-Doc V1.18</div>
|
762
|
+
Generated by GTK-Doc V1.18.1</div>
|
763
763
|
</body>
|
764
764
|
</html>
|