gtk2 2.2.0-x86-mingw32 → 2.2.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gtk2/rbgdkproperty.c +4 -4
- data/ext/gtk2/rbgtk.c +17 -0
- data/ext/gtk2/rbgtkdialog.c +26 -7
- data/ext/gtk2/rbgtkselectiondata.c +4 -5
- data/lib/2.0/gtk2.so +0 -0
- data/test/test_gdk_pixbuf.rb +34 -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/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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgailutil.la +1 -1
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.la +1 -1
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.la +1 -1
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +46 -46
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +18 -18
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplay.html +93 -93
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplayManager.html +7 -7
- data/vendor/local/share/gtk-doc/html/gdk2/GdkScreen.html +159 -159
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Application-launching.html +13 -13
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Bitmaps-and-Pixmaps.html +53 -53
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Colormaps-and-Colors.html +85 -85
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cursors.html +17 -17
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drag-and-Drop.html +45 -45
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drawing-Primitives.html +200 -200
- 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 +61 -61
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Fonts.html +117 -117
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-GdkRGB.html +110 -110
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-General.html +75 -75
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Graphics-Contexts.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Images.html +52 -52
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input-Devices.html +55 -55
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Keyboard-Handling.html +99 -99
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pango-Interaction.html +32 -32
- 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 +46 -46
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Properties-and-Atoms.html +125 -125
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Selections.html +36 -36
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Testing.html +16 -16
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Threads.html +88 -88
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Visuals.html +56 -56
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Windows.html +395 -395
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-X-Window-System-Interaction.html +72 -72
- data/vendor/local/share/gtk-doc/html/gdk2/multihead.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAboutDialog.html +136 -136
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccelLabel.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccessible.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAction.html +133 -133
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActionGroup.html +110 -110
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActivatable.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAdjustment.html +78 -78
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAlignment.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/GtkArrow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAspectFrame.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAssistant.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBin.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBox.html +67 -67
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuildable.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuilder.html +127 -127
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButton.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButtonBox.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCList.html +294 -294
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCTree.html +212 -212
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCalendar.html +97 -97
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellEditable.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellLayout.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRenderer.html +100 -100
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererAccel.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererCombo.html +11 -11
- 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 +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererText.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererToggle.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellView.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCheckButton.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorButton.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelection.html +53 -53
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelectionDialog.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCombo.html +41 -41
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBox.html +106 -106
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxEntry.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxText.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkContainer.html +92 -92
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCurve.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDialog.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDrawingArea.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEditable.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntry.html +274 -274
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryBuffer.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryCompletion.html +103 -103
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEventBox.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkExpander.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooser.html +217 -217
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserButton.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserDialog.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserWidget.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileSelection.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFixed.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontButton.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelection.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelectionDialog.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFrame.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkGammaCurve.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHBox.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHButtonBox.html +6 -6
- 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 +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScale.html +8 -8
- 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 +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContext.html +65 -65
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContextSimple.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMMulticontext.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconTheme.html +99 -99
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconView.html +214 -214
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImage.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImageMenuItem.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInfoBar.html +41 -41
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInputDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInvisible.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItem.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItemFactory.html +107 -107
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLabel.html +158 -158
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLayout.html +33 -33
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLinkButton.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkList.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListItem.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListStore.html +64 -64
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenu.html +107 -107
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuBar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuItem.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuShell.html +45 -45
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuToolButton.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMessageDialog.html +41 -41
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMisc.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkNotebook.html +225 -225
- data/vendor/local/share/gtk-doc/html/gtk2/GtkObject.html +117 -117
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOffscreenWindow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOldEditable.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOptionMenu.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetup.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetupUnixDialog.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaned.html +55 -55
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaperSize.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPixmap.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPlug.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPreview.html +44 -44
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintContext.html +21 -21
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintJob.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintSettings.html +210 -210
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintUnixDialog.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrinter.html +96 -96
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgress.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgressBar.html +49 -49
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioAction.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioButton.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioMenuItem.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioToolButton.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRange.html +110 -110
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentAction.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooser.html +114 -114
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserDialog.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserMenu.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserWidget.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentFilter.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentManager.html +147 -147
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRuler.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScale.html +39 -39
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScaleButton.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrollbar.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrolledWindow.html +19 -19
- 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 +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSettings.html +213 -213
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSizeGroup.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSocket.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinButton.html +93 -93
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinner.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusIcon.html +164 -164
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusbar.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStyle.html +467 -467
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTable.html +93 -93
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTearoffMenuItem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkText.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextBuffer.html +233 -233
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextIter.html +309 -309
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextMark.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTag.html +134 -134
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTagTable.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextView.html +237 -237
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTipsQuery.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleAction.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleButton.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleToolButton.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolButton.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItem.html +70 -70
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItemGroup.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolPalette.html +39 -39
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolShell.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolbar.html +127 -127
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltip.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltips.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTree.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeItem.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModel.html +156 -156
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelFilter.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelSort.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSelection.html +43 -43
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSortable.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeStore.html +74 -74
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeView.html +478 -478
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeViewColumn.html +175 -175
- data/vendor/local/share/gtk-doc/html/gtk2/GtkUIManager.html +64 -64
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVBox.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVButtonBox.html +6 -6
- 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 +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScrollbar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkViewport.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVolumeButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWidget.html +769 -769
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindow.html +310 -310
- 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 +3 -3
- 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 +44 -44
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Accelerator-Maps.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Bindings.html +55 -55
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Clipboards.html +115 -115
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Drag-and-Drop.html +80 -80
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Feature-Test-Macros.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Filesystem-utilities.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-General.html +173 -173
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Graphics-Contexts.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-GtkTreeView-drag-and-drop.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-High-level-Printing-API.html +168 -168
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Keyboard-Accelerators.html +100 -100
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Orientable.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Resource-Files.html +70 -70
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Selections.html +149 -149
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Signals.html +95 -95
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Stock-Items.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Testing.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Themeable-Stock-Images.html +69 -69
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Types.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkcheckmenuitem.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkfilefilter.html +29 -29
- 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 +16 -17
- data/lib/1.9/gtk2.so +0 -0
- data/lib/2.1/gtk2.so +0 -0
@@ -138,7 +138,7 @@ my_widget_popup_menu_handler (GtkWidget *widget)
|
|
138
138
|
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
|
139
139
|
provide your own <a class="link" href="GtkMenu.html#GtkMenuPositionFunc" title="GtkMenuPositionFunc ()">menu-positioning function</a>
|
140
140
|
in the case where the <em class="parameter"><code>event</code></em> is
|
141
|
-
<a href="
|
141
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. This function should compute the desired position for
|
142
142
|
a menu when it is invoked through the keyboard. For example,
|
143
143
|
<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
|
144
144
|
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="http://library.gnome.org/devel/gio/unstable/GIcon.html"><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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/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="../gdk2/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> and <a class="link" href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a>. For <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a> note
|
123
|
+
specifically <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a> and <a href="http://library.gnome.org/devel/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="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"><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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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>
|
@@ -224,7 +224,7 @@ How do I use GTK+ with threads?
|
|
224
224
|
<td align="left" valign="top"></td>
|
225
225
|
<td align="left" valign="top"><p>
|
226
226
|
This is covered in the <GTKDOCLINK HREF="gdk-Threads">GDK threads
|
227
|
-
documentation</GTKDOCLINK>. See also the <a href="
|
227
|
+
documentation</GTKDOCLINK>. See also the <a href="http://library.gnome.org/devel/glib/unstable/glib-Threads.html">GThread</a>
|
228
228
|
documentation for portable threading primitives.
|
229
229
|
</p></td>
|
230
230
|
</tr>
|
@@ -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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/glib/unstable/glib-Character-Set-Conversion.html#g-locale-to-utf8"><code class="function">g_locale_to_utf8()</code></a> and <a href="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
498
|
+
<span class="function"><a href="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="/usr/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="../gdk2/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="/usr/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="http://library.gnome.org/devel/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="/usr/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="/usr/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="/usr/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="../gdk2/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="../gdk2/GdkScreen.html#gdk-screen-get-rgba-colormap"><code class="function">gdk_screen_get_rgba_colormap()</code></a> will return <a href="
|
762
|
+
<a href="../gdk2/GdkScreen.html#gdk-screen-get-rgba-colormap"><code class="function">gdk_screen_get_rgba_colormap()</code></a> will return <a href="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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="http://library.gnome.org/devel/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>
|
@@ -45,46 +45,46 @@
|
|
45
45
|
#include <gtk/gtk.h>
|
46
46
|
|
47
47
|
<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap-struct" title="GtkAccelMap">GtkAccelMap</a>;
|
48
|
-
<span class="returnvalue">void</span> (<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMapForeach" title="GtkAccelMapForeach ()">*GtkAccelMapForeach</a>) (<em class="parameter"><code><a href="
|
49
|
-
<em class="parameter"><code>const <a href="
|
50
|
-
<em class="parameter"><code><a href="
|
48
|
+
<span class="returnvalue">void</span> (<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMapForeach" title="GtkAccelMapForeach ()">*GtkAccelMapForeach</a>) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
49
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
50
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
51
51
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
52
|
-
<em class="parameter"><code><a href="
|
53
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-add-entry" title="gtk_accel_map_add_entry ()">gtk_accel_map_add_entry</a> (<em class="parameter"><code>const <a href="
|
54
|
-
<em class="parameter"><code><a href="
|
52
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> changed</code></em>);
|
53
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-add-entry" title="gtk_accel_map_add_entry ()">gtk_accel_map_add_entry</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
54
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
55
55
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>);
|
56
|
-
<a href="
|
56
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
57
57
|
<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>);
|
58
|
-
<a href="
|
59
|
-
<em class="parameter"><code><a href="
|
58
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <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> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
59
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
60
60
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
61
|
-
<em class="parameter"><code><a href="
|
61
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace</code></em>);
|
62
62
|
#define <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load" title="gtk_accel_map_load">gtk_accel_map_load</a>
|
63
63
|
#define <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-save" title="gtk_accel_map_save">gtk_accel_map_save</a>
|
64
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-foreach" title="gtk_accel_map_foreach ()">gtk_accel_map_foreach</a> (<em class="parameter"><code><a href="
|
64
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-foreach" title="gtk_accel_map_foreach ()">gtk_accel_map_foreach</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
65
65
|
<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>);
|
66
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load-fd" title="gtk_accel_map_load_fd ()">gtk_accel_map_load_fd</a> (<em class="parameter"><code><a href="
|
67
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-save-fd" title="gtk_accel_map_save_fd ()">gtk_accel_map_save_fd</a> (<em class="parameter"><code><a href="
|
68
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load-scanner" title="gtk_accel_map_load_scanner ()">gtk_accel_map_load_scanner</a> (<em class="parameter"><code><a href="
|
69
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-add-filter" title="gtk_accel_map_add_filter ()">gtk_accel_map_add_filter</a> (<em class="parameter"><code>const <a href="
|
70
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-foreach-unfiltered" title="gtk_accel_map_foreach_unfiltered ()">gtk_accel_map_foreach_unfiltered</a> (<em class="parameter"><code><a href="
|
66
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load-fd" title="gtk_accel_map_load_fd ()">gtk_accel_map_load_fd</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);
|
67
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-save-fd" title="gtk_accel_map_save_fd ()">gtk_accel_map_save_fd</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);
|
68
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-load-scanner" title="gtk_accel_map_load_scanner ()">gtk_accel_map_load_scanner</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> *scanner</code></em>);
|
69
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-add-filter" title="gtk_accel_map_add_filter ()">gtk_accel_map_add_filter</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filter_pattern</code></em>);
|
70
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-foreach-unfiltered" title="gtk_accel_map_foreach_unfiltered ()">gtk_accel_map_foreach_unfiltered</a> (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
71
71
|
<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>);
|
72
72
|
<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap"><span class="returnvalue">GtkAccelMap</span></a> * <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-get" title="gtk_accel_map_get ()">gtk_accel_map_get</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
73
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lock-path" title="gtk_accel_map_lock_path ()">gtk_accel_map_lock_path</a> (<em class="parameter"><code>const <a href="
|
74
|
-
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-unlock-path" title="gtk_accel_map_unlock_path ()">gtk_accel_map_unlock_path</a> (<em class="parameter"><code>const <a href="
|
73
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lock-path" title="gtk_accel_map_lock_path ()">gtk_accel_map_lock_path</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);
|
74
|
+
<span class="returnvalue">void</span> <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-unlock-path" title="gtk_accel_map_unlock_path ()">gtk_accel_map_unlock_path</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);
|
75
75
|
</pre>
|
76
76
|
</div>
|
77
77
|
<div class="refsect1">
|
78
78
|
<a name="gtk2-Accelerator-Maps.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
79
79
|
<pre class="synopsis">
|
80
|
-
<a href="
|
80
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
81
81
|
+----GtkAccelMap
|
82
82
|
</pre>
|
83
83
|
</div>
|
84
84
|
<div class="refsect1">
|
85
85
|
<a name="gtk2-Accelerator-Maps.signals"></a><h2>Signals</h2>
|
86
86
|
<pre class="synopsis">
|
87
|
-
"<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap-changed" title='The "changed" signal'>changed</a>" : <a href="
|
87
|
+
"<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap-changed" title='The "changed" signal'>changed</a>" : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a>
|
88
88
|
</pre>
|
89
89
|
</div>
|
90
90
|
<div class="refsect1">
|
@@ -103,19 +103,19 @@
|
|
103
103
|
<hr>
|
104
104
|
<div class="refsect2">
|
105
105
|
<a name="GtkAccelMapForeach"></a><h3>GtkAccelMapForeach ()</h3>
|
106
|
-
<pre class="programlisting"><span class="returnvalue">void</span> (*GtkAccelMapForeach) (<em class="parameter"><code><a href="
|
107
|
-
<em class="parameter"><code>const <a href="
|
108
|
-
<em class="parameter"><code><a href="
|
106
|
+
<pre class="programlisting"><span class="returnvalue">void</span> (*GtkAccelMapForeach) (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
107
|
+
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
108
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
109
109
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
110
|
-
<em class="parameter"><code><a href="
|
110
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> changed</code></em>);</pre>
|
111
111
|
<p>
|
112
112
|
</p>
|
113
113
|
</div>
|
114
114
|
<hr>
|
115
115
|
<div class="refsect2">
|
116
116
|
<a name="gtk-accel-map-add-entry"></a><h3>gtk_accel_map_add_entry ()</h3>
|
117
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_add_entry (<em class="parameter"><code>const <a href="
|
118
|
-
<em class="parameter"><code><a href="
|
117
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_add_entry (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
118
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
119
119
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>);</pre>
|
120
120
|
<p>
|
121
121
|
Registers a new accelerator with the global accelerator map.
|
@@ -134,9 +134,9 @@ So a full valid accelerator path may look like:
|
|
134
134
|
"<Gimp-Toolbox>/File/Dialogs/Tool Options...".
|
135
135
|
</p>
|
136
136
|
<p>
|
137
|
-
Note that <em class="parameter"><code>accel_path</code></em> string will be stored in a <a href="
|
137
|
+
Note that <em class="parameter"><code>accel_path</code></em> string will be stored in a <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore, if you
|
138
138
|
pass a static string, you can save some memory by interning it first with
|
139
|
-
<a href="
|
139
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.
|
140
140
|
</p>
|
141
141
|
<div class="variablelist"><table border="0" class="variablelist">
|
142
142
|
<colgroup>
|
@@ -162,7 +162,7 @@ pass a static string, you can save some memory by interning it first with
|
|
162
162
|
<hr>
|
163
163
|
<div class="refsect2">
|
164
164
|
<a name="gtk-accel-map-lookup-entry"></a><h3>gtk_accel_map_lookup_entry ()</h3>
|
165
|
-
<pre class="programlisting"><a href="
|
165
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_accel_map_lookup_entry (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
166
166
|
<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>
|
167
167
|
<p>
|
168
168
|
Looks up the accelerator entry for <em class="parameter"><code>accel_path</code></em> and fills in <em class="parameter"><code>key</code></em>.
|
@@ -184,7 +184,7 @@ Looks up the accelerator entry for <em class="parameter"><code>accel_path</code>
|
|
184
184
|
<tr>
|
185
185
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
186
186
|
<td>
|
187
|
-
<a href="
|
187
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>accel_path</code></em> is known, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
|
188
188
|
</tr>
|
189
189
|
</tbody>
|
190
190
|
</table></div>
|
@@ -192,22 +192,22 @@ Looks up the accelerator entry for <em class="parameter"><code>accel_path</code>
|
|
192
192
|
<hr>
|
193
193
|
<div class="refsect2">
|
194
194
|
<a name="gtk-accel-map-change-entry"></a><h3>gtk_accel_map_change_entry ()</h3>
|
195
|
-
<pre class="programlisting"><a href="
|
196
|
-
<em class="parameter"><code><a href="
|
195
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gtk_accel_map_change_entry (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>,
|
196
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key</code></em>,
|
197
197
|
<em class="parameter"><code><a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods</code></em>,
|
198
|
-
<em class="parameter"><code><a href="
|
198
|
+
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> replace</code></em>);</pre>
|
199
199
|
<p>
|
200
200
|
Changes the <em class="parameter"><code>accel_key</code></em> and <em class="parameter"><code>accel_mods</code></em> currently associated with <em class="parameter"><code>accel_path</code></em>.
|
201
201
|
Due to conflicts with other accelerators, a change may not always be possible,
|
202
202
|
<em class="parameter"><code>replace</code></em> indicates whether other accelerators may be deleted to resolve such
|
203
203
|
conflicts. A change will only occur if all conflicts could be resolved (which
|
204
204
|
might not be the case if conflicting accelerators are locked). Successful
|
205
|
-
changes are indicated by a <a href="
|
205
|
+
changes are indicated by a <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> return value.
|
206
206
|
</p>
|
207
207
|
<p>
|
208
|
-
Note that <em class="parameter"><code>accel_path</code></em> string will be stored in a <a href="
|
208
|
+
Note that <em class="parameter"><code>accel_path</code></em> string will be stored in a <a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore, if you
|
209
209
|
pass a static string, you can save some memory by interning it first with
|
210
|
-
<a href="
|
210
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.
|
211
211
|
</p>
|
212
212
|
<div class="variablelist"><table border="0" class="variablelist">
|
213
213
|
<colgroup>
|
@@ -230,12 +230,12 @@ pass a static string, you can save some memory by interning it first with
|
|
230
230
|
<tr>
|
231
231
|
<td><p><span class="term"><em class="parameter"><code>replace</code></em> :</span></p></td>
|
232
232
|
<td>
|
233
|
-
<a href="
|
233
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if other accelerators may be deleted upon conflicts</td>
|
234
234
|
</tr>
|
235
235
|
<tr>
|
236
236
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
237
237
|
<td>
|
238
|
-
<a href="
|
238
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the accelerator could be changed, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
|
239
239
|
</tr>
|
240
240
|
</tbody>
|
241
241
|
</table></div>
|
@@ -287,7 +287,7 @@ in the GLib file name encoding</td>
|
|
287
287
|
<hr>
|
288
288
|
<div class="refsect2">
|
289
289
|
<a name="gtk-accel-map-foreach"></a><h3>gtk_accel_map_foreach ()</h3>
|
290
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_foreach (<em class="parameter"><code><a href="
|
290
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_foreach (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
291
291
|
<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>
|
292
292
|
<p>
|
293
293
|
Loops over the entries in the accelerator map whose accel path
|
@@ -319,7 +319,7 @@ is not filtered out</td>
|
|
319
319
|
<hr>
|
320
320
|
<div class="refsect2">
|
321
321
|
<a name="gtk-accel-map-load-fd"></a><h3>gtk_accel_map_load_fd ()</h3>
|
322
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_load_fd (<em class="parameter"><code><a href="
|
322
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_load_fd (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);</pre>
|
323
323
|
<p>
|
324
324
|
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>.
|
325
325
|
</p>
|
@@ -340,7 +340,7 @@ Note that the file descriptor will not be closed by this function.
|
|
340
340
|
<hr>
|
341
341
|
<div class="refsect2">
|
342
342
|
<a name="gtk-accel-map-save-fd"></a><h3>gtk_accel_map_save_fd ()</h3>
|
343
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_save_fd (<em class="parameter"><code><a href="
|
343
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_save_fd (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> fd</code></em>);</pre>
|
344
344
|
<p>
|
345
345
|
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>.
|
346
346
|
</p>
|
@@ -361,9 +361,9 @@ Note that the file descriptor will not be closed by this function.
|
|
361
361
|
<hr>
|
362
362
|
<div class="refsect2">
|
363
363
|
<a name="gtk-accel-map-load-scanner"></a><h3>gtk_accel_map_load_scanner ()</h3>
|
364
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_load_scanner (<em class="parameter"><code><a href="
|
364
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_load_scanner (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> *scanner</code></em>);</pre>
|
365
365
|
<p>
|
366
|
-
<a href="
|
366
|
+
<a href="http://library.gnome.org/devel/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>.
|
367
367
|
</p>
|
368
368
|
<div class="variablelist"><table border="0" class="variablelist">
|
369
369
|
<colgroup>
|
@@ -372,14 +372,14 @@ Note that the file descriptor will not be closed by this function.
|
|
372
372
|
</colgroup>
|
373
373
|
<tbody><tr>
|
374
374
|
<td><p><span class="term"><em class="parameter"><code>scanner</code></em> :</span></p></td>
|
375
|
-
<td>a <a href="
|
375
|
+
<td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Lexical-Scanner.html#GScanner"><span class="type">GScanner</span></a> which has already been provided with an input file</td>
|
376
376
|
</tr></tbody>
|
377
377
|
</table></div>
|
378
378
|
</div>
|
379
379
|
<hr>
|
380
380
|
<div class="refsect2">
|
381
381
|
<a name="gtk-accel-map-add-filter"></a><h3>gtk_accel_map_add_filter ()</h3>
|
382
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_add_filter (<em class="parameter"><code>const <a href="
|
382
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_add_filter (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *filter_pattern</code></em>);</pre>
|
383
383
|
<p>
|
384
384
|
Adds a filter to the global list of accel path filters.
|
385
385
|
</p>
|
@@ -399,14 +399,14 @@ map dump.
|
|
399
399
|
</colgroup>
|
400
400
|
<tbody><tr>
|
401
401
|
<td><p><span class="term"><em class="parameter"><code>filter_pattern</code></em> :</span></p></td>
|
402
|
-
<td>a pattern (see <a href="
|
402
|
+
<td>a pattern (see <a href="http://library.gnome.org/devel/glib/unstable/glib-Glob-style-pattern-matching.html#GPatternSpec"><span class="type">GPatternSpec</span></a>)</td>
|
403
403
|
</tr></tbody>
|
404
404
|
</table></div>
|
405
405
|
</div>
|
406
406
|
<hr>
|
407
407
|
<div class="refsect2">
|
408
408
|
<a name="gtk-accel-map-foreach-unfiltered"></a><h3>gtk_accel_map_foreach_unfiltered ()</h3>
|
409
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_foreach_unfiltered (<em class="parameter"><code><a href="
|
409
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_foreach_unfiltered (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
410
410
|
<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>
|
411
411
|
<p>
|
412
412
|
Loops over all entries in the accelerator map, and execute
|
@@ -458,7 +458,7 @@ other accelerator map functions.
|
|
458
458
|
<hr>
|
459
459
|
<div class="refsect2">
|
460
460
|
<a name="gtk-accel-map-lock-path"></a><h3>gtk_accel_map_lock_path ()</h3>
|
461
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_lock_path (<em class="parameter"><code>const <a href="
|
461
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_lock_path (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
|
462
462
|
<p>
|
463
463
|
Locks the given accelerator path. If the accelerator map doesn't yet contain
|
464
464
|
an entry for <em class="parameter"><code>accel_path</code></em>, a new one is created.
|
@@ -495,7 +495,7 @@ have to be unlocked.
|
|
495
495
|
<hr>
|
496
496
|
<div class="refsect2">
|
497
497
|
<a name="gtk-accel-map-unlock-path"></a><h3>gtk_accel_map_unlock_path ()</h3>
|
498
|
-
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_unlock_path (<em class="parameter"><code>const <a href="
|
498
|
+
<pre class="programlisting"><span class="returnvalue">void</span> gtk_accel_map_unlock_path (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
|
499
499
|
<p>
|
500
500
|
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>.
|
501
501
|
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.
|
@@ -518,10 +518,10 @@ Refer to <a class="link" href="gtk2-Accelerator-Maps.html#gtk-accel-map-lock-pat
|
|
518
518
|
<div class="refsect2">
|
519
519
|
<a name="GtkAccelMap-changed"></a><h3>The <code class="literal">"changed"</code> signal</h3>
|
520
520
|
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="gtk2-Accelerator-Maps.html#GtkAccelMap"><span class="type">GtkAccelMap</span></a> *object,
|
521
|
-
<a href="
|
522
|
-
<a href="
|
521
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path,
|
522
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> accel_key,
|
523
523
|
<a href="../gdk2/gdk2-Windows.html#GdkModifierType"><span class="type">GdkModifierType</span></a> accel_mods,
|
524
|
-
<a href="
|
524
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-DETAILED:CAPS"><code class="literal">Has Details</code></a></pre>
|
525
525
|
<p>
|
526
526
|
Notifies of a change in the global accelerator map.
|
527
527
|
The path is also used as the detail for the signal,
|