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="gtk-migrating-unique-GtkApplication.html" title="Migrating from libunique to GApplication or GtkApplication">
|
9
9
|
<link rel="prev" href="gtk-migrating-unique-GtkApplication.html" title="Migrating from libunique to GApplication or GtkApplication">
|
10
10
|
<link rel="next" href="gtk-migrating-smclient-GtkApplication.html" title="Migrating from EggSMClient to GtkApplication">
|
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">
|
@@ -21,24 +21,24 @@
|
|
21
21
|
</tr></table>
|
22
22
|
<div class="section">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="
|
24
|
+
<a name="id-1.6.5.6"></a>Commands and Messages</h2></div></div></div>
|
25
25
|
<p>
|
26
26
|
libunique lets you send messages with commands to a running
|
27
|
-
instance using <
|
27
|
+
instance using <code class="function">unique_app_send_message()</code>. The commands can be either
|
28
28
|
predefined or custom. Some of the predefined libunique commands have
|
29
|
-
equivalents in GApplication. Instead of sending the <
|
30
|
-
command, call <code class="function">g_application_activate()</code>, instead of sending the
|
31
|
-
<a href="/
|
32
|
-
<
|
29
|
+
equivalents in GApplication. Instead of sending the <code class="literal">UNIQUE_ACTIVATE</code>
|
30
|
+
command, call <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GApplication.html#g-application-activate"><code class="function">g_application_activate()</code></a>, instead of sending the
|
31
|
+
<code class="literal">UNIQUE_OPEN</code> command, call <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GApplication.html#g-application-open"><code class="function">g_application_open()</code></a>. The
|
32
|
+
<code class="literal">UNIQUE_NEW</code> and <code class="literal">UNIQUE_CLOSE</code> and user-defined commands don't
|
33
33
|
have direct replacement at this time.
|
34
34
|
</p>
|
35
35
|
<p>
|
36
36
|
As a replacement for custom commands, GApplication implements the
|
37
|
-
<span class="type">GActionGroup</span> interface and lets you add a group of actions with
|
38
|
-
<code class="function">g_application_set_action_group()</code>. The actions can then be invoked,
|
39
|
-
either by using the D-Bus interface for <span class="type">GAction</span> directly, or by
|
40
|
-
calling <code class="function">g_action_group_activate_action()</code> from another instance of
|
41
|
-
the GApplication. The <span class="type">GApplication</span> documentation contains an
|
37
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GActionGroup.html"><span class="type">GActionGroup</span></a> interface and lets you add a group of actions with
|
38
|
+
<a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GApplication.html#g-application-set-action-group"><code class="function">g_application_set_action_group()</code></a>. The actions can then be invoked,
|
39
|
+
either by using the D-Bus interface for <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GAction.html"><span class="type">GAction</span></a> directly, or by
|
40
|
+
calling <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GActionGroup.html#g-action-group-activate-action"><code class="function">g_action_group_activate_action()</code></a> from another instance of
|
41
|
+
the GApplication. The <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gio/GApplication.html"><span class="type">GApplication</span></a> documentation contains an
|
42
42
|
example for using GApplication with actions.
|
43
43
|
</p>
|
44
44
|
<p>
|
@@ -48,6 +48,6 @@
|
|
48
48
|
</div>
|
49
49
|
<div class="footer">
|
50
50
|
<hr>
|
51
|
-
Generated by GTK-Doc V1.18</div>
|
51
|
+
Generated by GTK-Doc V1.18.1</div>
|
52
52
|
</body>
|
53
53
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk-migrating-GtkGrid.html" title="Migrating from other containers to GtkGrid">
|
9
9
|
<link rel="prev" href="gtk-migrating-GtkGrid.html" title="Migrating from other containers to GtkGrid">
|
10
10
|
<link rel="next" href="ch29s03.html" title="GtkBox versus GtkGrid: spacing">
|
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">
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</tr></table>
|
22
22
|
<div class="section">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="
|
24
|
+
<a name="id-1.6.7.5"></a>GtkBox versus GtkGrid: sizing</h2></div></div></div>
|
25
25
|
<p>
|
26
26
|
When adding a child to a GtkBox, there are two hard-to-remember
|
27
27
|
parameters (child properties, more exactly) named expand and fill
|
@@ -51,12 +51,12 @@
|
|
51
51
|
To replace the functionality of the fill child properties, you can
|
52
52
|
set the <a class="link" href="GtkWidget.html#GtkWidget--halign" title='The "halign" property'><span class="type">"halign"</span></a> and <a class="link" href="GtkWidget.html#GtkWidget--valign" title='The "valign" property'><span class="type">"valign"</span></a> properties. An
|
53
53
|
align value of <a class="link" href="GtkWidget.html#GTK-ALIGN-FILL:CAPS"><span class="type">GTK_ALIGN_FILL</span></a> has the same effect as setting fill
|
54
|
-
to <code class="literal">TRUE</code>, a value of <a class="link" href="GtkWidget.html#GTK-ALIGN-CENTER:CAPS"><span class="type">GTK_ALIGN_CENTER</span></a> has the same effect as setting
|
55
|
-
fill to <code class="literal">FALSE</code>. The image below shows the effect of various combinations
|
54
|
+
to <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a value of <a class="link" href="GtkWidget.html#GTK-ALIGN-CENTER:CAPS"><span class="type">GTK_ALIGN_CENTER</span></a> has the same effect as setting
|
55
|
+
fill to <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>. The image below shows the effect of various combinations
|
56
56
|
of halign and valign.
|
57
57
|
</p>
|
58
58
|
<img src="widget-hvalign.png"><div class="example">
|
59
|
-
<a name="
|
59
|
+
<a name="id-1.6.7.5.8"></a><p class="title"><b>Example 130. Expansion and alignment</b></p>
|
60
60
|
<div class="example-contents">
|
61
61
|
<pre class="programlisting">
|
62
62
|
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
|
@@ -112,6 +112,6 @@
|
|
112
112
|
</div>
|
113
113
|
<div class="footer">
|
114
114
|
<hr>
|
115
|
-
Generated by GTK-Doc V1.18</div>
|
115
|
+
Generated by GTK-Doc V1.18.1</div>
|
116
116
|
</body>
|
117
117
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk-migrating-GtkGrid.html" title="Migrating from other containers to GtkGrid">
|
9
9
|
<link rel="prev" href="ch29s02.html" title="GtkBox versus GtkGrid: sizing">
|
10
10
|
<link rel="next" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
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">
|
@@ -21,7 +21,7 @@
|
|
21
21
|
</tr></table>
|
22
22
|
<div class="section">
|
23
23
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
24
|
-
<a name="
|
24
|
+
<a name="id-1.6.7.6"></a>GtkBox versus GtkGrid: spacing</h2></div></div></div>
|
25
25
|
<p>
|
26
26
|
With GtkBox, you have to specify the <a class="link" href="GtkBox.html#GtkBox--spacing" title='The "spacing" property'><span class="type">"spacing"</span></a> when
|
27
27
|
you construct it. This property specifies the space that
|
@@ -46,7 +46,7 @@
|
|
46
46
|
<a class="link" href="GtkWidget.html#GtkWidget--margin-top" title='The "margin-top" property'><span class="type">"margin-top"</span></a> and <a class="link" href="GtkWidget.html#GtkWidget--margin-bottom" title='The "margin-bottom" property'><span class="type">"margin-bottom"</span></a> properties.
|
47
47
|
</p>
|
48
48
|
<div class="example">
|
49
|
-
<a name="
|
49
|
+
<a name="id-1.6.7.6.5"></a><p class="title"><b>Example 131. Spacing in boxes</b></p>
|
50
50
|
<div class="example-contents">
|
51
51
|
<pre class="programlisting">
|
52
52
|
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
|
@@ -65,6 +65,6 @@
|
|
65
65
|
</div>
|
66
66
|
<div class="footer">
|
67
67
|
<hr>
|
68
|
-
Generated by GTK-Doc V1.18</div>
|
68
|
+
Generated by GTK-Doc V1.18.1</div>
|
69
69
|
</body>
|
70
70
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk-question-index.html" title="Common Questions">
|
10
10
|
<link rel="next" href="gtkbase.html" title="Part II. GTK+ Core Reference">
|
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">
|
@@ -328,7 +328,7 @@
|
|
328
328
|
</p>
|
329
329
|
<p>
|
330
330
|
To make this easier, most GTK+ widgets have the
|
331
|
-
<code class="constant">GTK_DOUBLE_BUFFERED</code> widget flag turned on by
|
331
|
+
<code class="constant">GTK_DOUBLE_BUFFERED</code> <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#GtkWidgetFlags">widget flag</a> turned on by
|
332
332
|
default. When GTK+ encounters such a widget, it automatically
|
333
333
|
calls <code class="function">gdk_window_begin_paint_region()</code>
|
334
334
|
before emitting the #GtkWidget::draw signal for the widget, and
|
@@ -365,7 +365,7 @@
|
|
365
365
|
<span class="cbracket">{</span>
|
366
366
|
<span class="normal"> </span><span class="symbol">...</span>
|
367
367
|
|
368
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-double-buffered">gtk_widget_set_double_buffered</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> FALSE</span><span class="symbol">);</span>
|
368
|
+
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-double-buffered">gtk_widget_set_double_buffered</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</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#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
369
369
|
|
370
370
|
<span class="normal"> </span><span class="symbol">...</span>
|
371
371
|
<span class="cbracket">}</span></pre></td>
|
@@ -456,6 +456,6 @@
|
|
456
456
|
</div>
|
457
457
|
<div class="footer">
|
458
458
|
<hr>
|
459
|
-
Generated by GTK-Doc V1.18</div>
|
459
|
+
Generated by GTK-Doc V1.18.1</div>
|
460
460
|
</body>
|
461
461
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
9
9
|
<link rel="prev" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
10
10
|
<link rel="next" href="checklist-modifiers.html" title="Test for modifier keys correctly">
|
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">
|
@@ -50,7 +50,7 @@
|
|
50
50
|
Regions have an internal representation that is accessible as a
|
51
51
|
list of rectangles. To turn the
|
52
52
|
<em class="structfield"><code>GdkEventExpose.region</code></em> field into such
|
53
|
-
a list, use <code class="function">gdk_region_get_rectangles()</code>:
|
53
|
+
a list, use <a href="http://library.gnome.org/devel/gdk3/gdk2-Points-Rectangles-and-Regions.html#gdk-region-get-rectangles"><code class="function">gdk_region_get_rectangles()</code></a>:
|
54
54
|
</p>
|
55
55
|
<a name="gdkregion-get-rectangles"></a><pre class="programlisting">
|
56
56
|
static gboolean
|
@@ -77,6 +77,6 @@ my_widget_expose_event_handler (GtkWidget *widget, GdkEventExpose *event)
|
|
77
77
|
</div>
|
78
78
|
<div class="footer">
|
79
79
|
<hr>
|
80
|
-
Generated by GTK-Doc V1.18</div>
|
80
|
+
Generated by GTK-Doc V1.18.1</div>
|
81
81
|
</body>
|
82
82
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
9
9
|
<link rel="prev" href="checklist-gdkeventexpose-region.html" title="Use GdkEventExpose.region">
|
10
10
|
<link rel="next" href="checklist-named-icons.html" title="Use named icons">
|
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">
|
@@ -84,6 +84,6 @@ my_widget_key_press_event_handler (GtkWidget *widget, GdkEventKey *event)
|
|
84
84
|
</div>
|
85
85
|
<div class="footer">
|
86
86
|
<hr>
|
87
|
-
Generated by GTK-Doc V1.18</div>
|
87
|
+
Generated by GTK-Doc V1.18.1</div>
|
88
88
|
</body>
|
89
89
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
|
9
9
|
<link rel="prev" href="checklist-modifiers.html" title="Test for modifier keys correctly">
|
10
10
|
<link rel="next" href="pt06.html" title="Part VI. GTK+ Tools">
|
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">
|
@@ -35,6 +35,6 @@
|
|
35
35
|
</div>
|
36
36
|
<div class="footer">
|
37
37
|
<hr>
|
38
|
-
Generated by GTK-Doc V1.18</div>
|
38
|
+
Generated by GTK-Doc V1.18.1</div>
|
39
39
|
</body>
|
40
40
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="index.html" title="GTK+ 3 Reference Manual">
|
9
9
|
<link rel="prev" href="broadwayd.html" title="broadwayd">
|
10
10
|
<link rel="next" href="api-index-full.html" title="Index of all symbols">
|
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">
|
@@ -135,7 +135,7 @@
|
|
135
135
|
actually shows the GdkWindows it created when it was
|
136
136
|
<a class="glossterm" href="glossary.html#realization"><em class="glossterm">realized</em></a>. When a
|
137
137
|
widget is mapped, it must turn on its
|
138
|
-
%GTK_MAPPED flag
|
138
|
+
%GTK_MAPPED <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#GtkWidgetFlags">flag</a>.
|
139
139
|
</p>
|
140
140
|
<p>
|
141
141
|
Note that due to the asynchronous nature of the X window
|
@@ -207,7 +207,7 @@
|
|
207
207
|
also attach a <a class="glossterm" href="glossary.html#style"><em class="glossterm">style</em></a> to
|
208
208
|
it. A widget becomes unrealized by destroying its associated
|
209
209
|
GdkWindow. When a widget is realized, it must turn on its
|
210
|
-
%GTK_REALIZED flag
|
210
|
+
%GTK_REALIZED <a href="http://library.gnome.org/devel/gtk3/GtkWidget.html#GtkWidgetFlags">flag</a>.
|
211
211
|
</p>
|
212
212
|
<p>
|
213
213
|
Widgets that don't own the GdkWindow on which they draw are
|
@@ -330,6 +330,6 @@
|
|
330
330
|
</div>
|
331
331
|
<div class="footer">
|
332
332
|
<hr>
|
333
|
-
Generated by GTK-Doc V1.18</div>
|
333
|
+
Generated by GTK-Doc V1.18.1</div>
|
334
334
|
</body>
|
335
335
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk-osx.html" title="Using GTK+ on Mac OS X">
|
10
10
|
<link rel="next" href="gtk-wayland.html" title="Using GTK+ with Wayland">
|
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">
|
@@ -31,7 +31,7 @@ HTML-specific aspects of using GTK+
|
|
31
31
|
<td valign="top" align="right"></td>
|
32
32
|
</tr></table></div>
|
33
33
|
<div class="refsect1">
|
34
|
-
<a name="
|
34
|
+
<a name="id-1.2.10.3"></a><h2>Using GTK+ with Broadway</h2>
|
35
35
|
<p>
|
36
36
|
The GDK Broadway backend provides support for displaying GTK+
|
37
37
|
applications in a web browser, using HTML5 and web sockets. To run
|
@@ -81,6 +81,6 @@ BROADWAY_DISPLAY=:5 gtk3-demo
|
|
81
81
|
</div>
|
82
82
|
<div class="footer">
|
83
83
|
<hr>
|
84
|
-
Generated by GTK-Doc V1.18</div>
|
84
|
+
Generated by GTK-Doc V1.18.1</div>
|
85
85
|
</body>
|
86
86
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk-getting-started.html" title="Getting Started with GTK+">
|
10
10
|
<link rel="next" href="gtk-compiling.html" title="Compiling GTK+ Applications">
|
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">
|
@@ -458,6 +458,6 @@ How to compile GTK+ itself
|
|
458
458
|
</div>
|
459
459
|
<div class="footer">
|
460
460
|
<hr>
|
461
|
-
Generated by GTK-Doc V1.18</div>
|
461
|
+
Generated by GTK-Doc V1.18.1</div>
|
462
462
|
</body>
|
463
463
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk-building.html" title="Compiling the GTK+ libraries">
|
10
10
|
<link rel="next" href="gtk-running.html" title="Running GTK+ Applications">
|
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">
|
@@ -31,7 +31,7 @@ How to compile your GTK+ application
|
|
31
31
|
<td valign="top" align="right"></td>
|
32
32
|
</tr></table></div>
|
33
33
|
<div class="refsect1">
|
34
|
-
<a name="
|
34
|
+
<a name="id-1.2.5.3"></a><h2>Compiling GTK+ Applications on UNIX</h2>
|
35
35
|
<p>
|
36
36
|
To compile a GTK+ application, you need to tell the compiler where to
|
37
37
|
find the GTK+ header files and libraries. This is done with the
|
@@ -118,7 +118,7 @@ define the preprocessor symbol GDK_MULTIDEVICE_SAFE by using the command
|
|
118
118
|
line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
|
119
119
|
</p>
|
120
120
|
<div class="refsect2">
|
121
|
-
<a name="
|
121
|
+
<a name="id-1.2.5.3.12"></a><h3>Useful autotools macros</h3>
|
122
122
|
<p>
|
123
123
|
GTK+ provides various macros for easily checking version and backends
|
124
124
|
supported. The macros are
|
@@ -156,6 +156,6 @@ line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
|
|
156
156
|
</div>
|
157
157
|
<div class="footer">
|
158
158
|
<hr>
|
159
|
-
Generated by GTK-Doc V1.18</div>
|
159
|
+
Generated by GTK-Doc V1.18.1</div>
|
160
160
|
</body>
|
161
161
|
</html>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
|
9
9
|
<link rel="prev" href="gtk.html" title="Part I. GTK+ Overview">
|
10
10
|
<link rel="next" href="gtk-building.html" title="Compiling the GTK+ libraries">
|
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">
|
@@ -30,7 +30,7 @@
|
|
30
30
|
section in this reference.</p>
|
31
31
|
<div class="simplesect">
|
32
32
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
33
|
-
<a name="
|
33
|
+
<a name="id-1.2.3.3"></a>Basics</h2></div></div></div>
|
34
34
|
<p>To begin our introduction to GTK, we'll start with the simplest
|
35
35
|
program possible. This program will create an empty 200x200 pixel
|
36
36
|
window:</p>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
|
74
74
|
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
75
75
|
|
76
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/
|
76
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></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>
|
77
77
|
|
78
78
|
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
|
79
79
|
|
@@ -275,10 +275,10 @@
|
|
275
275
|
<span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
276
276
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
277
277
|
<span class="cbracket">{</span>
|
278
|
-
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
278
|
+
<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-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
279
279
|
<span class="cbracket">}</span>
|
280
280
|
|
281
|
-
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
281
|
+
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
282
282
|
<span class="function">on_delete_event</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
283
283
|
<span class="normal"> </span><span class="usertype">GdkEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
284
284
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
@@ -291,9 +291,9 @@
|
|
291
291
|
<span class="comment"> * type dialogs.</span>
|
292
292
|
<span class="comment"> */</span>
|
293
293
|
|
294
|
-
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"delete event occurred</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
294
|
+
<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-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"delete event occurred</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
295
295
|
|
296
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
296
|
+
<span class="normal"> </span><span class="keyword">return</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>
|
297
297
|
<span class="cbracket">}</span>
|
298
298
|
|
299
299
|
<span class="type">int</span>
|
@@ -321,14 +321,14 @@
|
|
321
321
|
<span class="comment"> * The data passed to the callback function is NULL and is ignored</span>
|
322
322
|
<span class="comment"> * in the callback function.</span>
|
323
323
|
<span class="comment"> */</span>
|
324
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"delete-event"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_delete_event</span><span class="symbol">),</span><span class="normal"> <a href="/
|
324
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"delete-event"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_delete_event</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>
|
325
325
|
|
326
326
|
<span class="normal"> </span><span class="comment">/* Here we connect the "destroy" event to the gtk_main_quit() function.</span>
|
327
327
|
<span class="comment"> *</span>
|
328
328
|
<span class="comment"> * This signal is emitted when we call gtk_widget_destroy() on the window,</span>
|
329
329
|
<span class="comment"> * or if we return FALSE in the "delete_event" callback.</span>
|
330
330
|
<span class="comment"> */</span>
|
331
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/
|
331
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></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>
|
332
332
|
|
333
333
|
<span class="normal"> </span><span class="comment">/* Sets the border width of the window. */</span>
|
334
334
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
|
@@ -341,7 +341,7 @@
|
|
341
341
|
<span class="comment"> *</span>
|
342
342
|
<span class="comment"> * The print_hello() function is defined above.</span>
|
343
343
|
<span class="comment"> */</span>
|
344
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/
|
344
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</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>
|
345
345
|
|
346
346
|
<span class="normal"> </span><span class="comment">/* The g_signal_connect_swapped() function will connect the "clicked" signal</span>
|
347
347
|
<span class="comment"> * of the button to the gtk_widget_destroy() function; instead of calling it</span>
|
@@ -349,7 +349,7 @@
|
|
349
349
|
<span class="comment"> * argument. This will cause the window to be destroyed by calling</span>
|
350
350
|
<span class="comment"> * gtk_widget_destroy() on the window.</span>
|
351
351
|
<span class="comment"> */</span>
|
352
|
-
<span class="normal"> </span><span class="function">g_signal_connect_swapped</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="symbol">),</span><span class="normal"> window</span><span class="symbol">);</span>
|
352
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="symbol">),</span><span class="normal"> window</span><span class="symbol">);</span>
|
353
353
|
|
354
354
|
<span class="normal"> </span><span class="comment">/* This packs the button into the window. A GtkWindow inherits from GtkBin,</span>
|
355
355
|
<span class="comment"> * which is a special container that can only have one child</span>
|
@@ -380,7 +380,7 @@
|
|
380
380
|
</div>
|
381
381
|
<div class="simplesect">
|
382
382
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
383
|
-
<a name="
|
383
|
+
<a name="id-1.2.3.4"></a>Packing</h2></div></div></div>
|
384
384
|
<p>When creating an application, you'll want to put more than one widget
|
385
385
|
inside a window. Our first helloworld example only used one widget so we
|
386
386
|
could simply use a <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a> call to "pack" the widget into the
|
@@ -480,7 +480,7 @@
|
|
480
480
|
<span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
481
481
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
482
482
|
<span class="cbracket">{</span>
|
483
|
-
<span class="normal"> </span><span class="function">g_print</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
483
|
+
<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-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
|
484
484
|
<span class="cbracket">}</span>
|
485
485
|
|
486
486
|
<span class="type">int</span>
|
@@ -499,7 +499,7 @@
|
|
499
499
|
<span class="normal"> </span><span class="comment">/* create a new window, and set its title */</span>
|
500
500
|
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
501
501
|
<span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Grid"</span><span class="symbol">);</span>
|
502
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/
|
502
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></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>
|
503
503
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
|
504
504
|
|
505
505
|
<span class="normal"> </span><span class="comment">/* Here we construct the container that is going pack our buttons */</span>
|
@@ -509,7 +509,7 @@
|
|
509
509
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> grid</span><span class="symbol">);</span>
|
510
510
|
|
511
511
|
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 1"</span><span class="symbol">);</span>
|
512
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/
|
512
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</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>
|
513
513
|
|
514
514
|
<span class="normal"> </span><span class="comment">/* Place the first button in the grid cell (0, 0), and make it fill</span>
|
515
515
|
<span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
|
@@ -517,7 +517,7 @@
|
|
517
517
|
<span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</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"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
518
518
|
|
519
519
|
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 2"</span><span class="symbol">);</span>
|
520
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/
|
520
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</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>
|
521
521
|
|
522
522
|
<span class="normal"> </span><span class="comment">/* Place the second button in the grid cell (1, 0), and make it fill</span>
|
523
523
|
<span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
|
@@ -525,7 +525,7 @@
|
|
525
525
|
<span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</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">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
526
526
|
|
527
527
|
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Quit"</span><span class="symbol">);</span>
|
528
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/
|
528
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></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>
|
529
529
|
|
530
530
|
<span class="normal"> </span><span class="comment">/* Place the Quit button in the grid cell (0, 1), and make it</span>
|
531
531
|
<span class="comment"> * span 2 columns.</span>
|
@@ -557,7 +557,7 @@
|
|
557
557
|
</div>
|
558
558
|
<div class="simplesect">
|
559
559
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
560
|
-
<a name="
|
560
|
+
<a name="id-1.2.3.5"></a>Drawing</h2></div></div></div>
|
561
561
|
<p>Many widgets, like buttons, do all their drawing themselves. You
|
562
562
|
just tell them the label you want to see, and they figure out what font
|
563
563
|
to use, draw the button outline and focus rectangle, etc. Sometimes, it
|
@@ -772,32 +772,32 @@
|
|
772
772
|
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gtk/gtk.h></span>
|
773
773
|
|
774
774
|
<span class="comment">/* Surface to store current scribbles */</span>
|
775
|
-
<span class="keyword">static</span><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><span class="normal"> <a href="/
|
775
|
+
<span class="keyword">static</span><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><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>
|
776
776
|
|
777
777
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
778
778
|
<span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
779
779
|
<span class="cbracket">{</span>
|
780
780
|
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
|
781
781
|
|
782
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
782
|
+
<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>
|
783
783
|
|
784
|
-
<span class="normal"> </span><span class="function"
|
785
|
-
<span class="normal"> </span><span class="function"
|
784
|
+
<span class="normal"> </span><span class="function">cairo_set_source_rgb</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">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
785
|
+
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
786
786
|
|
787
|
-
<span class="normal"> </span><span class="function"
|
787
|
+
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
788
788
|
<span class="cbracket">}</span>
|
789
789
|
|
790
790
|
<span class="comment">/* Create a new surface of the appropriate size to store our scribbles */</span>
|
791
|
-
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
791
|
+
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
792
792
|
<span class="function">configure_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
793
793
|
<span class="normal"> </span><span class="usertype">GdkEventConfigure</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
794
794
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
795
795
|
<span class="cbracket">{</span>
|
796
796
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
|
797
|
-
<span class="normal"> </span><span class="function"
|
797
|
+
<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>
|
798
798
|
|
799
799
|
<span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-window-create-similar-surface">gdk_window_create_similar_surface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
800
|
-
<span class="normal">
|
800
|
+
<span class="normal"> CAIRO_CONTENT_COLOR</span><span class="symbol">,</span>
|
801
801
|
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-width">gtk_widget_get_allocated_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
|
802
802
|
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-height">gtk_widget_get_allocated_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">));</span>
|
803
803
|
|
@@ -805,22 +805,22 @@
|
|
805
805
|
<span class="normal"> </span><span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">();</span>
|
806
806
|
|
807
807
|
<span class="normal"> </span><span class="comment">/* We've handled the configure event, no need for further processing. */</span>
|
808
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
808
|
+
<span class="normal"> </span><span class="keyword">return</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>
|
809
809
|
<span class="cbracket">}</span>
|
810
810
|
|
811
811
|
<span class="comment">/* Redraw the screen from the surface. Note that the ::draw</span>
|
812
812
|
<span class="comment"> * signal receives a ready-to-be-used cairo_t that is already</span>
|
813
813
|
<span class="comment"> * clipped to only draw the exposed areas of the widget</span>
|
814
814
|
<span class="comment"> */</span>
|
815
|
-
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
815
|
+
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
816
816
|
<span class="function">draw_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
817
817
|
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">,</span>
|
818
818
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
819
819
|
<span class="cbracket">{</span>
|
820
|
-
<span class="normal"> </span><span class="function"
|
821
|
-
<span class="normal"> </span><span class="function"
|
820
|
+
<span class="normal"> </span><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"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
|
821
|
+
<span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
822
822
|
|
823
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> FALSE</span><span class="symbol">;</span>
|
823
|
+
<span class="normal"> </span><span class="keyword">return</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#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
824
824
|
<span class="cbracket">}</span>
|
825
825
|
|
826
826
|
<span class="comment">/* Draw a rectangle on the surface at the given position */</span>
|
@@ -832,12 +832,12 @@
|
|
832
832
|
<span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
|
833
833
|
|
834
834
|
<span class="normal"> </span><span class="comment">/* Paint to the surface, where we store our state */</span>
|
835
|
-
<span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function"
|
835
|
+
<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>
|
836
836
|
|
837
|
-
<span class="normal"> </span><span class="function"
|
838
|
-
<span class="normal"> </span><span class="function"
|
837
|
+
<span class="normal"> </span><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"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
838
|
+
<span class="normal"> </span><span class="function">cairo_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
839
839
|
|
840
|
-
<span class="normal"> </span><span class="function"
|
840
|
+
<span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
|
841
841
|
|
842
842
|
<span class="normal"> </span><span class="comment">/* Now invalidate the affected region of the drawing area. */</span>
|
843
843
|
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-queue-draw-area">gtk_widget_queue_draw_area</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
|
@@ -848,14 +848,14 @@
|
|
848
848
|
<span class="comment"> * The ::button-press signal handler receives a GdkEventButton</span>
|
849
849
|
<span class="comment"> * struct which contains this information.</span>
|
850
850
|
<span class="comment"> */</span>
|
851
|
-
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
851
|
+
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
852
852
|
<span class="function">button_press_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
853
853
|
<span class="normal"> </span><span class="usertype">GdkEventButton</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
854
854
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
855
855
|
<span class="cbracket">{</span>
|
856
856
|
<span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
|
857
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/
|
858
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> FALSE</span><span class="symbol">;</span>
|
857
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </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>
|
858
|
+
<span class="normal"> </span><span class="keyword">return</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#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
859
859
|
|
860
860
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-></span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-PRIMARY:CAPS">GDK_BUTTON_PRIMARY</a></span><span class="symbol">)</span>
|
861
861
|
<span class="normal"> </span><span class="cbracket">{</span>
|
@@ -868,34 +868,34 @@
|
|
868
868
|
<span class="normal"> </span><span class="cbracket">}</span>
|
869
869
|
|
870
870
|
<span class="normal"> </span><span class="comment">/* We've handled the event, stop processing */</span>
|
871
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
871
|
+
<span class="normal"> </span><span class="keyword">return</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>
|
872
872
|
<span class="cbracket">}</span>
|
873
873
|
|
874
874
|
<span class="comment">/* Handle motion events by continuing to draw if button 1 is</span>
|
875
875
|
<span class="comment"> * still held down. The ::motion-notify signal handler receives</span>
|
876
876
|
<span class="comment"> * a GdkEventMotion struct which contains this information.</span>
|
877
877
|
<span class="comment"> */</span>
|
878
|
-
<span class="keyword">static</span><span class="normal"> gboolean</span>
|
878
|
+
<span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
879
879
|
<span class="function">motion_notify_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
|
880
880
|
<span class="normal"> </span><span class="usertype">GdkEventMotion</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
|
881
881
|
<span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
882
882
|
<span class="cbracket">{</span>
|
883
883
|
<span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
|
884
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/
|
885
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> FALSE</span><span class="symbol">;</span>
|
884
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </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>
|
885
|
+
<span class="normal"> </span><span class="keyword">return</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#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
886
886
|
|
887
887
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-></span><span class="normal">state </span><span class="symbol">&</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Windows.html#GDK-BUTTON1-MASK:CAPS">GDK_BUTTON1_MASK</a></span><span class="symbol">)</span>
|
888
888
|
<span class="normal"> </span><span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">y</span><span class="symbol">);</span>
|
889
889
|
|
890
890
|
<span class="normal"> </span><span class="comment">/* We've handled it, stop processing */</span>
|
891
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> TRUE</span><span class="symbol">;</span>
|
891
|
+
<span class="normal"> </span><span class="keyword">return</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>
|
892
892
|
<span class="cbracket">}</span>
|
893
893
|
|
894
894
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
895
895
|
<span class="function">close_window</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
896
896
|
<span class="cbracket">{</span>
|
897
897
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
|
898
|
-
<span class="normal"> </span><span class="function"
|
898
|
+
<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>
|
899
899
|
|
900
900
|
<span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="normal"> </span><span class="symbol">();</span>
|
901
901
|
<span class="cbracket">}</span>
|
@@ -913,11 +913,11 @@
|
|
913
913
|
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
914
914
|
<span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Drawing Area"</span><span class="symbol">);</span>
|
915
915
|
|
916
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">close_window</span><span class="symbol">),</span><span class="normal"> <a href="/
|
916
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</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/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">close_window</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>
|
917
917
|
|
918
918
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">8</span><span class="symbol">);</span>
|
919
919
|
|
920
|
-
<span class="normal"> frame </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-new">gtk_frame_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/
|
920
|
+
<span class="normal"> frame </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-new">gtk_frame_new</a></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/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
921
921
|
<span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-set-shadow-type">gtk_frame_set_shadow_type</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_FRAME</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> <a href="gtk3-Standard-Enumerations.html#GTK-SHADOW-IN:CAPS">GTK_SHADOW_IN</a></span><span class="symbol">);</span>
|
922
922
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> frame</span><span class="symbol">);</span>
|
923
923
|
|
@@ -928,16 +928,16 @@
|
|
928
928
|
<span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> da</span><span class="symbol">);</span>
|
929
929
|
|
930
930
|
<span class="normal"> </span><span class="comment">/* Signals used to handle the backing surface */</span>
|
931
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"draw"</span><span class="symbol">,</span>
|
932
|
-
<span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">draw_cb</span><span class="symbol">),</span><span class="normal"> <a href="/
|
933
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="string">"configure-event"</span><span class="symbol">,</span>
|
934
|
-
<span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">configure_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/
|
931
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"draw"</span><span class="symbol">,</span>
|
932
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">draw_cb</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>
|
933
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="string">"configure-event"</span><span class="symbol">,</span>
|
934
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">configure_event_cb</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>
|
935
935
|
|
936
936
|
<span class="normal"> </span><span class="comment">/* Event signals */</span>
|
937
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"motion-notify-event"</span><span class="symbol">,</span>
|
938
|
-
<span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">motion_notify_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/
|
939
|
-
<span class="normal"> </span><span class="function">g_signal_connect</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button-press-event"</span><span class="symbol">,</span>
|
940
|
-
<span class="normal"> </span><span class="function">G_CALLBACK</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button_press_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/
|
937
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"motion-notify-event"</span><span class="symbol">,</span>
|
938
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">motion_notify_event_cb</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>
|
939
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button-press-event"</span><span class="symbol">,</span>
|
940
|
+
<span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button_press_event_cb</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>
|
941
941
|
|
942
942
|
<span class="normal"> </span><span class="comment">/* Ask to receive events the drawing area doesn't normally</span>
|
943
943
|
<span class="comment"> * subscribe to. In particular, we need to ask for the</span>
|
@@ -963,7 +963,7 @@
|
|
963
963
|
</div>
|
964
964
|
<div class="simplesect">
|
965
965
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
966
|
-
<a name="
|
966
|
+
<a name="id-1.2.3.6"></a>Building interfaces</h2></div></div></div>
|
967
967
|
<p>When construcing a more complicated user interface, with dozens
|
968
968
|
or hundreds of widgets, doing all the setup work in C code is
|
969
969
|
cumbersome, and making changes becomes next to impossible.</p>
|
@@ -971,7 +971,7 @@
|
|
971
971
|
layout from your business logic, by using UI descriptions in an
|
972
972
|
XML format that can be parsed by the <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a> class.</p>
|
973
973
|
<div class="example">
|
974
|
-
<a name="
|
974
|
+
<a name="id-1.2.3.6.4"></a><p class="title"><b>Example 4. Packing buttons with GtkBuilder</b></p>
|
975
975
|
<div class="example-contents">
|
976
976
|
<pre class="programlisting">
|
977
977
|
#include <gtk/gtk.h>
|
@@ -1090,6 +1090,6 @@ main (int argc,
|
|
1090
1090
|
</div>
|
1091
1091
|
<div class="footer">
|
1092
1092
|
<hr>
|
1093
|
-
Generated by GTK-Doc V1.18</div>
|
1093
|
+
Generated by GTK-Doc V1.18.1</div>
|
1094
1094
|
</body>
|
1095
1095
|
</html>
|