gtk2 3.2.1-x86-mingw32 → 3.2.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/gtk2/extconf.rb +6 -1
- data/ext/gtk2/rbgtkrecentchooser.c +2 -2
- data/lib/2.2/gtk2.so +0 -0
- data/lib/2.3/gtk2.so +0 -0
- data/lib/2.4/gtk2.so +0 -0
- data/lib/2.5/gtk2.so +0 -0
- data/vendor/local/bin/gtk-demo.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/libgailutil-18.dll +0 -0
- data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
- data/vendor/local/include/gtk-2.0/gdk/gdkenumtypes.h +1 -1
- data/vendor/local/include/gtk-2.0/gtk/gtkmarshal.h +220 -164
- data/vendor/local/include/gtk-2.0/gtk/gtktypebuiltins.h +23 -23
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.la +3 -3
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.la +3 -3
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules.cache +2 -2
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.la +3 -3
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgailutil.la +3 -3
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.la +3 -3
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.la +3 -3
- data/vendor/local/lib/pkgconfig/gail.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +24 -24
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +11 -11
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplay.html +77 -77
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplayManager.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk2/GdkScreen.html +132 -132
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Application-launching.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Bitmaps-and-Pixmaps.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Colormaps-and-Colors.html +67 -67
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cursors.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drag-and-Drop.html +29 -29
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drawing-Primitives.html +118 -118
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Event-Structures.html +102 -102
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Events.html +49 -49
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Fonts.html +79 -79
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-GdkRGB.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-General.html +58 -58
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Graphics-Contexts.html +25 -25
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Images.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input-Devices.html +40 -40
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input.html +15 -15
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Keyboard-Handling.html +97 -97
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pango-Interaction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pixbufs.html +20 -20
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Points-Rectangles-and-Regions.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Properties-and-Atoms.html +84 -84
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Selections.html +27 -27
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Testing.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Threads.html +74 -74
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Visuals.html +40 -40
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Windows.html +280 -280
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-X-Window-System-Interaction.html +60 -60
- data/vendor/local/share/gtk-doc/html/gdk2/multihead.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAboutDialog.html +118 -118
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccelLabel.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccessible.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAction.html +87 -87
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActionGroup.html +82 -82
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActivatable.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAdjustment.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAlignment.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkArrow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAspectFrame.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAssistant.html +47 -47
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBin.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBox.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuildable.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuilder.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButton.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButtonBox.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCList.html +214 -214
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCTree.html +146 -146
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCalendar.html +88 -88
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellEditable.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellLayout.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRenderer.html +81 -81
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererAccel.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererCombo.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererPixbuf.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererProgress.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpin.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpinner.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererText.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererToggle.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellView.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCheckButton.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorButton.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelection.html +45 -45
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelectionDialog.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCombo.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBox.html +96 -96
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxEntry.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxText.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkContainer.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCurve.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDialog.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDrawingArea.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEditable.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntry.html +255 -255
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryBuffer.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryCompletion.html +94 -94
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEventBox.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkExpander.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooser.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserButton.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserDialog.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserWidget.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileSelection.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFixed.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontButton.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelection.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelectionDialog.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFrame.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkGammaCurve.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHButtonBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHPaned.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHRuler.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSV.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScale.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScrollbar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHandleBox.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContext.html +63 -63
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContextSimple.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMMulticontext.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconTheme.html +83 -83
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconView.html +192 -192
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImage.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImageMenuItem.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInfoBar.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInputDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInvisible.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItem.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItemFactory.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLabel.html +139 -139
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLayout.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLinkButton.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkList.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListItem.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListStore.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenu.html +90 -90
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuBar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuItem.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuShell.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuToolButton.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMessageDialog.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMisc.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkNotebook.html +210 -210
- data/vendor/local/share/gtk-doc/html/gtk2/GtkObject.html +89 -89
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOffscreenWindow.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOldEditable.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOptionMenu.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetup.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetupUnixDialog.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaned.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaperSize.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPixmap.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPlug.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPreview.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintContext.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintJob.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintSettings.html +151 -151
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintUnixDialog.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrinter.html +86 -86
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgress.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgressBar.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioAction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioButton.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioMenuItem.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioToolButton.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRange.html +100 -100
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentAction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooser.html +101 -101
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserDialog.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserMenu.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserWidget.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentFilter.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentManager.html +128 -128
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRuler.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScale.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScaleButton.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrollbar.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrolledWindow.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorMenuItem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorToolItem.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSettings.html +196 -196
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSizeGroup.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSocket.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinButton.html +79 -79
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinner.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusIcon.html +157 -157
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusbar.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStyle.html +263 -263
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTable.html +67 -67
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTearoffMenuItem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkText.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextBuffer.html +181 -181
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextIter.html +281 -281
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextMark.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTag.html +133 -133
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTagTable.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextView.html +211 -211
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTipsQuery.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleAction.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleButton.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleToolButton.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolButton.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItem.html +63 -63
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItemGroup.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolPalette.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolShell.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolbar.html +105 -105
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltip.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltips.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTree.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeItem.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModel.html +147 -147
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelFilter.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelSort.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSelection.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSortable.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeStore.html +58 -58
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeView.html +414 -414
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeViewColumn.html +147 -147
- data/vendor/local/share/gtk-doc/html/gtk2/GtkUIManager.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVButtonBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVPaned.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVRuler.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScale.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScrollbar.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkViewport.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVolumeButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWidget.html +537 -537
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindow.html +255 -255
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindowGroup.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/TextWidget.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/TreeWidget.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/chap-drawing-model.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-2-0.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAboutDialog.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkColorButton.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkComboBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkIconView.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkLinkButton.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkRecentChooser.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-checklist.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-entry-icons.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-tooltips.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-question-index.html +43 -43
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Accelerator-Maps.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Bindings.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Clipboards.html +87 -87
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Drag-and-Drop.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Feature-Test-Macros.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Filesystem-utilities.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-General.html +153 -153
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Graphics-Contexts.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-GtkTreeView-drag-and-drop.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-High-level-Printing-API.html +167 -167
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Keyboard-Accelerators.html +88 -88
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Orientable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Resource-Files.html +71 -71
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Selections.html +119 -119
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Signals.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Stock-Items.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Testing.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Themeable-Stock-Images.html +53 -53
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Types.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkcheckmenuitem.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkfilefilter.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-selection-modes.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-advanced.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-chooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/migrating-GtkCombo.html +4 -4
- metadata +12 -11
@@ -136,7 +136,7 @@ my_widget_popup_menu_handler (GtkWidget *widget)
|
|
136
136
|
mouse cursor may not be near the widget at all. In the <a class="link" href="gtk-migrating-checklist.html#do_popup_menu">example above</a>, you may want to
|
137
137
|
provide your own <a class="link" href="GtkMenu.html#GtkMenuPositionFunc" title="GtkMenuPositionFunc ()">menu-positioning function</a>
|
138
138
|
in the case where the <em class="parameter"><code>event</code></em> is
|
139
|
-
<a href="
|
139
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. This function should compute the desired position for
|
140
140
|
a menu when it is invoked through the keyboard. For example,
|
141
141
|
<a class="link" href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> aligns the top edge of its popup menu with the bottom
|
142
142
|
edge of the entry.
|
@@ -28,7 +28,7 @@
|
|
28
28
|
straightforward. The main difference between the two APIs is that
|
29
29
|
SexyIconEntry uses <a class="link" href="GtkImage.html" title="GtkImage"><span class="type">GtkImage</span></a> widgets in a somewhat awkward way as
|
30
30
|
storage vehicles for icons, while GtkEntry allows to specify icons
|
31
|
-
via pixbufs, stock ids, icon names or <a href="
|
31
|
+
via pixbufs, stock ids, icon names or <a href="https://developer.gnome.org/gio/unstable/GIcon.html#GIcon-struct"><span class="type">GIcons</span></a>. So, if your code uses
|
32
32
|
e.g.:
|
33
33
|
</p>
|
34
34
|
<div class="informalexample">
|
@@ -131,7 +131,7 @@ to
|
|
131
131
|
<span class="normal"> </span><span class="usertype">GtkMenu</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">menu </span><span class="symbol">=</span><span class="normal"> data</span><span class="symbol">;</span>
|
132
132
|
|
133
133
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">position </span><span class="symbol">==</span><span class="normal"> SEXY_ICON_ENTRY_PRIMARY</span><span class="symbol">)</span>
|
134
|
-
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">),</span><span class="normal"> <a href="
|
134
|
+
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">),</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
135
135
|
<span class="normal"> button</span><span class="symbol">,</span><span class="normal"> <a href="../html/gdk2-Events.html#GDK-CURRENT-TIME:CAPS">GDK_CURRENT_TIME</a></span><span class="symbol">);</span>
|
136
136
|
<span class="cbracket">}</span></pre></td>
|
137
137
|
</tr>
|
@@ -167,7 +167,7 @@ to
|
|
167
167
|
<span class="normal"> </span><span class="usertype">GtkMenu</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">menu </span><span class="symbol">=</span><span class="normal"> data</span><span class="symbol">;</span>
|
168
168
|
|
169
169
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">position </span><span class="symbol">==</span><span class="normal"> <a href="GtkEntry.html#GTK-ENTRY-ICON-PRIMARY:CAPS">GTK_ENTRY_ICON_PRIMARY</a></span><span class="symbol">)</span>
|
170
|
-
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">),</span><span class="normal"> <a href="
|
170
|
+
<span class="normal"> </span><span class="function"><a href="GtkMenu.html#gtk-menu-popup">gtk_menu_popup</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_MENU</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">menu</span><span class="symbol">),</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span>
|
171
171
|
<span class="normal"> event</span><span class="symbol">-></span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-></span><span class="normal">time</span><span class="symbol">);</span>
|
172
172
|
<span class="cbracket">}</span></pre></td>
|
173
173
|
</tr>
|
@@ -272,10 +272,10 @@ to
|
|
272
272
|
<span class="normal"> </span><span class="function"><a href="GtkEntry.html#gtk-entry-set-icon-from-stock">gtk_entry_set_icon_from_stock</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_ENTRY</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">entry</span><span class="symbol">),</span>
|
273
273
|
<span class="normal"> <a href="GtkEntry.html#GTK-ENTRY-ICON-SECONDARY:CAPS">GTK_ENTRY_ICON_SECONDARY</a></span><span class="symbol">,</span>
|
274
274
|
<span class="normal"> <a href="gtk2-Stock-Items.html#GTK-STOCK-CLEAR:CAPS">GTK_STOCK_CLEAR</a></span><span class="symbol">);</span>
|
275
|
-
<span class="normal"> </span><span class="function"><a href="
|
276
|
-
<span class="normal"> </span><span class="function"><a href="
|
277
|
-
<span class="normal"> </span><span class="function"><a href="
|
278
|
-
<span class="normal"> </span><span class="function"><a href="
|
275
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">entry</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"icon-press"</span><span class="symbol">,</span>
|
276
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon_pressed_cb</span><span class="symbol">),</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
277
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">entry</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"notify::text"</span><span class="symbol">,</span>
|
278
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text_changed_cb</span><span class="symbol">),</span><span class="normal"> find_button</span><span class="symbol">);</span>
|
279
279
|
<span class="normal"> </span>
|
280
280
|
<span class="normal"> </span><span class="comment">/* ... */</span></pre></td>
|
281
281
|
</tr>
|
@@ -60,7 +60,7 @@
|
|
60
60
|
<td class="listing_lines" align="right"><pre>1
|
61
61
|
2</pre></td>
|
62
62
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkTooltips</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">tooltips </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTooltips.html#gtk-tooltips-new">gtk_tooltips_new</a></span><span class="normal"> </span><span class="symbol">();</span><span class="normal"> </span>
|
63
|
-
<span class="function"><a href="GtkTooltips.html#gtk-tooltips-set-tip">gtk_tooltips_set_tip</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">tooltips</span><span class="symbol">,</span><span class="normal"> widget</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Some tips"</span><span class="symbol">,</span><span class="normal"> <a href="
|
63
|
+
<span class="function"><a href="GtkTooltips.html#gtk-tooltips-set-tip">gtk_tooltips_set_tip</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">tooltips</span><span class="symbol">,</span><span class="normal"> widget</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Some tips"</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
64
64
|
</tr>
|
65
65
|
</tbody>
|
66
66
|
</table>
|
@@ -94,7 +94,7 @@
|
|
94
94
|
<tbody>
|
95
95
|
<tr>
|
96
96
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
97
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GtkToolItem.html#gtk-tool-item-set-tooltip">gtk_tool_item_set_tooltip</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">toolitem</span><span class="symbol">,</span><span class="normal"> toolbar</span><span class="symbol">-></span><span class="normal">tooltips</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"tool tip"</span><span class="symbol">,</span><span class="normal"> <a href="
|
97
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GtkToolItem.html#gtk-tool-item-set-tooltip">gtk_tool_item_set_tooltip</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">toolitem</span><span class="symbol">,</span><span class="normal"> toolbar</span><span class="symbol">-></span><span class="normal">tooltips</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"tool tip"</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span></pre></td>
|
98
98
|
</tr>
|
99
99
|
</tbody>
|
100
100
|
</table>
|
@@ -119,15 +119,15 @@ from functions?
|
|
119
119
|
<td align="left" valign="top"></td>
|
120
120
|
<td align="left" valign="top">
|
121
121
|
<p>
|
122
|
-
See the documentation for <a href="
|
123
|
-
specifically <a href="
|
124
|
-
of <a href="
|
122
|
+
See the documentation for <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> and <a class="link" href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a>. For <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> note
|
123
|
+
specifically <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> and <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>. <a class="link" href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a> is a subclass
|
124
|
+
of <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct"><span class="type">GObject</span></a> so the same points apply, except that it has a "floating" state
|
125
125
|
(explained in its documentation).
|
126
126
|
</p>
|
127
127
|
<p>
|
128
128
|
For strings returned from functions, they will be declared "const"
|
129
129
|
if they should not be freed. Non-const strings should be
|
130
|
-
freed with <a href="
|
130
|
+
freed with <a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>. Arrays follow the same rule. (If you find an exception
|
131
131
|
to the rules, please report a bug to <a class="ulink" href="http://bugzilla.gnome.org" target="_top">http://bugzilla.gnome.org</a>.)
|
132
132
|
</p>
|
133
133
|
</td>
|
@@ -179,7 +179,7 @@ creating it:
|
|
179
179
|
2
|
180
180
|
3</pre></td>
|
181
181
|
<td class="listing_code"><pre class="programlisting"><span class="normal">foo </span><span class="symbol">=</span><span class="normal"> </span><span class="function">gtk_foo_new</span><span class="normal"> </span><span class="symbol">();</span>
|
182
|
-
<span class="function"><a href="
|
182
|
+
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref">g_object_ref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">foo</span><span class="symbol">);</span><span class="normal"> </span>
|
183
183
|
<span class="function"><a href="GtkObject.html#gtk-object-sink">gtk_object_sink</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_OBJECT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">foo</span><span class="symbol">));</span></pre></td>
|
184
184
|
</tr>
|
185
185
|
</tbody>
|
@@ -198,7 +198,7 @@ reference:
|
|
198
198
|
<td class="listing_lines" align="right"><pre>1
|
199
199
|
2</pre></td>
|
200
200
|
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">foo</span><span class="symbol">);</span><span class="normal"> </span>
|
201
|
-
<span class="function"><a href="
|
201
|
+
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">foo</span><span class="symbol">);</span></pre></td>
|
202
202
|
</tr>
|
203
203
|
</tbody>
|
204
204
|
</table>
|
@@ -259,19 +259,19 @@ Conventionally, people define macros as follows for convenience:
|
|
259
259
|
<tr>
|
260
260
|
<td class="listing_lines" align="right"><pre>1
|
261
261
|
2</pre></td>
|
262
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="
|
263
|
-
<span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="
|
262
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro">_</a></span><span class="symbol">(</span><span class="normal">x</span><span class="symbol">)</span><span class="normal"> </span><span class="function">gettext</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">x</span><span class="symbol">)</span>
|
263
|
+
<span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#N-:CAPS">N_</a></span><span class="symbol">(</span><span class="normal">x</span><span class="symbol">)</span><span class="normal"> x</span></pre></td>
|
264
264
|
</tr>
|
265
265
|
</tbody>
|
266
266
|
</table>
|
267
267
|
</div>
|
268
268
|
|
269
269
|
<p>
|
270
|
-
You use <a href="
|
270
|
+
You use <a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#N-:CAPS"><code class="function">N_()</code></a> (N stands for no-op) to mark a string for translation in a
|
271
271
|
context where a function call to <code class="function">gettext()</code> is not allowed, such as in an
|
272
272
|
array initializer.
|
273
273
|
You eventually have to call <code class="function">gettext()</code> on the string to actually fetch the
|
274
|
-
translation. <a href="
|
274
|
+
translation. <a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro"><code class="function">_()</code></a> both marks the string for translation and actually
|
275
275
|
translates it.
|
276
276
|
</p>
|
277
277
|
<p>
|
@@ -301,7 +301,7 @@ Code using these macros ends up looking like this:
|
|
301
301
|
13</pre></td>
|
302
302
|
<td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string"><gi18n.h></span>
|
303
303
|
|
304
|
-
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">global_variable </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
304
|
+
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">const</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">global_variable </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#N-:CAPS">N_</a></span><span class="symbol">(</span><span class="string">"Translate this string"</span><span class="symbol">);</span>
|
305
305
|
|
306
306
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
307
307
|
<span class="function">make_widgets</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
|
@@ -309,8 +309,8 @@ Code using these macros ends up looking like this:
|
|
309
309
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label1</span><span class="symbol">;</span>
|
310
310
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label2</span><span class="symbol">;</span>
|
311
311
|
|
312
|
-
<span class="normal"> label1 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="
|
313
|
-
<span class="normal"> label2 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="
|
312
|
+
<span class="normal"> label1 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro">_</a></span><span class="symbol">(</span><span class="string">"Another string to translate"</span><span class="symbol">));</span>
|
313
|
+
<span class="normal"> label2 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro">_</a></span><span class="symbol">(</span><span class="normal">global_variable</span><span class="symbol">));</span>
|
314
314
|
<span class="symbol">...</span></pre></td>
|
315
315
|
</tr>
|
316
316
|
</tbody>
|
@@ -324,14 +324,14 @@ Libraries using gettext should use <code class="function">dgettext()</code> inst
|
|
324
324
|
allows them to specify the translation domain each time they ask for a
|
325
325
|
translation. Libraries should also avoid calling <code class="function">textdomain()</code>, since they
|
326
326
|
will be specifying the domain instead of using the default. For <code class="function">dgettext()</code>
|
327
|
-
the <a href="
|
327
|
+
the <a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro"><code class="function">_()</code></a> macro can be defined as:
|
328
328
|
</p>
|
329
329
|
<div class="informalexample">
|
330
330
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
331
331
|
<tbody>
|
332
332
|
<tr>
|
333
333
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
334
|
-
<td class="listing_code"><pre class="programlisting"><span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="
|
334
|
+
<td class="listing_code"><pre class="programlisting"><span class="preproc">#define</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-I18N.html#gettext-macro">_</a></span><span class="symbol">(</span><span class="normal">x</span><span class="symbol">)</span><span class="normal"> </span><span class="function">dgettext</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"MyDomain"</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">)</span></pre></td>
|
335
335
|
</tr>
|
336
336
|
</tbody>
|
337
337
|
</table>
|
@@ -381,7 +381,7 @@ More information about Unicode and UTF-8 can be found in the
|
|
381
381
|
<a class="ulink" href="http://www.cl.cam.ac.uk/~mgk25/unicode.html" target="_top">UTF-8 and Unicode i
|
382
382
|
FAQ for Unix/Linux</a>.
|
383
383
|
GLib provides functions for converting strings between UTF-8 and other
|
384
|
-
encodings, see <a href="
|
384
|
+
encodings, see <a href="https://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.html#g-locale-to-utf8"><code class="function">g_locale_to_utf8()</code></a> and <a href="https://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.html#g-convert"><code class="function">g_convert()</code></a>.
|
385
385
|
</p>
|
386
386
|
<p>
|
387
387
|
Text coming from external sources (e.g. files or user input), has to be
|
@@ -413,19 +413,19 @@ writes the content of a IS0-8859-1 encoded text file to
|
|
413
413
|
18</pre></td>
|
414
414
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">text</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">utf8_text</span><span class="symbol">;</span>
|
415
415
|
<span class="usertype">gsize</span><span class="normal"> length</span><span class="symbol">;</span>
|
416
|
-
<span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="
|
416
|
+
<span class="usertype">GError</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">error </span><span class="symbol">=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
417
417
|
|
418
|
-
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="
|
418
|
+
<span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-File-Utilities.html#g-file-get-contents">g_file_get_contents</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">filename</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">text</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">length</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">))</span><span class="normal"> </span>
|
419
419
|
<span class="normal"> </span><span class="cbracket">{</span>
|
420
|
-
<span class="normal"> utf8_text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
421
|
-
<span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> <a href="
|
422
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="
|
420
|
+
<span class="normal"> utf8_text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.html#g-convert">g_convert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text</span><span class="symbol">,</span><span class="normal"> length</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"UTF-8"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ISO-8859-1"</span><span class="symbol">,</span><span class="normal"> </span>
|
421
|
+
<span class="normal"> NULL</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
422
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error </span><span class="symbol">!=</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
|
423
423
|
<span class="normal"> </span><span class="cbracket">{</span>
|
424
424
|
<span class="normal"> </span><span class="function">fprintf</span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Couldn't convert file %s to UTF-8</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span>
|
425
|
-
<span class="normal"> </span><span class="function"><a href="
|
425
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#g-error-free">g_error_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
426
426
|
<span class="normal"> </span><span class="cbracket">}</span>
|
427
427
|
<span class="normal"> </span><span class="keyword">else</span>
|
428
|
-
<span class="normal"> </span><span class="function"><a href="
|
428
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">utf8_text</span><span class="symbol">);</span>
|
429
429
|
<span class="normal"> </span><span class="cbracket">}</span>
|
430
430
|
<span class="keyword">else</span><span class="normal"> </span>
|
431
431
|
<span class="normal"> </span><span class="function">fprintf</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">stderr</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Unable to read file %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> filename</span><span class="symbol">);</span></pre></td>
|
@@ -471,7 +471,7 @@ very convenient. Be careful when mixing hexadecimal escapes with ordinary text;
|
|
471
471
|
<td><p>
|
472
472
|
If the string literals can be represented in an encoding which your toolchain
|
473
473
|
can handle (e.g. IS0-8859-1), you can write your source files in that encoding
|
474
|
-
and use <a href="
|
474
|
+
and use <a href="https://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.html#g-convert"><code class="function">g_convert()</code></a> to convert the strings to UTF-8 at runtime. Note that this
|
475
475
|
has some runtime overhead, so you may want to move the conversion out of inner
|
476
476
|
loops.
|
477
477
|
</p></td>
|
@@ -492,11 +492,11 @@ UTF-8 by the two bytes 194, 169:
|
|
492
492
|
3
|
493
493
|
4
|
494
494
|
5</pre></td>
|
495
|
-
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="
|
496
|
-
<span class="function"><a href="
|
497
|
-
<span class="normal">text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
498
|
-
<span class="function"><a href="
|
499
|
-
<span class="function"><a href="
|
495
|
+
<td class="listing_code"><pre class="programlisting"><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"direct UTF-8: ©"</span><span class="symbol">);</span>
|
496
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"escaped UTF-8: </span><span class="specialchar">\3</span><span class="string">02</span><span class="specialchar">\2</span><span class="string">51"</span><span class="symbol">);</span>
|
497
|
+
<span class="normal">text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Character-Set-Conversion.html#g-convert">g_convert</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"runtime conversion: ©"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"ISO-8859-1"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"UTF-8"</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
498
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="symbol">(</span><span class="normal">text</span><span class="symbol">);</span>
|
499
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text</span><span class="symbol">);</span></pre></td>
|
500
500
|
</tr>
|
501
501
|
</tbody>
|
502
502
|
</table>
|
@@ -645,7 +645,7 @@ using code like the following:
|
|
645
645
|
<span class="function"><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> fontdesc</span><span class="symbol">);</span><span class="normal"> </span>
|
646
646
|
<span class="function"><a href="../html/gdk2-Drawing-Primitives.html#gdk-draw-layout">gdk_draw_layout</a></span><span class="normal"> </span><span class="symbol">(...,</span><span class="normal"> layout</span><span class="symbol">);</span>
|
647
647
|
<span class="function"><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fontdesc</span><span class="symbol">);</span>
|
648
|
-
<span class="function"><a href="
|
648
|
+
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">);</span></pre></td>
|
649
649
|
</tr>
|
650
650
|
</tbody>
|
651
651
|
</table>
|
@@ -691,7 +691,7 @@ To obtain the size of a piece of text, use a Pango layout and
|
|
691
691
|
<span class="function"><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#pango-layout-set-font-description">pango_layout_set_font_description</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> fontdesc</span><span class="symbol">);</span><span class="normal"> </span>
|
692
692
|
<span class="function"><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Layout-Objects.html#pango-layout-get-pixel-size">pango_layout_get_pixel_size</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">width</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">height</span><span class="symbol">);</span>
|
693
693
|
<span class="function"><a href="/home/mclasen/gnome/share/gtk-doc/html/pango/pango-Fonts.html#pango-font-description-free">pango_font_description_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">fontdesc</span><span class="symbol">);</span>
|
694
|
-
<span class="function"><a href="
|
694
|
+
<span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">layout</span><span class="symbol">);</span></pre></td>
|
695
695
|
</tr>
|
696
696
|
</tbody>
|
697
697
|
</table>
|
@@ -722,7 +722,7 @@ macro ?
|
|
722
722
|
<p>
|
723
723
|
The <code class="literal">GTK_TYPE_BLAH</code> macros are defined as calls to
|
724
724
|
<code class="literal"><code class="function">gtk_blah_get_type()</code></code>, and the <code class="literal"><code class="function">_get_type()</code></code> i
|
725
|
-
functions are declared as <a href="
|
725
|
+
functions are declared as <a href="https://developer.gnome.org/glib/unstable/glib-Miscellaneous-Macros.html#G-GNUC-CONST:CAPS"><code class="literal">G_GNUC_CONST</code></a> which allows the compiler to optimize
|
726
726
|
the call away if it appears that the value is not being used.
|
727
727
|
</p>
|
728
728
|
<p>
|
@@ -759,7 +759,7 @@ How do I create a transparent toplevel window ?
|
|
759
759
|
To make a window transparent, it needs to use a visual which supports that.
|
760
760
|
This is done by getting the RGBA colormap of the screen with
|
761
761
|
<a href="../html/GdkScreen.html#gdk-screen-get-rgba-colormap"><code class="function">gdk_screen_get_rgba_colormap()</code></a> and setting it on the window. Note that
|
762
|
-
<a href="../html/GdkScreen.html#gdk-screen-get-rgba-colormap"><code class="function">gdk_screen_get_rgba_colormap()</code></a> will return <a href="
|
762
|
+
<a href="../html/GdkScreen.html#gdk-screen-get-rgba-colormap"><code class="function">gdk_screen_get_rgba_colormap()</code></a> will return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if transparent windows
|
763
763
|
are not supported on the screen; also note that this may change from
|
764
764
|
screen to screen, so it needs to be repeated whenever the window is moved
|
765
765
|
to a different screen.
|
@@ -936,7 +936,7 @@ gtk_label_set_markup (label, "<big>big text</big>");
|
|
936
936
|
</pre>
|
937
937
|
<p>
|
938
938
|
This is preferred for many apps because it's a relative size to the
|
939
|
-
user's chosen font size. See <a href="
|
939
|
+
user's chosen font size. See <a href="https://developer.gnome.org/glib/unstable/glib-Simple-XML-Subset-Parser.html#g-markup-escape-text"><code class="function">g_markup_escape_text()</code></a> if you are
|
940
940
|
constructing such strings on the fly.
|
941
941
|
</p>
|
942
942
|
<p>
|
@@ -1007,7 +1007,7 @@ or <a class="link" href="GtkTextIter.html#gtk-text-iter-get-text" title="gtk_tex
|
|
1007
1007
|
<span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-get-bounds">gtk_text_buffer_get_bounds</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">buffer</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">start</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">end</span><span class="symbol">);</span>
|
1008
1008
|
<span class="normal">text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTextIter.html#gtk-text-iter-get-text">gtk_text_iter_get_text</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">start</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">end</span><span class="symbol">);</span>
|
1009
1009
|
<span class="comment">/* use text */</span>
|
1010
|
-
<span class="function"><a href="
|
1010
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text</span><span class="symbol">);</span></pre></td>
|
1011
1011
|
</tr>
|
1012
1012
|
</tbody>
|
1013
1013
|
</table>
|
@@ -1154,7 +1154,7 @@ How do I change the way that numbers are formatted by <a class="link" href="GtkT
|
|
1154
1154
|
<p>
|
1155
1155
|
Use <a class="link" href="GtkTreeView.html#gtk-tree-view-insert-column-with-data-func" title="gtk_tree_view_insert_column_with_data_func ()"><code class="function">gtk_tree_view_insert_column_with_data_func()</code></a>
|
1156
1156
|
or <a class="link" href="GtkTreeViewColumn.html#gtk-tree-view-column-set-cell-data-func" title="gtk_tree_view_column_set_cell_data_func ()"><code class="function">gtk_tree_view_column_set_cell_data_func()</code></a> and do the conversion from i
|
1157
|
-
number to string yourself (with, say, <a href="
|
1157
|
+
number to string yourself (with, say, <a href="https://developer.gnome.org/glib/unstable/glib-String-Utility-Functions.html#g-strdup-printf"><code class="function">g_strdup_printf()</code></a>).
|
1158
1158
|
</p>
|
1159
1159
|
<p>
|
1160
1160
|
The following example demonstrates this:
|
@@ -1248,11 +1248,11 @@ The following example demonstrates this:
|
|
1248
1248
|
<span class="normal"> </span><span class="usertype">gchar</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">text</span><span class="symbol">;</span>
|
1249
1249
|
|
1250
1250
|
<span class="normal"> </span><span class="comment">/* Get the double value from the model. */</span>
|
1251
|
-
<span class="normal"> </span><span class="function"><a href="GtkTreeModel.html#gtk-tree-model-get">gtk_tree_model_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">tree_model</span><span class="symbol">,</span><span class="normal"> iter</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
1251
|
+
<span class="normal"> </span><span class="function"><a href="GtkTreeModel.html#gtk-tree-model-get">gtk_tree_model_get</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">tree_model</span><span class="symbol">,</span><span class="normal"> iter</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint">gint</a></span><span class="symbol">)</span><span class="normal">data</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">d</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
1252
1252
|
<span class="normal"> </span><span class="comment">/* Now we can format the value ourselves. */</span>
|
1253
|
-
<span class="normal"> text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
1254
|
-
<span class="normal"> </span><span class="function"><a href="
|
1255
|
-
<span class="normal"> </span><span class="function"><a href="
|
1253
|
+
<span class="normal"> text </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-String-Utility-Functions.html#g-strdup-printf">g_strdup_printf</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"%.2f"</span><span class="symbol">,</span><span class="normal"> d</span><span class="symbol">);</span>
|
1254
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-set">g_object_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cell</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"text"</span><span class="symbol">,</span><span class="normal"> text</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1255
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Memory-Allocation.html#g-free">g_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">text</span><span class="symbol">);</span>
|
1256
1256
|
<span class="cbracket">}</span>
|
1257
1257
|
|
1258
1258
|
<span class="type">void</span><span class="normal"> </span>
|
@@ -1263,7 +1263,7 @@ The following example demonstrates this:
|
|
1263
1263
|
<span class="normal"> </span><span class="usertype">GtkListStore</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">mycolumns</span><span class="symbol">;</span>
|
1264
1264
|
|
1265
1265
|
<span class="normal"> </span><span class="comment">/* Create the data model and associate it with the given TreeView */</span>
|
1266
|
-
<span class="normal"> mycolumns </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-new">gtk_list_store_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">N_COLUMNS</span><span class="symbol">,</span><span class="normal"> <a href="
|
1266
|
+
<span class="normal"> mycolumns </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-new">gtk_list_store_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">N_COLUMNS</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#G-TYPE-DOUBLE:CAPS">G_TYPE_DOUBLE</a></span><span class="symbol">);</span>
|
1267
1267
|
<span class="normal"> </span><span class="function"><a href="GtkTreeView.html#gtk-tree-view-set-model">gtk_tree_view_set_model</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myview</span><span class="symbol">,</span><span class="normal"> </span><span class="function">GTK_TREE_MODEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">mycolumns</span><span class="symbol">));</span>
|
1268
1268
|
|
1269
1269
|
<span class="normal"> </span><span class="comment">/* Create a GtkCellRendererText */</span>
|
@@ -1276,7 +1276,7 @@ The following example demonstrates this:
|
|
1276
1276
|
<span class="normal"> column </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTreeViewColumn.html#gtk-tree-view-column-new">gtk_tree_view_column_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1277
1277
|
<span class="normal"> </span><span class="function"><a href="GtkTreeViewColumn.html#gtk-tree-view-column-set-title">gtk_tree_view_column_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">column</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Example column"</span><span class="symbol">);</span>
|
1278
1278
|
<span class="normal"> renderer </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkCellRendererText.html#gtk-cell-renderer-text-new">gtk_cell_renderer_text_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
1279
|
-
<span class="normal"> </span><span class="function"><a href="GtkTreeViewColumn.html#gtk-tree-view-column-pack-start">gtk_tree_view_column_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">column</span><span class="symbol">,</span><span class="normal"> renderer</span><span class="symbol">,</span><span class="normal"> <a href="
|
1279
|
+
<span class="normal"> </span><span class="function"><a href="GtkTreeViewColumn.html#gtk-tree-view-column-pack-start">gtk_tree_view_column_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">column</span><span class="symbol">,</span><span class="normal"> renderer</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">);</span>
|
1280
1280
|
|
1281
1281
|
<span class="normal"> </span><span class="comment">/* Append the new column after the GtkTreeView's previous columns. */</span>
|
1282
1282
|
<span class="normal"> </span><span class="function"><a href="GtkTreeView.html#gtk-tree-view-append-column">gtk_tree_view_append_column</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_TREE_VIEW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">myview</span><span class="symbol">),</span><span class="normal"> column</span><span class="symbol">);</span>
|
@@ -1289,7 +1289,7 @@ The following example demonstrates this:
|
|
1289
1289
|
<span class="comment"> */</span>
|
1290
1290
|
<span class="normal"> </span><span class="function"><a href="GtkTreeViewColumn.html#gtk-tree-view-column-set-cell-data-func">gtk_tree_view_column_set_cell_data_func</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">column</span><span class="symbol">,</span><span class="normal"> renderer</span><span class="symbol">,</span>
|
1291
1291
|
<span class="normal"> my_cell_double_to_text</span><span class="symbol">,</span><span class="normal"> </span>
|
1292
|
-
<span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
1292
|
+
<span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer">gpointer</a></span><span class="symbol">)</span><span class="normal">DOUBLE_COLUMN</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
1293
1293
|
<span class="cbracket">}</span></pre></td>
|
1294
1294
|
</tr>
|
1295
1295
|
</tbody>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
</tr>
|
60
60
|
<tr>
|
61
61
|
<td class="function_type">
|
62
|
-
<a href="
|
62
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
63
63
|
</td>
|
64
64
|
<td class="function_name">
|
65
65
|
<a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lookup-entry" title="gtk_accel_map_lookup_entry ()">gtk_accel_map_lookup_entry</a> <span class="c_punctuation">()</span>
|
@@ -67,7 +67,7 @@
|
|
67
67
|
</tr>
|
68
68
|
<tr>
|
69
69
|
<td class="function_type">
|
70
|
-
<a href="
|
70
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
71
71
|
</td>
|
72
72
|
<td class="function_name">
|
73
73
|
<a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-change-entry" title="gtk_accel_map_change_entry ()">gtk_accel_map_change_entry</a> <span class="c_punctuation">()</span>
|
@@ -159,7 +159,7 @@
|
|
159
159
|
<tbody><tr>
|
160
160
|
<td class="signal_type"><span class="returnvalue">void</span></td>
|
161
161
|
<td class="signal_name"><a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap-changed" title="The “changed” signal">changed</a></td>
|
162
|
-
<td class="signal_flags"><a href="
|
162
|
+
<td class="signal_flags"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS">Has Details</a></td>
|
163
163
|
</tr></tbody>
|
164
164
|
</table></div>
|
165
165
|
</div>
|
@@ -188,7 +188,7 @@
|
|
188
188
|
</div>
|
189
189
|
<div class="refsect1">
|
190
190
|
<a name="gtk2-Accelerator-Maps.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
191
|
-
<pre class="screen"> <a href="
|
191
|
+
<pre class="screen"> <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
|
192
192
|
<span class="lineart">╰──</span> GtkAccelMap
|
193
193
|
</pre>
|
194
194
|
</div>
|
@@ -207,11 +207,11 @@
|
|
207
207
|
<div class="refsect2">
|
208
208
|
<a name="GtkAccelMapForeach"></a><h3>GtkAccelMapForeach ()</h3>
|
209
209
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
210
|
-
<span class="c_punctuation">(</span>*GtkAccelMapForeach<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="
|
211
|
-
<em class="parameter"><code>const <a href="
|
212
|
-
<em class="parameter"><code><a href="
|
210
|
+
<span class="c_punctuation">(</span>*GtkAccelMapForeach<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
211
|
+
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
212
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
213
213
|
<em class="parameter"><code><a href="../html/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
214
|
-
<em class="parameter"><code><a href="
|
214
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> changed</code></em>);</pre>
|
215
215
|
<p>
|
216
216
|
</p>
|
217
217
|
</div>
|
@@ -219,8 +219,8 @@
|
|
219
219
|
<div class="refsect2">
|
220
220
|
<a name="gtk-accel-map-add-entry"></a><h3>gtk_accel_map_add_entry ()</h3>
|
221
221
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
222
|
-
gtk_accel_map_add_entry (<em class="parameter"><code>const <a href="
|
223
|
-
<em class="parameter"><code><a href="
|
222
|
+
gtk_accel_map_add_entry (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
223
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
224
224
|
<em class="parameter"><code><a href="../html/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>);</pre>
|
225
225
|
<p>Registers a new accelerator with the global accelerator map.
|
226
226
|
This function should only be called once per <em class="parameter"><code>accel_path</code></em>
|
@@ -240,9 +240,9 @@ e.g. "File/Save As", "Image/View/Zoom" or "Edit/Select All".
|
|
240
240
|
So a full valid accelerator path may look like:
|
241
241
|
"<Gimp-Toolbox>/File/Dialogs/Tool Options...".</p>
|
242
242
|
<p>Note that <em class="parameter"><code>accel_path</code></em>
|
243
|
-
string will be stored in a <a href="
|
243
|
+
string will be stored in a <a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore, if you
|
244
244
|
pass a static string, you can save some memory by interning it first with
|
245
|
-
<a href="
|
245
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.</p>
|
246
246
|
<div class="refsect3">
|
247
247
|
<a name="gtk-accel-map-add-entry.parameters"></a><h4>Parameters</h4>
|
248
248
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -274,8 +274,8 @@ pass a static string, you can save some memory by interning it first with
|
|
274
274
|
<hr>
|
275
275
|
<div class="refsect2">
|
276
276
|
<a name="gtk-accel-map-lookup-entry"></a><h3>gtk_accel_map_lookup_entry ()</h3>
|
277
|
-
<pre class="programlisting"><a href="
|
278
|
-
gtk_accel_map_lookup_entry (<em class="parameter"><code>const <a href="
|
277
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
278
|
+
gtk_accel_map_lookup_entry (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
279
279
|
<em class="parameter"><code><a class="link" href="gtk2-Keyboard-Accelerators.html#GtkAccelKey" title="struct GtkAccelKey"><span class="type">GtkAccelKey</span></a> *key</code></em>);</pre>
|
280
280
|
<p>Looks up the accelerator entry for <em class="parameter"><code>accel_path</code></em>
|
281
281
|
and fills in <em class="parameter"><code>key</code></em>
|
@@ -304,18 +304,18 @@ gtk_accel_map_lookup_entry (<em class="parameter"><code>const <a href="/home/vag
|
|
304
304
|
</div>
|
305
305
|
<div class="refsect3">
|
306
306
|
<a name="gtk-accel-map-lookup-entry.returns"></a><h4>Returns</h4>
|
307
|
-
<p><a href="
|
308
|
-
is known, <a href="
|
307
|
+
<p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>accel_path</code></em>
|
308
|
+
is known, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
309
309
|
</div>
|
310
310
|
</div>
|
311
311
|
<hr>
|
312
312
|
<div class="refsect2">
|
313
313
|
<a name="gtk-accel-map-change-entry"></a><h3>gtk_accel_map_change_entry ()</h3>
|
314
|
-
<pre class="programlisting"><a href="
|
315
|
-
gtk_accel_map_change_entry (<em class="parameter"><code>const <a href="
|
316
|
-
<em class="parameter"><code><a href="
|
314
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
315
|
+
gtk_accel_map_change_entry (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
316
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
317
317
|
<em class="parameter"><code><a href="../html/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
318
|
-
<em class="parameter"><code><a href="
|
318
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace</code></em>);</pre>
|
319
319
|
<p>Changes the <em class="parameter"><code>accel_key</code></em>
|
320
320
|
and <em class="parameter"><code>accel_mods</code></em>
|
321
321
|
currently associated with <em class="parameter"><code>accel_path</code></em>
|
@@ -325,11 +325,11 @@ Due to conflicts with other accelerators, a change may not always be possible,
|
|
325
325
|
indicates whether other accelerators may be deleted to resolve such
|
326
326
|
conflicts. A change will only occur if all conflicts could be resolved (which
|
327
327
|
might not be the case if conflicting accelerators are locked). Successful
|
328
|
-
changes are indicated by a <a href="
|
328
|
+
changes are indicated by a <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> return value.</p>
|
329
329
|
<p>Note that <em class="parameter"><code>accel_path</code></em>
|
330
|
-
string will be stored in a <a href="
|
330
|
+
string will be stored in a <a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore, if you
|
331
331
|
pass a static string, you can save some memory by interning it first with
|
332
|
-
<a href="
|
332
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.</p>
|
333
333
|
<div class="refsect3">
|
334
334
|
<a name="gtk-accel-map-change-entry.parameters"></a><h4>Parameters</h4>
|
335
335
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -356,7 +356,7 @@ pass a static string, you can save some memory by interning it first with
|
|
356
356
|
</tr>
|
357
357
|
<tr>
|
358
358
|
<td class="parameter_name"><p>replace</p></td>
|
359
|
-
<td class="parameter_description"><p><a href="
|
359
|
+
<td class="parameter_description"><p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if other accelerators may be deleted upon conflicts</p></td>
|
360
360
|
<td class="parameter_annotations"> </td>
|
361
361
|
</tr>
|
362
362
|
</tbody>
|
@@ -364,14 +364,14 @@ pass a static string, you can save some memory by interning it first with
|
|
364
364
|
</div>
|
365
365
|
<div class="refsect3">
|
366
366
|
<a name="gtk-accel-map-change-entry.returns"></a><h4>Returns</h4>
|
367
|
-
<p><a href="
|
367
|
+
<p><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the accelerator could be changed, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</p>
|
368
368
|
</div>
|
369
369
|
</div>
|
370
370
|
<hr>
|
371
371
|
<div class="refsect2">
|
372
372
|
<a name="gtk-accel-map-foreach"></a><h3>gtk_accel_map_foreach ()</h3>
|
373
373
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
374
|
-
gtk_accel_map_foreach (<em class="parameter"><code><a href="
|
374
|
+
gtk_accel_map_foreach (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
375
375
|
<em class="parameter"><code><a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMapForeach" title="GtkAccelMapForeach ()"><span class="type">GtkAccelMapForeach</span></a> foreach_func</code></em>);</pre>
|
376
376
|
<p>Loops over the entries in the accelerator map whose accel path
|
377
377
|
doesn't match any of the filters added with <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-add-filter" title="gtk_accel_map_add_filter ()"><code class="function">gtk_accel_map_add_filter()</code></a>,
|
@@ -411,7 +411,7 @@ is not filtered out</p></td>
|
|
411
411
|
<div class="refsect2">
|
412
412
|
<a name="gtk-accel-map-load-fd"></a><h3>gtk_accel_map_load_fd ()</h3>
|
413
413
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
414
|
-
gtk_accel_map_load_fd (<em class="parameter"><code><a href="
|
414
|
+
gtk_accel_map_load_fd (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);</pre>
|
415
415
|
<p>Filedescriptor variant of <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load" title="gtk_accel_map_load"><code class="function">gtk_accel_map_load()</code></a>.</p>
|
416
416
|
<p>Note that the file descriptor will not be closed by this function.</p>
|
417
417
|
<div class="refsect3">
|
@@ -434,7 +434,7 @@ gtk_accel_map_load_fd (<em class="parameter"><code><a href="/home/vagrant/ruby-g
|
|
434
434
|
<div class="refsect2">
|
435
435
|
<a name="gtk-accel-map-save-fd"></a><h3>gtk_accel_map_save_fd ()</h3>
|
436
436
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
437
|
-
gtk_accel_map_save_fd (<em class="parameter"><code><a href="
|
437
|
+
gtk_accel_map_save_fd (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);</pre>
|
438
438
|
<p>Filedescriptor variant of <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-save" title="gtk_accel_map_save"><code class="function">gtk_accel_map_save()</code></a>.</p>
|
439
439
|
<p>Note that the file descriptor will not be closed by this function.</p>
|
440
440
|
<div class="refsect3">
|
@@ -457,8 +457,8 @@ gtk_accel_map_save_fd (<em class="parameter"><code><a href="/home/vagrant/ruby-g
|
|
457
457
|
<div class="refsect2">
|
458
458
|
<a name="gtk-accel-map-load-scanner"></a><h3>gtk_accel_map_load_scanner ()</h3>
|
459
459
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
460
|
-
gtk_accel_map_load_scanner (<em class="parameter"><code><a href="
|
461
|
-
<p><a href="
|
460
|
+
gtk_accel_map_load_scanner (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> *scanner</code></em>);</pre>
|
461
|
+
<p><a href="https://developer.gnome.org/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> variant of <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load" title="gtk_accel_map_load"><code class="function">gtk_accel_map_load()</code></a>.</p>
|
462
462
|
<div class="refsect3">
|
463
463
|
<a name="gtk-accel-map-load-scanner.parameters"></a><h4>Parameters</h4>
|
464
464
|
<div class="informaltable"><table width="100%" border="0">
|
@@ -469,7 +469,7 @@ gtk_accel_map_load_scanner (<em class="parameter"><code><a href="/home/vagrant/r
|
|
469
469
|
</colgroup>
|
470
470
|
<tbody><tr>
|
471
471
|
<td class="parameter_name"><p>scanner</p></td>
|
472
|
-
<td class="parameter_description"><p>a <a href="
|
472
|
+
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> which has already been provided with an input file</p></td>
|
473
473
|
<td class="parameter_annotations"> </td>
|
474
474
|
</tr></tbody>
|
475
475
|
</table></div>
|
@@ -479,7 +479,7 @@ gtk_accel_map_load_scanner (<em class="parameter"><code><a href="/home/vagrant/r
|
|
479
479
|
<div class="refsect2">
|
480
480
|
<a name="gtk-accel-map-add-filter"></a><h3>gtk_accel_map_add_filter ()</h3>
|
481
481
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
482
|
-
gtk_accel_map_add_filter (<em class="parameter"><code>const <a href="
|
482
|
+
gtk_accel_map_add_filter (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filter_pattern</code></em>);</pre>
|
483
483
|
<p>Adds a filter to the global list of accel path filters.</p>
|
484
484
|
<p>Accel map entries whose accel path matches one of the filters
|
485
485
|
are skipped by <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-foreach" title="gtk_accel_map_foreach ()"><code class="function">gtk_accel_map_foreach()</code></a>.</p>
|
@@ -496,7 +496,7 @@ map dump.</p>
|
|
496
496
|
</colgroup>
|
497
497
|
<tbody><tr>
|
498
498
|
<td class="parameter_name"><p>filter_pattern</p></td>
|
499
|
-
<td class="parameter_description"><p>a pattern (see <a href="
|
499
|
+
<td class="parameter_description"><p>a pattern (see <a href="https://developer.gnome.org/glib/unstable/glib-Glob-style-pattern-matching.html#GPatternSpec"><span class="type">GPatternSpec</span></a>)</p></td>
|
500
500
|
<td class="parameter_annotations"> </td>
|
501
501
|
</tr></tbody>
|
502
502
|
</table></div>
|
@@ -506,7 +506,7 @@ map dump.</p>
|
|
506
506
|
<div class="refsect2">
|
507
507
|
<a name="gtk-accel-map-foreach-unfiltered"></a><h3>gtk_accel_map_foreach_unfiltered ()</h3>
|
508
508
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
509
|
-
gtk_accel_map_foreach_unfiltered (<em class="parameter"><code><a href="
|
509
|
+
gtk_accel_map_foreach_unfiltered (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
510
510
|
<em class="parameter"><code><a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMapForeach" title="GtkAccelMapForeach ()"><span class="type">GtkAccelMapForeach</span></a> foreach_func</code></em>);</pre>
|
511
511
|
<p>Loops over all entries in the accelerator map, and execute
|
512
512
|
<em class="parameter"><code>foreach_func</code></em>
|
@@ -559,7 +559,7 @@ other accelerator map functions.</p>
|
|
559
559
|
<div class="refsect2">
|
560
560
|
<a name="gtk-accel-map-lock-path"></a><h3>gtk_accel_map_lock_path ()</h3>
|
561
561
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
562
|
-
gtk_accel_map_lock_path (<em class="parameter"><code>const <a href="
|
562
|
+
gtk_accel_map_lock_path (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
|
563
563
|
<p>Locks the given accelerator path. If the accelerator map doesn't yet contain
|
564
564
|
an entry for <em class="parameter"><code>accel_path</code></em>
|
565
565
|
, a new one is created.</p>
|
@@ -596,7 +596,7 @@ have to be unlocked.</p>
|
|
596
596
|
<div class="refsect2">
|
597
597
|
<a name="gtk-accel-map-unlock-path"></a><h3>gtk_accel_map_unlock_path ()</h3>
|
598
598
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
599
|
-
gtk_accel_map_unlock_path (<em class="parameter"><code>const <a href="
|
599
|
+
gtk_accel_map_unlock_path (<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
|
600
600
|
<p>Undoes the last call to <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lock-path" title="gtk_accel_map_lock_path ()"><code class="function">gtk_accel_map_lock_path()</code></a> on this <em class="parameter"><code>accel_path</code></em>
|
601
601
|
.
|
602
602
|
Refer to <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lock-path" title="gtk_accel_map_lock_path ()"><code class="function">gtk_accel_map_lock_path()</code></a> for information about accelerator path locking.</p>
|
@@ -684,10 +684,10 @@ in the GLib file name encoding</p></td>
|
|
684
684
|
<a name="GtkAccelMap-changed"></a><h3>The <code class="literal">“changed”</code> signal</h3>
|
685
685
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
686
686
|
user_function (<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> *object,
|
687
|
-
<a href="
|
688
|
-
<a href="
|
687
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path,
|
688
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key,
|
689
689
|
<a href="../html/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods,
|
690
|
-
<a href="
|
690
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data)</pre>
|
691
691
|
<p>Notifies of a change in the global accelerator map.
|
692
692
|
The path is also used as the detail for the signal,
|
693
693
|
so it is possible to connect to
|
@@ -729,7 +729,7 @@ changed::<em class="replaceable"><code>accel_path</code></em>.</p>
|
|
729
729
|
</tbody>
|
730
730
|
</table></div>
|
731
731
|
</div>
|
732
|
-
<p>Flags: <a href="
|
732
|
+
<p>Flags: <a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS">Has Details</a></p>
|
733
733
|
<p class="since">Since: <a class="link" href="api-index-2-4.html#api-index-2.4">2.4</a></p>
|
734
734
|
</div>
|
735
735
|
</div>
|