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
@@ -48,14 +48,14 @@ struct <a class="link" href="GtkWindowGroup.html#GtkWindowGroup-str
|
|
48
48
|
<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
|
49
49
|
<span class="returnvalue">void</span> <a class="link" href="GtkWindowGroup.html#gtk-window-group-remove-window" title="gtk_window_group_remove_window ()">gtk_window_group_remove_window</a> (<em class="parameter"><code><a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>,
|
50
50
|
<em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *window</code></em>);
|
51
|
-
<a href="
|
51
|
+
<a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * <a class="link" href="GtkWindowGroup.html#gtk-window-group-list-windows" title="gtk_window_group_list_windows ()">gtk_window_group_list_windows</a> (<em class="parameter"><code><a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);
|
52
52
|
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkWindowGroup.html#gtk-window-group-get-current-grab" title="gtk_window_group_get_current_grab ()">gtk_window_group_get_current_grab</a> (<em class="parameter"><code><a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);
|
53
53
|
</pre>
|
54
54
|
</div>
|
55
55
|
<div class="refsect1">
|
56
56
|
<a name="GtkWindowGroup.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
57
57
|
<pre class="synopsis">
|
58
|
-
<a href="
|
58
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
59
59
|
+----GtkWindowGroup
|
60
60
|
</pre>
|
61
61
|
</div>
|
@@ -146,7 +146,7 @@ Removes a window from a <a class="link" href="GtkWindowGroup.html" title="GtkWin
|
|
146
146
|
<hr>
|
147
147
|
<div class="refsect2">
|
148
148
|
<a name="gtk-window-group-list-windows"></a><h3>gtk_window_group_list_windows ()</h3>
|
149
|
-
<pre class="programlisting"><a href="
|
149
|
+
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> * gtk_window_group_list_windows (<em class="parameter"><code><a class="link" href="GtkWindowGroup.html" title="GtkWindowGroup"><span class="type">GtkWindowGroup</span></a> *window_group</code></em>);</pre>
|
150
150
|
<p>
|
151
151
|
Returns a list of the <a href="GtkWindow.html"><span class="type">GtkWindows</span></a> that belong to <em class="parameter"><code>window_group</code></em>.
|
152
152
|
</p>
|
@@ -232,7 +232,7 @@ standard <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="ty
|
|
232
232
|
|
233
233
|
<span class="comment">/* Use a tag to change the color for just one part of the widget */</span>
|
234
234
|
<span class="normal">tag </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-create-tag">gtk_text_buffer_create_tag</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="string">"blue_foreground"</span><span class="symbol">,</span>
|
235
|
-
<span class="normal"> </span><span class="string">"foreground"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"blue"</span><span class="symbol">,</span><span class="normal"> <a href="
|
235
|
+
<span class="normal"> </span><span class="string">"foreground"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"blue"</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>
|
236
236
|
<span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-offset">gtk_text_buffer_get_iter_at_offset</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="number">7</span><span class="symbol">);</span>
|
237
237
|
<span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-offset">gtk_text_buffer_get_iter_at_offset</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">end</span><span class="symbol">,</span><span class="normal"> </span><span class="number">12</span><span class="symbol">);</span>
|
238
238
|
<span class="function"><a href="GtkTextBuffer.html#gtk-text-buffer-apply-tag">gtk_text_buffer_apply_tag</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">buffer</span><span class="symbol">,</span><span class="normal"> tag</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></pre></td>
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<tbody>
|
75
75
|
<tr>
|
76
76
|
<td class="listing_lines" align="right"><pre>1</pre></td>
|
77
|
-
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkListStore</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">store </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="number">2</span><span class="symbol">,</span><span class="normal"> <a href="
|
77
|
+
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkListStore</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">store </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="number">2</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOOLEAN:CAPS">G_TYPE_BOOLEAN</a></span><span class="symbol">);</span></pre></td>
|
78
78
|
</tr>
|
79
79
|
</tbody>
|
80
80
|
</table>
|
@@ -113,9 +113,9 @@
|
|
113
113
|
<span class="cbracket">}</span><span class="symbol">;</span>
|
114
114
|
|
115
115
|
<span class="usertype">GtkTreeStore</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">store </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTreeStore.html#gtk-tree-store-new">gtk_tree_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"> </span><span class="comment">/* Total number of columns */</span>
|
116
|
-
<span class="normal"> <a href="
|
117
|
-
<span class="normal"> <a href="
|
118
|
-
<span class="normal"> <a href="
|
116
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* Book title */</span>
|
117
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> </span><span class="comment">/* Author */</span>
|
118
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOOLEAN:CAPS">G_TYPE_BOOLEAN</a></span><span class="symbol">);</span><span class="normal"> </span><span class="comment">/* Is checked out? */</span></pre></td>
|
119
119
|
</tr>
|
120
120
|
</tbody>
|
121
121
|
</table>
|
@@ -147,12 +147,12 @@
|
|
147
147
|
9</pre></td>
|
148
148
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkTreeIter</span><span class="normal"> iter</span><span class="symbol">;</span>
|
149
149
|
|
150
|
-
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> <a href="
|
150
|
+
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</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="comment">/* Acquire an iterator */</span>
|
151
151
|
|
152
152
|
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-set">gtk_tree_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span>
|
153
153
|
<span class="normal"> TITLE_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"The Principle of Reason"</span><span class="symbol">,</span>
|
154
154
|
<span class="normal"> AUTHOR_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Martin Heidegger"</span><span class="symbol">,</span>
|
155
|
-
<span class="normal"> CHECKED_COLUMN</span><span class="symbol">,</span><span class="normal"> <a href="
|
155
|
+
<span class="normal"> CHECKED_COLUMN</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span>
|
156
156
|
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span></pre></td>
|
157
157
|
</tr>
|
158
158
|
</tbody>
|
@@ -202,11 +202,11 @@
|
|
202
202
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkTreeIter</span><span class="normal"> iter1</span><span class="symbol">;</span><span class="normal"> </span><span class="comment">/* Parent iter */</span>
|
203
203
|
<span class="usertype">GtkTreeIter</span><span class="normal"> iter2</span><span class="symbol">;</span><span class="normal"> </span><span class="comment">/* Child iter */</span>
|
204
204
|
|
205
|
-
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter1</span><span class="symbol">,</span><span class="normal"> <a href="
|
205
|
+
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter1</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="comment">/* Acquire a top-level iterator */</span>
|
206
206
|
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-set">gtk_tree_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter1</span><span class="symbol">,</span>
|
207
207
|
<span class="normal"> TITLE_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"The Art of Computer Programming"</span><span class="symbol">,</span>
|
208
208
|
<span class="normal"> AUTHOR_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Donald E. Knuth"</span><span class="symbol">,</span>
|
209
|
-
<span class="normal"> CHECKED_COLUMN</span><span class="symbol">,</span><span class="normal"> <a href="
|
209
|
+
<span class="normal"> CHECKED_COLUMN</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">,</span>
|
210
210
|
<span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
211
211
|
|
212
212
|
<span class="function"><a href="GtkTreeStore.html#gtk-tree-store-append">gtk_tree_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter2</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter1</span><span class="symbol">);</span><span class="normal"> </span><span class="comment">/* Acquire a child iterator */</span>
|
@@ -292,7 +292,7 @@
|
|
292
292
|
<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-with-attributes">gtk_tree_view_column_new_with_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Author"</span><span class="symbol">,</span>
|
293
293
|
<span class="normal"> renderer</span><span class="symbol">,</span>
|
294
294
|
<span class="normal"> </span><span class="string">"text"</span><span class="symbol">,</span><span class="normal"> AUTHOR_COLUMN</span><span class="symbol">,</span>
|
295
|
-
<span class="normal"> <a href="
|
295
|
+
<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>
|
296
296
|
<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">tree</span><span class="symbol">),</span><span class="normal"> column</span><span class="symbol">);</span></pre></td>
|
297
297
|
</tr>
|
298
298
|
</tbody>
|
@@ -337,9 +337,9 @@
|
|
337
337
|
|
338
338
|
<span class="normal">select </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTreeView.html#gtk-tree-view-get-selection">gtk_tree_view_get_selection</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">tree</span><span class="symbol">));</span>
|
339
339
|
<span class="function"><a href="GtkTreeSelection.html#gtk-tree-selection-set-mode">gtk_tree_selection_set_mode</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">select</span><span class="symbol">,</span><span class="normal"> <a href="gtk2-Standard-Enumerations.html#GTK-SELECTION-SINGLE:CAPS">GTK_SELECTION_SINGLE</a></span><span class="symbol">);</span>
|
340
|
-
<span class="function"><a href="
|
341
|
-
<span class="normal"> </span><span class="function"><a href="
|
342
|
-
<span class="normal"> <a href="
|
340
|
+
<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="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">select</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"changed"</span><span class="symbol">,</span>
|
341
|
+
<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">tree_selection_changed_cb</span><span class="symbol">),</span>
|
342
|
+
<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>
|
343
343
|
</tr>
|
344
344
|
</tbody>
|
345
345
|
</table>
|
@@ -379,9 +379,9 @@
|
|
379
379
|
<span class="normal"> </span><span class="cbracket">{</span>
|
380
380
|
<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">model</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> AUTHOR_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">author</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
381
381
|
|
382
|
-
<span class="normal"> </span><span class="function"><a href="
|
382
|
+
<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="string">"You selected a book by %s</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">,</span><span class="normal"> author</span><span class="symbol">);</span>
|
383
383
|
|
384
|
-
<span class="normal"> </span><span class="function"><a href="
|
384
|
+
<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">author</span><span class="symbol">);</span>
|
385
385
|
<span class="normal"> </span><span class="cbracket">}</span>
|
386
386
|
<span class="cbracket">}</span></pre></td>
|
387
387
|
</tr>
|
@@ -491,9 +491,9 @@
|
|
491
491
|
<span class="normal"> </span><span class="comment">/* Create a model. We are using the store model for now, though we</span>
|
492
492
|
<span class="comment"> * could use any other GtkTreeModel */</span>
|
493
493
|
<span class="normal"> store </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkTreeStore.html#gtk-tree-store-new">gtk_tree_store_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">N_COLUMNS</span><span class="symbol">,</span>
|
494
|
-
<span class="normal"> <a href="
|
495
|
-
<span class="normal"> <a href="
|
496
|
-
<span class="normal"> <a href="
|
494
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span>
|
495
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span>
|
496
|
+
<span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-BOOLEAN:CAPS">G_TYPE_BOOLEAN</a></span><span class="symbol">);</span>
|
497
497
|
|
498
498
|
<span class="normal"> </span><span class="comment">/* custom function to fill the model with data */</span>
|
499
499
|
<span class="normal"> </span><span class="function">populate_tree_model</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">);</span>
|
@@ -503,20 +503,20 @@
|
|
503
503
|
|
504
504
|
<span class="normal"> </span><span class="comment">/* The view now holds a reference. We can get rid of our own</span>
|
505
505
|
<span class="comment"> * reference */</span>
|
506
|
-
<span class="normal"> </span><span class="function"><a href="
|
506
|
+
<span class="normal"> </span><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="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">));</span>
|
507
507
|
|
508
508
|
<span class="normal"> </span><span class="comment">/* Create a cell render and arbitrarily make it red for demonstration</span>
|
509
509
|
<span class="comment"> * purposes */</span>
|
510
510
|
<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>
|
511
|
-
<span class="normal"> </span><span class="function"><a href="
|
511
|
+
<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="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT:CAPS">G_OBJECT</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">renderer</span><span class="symbol">),</span>
|
512
512
|
<span class="normal"> </span><span class="string">"foreground"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"red"</span><span class="symbol">,</span>
|
513
|
-
<span class="normal"> <a href="
|
513
|
+
<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>
|
514
514
|
|
515
515
|
<span class="normal"> </span><span class="comment">/* Create a column, associating the "text" attribute of the</span>
|
516
516
|
<span class="comment"> * cell_renderer to the first column of the model */</span>
|
517
517
|
<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-with-attributes">gtk_tree_view_column_new_with_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Author"</span><span class="symbol">,</span><span class="normal"> renderer</span><span class="symbol">,</span>
|
518
518
|
<span class="normal"> </span><span class="string">"text"</span><span class="symbol">,</span><span class="normal"> AUTHOR_COLUMN</span><span class="symbol">,</span>
|
519
|
-
<span class="normal"> <a href="
|
519
|
+
<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>
|
520
520
|
|
521
521
|
<span class="normal"> </span><span class="comment">/* Add the column to the view. */</span>
|
522
522
|
<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">tree</span><span class="symbol">),</span><span class="normal"> column</span><span class="symbol">);</span>
|
@@ -526,7 +526,7 @@
|
|
526
526
|
<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-with-attributes">gtk_tree_view_column_new_with_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Title"</span><span class="symbol">,</span>
|
527
527
|
<span class="normal"> renderer</span><span class="symbol">,</span>
|
528
528
|
<span class="normal"> </span><span class="string">"text"</span><span class="symbol">,</span><span class="normal"> TITLE_COLUMN</span><span class="symbol">,</span>
|
529
|
-
<span class="normal"> <a href="
|
529
|
+
<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>
|
530
530
|
<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">tree</span><span class="symbol">),</span><span class="normal"> column</span><span class="symbol">);</span>
|
531
531
|
|
532
532
|
<span class="normal"> </span><span class="comment">/* Last column.. whether a book is checked out. */</span>
|
@@ -534,7 +534,7 @@
|
|
534
534
|
<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-with-attributes">gtk_tree_view_column_new_with_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Checked out"</span><span class="symbol">,</span>
|
535
535
|
<span class="normal"> renderer</span><span class="symbol">,</span>
|
536
536
|
<span class="normal"> </span><span class="string">"active"</span><span class="symbol">,</span><span class="normal"> CHECKED_COLUMN</span><span class="symbol">,</span>
|
537
|
-
<span class="normal"> <a href="
|
537
|
+
<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>
|
538
538
|
<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">tree</span><span class="symbol">),</span><span class="normal"> column</span><span class="symbol">);</span>
|
539
539
|
|
540
540
|
<span class="normal"> </span><span class="comment">/* Now we can manipulate the view just like any other GTK widget */</span>
|
@@ -23,8 +23,8 @@
|
|
23
23
|
<div class="titlepage"><div><div><h2 class="title">
|
24
24
|
<a name="id-1.4.2"></a>Object Hierarchy</h2></div></div></div>
|
25
25
|
<pre class="screen">
|
26
|
-
<a href="
|
27
|
-
<a href="
|
26
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
27
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
|
28
28
|
<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
|
29
29
|
<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
|
30
30
|
<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
|
@@ -185,7 +185,7 @@
|
|
185
185
|
<a class="link" href="GtkIMContextSimple.html" title="GtkIMContextSimple">GtkIMContextSimple</a>
|
186
186
|
<a class="link" href="GtkIMMulticontext.html" title="GtkIMMulticontext">GtkIMMulticontext</a>
|
187
187
|
<a class="link" href="GtkListStore.html" title="GtkListStore">GtkListStore</a>
|
188
|
-
<a href="
|
188
|
+
<a href="http://library.gnome.org/devel/gio/unstable/GMountOperation.html">GMountOperation</a>
|
189
189
|
<a class="link" href="gtk2-Filesystem-utilities.html#GtkMountOperation">GtkMountOperation</a>
|
190
190
|
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup">GtkPageSetup</a>
|
191
191
|
<a class="link" href="GtkPrinter.html" title="GtkPrinter">GtkPrinter</a>
|
@@ -376,7 +376,7 @@
|
|
376
376
|
<span class="cbracket">{</span>
|
377
377
|
<span class="normal"> </span><span class="symbol">...</span>
|
378
378
|
|
379
|
-
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-double-buffered">gtk_widget_set_double_buffered</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> <a href="
|
379
|
+
<span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-double-buffered">gtk_widget_set_double_buffered</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
380
380
|
|
381
381
|
<span class="normal"> </span><span class="symbol">...</span>
|
382
382
|
<span class="cbracket">}</span></pre></td>
|
@@ -259,11 +259,11 @@ Object system changes:
|
|
259
259
|
<span class="cbracket">{</span>
|
260
260
|
<span class="normal"> </span><span class="usertype">GtkLabel</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> </span><span class="function">GTK_LABEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gobject</span><span class="symbol">);</span>
|
261
261
|
<span class="normal"> </span>
|
262
|
-
<span class="normal"> </span><span class="function"><a href="
|
262
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-CLASS:CAPS">G_OBJECT_CLASS</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">parent_class</span><span class="symbol">)-></span><span class="function">finalize</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
263
263
|
<span class="cbracket">}</span>
|
264
264
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="function">gtk_label_class_init</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkLabelClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">class</span><span class="symbol">)</span>
|
265
265
|
<span class="cbracket">{</span>
|
266
|
-
<span class="normal"> </span><span class="usertype">GObjectClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">gobject_class </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
266
|
+
<span class="normal"> </span><span class="usertype">GObjectClass</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">gobject_class </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#G-OBJECT-CLASS:CAPS">G_OBJECT_CLASS</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">class</span><span class="symbol">);</span>
|
267
267
|
<span class="normal"> </span>
|
268
268
|
<span class="normal"> gobject_class</span><span class="symbol">-></span><span class="normal">finalize </span><span class="symbol">=</span><span class="normal"> gtk_label_finalize</span><span class="symbol">;</span>
|
269
269
|
<span class="cbracket">}</span></pre></td>
|
@@ -297,8 +297,8 @@ The GtkObject::destroy signal can now be emitted multiple times on an object.
|
|
297
297
|
5</pre></td>
|
298
298
|
<td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">-></span><span class="normal">foo_data</span><span class="symbol">)</span>
|
299
299
|
<span class="normal"> </span><span class="cbracket">{</span><span class="normal"> </span>
|
300
|
-
<span class="normal"> </span><span class="function"><a href="
|
301
|
-
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">foo_data </span><span class="symbol">=</span><span class="normal"> <a href="
|
300
|
+
<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">object</span><span class="symbol">-></span><span class="normal">foo_data</span><span class="symbol">);</span>
|
301
|
+
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">foo_data </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>
|
302
302
|
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
|
303
303
|
</tr>
|
304
304
|
</tbody>
|
@@ -322,7 +322,7 @@ The GtkObject::destroy signal can now be emitted multiple times on an object.
|
|
322
322
|
<td class="listing_code"><pre class="programlisting"><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">-></span><span class="normal">adjustment</span><span class="symbol">)</span>
|
323
323
|
<span class="normal"> </span><span class="cbracket">{</span>
|
324
324
|
<span class="normal"> </span><span class="function"><a href="GtkObject.html#gtk-object-unref">gtk_object_unref</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">-></span><span class="normal">adjustment</span><span class="symbol">);</span>
|
325
|
-
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">adjustment </span><span class="symbol">=</span><span class="normal"> <a href="
|
325
|
+
<span class="normal"> object</span><span class="symbol">-></span><span class="normal">adjustment </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>
|
326
326
|
<span class="normal"> </span><span class="cbracket">}</span></pre></td>
|
327
327
|
</tr>
|
328
328
|
</tbody>
|
@@ -78,7 +78,7 @@
|
|
78
78
|
<span class="normal"> </span><span class="string">"Program to display GNOME functions."</span><span class="symbol">,</span>
|
79
79
|
<span class="normal"> authors</span><span class="symbol">,</span>
|
80
80
|
<span class="normal"> documenters</span><span class="symbol">,</span>
|
81
|
-
<span class="normal"> </span><span class="function"><a href="
|
81
|
+
<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="string">"translator-credits"</span><span class="symbol">),</span>
|
82
82
|
<span class="normal"> </span><span class="string">"logo.png"</span><span class="symbol">);</span></pre></td>
|
83
83
|
</tr>
|
84
84
|
</tbody>
|
@@ -104,25 +104,25 @@
|
|
104
104
|
10
|
105
105
|
11
|
106
106
|
12</pre></td>
|
107
|
-
<td class="listing_code"><pre class="programlisting"><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">logo </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"logo.png"</span><span class="symbol">,</span><span class="normal"> <a href="
|
108
|
-
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">about </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
107
|
+
<td class="listing_code"><pre class="programlisting"><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">logo </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"logo.png"</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>
|
108
|
+
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">about </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-new">g_object_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">GTK_TYPE_ABOUT_DIALOG</span><span class="symbol">,</span>
|
109
109
|
<span class="normal"> </span><span class="string">"name"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"GNOME Test Program"</span><span class="symbol">,</span><span class="normal"> </span>
|
110
110
|
<span class="normal"> </span><span class="string">"version"</span><span class="symbol">,</span><span class="normal"> VERSION</span><span class="symbol">,</span>
|
111
111
|
<span class="normal"> </span><span class="string">"copyright"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"(C) 1998-2001 The Free Software Foundation"</span><span class="symbol">,</span>
|
112
112
|
<span class="normal"> </span><span class="string">"comments"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Program to display GNOME functions."</span><span class="symbol">,</span>
|
113
113
|
<span class="normal"> </span><span class="string">"authors"</span><span class="symbol">,</span><span class="normal"> authors</span><span class="symbol">,</span>
|
114
114
|
<span class="normal"> </span><span class="string">"documenters"</span><span class="symbol">,</span><span class="normal"> documenters</span><span class="symbol">,</span>
|
115
|
-
<span class="normal"> </span><span class="string">"translator-credits"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="
|
115
|
+
<span class="normal"> </span><span class="string">"translator-credits"</span><span class="symbol">,</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="string">"translator-credits"</span><span class="symbol">),</span>
|
116
116
|
<span class="normal"> </span><span class="string">"logo"</span><span class="symbol">,</span><span class="normal"> logo</span><span class="symbol">,</span>
|
117
|
-
<span class="normal"> <a href="
|
118
|
-
<span class="function"><a href="
|
117
|
+
<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>
|
118
|
+
<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">pixbuf</span><span class="symbol">);</span></pre></td>
|
119
119
|
</tr>
|
120
120
|
</tbody>
|
121
121
|
</table>
|
122
122
|
</div>
|
123
123
|
|
124
124
|
<p>
|
125
|
-
If the <a href="
|
125
|
+
If the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-new"><code class="function">g_object_new()</code></a> construction scares you, you can also use
|
126
126
|
<a class="link" href="GtkAboutDialog.html#gtk-about-dialog-new" title="gtk_about_dialog_new ()"><code class="function">gtk_about_dialog_new()</code></a> to construct the dialog and then use the
|
127
127
|
setters for the individual properties.
|
128
128
|
</p>
|
@@ -89,9 +89,9 @@
|
|
89
89
|
<td class="listing_lines" align="right"><pre>1
|
90
90
|
2
|
91
91
|
3</pre></td>
|
92
|
-
<td class="listing_code"><pre class="programlisting"><span class="normal">color</span><span class="symbol">.</span><span class="normal">red </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
93
|
-
<span class="normal">color</span><span class="symbol">.</span><span class="normal">green </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
94
|
-
<span class="normal">color</span><span class="symbol">.</span><span class="normal">blue </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
92
|
+
<td class="listing_code"><pre class="programlisting"><span class="normal">color</span><span class="symbol">.</span><span class="normal">red </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#guint16">guint16</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">red </span><span class="symbol">*</span><span class="normal"> </span><span class="number">65535.0</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">);</span>
|
93
|
+
<span class="normal">color</span><span class="symbol">.</span><span class="normal">green </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#guint16">guint16</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">green </span><span class="symbol">*</span><span class="normal"> </span><span class="number">65535.0</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">);</span>
|
94
|
+
<span class="normal">color</span><span class="symbol">.</span><span class="normal">blue </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#guint16">guint16</a></span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">blue </span><span class="symbol">*</span><span class="normal"> </span><span class="number">65535.0</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">);</span></pre></td>
|
95
95
|
</tr>
|
96
96
|
</tbody>
|
97
97
|
</table>
|
@@ -218,7 +218,7 @@
|
|
218
218
|
<span class="usertype">GtkCellRenderer</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">renderer</span><span class="symbol">;</span>
|
219
219
|
<span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">combo_box</span><span class="symbol">;</span>
|
220
220
|
|
221
|
-
<span class="normal">store </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="number">2</span><span class="symbol">,</span><span class="normal"> GDK_TYPE_PIXBUF</span><span class="symbol">,</span><span class="normal"> <a href="
|
221
|
+
<span class="normal">store </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="number">2</span><span class="symbol">,</span><span class="normal"> GDK_TYPE_PIXBUF</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">);</span>
|
222
222
|
|
223
223
|
<span class="function"><a href="GtkListStore.html#gtk-list-store-append">gtk_list_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">);</span>
|
224
224
|
<span class="function"><a href="GtkListStore.html#gtk-list-store-set">gtk_list_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> pixbuf1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"First Item"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
@@ -230,16 +230,16 @@
|
|
230
230
|
<span class="normal">combo_box </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkComboBox.html#gtk-combo-box-new-with-model">gtk_combo_box_new_with_model</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_TREE_MODEL</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">));</span>
|
231
231
|
|
232
232
|
<span class="normal">renderer </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkCellRendererPixbuf.html#gtk-cell-renderer-pixbuf-new">gtk_cell_renderer_pixbuf_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
233
|
-
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-pack-start">gtk_cell_layout_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</span><span class="symbol">),</span><span class="normal"> renderer</span><span class="symbol">,</span><span class="normal"> <a href="
|
233
|
+
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-pack-start">gtk_cell_layout_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</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#FALSE:CAPS">FALSE</a></span><span class="symbol">);</span>
|
234
234
|
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-set-attributes">gtk_cell_layout_set_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</span><span class="symbol">),</span><span class="normal"> renderer</span><span class="symbol">,</span>
|
235
235
|
<span class="normal"> </span><span class="string">"pixbuf"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span>
|
236
|
-
<span class="normal"> <a href="
|
236
|
+
<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>
|
237
237
|
|
238
238
|
<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>
|
239
|
-
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-pack-start">gtk_cell_layout_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</span><span class="symbol">),</span><span class="normal"> renderer</span><span class="symbol">,</span><span class="normal"> <a href="
|
239
|
+
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-pack-start">gtk_cell_layout_pack_start</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</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>
|
240
240
|
<span class="function"><a href="GtkCellLayout.html#gtk-cell-layout-set-attributes">gtk_cell_layout_set_attributes</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CELL_LAYOUT</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">combo_box</span><span class="symbol">),</span><span class="normal"> renderer</span><span class="symbol">,</span>
|
241
241
|
<span class="normal"> </span><span class="string">"text"</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span>
|
242
|
-
<span class="normal"> <a href="
|
242
|
+
<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>
|
243
243
|
</tr>
|
244
244
|
</tbody>
|
245
245
|
</table>
|
@@ -143,14 +143,14 @@
|
|
143
143
|
<span class="normal"> </span><span class="usertype">GdkPixbuf</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">pixbuf</span><span class="symbol">;</span>
|
144
144
|
|
145
145
|
<span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-append">gtk_list_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">);</span>
|
146
|
-
<span class="normal"> pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"file1.png"</span><span class="symbol">,</span><span class="normal"> <a href="
|
146
|
+
<span class="normal"> pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"file1.png"</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>
|
147
147
|
<span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-set">gtk_list_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> PIXBUF_COLUMN</span><span class="symbol">,</span><span class="normal"> pixbuf</span><span class="symbol">,</span><span class="normal"> TEXT_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Icon 1"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
148
|
-
<span class="normal"> </span><span class="function"><a href="
|
148
|
+
<span class="normal"> </span><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">pixbuf</span><span class="symbol">);</span>
|
149
149
|
|
150
150
|
<span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-append">gtk_list_store_append</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">);</span>
|
151
|
-
<span class="normal"> pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"file2.png"</span><span class="symbol">,</span><span class="normal"> <a href="
|
151
|
+
<span class="normal"> pixbuf </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file">gdk_pixbuf_new_from_file</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"file2.png"</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>
|
152
152
|
<span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-set">gtk_list_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">store</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> PIXBUF_COLUMN</span><span class="symbol">,</span><span class="normal"> pixbuf</span><span class="symbol">,</span><span class="normal"> TEXT_COLUMN</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"Icon 2"</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
153
|
-
<span class="normal"> </span><span class="function"><a href="
|
153
|
+
<span class="normal"> </span><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">pixbuf</span><span class="symbol">);</span>
|
154
154
|
|
155
155
|
<span class="normal"> </span><span class="comment">/* more icons ... */</span><span class="normal"> </span>
|
156
156
|
<span class="cbracket">}</span>
|
@@ -167,7 +167,7 @@
|
|
167
167
|
|
168
168
|
<span class="normal"> </span><span class="comment">/* construct the GtkIconView */</span>
|
169
169
|
<span class="normal"> icon_view </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkIconView.html#gtk-icon-view-new">gtk_icon_view_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
170
|
-
<span class="normal"> store </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="number">3</span><span class="symbol">,</span><span class="normal"> GDK_TYPE_PIXBUF</span><span class="symbol">,</span><span class="normal"> <a href="
|
170
|
+
<span class="normal"> store </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="number">3</span><span class="symbol">,</span><span class="normal"> GDK_TYPE_PIXBUF</span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-STRING:CAPS">G_TYPE_STRING</a></span><span class="symbol">,</span><span class="normal"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-POINTER:CAPS">G_TYPE_POINTER</a></span><span class="symbol">);</span>
|
171
171
|
|
172
172
|
<span class="normal"> </span><span class="function"><a href="GtkIconView.html#gtk-icon-view-set-pixbuf-column">gtk_icon_view_set_pixbuf_column</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_ICON_VIEW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon_view</span><span class="symbol">),</span><span class="normal"> PIXBUF_COLUMN</span><span class="symbol">);</span>
|
173
173
|
<span class="normal"> </span><span class="function"><a href="GtkIconView.html#gtk-icon-view-set-text-column">gtk_icon_view_set_text_column</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_ICON_VIEW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon_view</span><span class="symbol">),</span><span class="normal"> TEXT_COLUMN</span><span class="symbol">);</span>
|
@@ -222,7 +222,7 @@
|
|
222
222
|
|
223
223
|
<span class="normal"> model </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkIconView.html#gtk-icon-view-get-model">gtk_icon_view_get_model</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">icon_view</span><span class="symbol">);</span>
|
224
224
|
|
225
|
-
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkTreeModel.html#gtk-tree-model-iter-nth-child">gtk_tree_model_iter_nth_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">model</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> <a href="
|
225
|
+
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkTreeModel.html#gtk-tree-model-iter-nth-child">gtk_tree_model_iter_nth_child</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">model</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</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"> idx</span><span class="symbol">))</span>
|
226
226
|
<span class="normal"> </span><span class="function"><a href="GtkListStore.html#gtk-list-store-set">gtk_list_store_set</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_LIST_STORE</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">model</span><span class="symbol">),</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">iter</span><span class="symbol">,</span><span class="normal"> </span>
|
227
227
|
<span class="normal"> DATA_COLUMN</span><span class="symbol">,</span><span class="normal"> data</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1</span><span class="symbol">);</span>
|
228
228
|
<span class="cbracket">}</span></pre></td>
|
@@ -233,7 +233,7 @@
|
|
233
233
|
|
234
234
|
<p>
|
235
235
|
assuming that your tree model has a <code class="literal">DATA_COLUMN</code> of type
|
236
|
-
<a href="
|
236
|
+
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#G-TYPE-POINTER:CAPS"><code class="literal">G_TYPE_POINTER</code></a>.
|
237
237
|
</p>
|
238
238
|
<p>
|
239
239
|
There is a number of minor API differences between
|
@@ -88,8 +88,8 @@
|
|
88
88
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button</span><span class="symbol">;</span>
|
89
89
|
|
90
90
|
<span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLinkButton.html#gtk-link-button-new">gtk_link_button_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">url</span><span class="symbol">);</span>
|
91
|
-
<span class="normal"> </span><span class="function"><a href="
|
92
|
-
<span class="normal"> </span><span class="function"><a href="
|
91
|
+
<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">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span>
|
92
|
+
<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">link_button_clicked_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></pre></td>
|
93
93
|
</tr>
|
94
94
|
</tbody>
|
95
95
|
</table>
|
@@ -133,7 +133,7 @@
|
|
133
133
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button1 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLinkButton.html#gtk-link-button-new">gtk_link_button_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">uri1</span><span class="symbol">);</span>
|
134
134
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button2 </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkLinkButton.html#gtk-link-button-new">gtk_link_button_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">uri2</span><span class="symbol">);</span>
|
135
135
|
|
136
|
-
<span class="normal"> </span><span class="function"><a href="GtkLinkButton.html#gtk-link-button-set-uri-hook">gtk_link_button_set_uri_hook</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">link_button_hook</span><span class="symbol">,</span><span class="normal"> <a href="
|
136
|
+
<span class="normal"> </span><span class="function"><a href="GtkLinkButton.html#gtk-link-button-set-uri-hook">gtk_link_button_set_uri_hook</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">link_button_hook</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></pre></td>
|
137
137
|
</tr>
|
138
138
|
</tbody>
|
139
139
|
</table>
|
@@ -110,7 +110,7 @@
|
|
110
110
|
<span class="normal"> </span><span class="comment">/* warn about the error */</span>
|
111
111
|
<span class="normal"> </span><span class="cbracket">}</span>
|
112
112
|
<span class="normal"> </span>
|
113
|
-
<span class="normal"> </span><span class="function"><a href="
|
113
|
+
<span class="normal"> </span><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">manager</span><span class="symbol">);</span></pre></td>
|
114
114
|
</tr>
|
115
115
|
</tbody>
|
116
116
|
</table>
|
@@ -166,7 +166,7 @@
|
|
166
166
|
|
167
167
|
<span class="normal"> manager </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkRecentManager.html#gtk-recent-manager-new">gtk_recent_manager_new</a></span><span class="normal"> </span><span class="symbol">();</span>
|
168
168
|
<span class="normal"> </span>
|
169
|
-
<span class="normal"> recent_data </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
169
|
+
<span class="normal"> recent_data </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-new0">g_new0</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkRecentManager.html#GtkRecentData">GtkRecentData</a></span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
170
170
|
<span class="normal"> </span><span class="comment">/* the user visible name of the document (maybe its title); should</span>
|
171
171
|
<span class="comment"> * be preferred when displaying the item into the list</span>
|
172
172
|
<span class="comment"> */</span>
|
@@ -186,16 +186,16 @@
|
|
186
186
|
<span class="comment"> * command line from the GtkRecentInfo object with</span>
|
187
187
|
<span class="comment"> * gtk_recent_info_get_application_info ()</span>
|
188
188
|
<span class="comment"> */</span>
|
189
|
-
<span class="normal"> recent_data</span><span class="symbol">-&</span><span class="normal">app_exec </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
189
|
+
<span class="normal"> recent_data</span><span class="symbol">-&</span><span class="normal">app_exec </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-strjoin">g_strjoin</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">" "</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-get-prgname">g_get_prgname</a></span><span class="normal"> </span><span class="symbol">(),</span><span class="normal"> </span><span class="string">"--open-file"</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"%u"</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>
|
190
190
|
|
191
191
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(!</span><span class="function"><a href="GtkRecentManager.html#gtk-recent-manager-add-full">gtk_recent_manager_add_full</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">manager</span><span class="symbol">,</span><span class="normal"> document_uri</span><span class="symbol">,</span><span class="normal"> recent_data</span><span class="symbol">))</span>
|
192
192
|
<span class="normal"> </span><span class="cbracket">{</span>
|
193
193
|
<span class="normal"> </span><span class="comment">/* warn about the error */</span>
|
194
194
|
<span class="normal"> </span><span class="cbracket">}</span>
|
195
195
|
|
196
|
-
<span class="normal"> </span><span class="function"><a href="
|
197
|
-
<span class="normal"> </span><span class="function"><a href="
|
198
|
-
<span class="normal"> </span><span class="function"><a href="
|
196
|
+
<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">recent_data</span><span class="symbol">-></span><span class="normal">app_exec</span><span class="symbol">);</span>
|
197
|
+
<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">recent_data</span><span class="symbol">);</span>
|
198
|
+
<span class="normal"> </span><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">manager</span><span class="symbol">);</span></pre></td>
|
199
199
|
</tr>
|
200
200
|
</tbody>
|
201
201
|
</table>
|
@@ -236,7 +236,7 @@
|
|
236
236
|
<span class="normal"> manager </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkRecentManager.html#gtk-recent-manager-get-default">gtk_recent_manager_get_default</a></span><span class="symbol">();</span>
|
237
237
|
|
238
238
|
<span class="normal"> recent_items </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkRecentManager.html#gtk-recent-manager-get-items">gtk_recent_manager_get_items</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">manager</span><span class="symbol">);</span>
|
239
|
-
<span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">l </span><span class="symbol">=</span><span class="normal"> recent_items</span><span class="symbol">;</span><span class="normal"> l </span><span class="symbol">!=</span><span class="normal"> <a href="
|
239
|
+
<span class="normal"> </span><span class="keyword">for</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">l </span><span class="symbol">=</span><span class="normal"> recent_items</span><span class="symbol">;</span><span class="normal"> l </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"> l </span><span class="symbol">=</span><span class="normal"> l</span><span class="symbol">-></span><span class="normal">next</span><span class="symbol">)</span>
|
240
240
|
<span class="normal"> </span><span class="cbracket">{</span>
|
241
241
|
<span class="normal"> </span><span class="usertype">GtkRecentInfo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">recent_info </span><span class="symbol">=</span><span class="normal"> l</span><span class="symbol">-></span><span class="normal">data</span><span class="symbol">;</span>
|
242
242
|
|
@@ -244,8 +244,8 @@
|
|
244
244
|
<span class="normal"> </span><span class="cbracket">}</span>
|
245
245
|
<span class="normal"> </span>
|
246
246
|
<span class="normal"> </span><span class="comment">/* free everything and the list */</span>
|
247
|
-
<span class="normal"> </span><span class="function"><a href="
|
248
|
-
<span class="normal"> </span><span class="function"><a href="
|
247
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-foreach">g_list_foreach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">recent_items</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-Doubly-Linked-Lists.html#GFunc">GFunc</a></span><span class="symbol">)</span><span class="normal"> <a href="GtkRecentManager.html#gtk-recent-info-unref">gtk_recent_info_unref</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>
|
248
|
+
<span class="normal"> </span><span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free">g_list_free</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">recent_items</span><span class="symbol">);</span></pre></td>
|
249
249
|
</tr>
|
250
250
|
</tbody>
|
251
251
|
</table>
|
@@ -275,14 +275,14 @@
|
|
275
275
|
15
|
276
276
|
16</pre></td>
|
277
277
|
<td class="listing_code"><pre class="programlisting"><span class="usertype">GtkRecentInfo</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">recent_info</span><span class="symbol">;</span>
|
278
|
-
<span class="normal"> </span><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="
|
278
|
+
<span class="normal"> </span><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>
|
279
279
|
|
280
280
|
<span class="normal"> recent_info </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkRecentManager.html#gtk-recent-manager-lookup-item">gtk_recent_manager_lookup_item</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">manager</span><span class="symbol">,</span><span class="normal"> document_uri</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">error</span><span class="symbol">);</span>
|
281
281
|
<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>
|
282
282
|
<span class="normal"> </span><span class="cbracket">{</span>
|
283
283
|
<span class="normal"> </span><span class="function">display_error</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">error</span><span class="symbol">);</span>
|
284
284
|
|
285
|
-
<span class="normal"> </span><span class="function"><a href="
|
285
|
+
<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>
|
286
286
|
<span class="normal"> </span><span class="cbracket">}</span>
|
287
287
|
<span class="normal"> </span><span class="keyword">else</span>
|
288
288
|
<span class="normal"> </span><span class="cbracket">{</span>
|