gtk2 3.2.1-x86-mingw32 → 3.2.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/ext/gtk2/extconf.rb +6 -1
- data/ext/gtk2/rbgtkrecentchooser.c +2 -2
- data/lib/2.2/gtk2.so +0 -0
- data/lib/2.3/gtk2.so +0 -0
- data/lib/2.4/gtk2.so +0 -0
- data/lib/2.5/gtk2.so +0 -0
- data/vendor/local/bin/gtk-demo.exe +0 -0
- data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
- data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
- data/vendor/local/bin/libgailutil-18.dll +0 -0
- data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
- data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
- data/vendor/local/include/gtk-2.0/gdk/gdkenumtypes.h +1 -1
- data/vendor/local/include/gtk-2.0/gtk/gtkmarshal.h +220 -164
- data/vendor/local/include/gtk-2.0/gtk/gtktypebuiltins.h +23 -23
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.la +3 -3
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.la +3 -3
- data/vendor/local/lib/gtk-2.0/2.10.0/immodules.cache +2 -2
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.dll.a +0 -0
- data/vendor/local/lib/gtk-2.0/modules/libgail.la +3 -3
- data/vendor/local/lib/libgailutil.dll.a +0 -0
- data/vendor/local/lib/libgailutil.la +3 -3
- data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgdk-win32-2.0.la +3 -3
- data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
- data/vendor/local/lib/libgtk-win32-2.0.la +3 -3
- data/vendor/local/lib/pkgconfig/gail.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +24 -24
- data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +11 -11
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplay.html +77 -77
- data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplayManager.html +8 -8
- data/vendor/local/share/gtk-doc/html/gdk2/GdkScreen.html +132 -132
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Application-launching.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Bitmaps-and-Pixmaps.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Colormaps-and-Colors.html +67 -67
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cursors.html +12 -12
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drag-and-Drop.html +29 -29
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drawing-Primitives.html +118 -118
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Event-Structures.html +102 -102
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Events.html +49 -49
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Fonts.html +79 -79
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-GdkRGB.html +64 -64
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-General.html +58 -58
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Graphics-Contexts.html +25 -25
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Images.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input-Devices.html +40 -40
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input.html +15 -15
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Keyboard-Handling.html +97 -97
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pango-Interaction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pixbufs.html +20 -20
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Points-Rectangles-and-Regions.html +37 -37
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Properties-and-Atoms.html +84 -84
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Selections.html +27 -27
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Testing.html +10 -10
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Threads.html +74 -74
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Visuals.html +40 -40
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Windows.html +280 -280
- data/vendor/local/share/gtk-doc/html/gdk2/gdk2-X-Window-System-Interaction.html +60 -60
- data/vendor/local/share/gtk-doc/html/gdk2/multihead.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAboutDialog.html +118 -118
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccelLabel.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAccessible.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAction.html +87 -87
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActionGroup.html +82 -82
- data/vendor/local/share/gtk-doc/html/gtk2/GtkActivatable.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAdjustment.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAlignment.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkArrow.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAspectFrame.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkAssistant.html +47 -47
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBin.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBox.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuildable.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkBuilder.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButton.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/GtkButtonBox.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCList.html +214 -214
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCTree.html +146 -146
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCalendar.html +88 -88
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellEditable.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellLayout.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRenderer.html +81 -81
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererAccel.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererCombo.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererPixbuf.html +18 -18
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererProgress.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpin.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpinner.html +6 -6
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererText.html +75 -75
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererToggle.html +32 -32
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCellView.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCheckButton.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorButton.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelection.html +45 -45
- data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelectionDialog.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCombo.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBox.html +96 -96
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxEntry.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxText.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkContainer.html +73 -73
- data/vendor/local/share/gtk-doc/html/gtk2/GtkCurve.html +20 -20
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDialog.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkDrawingArea.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEditable.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntry.html +255 -255
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryBuffer.html +46 -46
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryCompletion.html +94 -94
- data/vendor/local/share/gtk-doc/html/gtk2/GtkEventBox.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkExpander.html +52 -52
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooser.html +98 -98
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserButton.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserDialog.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserWidget.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFileSelection.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFixed.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontButton.html +51 -51
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelection.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelectionDialog.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkFrame.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkGammaCurve.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHButtonBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHPaned.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHRuler.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSV.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScale.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHScrollbar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkHandleBox.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContext.html +63 -63
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContextSimple.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIMMulticontext.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconTheme.html +83 -83
- data/vendor/local/share/gtk-doc/html/gtk2/GtkIconView.html +192 -192
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImage.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkImageMenuItem.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInfoBar.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInputDialog.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkInvisible.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItem.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkItemFactory.html +66 -66
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLabel.html +139 -139
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLayout.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkLinkButton.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkList.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListItem.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk2/GtkListStore.html +48 -48
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenu.html +90 -90
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuBar.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuItem.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuShell.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuToolButton.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMessageDialog.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkMisc.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/GtkNotebook.html +210 -210
- data/vendor/local/share/gtk-doc/html/gtk2/GtkObject.html +89 -89
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOffscreenWindow.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOldEditable.html +60 -60
- data/vendor/local/share/gtk-doc/html/gtk2/GtkOptionMenu.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetup.html +59 -59
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetupUnixDialog.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaned.html +62 -62
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPaperSize.html +54 -54
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPixmap.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPlug.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPreview.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintContext.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintJob.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintSettings.html +151 -151
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintUnixDialog.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkPrinter.html +86 -86
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgress.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/GtkProgressBar.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioAction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioButton.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioMenuItem.html +19 -19
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioToolButton.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRange.html +100 -100
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentAction.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooser.html +101 -101
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserDialog.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserMenu.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserWidget.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentFilter.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentManager.html +128 -128
- data/vendor/local/share/gtk-doc/html/gtk2/GtkRuler.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScale.html +35 -35
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScaleButton.html +27 -27
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrollbar.html +14 -14
- data/vendor/local/share/gtk-doc/html/gtk2/GtkScrolledWindow.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorMenuItem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorToolItem.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSettings.html +196 -196
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSizeGroup.html +12 -12
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSocket.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinButton.html +79 -79
- data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinner.html +8 -8
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusIcon.html +157 -157
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusbar.html +31 -31
- data/vendor/local/share/gtk-doc/html/gtk2/GtkStyle.html +263 -263
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTable.html +67 -67
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTearoffMenuItem.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkText.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextBuffer.html +181 -181
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextIter.html +281 -281
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextMark.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTag.html +133 -133
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTagTable.html +17 -17
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTextView.html +211 -211
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTipsQuery.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleAction.html +22 -22
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleButton.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleToolButton.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolButton.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItem.html +63 -63
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItemGroup.html +36 -36
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolPalette.html +24 -24
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolShell.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/GtkToolbar.html +105 -105
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltip.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltips.html +15 -15
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTree.html +30 -30
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeItem.html +9 -9
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModel.html +147 -147
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelFilter.html +37 -37
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelSort.html +16 -16
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSelection.html +38 -38
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSortable.html +28 -28
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeStore.html +58 -58
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeView.html +414 -414
- data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeViewColumn.html +147 -147
- data/vendor/local/share/gtk-doc/html/gtk2/GtkUIManager.html +57 -57
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVBox.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVButtonBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVPaned.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVRuler.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScale.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVScrollbar.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVSeparator.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkViewport.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/GtkVolumeButton.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWidget.html +537 -537
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindow.html +255 -255
- data/vendor/local/share/gtk-doc/html/gtk2/GtkWindowGroup.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/TextWidget.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/TreeWidget.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/chap-drawing-model.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-2-0.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAboutDialog.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkColorButton.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkComboBox.html +5 -5
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkIconView.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkLinkButton.html +3 -3
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkRecentChooser.html +11 -11
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-checklist.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-entry-icons.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-tooltips.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk-question-index.html +43 -43
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Accelerator-Maps.html +40 -40
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Bindings.html +42 -42
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Clipboards.html +87 -87
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Drag-and-Drop.html +50 -50
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Feature-Test-Macros.html +7 -7
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Filesystem-utilities.html +13 -13
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-General.html +153 -153
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Graphics-Contexts.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-GtkTreeView-drag-and-drop.html +25 -25
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-High-level-Printing-API.html +167 -167
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Keyboard-Accelerators.html +88 -88
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Orientable.html +2 -2
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Resource-Files.html +71 -71
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Selections.html +119 -119
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Signals.html +68 -68
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Stock-Items.html +10 -10
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Testing.html +26 -26
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Themeable-Stock-Images.html +53 -53
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Types.html +34 -34
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkcheckmenuitem.html +29 -29
- data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkfilefilter.html +23 -23
- data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-selection-modes.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-advanced.html +4 -4
- data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-chooser.html +1 -1
- data/vendor/local/share/gtk-doc/html/gtk2/migrating-GtkCombo.html +4 -4
- metadata +12 -11
@@ -49,7 +49,7 @@
|
|
49
49
|
</tr>
|
50
50
|
<tr>
|
51
51
|
<td class="function_type">
|
52
|
-
<a href="
|
52
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
53
53
|
</td>
|
54
54
|
<td class="function_name">
|
55
55
|
<a class="link" href="gdk2-Testing.html#gdk-test-simulate-button" title="gdk_test_simulate_button ()">gdk_test_simulate_button</a> <span class="c_punctuation">()</span>
|
@@ -57,7 +57,7 @@
|
|
57
57
|
</tr>
|
58
58
|
<tr>
|
59
59
|
<td class="function_type">
|
60
|
-
<a href="
|
60
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
61
61
|
</td>
|
62
62
|
<td class="function_name">
|
63
63
|
<a class="link" href="gdk2-Testing.html#gdk-test-simulate-key" title="gdk_test_simulate_key ()">gdk_test_simulate_key</a> <span class="c_punctuation">()</span>
|
@@ -109,11 +109,11 @@ pipelines, to benchmark windowing system rendering operations.</p>
|
|
109
109
|
<hr>
|
110
110
|
<div class="refsect2">
|
111
111
|
<a name="gdk-test-simulate-button"></a><h3>gdk_test_simulate_button ()</h3>
|
112
|
-
<pre class="programlisting"><a href="
|
112
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
113
113
|
gdk_test_simulate_button (<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
|
114
|
-
<em class="parameter"><code><a href="
|
115
|
-
<em class="parameter"><code><a href="
|
116
|
-
<em class="parameter"><code><a href="
|
114
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
|
115
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
|
116
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> button</code></em>,
|
117
117
|
<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkModifierType" title="enum GdkModifierType"><span class="type">GdkModifierType</span></a> modifiers</code></em>,
|
118
118
|
<em class="parameter"><code><a class="link" href="gdk2-Events.html#GdkEventType" title="enum GdkEventType"><span class="type">GdkEventType</span></a> button_pressrelease</code></em>);</pre>
|
119
119
|
<p>This function is intended to be used in Gtk+ test programs.
|
@@ -183,11 +183,11 @@ for the button event.</p></td>
|
|
183
183
|
<hr>
|
184
184
|
<div class="refsect2">
|
185
185
|
<a name="gdk-test-simulate-key"></a><h3>gdk_test_simulate_key ()</h3>
|
186
|
-
<pre class="programlisting"><a href="
|
186
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
|
187
187
|
gdk_test_simulate_key (<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
|
188
|
-
<em class="parameter"><code><a href="
|
189
|
-
<em class="parameter"><code><a href="
|
190
|
-
<em class="parameter"><code><a href="
|
188
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
|
189
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
|
190
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> keyval</code></em>,
|
191
191
|
<em class="parameter"><code><a class="link" href="gdk2-Windows.html#GdkModifierType" title="enum GdkModifierType"><span class="type">GdkModifierType</span></a> modifiers</code></em>,
|
192
192
|
<em class="parameter"><code><a class="link" href="gdk2-Events.html#GdkEventType" title="enum GdkEventType"><span class="type">GdkEventType</span></a> key_pressrelease</code></em>);</pre>
|
193
193
|
<p>This function is intended to be used in Gtk+ test programs.
|
@@ -81,7 +81,7 @@
|
|
81
81
|
</tr>
|
82
82
|
<tr>
|
83
83
|
<td class="function_type">
|
84
|
-
<a href="
|
84
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
85
85
|
</td>
|
86
86
|
<td class="function_name">
|
87
87
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-idle" title="gdk_threads_add_idle ()">gdk_threads_add_idle</a> <span class="c_punctuation">()</span>
|
@@ -89,7 +89,7 @@
|
|
89
89
|
</tr>
|
90
90
|
<tr>
|
91
91
|
<td class="function_type">
|
92
|
-
<a href="
|
92
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
93
93
|
</td>
|
94
94
|
<td class="function_name">
|
95
95
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-idle-full" title="gdk_threads_add_idle_full ()">gdk_threads_add_idle_full</a> <span class="c_punctuation">()</span>
|
@@ -97,7 +97,7 @@
|
|
97
97
|
</tr>
|
98
98
|
<tr>
|
99
99
|
<td class="function_type">
|
100
|
-
<a href="
|
100
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
101
101
|
</td>
|
102
102
|
<td class="function_name">
|
103
103
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout" title="gdk_threads_add_timeout ()">gdk_threads_add_timeout</a> <span class="c_punctuation">()</span>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</tr>
|
106
106
|
<tr>
|
107
107
|
<td class="function_type">
|
108
|
-
<a href="
|
108
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
109
109
|
</td>
|
110
110
|
<td class="function_name">
|
111
111
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-full" title="gdk_threads_add_timeout_full ()">gdk_threads_add_timeout_full</a> <span class="c_punctuation">()</span>
|
@@ -113,7 +113,7 @@
|
|
113
113
|
</tr>
|
114
114
|
<tr>
|
115
115
|
<td class="function_type">
|
116
|
-
<a href="
|
116
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
117
117
|
</td>
|
118
118
|
<td class="function_name">
|
119
119
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-seconds" title="gdk_threads_add_timeout_seconds ()">gdk_threads_add_timeout_seconds</a> <span class="c_punctuation">()</span>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</tr>
|
122
122
|
<tr>
|
123
123
|
<td class="function_type">
|
124
|
-
<a href="
|
124
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
125
125
|
</td>
|
126
126
|
<td class="function_name">
|
127
127
|
<a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-seconds-full" title="gdk_threads_add_timeout_seconds_full ()">gdk_threads_add_timeout_seconds_full</a> <span class="c_punctuation">()</span>
|
@@ -158,7 +158,7 @@ and on the thread-safe GLib main loop.
|
|
158
158
|
GLib is completely thread safe (all global data is automatically
|
159
159
|
locked), but individual data structure instances are not automatically
|
160
160
|
locked for performance reasons. So e.g. you must coordinate
|
161
|
-
accesses to the same <a href="
|
161
|
+
accesses to the same <a href="https://developer.gnome.org/glib/unstable/glib-Hash-Tables.html#GHashTable"><span class="type">GHashTable</span></a> from multiple threads.
|
162
162
|
</p>
|
163
163
|
<p>
|
164
164
|
GTK+ is "thread aware" but not thread safe — it provides a
|
@@ -172,11 +172,11 @@ Win32 backend, GDK calls should not be attempted from multiple threads
|
|
172
172
|
at all.
|
173
173
|
</p>
|
174
174
|
<p>
|
175
|
-
You must call <a href="
|
175
|
+
You must call <a href="https://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init"><code class="function">g_thread_init()</code></a> and <a class="link" href="gdk2-Threads.html#gdk-threads-init" title="gdk_threads_init ()"><code class="function">gdk_threads_init()</code></a> before executing
|
176
176
|
any other GTK+ or GDK functions in a threaded GTK+ program.
|
177
177
|
</p>
|
178
178
|
<p>
|
179
|
-
Idles, timeouts, and input functions from GLib, such as <a href="
|
179
|
+
Idles, timeouts, and input functions from GLib, such as <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-idle-add"><code class="function">g_idle_add()</code></a>, are
|
180
180
|
executed outside of the main GTK+ lock.
|
181
181
|
So, if you need to call GTK+ inside of such a callback, you must surround
|
182
182
|
the callback with a <a class="link" href="gdk2-Threads.html#gdk-threads-enter" title="gdk_threads_enter ()"><code class="function">gdk_threads_enter()</code></a>/<a class="link" href="gdk2-Threads.html#gdk-threads-leave" title="gdk_threads_leave ()"><code class="function">gdk_threads_leave()</code></a> pair or use
|
@@ -227,7 +227,7 @@ looks like:</p>
|
|
227
227
|
<span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
228
228
|
<span class="cbracket">{</span>
|
229
229
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
|
230
|
-
<span class="normal"> </span><span class="function"><a href="
|
230
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init">g_thread_init</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
231
231
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-init">gdk_threads_init</a></span><span class="normal"> </span><span class="symbol">();</span>
|
232
232
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-enter">gdk_threads_enter</a></span><span class="normal"> </span><span class="symbol">();</span>
|
233
233
|
<span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">);</span>
|
@@ -399,7 +399,7 @@ illustrate how to use threads within GTK+ programs.
|
|
399
399
|
<span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">label</span><span class="symbol">;</span>
|
400
400
|
<span class="normal"> </span><span class="type">int</span><span class="normal"> what</span><span class="symbol">;</span>
|
401
401
|
<span class="cbracket">}</span><span class="normal"> yes_or_no_args</span><span class="symbol">;</span>
|
402
|
-
<span class="function"><a href="
|
402
|
+
<span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#G-LOCK-DEFINE-STATIC:CAPS">G_LOCK_DEFINE_STATIC</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">yes_or_no</span><span class="symbol">);</span>
|
403
403
|
<span class="keyword">static</span><span class="normal"> </span><span class="keyword">volatile</span><span class="normal"> </span><span class="type">int</span><span class="normal"> yes_or_no </span><span class="symbol">=</span><span class="normal"> YES_IT_IS</span><span class="symbol">;</span>
|
404
404
|
<span class="type">void</span><span class="normal"> </span><span class="function">destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
405
405
|
<span class="cbracket">{</span>
|
@@ -414,7 +414,7 @@ illustrate how to use threads within GTK+ programs.
|
|
414
414
|
<span class="normal"> </span><span class="comment">/* sleep a while */</span>
|
415
415
|
<span class="normal"> </span><span class="function">sleep</span><span class="symbol">(</span><span class="function">rand</span><span class="symbol">()</span><span class="normal"> </span><span class="symbol">/</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">RAND_MAX </span><span class="symbol">/</span><span class="normal"> </span><span class="number">3</span><span class="symbol">)</span><span class="normal"> </span><span class="symbol">+</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
|
416
416
|
<span class="normal"> </span><span class="comment">/* lock the yes_or_no_variable */</span>
|
417
|
-
<span class="normal"> </span><span class="function"><a href="
|
417
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#G-LOCK:CAPS">G_LOCK</a></span><span class="symbol">(</span><span class="normal">yes_or_no</span><span class="symbol">);</span>
|
418
418
|
<span class="normal"> </span><span class="comment">/* do we have to say something? */</span>
|
419
419
|
<span class="normal"> say_something </span><span class="symbol">=</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">yes_or_no </span><span class="symbol">!=</span><span class="normal"> data</span><span class="symbol">-></span><span class="normal">what</span><span class="symbol">);</span>
|
420
420
|
<span class="normal"> </span><span class="keyword">if</span><span class="symbol">(</span><span class="normal">say_something</span><span class="symbol">)</span>
|
@@ -423,7 +423,7 @@ illustrate how to use threads within GTK+ programs.
|
|
423
423
|
<span class="normal"> yes_or_no </span><span class="symbol">=</span><span class="normal"> data</span><span class="symbol">-></span><span class="normal">what</span><span class="symbol">;</span>
|
424
424
|
<span class="normal"> </span><span class="cbracket">}</span>
|
425
425
|
<span class="normal"> </span><span class="comment">/* Unlock the yes_or_no variable */</span>
|
426
|
-
<span class="normal"> </span><span class="function"><a href="
|
426
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#G-UNLOCK:CAPS">G_UNLOCK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">yes_or_no</span><span class="symbol">);</span>
|
427
427
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">say_something</span><span class="symbol">)</span>
|
428
428
|
<span class="normal"> </span><span class="cbracket">{</span>
|
429
429
|
<span class="normal"> </span><span class="comment">/* get GTK thread lock */</span>
|
@@ -437,7 +437,7 @@ illustrate how to use threads within GTK+ programs.
|
|
437
437
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-leave">gdk_threads_leave</a></span><span class="normal"> </span><span class="symbol">();</span>
|
438
438
|
<span class="normal"> </span><span class="cbracket">}</span>
|
439
439
|
<span class="normal"> </span><span class="cbracket">}</span>
|
440
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="
|
440
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
|
441
441
|
<span class="cbracket">}</span>
|
442
442
|
<span class="type">int</span><span class="normal"> </span><span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span><span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
|
443
443
|
<span class="cbracket">{</span>
|
@@ -446,16 +446,16 @@ illustrate how to use threads within GTK+ programs.
|
|
446
446
|
<span class="normal"> </span><span class="usertype">yes_or_no_args</span><span class="normal"> yes_args</span><span class="symbol">,</span><span class="normal"> no_args</span><span class="symbol">;</span>
|
447
447
|
<span class="normal"> </span><span class="usertype">pthread_t</span><span class="normal"> no_tid</span><span class="symbol">,</span><span class="normal"> yes_tid</span><span class="symbol">;</span>
|
448
448
|
<span class="normal"> </span><span class="comment">/* init threads */</span>
|
449
|
-
<span class="normal"> </span><span class="function"><a href="
|
449
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init">g_thread_init</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
450
450
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-init">gdk_threads_init</a></span><span class="normal"> </span><span class="symbol">();</span>
|
451
451
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-enter">gdk_threads_enter</a></span><span class="normal"> </span><span class="symbol">();</span>
|
452
452
|
<span class="normal"> </span><span class="comment">/* init gtk */</span>
|
453
453
|
<span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/gtk3-General.html#gtk-init">gtk_init</a></span><span class="symbol">(&</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">argv</span><span class="symbol">);</span>
|
454
454
|
<span class="normal"> </span><span class="comment">/* init random number generator */</span>
|
455
|
-
<span class="normal"> </span><span class="function">srand</span><span class="normal"> </span><span class="symbol">((</span><span class="type">unsigned</span><span class="normal"> </span><span class="type">int</span><span class="symbol">)</span><span class="normal"> </span><span class="function">time</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="
|
455
|
+
<span class="normal"> </span><span class="function">srand</span><span class="normal"> </span><span class="symbol">((</span><span class="type">unsigned</span><span class="normal"> </span><span class="type">int</span><span class="symbol">)</span><span class="normal"> </span><span class="function">time</span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">));</span>
|
456
456
|
<span class="normal"> </span><span class="comment">/* create a window */</span>
|
457
457
|
<span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="http://developer.gnome.org/gtk2/GtkWindow.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
|
458
|
-
<span class="normal"> </span><span class="function"><a href="
|
458
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">destroy</span><span class="symbol">),</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
|
459
459
|
<span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
|
460
460
|
<span class="normal"> </span><span class="comment">/* create a label */</span>
|
461
461
|
<span class="normal"> label </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/GtkLabel.html#gtk-label-new">gtk_label_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"And now for something completely different ..."</span><span class="symbol">);</span>
|
@@ -466,10 +466,10 @@ illustrate how to use threads within GTK+ programs.
|
|
466
466
|
<span class="normal"> </span><span class="comment">/* create the threads */</span>
|
467
467
|
<span class="normal"> yes_args</span><span class="symbol">.</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> label</span><span class="symbol">;</span>
|
468
468
|
<span class="normal"> yes_args</span><span class="symbol">.</span><span class="normal">what </span><span class="symbol">=</span><span class="normal"> YES_IT_IS</span><span class="symbol">;</span>
|
469
|
-
<span class="normal"> </span><span class="function">pthread_create</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">yes_tid</span><span class="symbol">,</span><span class="normal"> <a href="
|
469
|
+
<span class="normal"> </span><span class="function">pthread_create</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">yes_tid</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> argument_thread</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">yes_args</span><span class="symbol">);</span>
|
470
470
|
<span class="normal"> no_args</span><span class="symbol">.</span><span class="normal">label </span><span class="symbol">=</span><span class="normal"> label</span><span class="symbol">;</span>
|
471
471
|
<span class="normal"> no_args</span><span class="symbol">.</span><span class="normal">what </span><span class="symbol">=</span><span class="normal"> NO_IT_IS_NOT</span><span class="symbol">;</span>
|
472
|
-
<span class="normal"> </span><span class="function">pthread_create</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">no_tid</span><span class="symbol">,</span><span class="normal"> <a href="
|
472
|
+
<span class="normal"> </span><span class="function">pthread_create</span><span class="normal"> </span><span class="symbol">(&</span><span class="normal">no_tid</span><span class="symbol">,</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">,</span><span class="normal"> argument_thread</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&</span><span class="normal">no_args</span><span class="symbol">);</span>
|
473
473
|
<span class="normal"> </span><span class="comment">/* enter the GTK main loop */</span>
|
474
474
|
<span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gtk2/gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
|
475
475
|
<span class="normal"> </span><span class="function"><a href="gdk2-Threads.html#gdk-threads-leave">gdk_threads_leave</a></span><span class="normal"> </span><span class="symbol">();</span>
|
@@ -511,7 +511,7 @@ begun with <a class="link" href="gdk2-Threads.html#GDK-THREADS-ENTER:CAPS" title
|
|
511
511
|
gdk_threads_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
512
512
|
<p>Initializes GDK so that it can be used from multiple threads
|
513
513
|
in conjunction with <a class="link" href="gdk2-Threads.html#gdk-threads-enter" title="gdk_threads_enter ()"><code class="function">gdk_threads_enter()</code></a> and <a class="link" href="gdk2-Threads.html#gdk-threads-leave" title="gdk_threads_leave ()"><code class="function">gdk_threads_leave()</code></a>.
|
514
|
-
<a href="
|
514
|
+
<a href="https://developer.gnome.org/glib/unstable/glib-Deprecated-Thread-APIs.html#g-thread-init"><code class="function">g_thread_init()</code></a> must be called previous to this function.</p>
|
515
515
|
<p>This call must be made before any use of the main loop from
|
516
516
|
GTK+; to be safe, call it before <a href="http://developer.gnome.org/gtk2/gtk3-General.html#gtk-init"><code class="function">gtk_init()</code></a>.</p>
|
517
517
|
</div>
|
@@ -540,11 +540,11 @@ Leaves a critical region begun with <a class="link" href="gdk2-Threads.html#gdk-
|
|
540
540
|
<div class="refsect2">
|
541
541
|
<a name="gdk-threads-set-lock-functions"></a><h3>gdk_threads_set_lock_functions ()</h3>
|
542
542
|
<pre class="programlisting"><span class="returnvalue">void</span>
|
543
|
-
gdk_threads_set_lock_functions (<em class="parameter"><code><a href="
|
544
|
-
<em class="parameter"><code><a href="
|
543
|
+
gdk_threads_set_lock_functions (<em class="parameter"><code><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> enter_fn</code></em>,
|
544
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/gobject/unstable/gobject-Closures.html#GCallback"><span class="type">GCallback</span></a> leave_fn</code></em>);</pre>
|
545
545
|
<p>Allows the application to replace the standard method that
|
546
546
|
GDK uses to protect its data structures. Normally, GDK
|
547
|
-
creates a single <a href="
|
547
|
+
creates a single <a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#GMutex"><span class="type">GMutex</span></a> that is locked by <a class="link" href="gdk2-Threads.html#gdk-threads-enter" title="gdk_threads_enter ()"><code class="function">gdk_threads_enter()</code></a>,
|
548
548
|
and released by <a class="link" href="gdk2-Threads.html#gdk-threads-leave" title="gdk_threads_leave ()"><code class="function">gdk_threads_leave()</code></a>; using this function an
|
549
549
|
application provides, instead, a function <em class="parameter"><code>enter_fn</code></em>
|
550
550
|
that is
|
@@ -588,11 +588,11 @@ be called multiple times.</p>
|
|
588
588
|
<hr>
|
589
589
|
<div class="refsect2">
|
590
590
|
<a name="gdk-threads-add-idle"></a><h3>gdk_threads_add_idle ()</h3>
|
591
|
-
<pre class="programlisting"><a href="
|
592
|
-
gdk_threads_add_idle (<em class="parameter"><code><a href="
|
593
|
-
<em class="parameter"><code><a href="
|
591
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
592
|
+
gdk_threads_add_idle (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
593
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
594
594
|
<p>A wrapper for the common usage of <a class="link" href="gdk2-Threads.html#gdk-threads-add-idle-full" title="gdk_threads_add_idle_full ()"><code class="function">gdk_threads_add_idle_full()</code></a>
|
595
|
-
assigning the default priority, <a href="
|
595
|
+
assigning the default priority, <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT-IDLE:CAPS"><span class="type">G_PRIORITY_DEFAULT_IDLE</span></a>.</p>
|
596
596
|
<p>See <a class="link" href="gdk2-Threads.html#gdk-threads-add-idle-full" title="gdk_threads_add_idle_full ()"><code class="function">gdk_threads_add_idle_full()</code></a>.</p>
|
597
597
|
<div class="refsect3">
|
598
598
|
<a name="gdk-threads-add-idle.parameters"></a><h4>Parameters</h4>
|
@@ -626,15 +626,15 @@ assigning the default priority, <a href="/home/vagrant/ruby-gnome2.win32/glib2/v
|
|
626
626
|
<hr>
|
627
627
|
<div class="refsect2">
|
628
628
|
<a name="gdk-threads-add-idle-full"></a><h3>gdk_threads_add_idle_full ()</h3>
|
629
|
-
<pre class="programlisting"><a href="
|
630
|
-
gdk_threads_add_idle_full (<em class="parameter"><code><a href="
|
631
|
-
<em class="parameter"><code><a href="
|
632
|
-
<em class="parameter"><code><a href="
|
633
|
-
<em class="parameter"><code><a href="
|
629
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
630
|
+
gdk_threads_add_idle_full (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> priority</code></em>,
|
631
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
632
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
633
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
|
634
634
|
<p>Adds a function to be called whenever there are no higher priority
|
635
|
-
events pending. If the function returns <a href="
|
635
|
+
events pending. If the function returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> it is automatically
|
636
636
|
removed from the list of event sources and will not be called again.</p>
|
637
|
-
<p>This variant of <a href="
|
637
|
+
<p>This variant of <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-idle-add-full"><code class="function">g_idle_add_full()</code></a> calls <em class="parameter"><code>function</code></em>
|
638
638
|
with the GDK lock
|
639
639
|
held. It can be thought of a MT-safe version for GTK+ widgets for the
|
640
640
|
following use case, where you have to worry about <code class="function">idle_callback()</code>
|
@@ -674,7 +674,7 @@ in thread B:</p>
|
|
674
674
|
27
|
675
675
|
28
|
676
676
|
29</pre></td>
|
677
|
-
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="
|
677
|
+
<td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
|
678
678
|
<span class="function">idle_callback</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
|
679
679
|
<span class="cbracket">{</span>
|
680
680
|
<span class="normal"> </span><span class="comment">/* gdk_threads_enter(); would be needed for g_idle_add() */</span>
|
@@ -685,7 +685,7 @@ in thread B:</p>
|
|
685
685
|
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">idle_id </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
686
686
|
|
687
687
|
<span class="normal"> </span><span class="comment">/* gdk_threads_leave(); would be needed for g_idle_add() */</span>
|
688
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="
|
688
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
689
689
|
<span class="cbracket">}</span>
|
690
690
|
|
691
691
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
|
@@ -700,8 +700,8 @@ in thread B:</p>
|
|
700
700
|
<span class="cbracket">{</span>
|
701
701
|
<span class="normal"> </span><span class="usertype">SomeWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self </span><span class="symbol">=</span><span class="normal"> </span><span class="function">SOME_WIDGET</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
702
702
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">idle_id</span><span class="symbol">)</span>
|
703
|
-
<span class="normal"> </span><span class="function"><a href="
|
704
|
-
<span class="normal"> </span><span class="function"><a href="
|
703
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-source-remove">g_source_remove</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">idle_id</span><span class="symbol">);</span>
|
704
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
705
705
|
<span class="cbracket">}</span></pre></td>
|
706
706
|
</tr>
|
707
707
|
</tbody>
|
@@ -721,7 +721,7 @@ in thread B:</p>
|
|
721
721
|
<tr>
|
722
722
|
<td class="parameter_name"><p>priority</p></td>
|
723
723
|
<td class="parameter_description"><p>the priority of the idle source. Typically this will be in the
|
724
|
-
range btweeen <a href="
|
724
|
+
range btweeen <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT-IDLE:CAPS"><span class="type">G_PRIORITY_DEFAULT_IDLE</span></a> and <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-HIGH-IDLE:CAPS"><span class="type">G_PRIORITY_HIGH_IDLE</span></a></p></td>
|
725
725
|
<td class="parameter_annotations"> </td>
|
726
726
|
</tr>
|
727
727
|
<tr>
|
@@ -737,7 +737,7 @@ range btweeen <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
737
737
|
</tr>
|
738
738
|
<tr>
|
739
739
|
<td class="parameter_name"><p>notify</p></td>
|
740
|
-
<td class="parameter_description"><p> function to call when the idle is removed, or <a href="
|
740
|
+
<td class="parameter_description"><p> function to call when the idle is removed, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
741
741
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
742
742
|
</tr>
|
743
743
|
</tbody>
|
@@ -752,12 +752,12 @@ range btweeen <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
752
752
|
<hr>
|
753
753
|
<div class="refsect2">
|
754
754
|
<a name="gdk-threads-add-timeout"></a><h3>gdk_threads_add_timeout ()</h3>
|
755
|
-
<pre class="programlisting"><a href="
|
756
|
-
gdk_threads_add_timeout (<em class="parameter"><code><a href="
|
757
|
-
<em class="parameter"><code><a href="
|
758
|
-
<em class="parameter"><code><a href="
|
755
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
756
|
+
gdk_threads_add_timeout (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> interval</code></em>,
|
757
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
758
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
759
759
|
<p>A wrapper for the common usage of <a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-full" title="gdk_threads_add_timeout_full ()"><code class="function">gdk_threads_add_timeout_full()</code></a>
|
760
|
-
assigning the default priority, <a href="
|
760
|
+
assigning the default priority, <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"><span class="type">G_PRIORITY_DEFAULT</span></a>.</p>
|
761
761
|
<p>See <a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-full" title="gdk_threads_add_timeout_full ()"><code class="function">gdk_threads_add_timeout_full()</code></a>.</p>
|
762
762
|
<div class="refsect3">
|
763
763
|
<a name="gdk-threads-add-timeout.parameters"></a><h4>Parameters</h4>
|
@@ -797,15 +797,15 @@ assigning the default priority, <a href="/home/vagrant/ruby-gnome2.win32/glib2/v
|
|
797
797
|
<hr>
|
798
798
|
<div class="refsect2">
|
799
799
|
<a name="gdk-threads-add-timeout-full"></a><h3>gdk_threads_add_timeout_full ()</h3>
|
800
|
-
<pre class="programlisting"><a href="
|
801
|
-
gdk_threads_add_timeout_full (<em class="parameter"><code><a href="
|
802
|
-
<em class="parameter"><code><a href="
|
803
|
-
<em class="parameter"><code><a href="
|
804
|
-
<em class="parameter"><code><a href="
|
805
|
-
<em class="parameter"><code><a href="
|
800
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
801
|
+
gdk_threads_add_timeout_full (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> priority</code></em>,
|
802
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> interval</code></em>,
|
803
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
804
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
805
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
|
806
806
|
<p>Sets a function to be called at regular intervals holding the GDK lock,
|
807
807
|
with the given priority. The function is called repeatedly until it
|
808
|
-
returns <a href="
|
808
|
+
returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, at which point the timeout is automatically destroyed
|
809
809
|
and the function will not be called again. The <em class="parameter"><code>notify</code></em>
|
810
810
|
function is
|
811
811
|
called when the timeout is destroyed. The first call to the
|
@@ -816,7 +816,7 @@ event sources. Thus they should not be relied on for precise timing.
|
|
816
816
|
After each call to the timeout function, the time of the next
|
817
817
|
timeout is recalculated based on the current time and the given interval
|
818
818
|
(it does not try to 'catch up' time lost in delays).</p>
|
819
|
-
<p>This variant of <a href="
|
819
|
+
<p>This variant of <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add-full"><code class="function">g_timeout_add_full()</code></a> can be thought of a MT-safe version
|
820
820
|
for GTK+ widgets for the following use case:</p>
|
821
821
|
<div class="informalexample">
|
822
822
|
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
@@ -855,12 +855,12 @@ for GTK+ widgets for the following use case:</p>
|
|
855
855
|
<span class="normal"> </span>
|
856
856
|
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">timeout_id </span><span class="symbol">=</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
|
857
857
|
<span class="normal"> </span>
|
858
|
-
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="
|
858
|
+
<span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
|
859
859
|
<span class="cbracket">}</span>
|
860
860
|
<span class="normal"> </span>
|
861
861
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="function">some_widget_do_stuff_later</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">SomeWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self</span><span class="symbol">)</span>
|
862
862
|
<span class="cbracket">{</span>
|
863
|
-
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">timeout_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="
|
863
|
+
<span class="normal"> self</span><span class="symbol">-></span><span class="normal">timeout_id </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add">g_timeout_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">timeout_callback</span><span class="symbol">,</span><span class="normal"> self</span><span class="symbol">)</span>
|
864
864
|
<span class="cbracket">}</span>
|
865
865
|
<span class="normal"> </span>
|
866
866
|
<span class="keyword">static</span><span class="normal"> </span><span class="type">void</span><span class="normal"> </span><span class="function">some_widget_finalize</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GObject</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">object</span><span class="symbol">)</span>
|
@@ -868,9 +868,9 @@ for GTK+ widgets for the following use case:</p>
|
|
868
868
|
<span class="normal"> </span><span class="usertype">SomeWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">self </span><span class="symbol">=</span><span class="normal"> </span><span class="function">SOME_WIDGET</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">object</span><span class="symbol">);</span>
|
869
869
|
<span class="normal"> </span>
|
870
870
|
<span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">timeout_id</span><span class="symbol">)</span>
|
871
|
-
<span class="normal"> </span><span class="function"><a href="
|
871
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-source-remove">g_source_remove</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">self</span><span class="symbol">-></span><span class="normal">timeout_id</span><span class="symbol">);</span>
|
872
872
|
<span class="normal"> </span>
|
873
|
-
<span class="normal"> </span><span class="function"><a href="
|
873
|
+
<span class="normal"> </span><span class="function"><a href="https://developer.gnome.org/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>
|
874
874
|
<span class="cbracket">}</span></pre></td>
|
875
875
|
</tr>
|
876
876
|
</tbody>
|
@@ -890,7 +890,7 @@ for GTK+ widgets for the following use case:</p>
|
|
890
890
|
<tr>
|
891
891
|
<td class="parameter_name"><p>priority</p></td>
|
892
892
|
<td class="parameter_description"><p>the priority of the timeout source. Typically this will be in the
|
893
|
-
range between <a href="
|
893
|
+
range between <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT-IDLE:CAPS"><span class="type">G_PRIORITY_DEFAULT_IDLE</span></a> and <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-HIGH-IDLE:CAPS"><span class="type">G_PRIORITY_HIGH_IDLE</span></a>.</p></td>
|
894
894
|
<td class="parameter_annotations"> </td>
|
895
895
|
</tr>
|
896
896
|
<tr>
|
@@ -912,7 +912,7 @@ range between <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
912
912
|
</tr>
|
913
913
|
<tr>
|
914
914
|
<td class="parameter_name"><p>notify</p></td>
|
915
|
-
<td class="parameter_description"><p> function to call when the timeout is removed, or <a href="
|
915
|
+
<td class="parameter_description"><p> function to call when the timeout is removed, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
916
916
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
917
917
|
</tr>
|
918
918
|
</tbody>
|
@@ -927,12 +927,12 @@ range between <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
927
927
|
<hr>
|
928
928
|
<div class="refsect2">
|
929
929
|
<a name="gdk-threads-add-timeout-seconds"></a><h3>gdk_threads_add_timeout_seconds ()</h3>
|
930
|
-
<pre class="programlisting"><a href="
|
931
|
-
gdk_threads_add_timeout_seconds (<em class="parameter"><code><a href="
|
932
|
-
<em class="parameter"><code><a href="
|
933
|
-
<em class="parameter"><code><a href="
|
930
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
931
|
+
gdk_threads_add_timeout_seconds (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> interval</code></em>,
|
932
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
933
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>);</pre>
|
934
934
|
<p>A wrapper for the common usage of <a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-seconds-full" title="gdk_threads_add_timeout_seconds_full ()"><code class="function">gdk_threads_add_timeout_seconds_full()</code></a>
|
935
|
-
assigning the default priority, <a href="
|
935
|
+
assigning the default priority, <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT:CAPS"><span class="type">G_PRIORITY_DEFAULT</span></a>.</p>
|
936
936
|
<p>For details, see <a class="link" href="gdk2-Threads.html#gdk-threads-add-timeout-full" title="gdk_threads_add_timeout_full ()"><code class="function">gdk_threads_add_timeout_full()</code></a>.</p>
|
937
937
|
<div class="refsect3">
|
938
938
|
<a name="gdk-threads-add-timeout-seconds.parameters"></a><h4>Parameters</h4>
|
@@ -971,14 +971,14 @@ assigning the default priority, <a href="/home/vagrant/ruby-gnome2.win32/glib2/v
|
|
971
971
|
<hr>
|
972
972
|
<div class="refsect2">
|
973
973
|
<a name="gdk-threads-add-timeout-seconds-full"></a><h3>gdk_threads_add_timeout_seconds_full ()</h3>
|
974
|
-
<pre class="programlisting"><a href="
|
975
|
-
gdk_threads_add_timeout_seconds_full (<em class="parameter"><code><a href="
|
976
|
-
<em class="parameter"><code><a href="
|
977
|
-
<em class="parameter"><code><a href="
|
978
|
-
<em class="parameter"><code><a href="
|
979
|
-
<em class="parameter"><code><a href="
|
974
|
+
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
|
975
|
+
gdk_threads_add_timeout_seconds_full (<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> priority</code></em>,
|
976
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> interval</code></em>,
|
977
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#GSourceFunc"><span class="type">GSourceFunc</span></a> function</code></em>,
|
978
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
|
979
|
+
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
|
980
980
|
<p>A variant of <code class="function">gdk_threads_add_timout_full()</code> with second-granularity.
|
981
|
-
See <a href="
|
981
|
+
See <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#g-timeout-add-seconds-full"><code class="function">g_timeout_add_seconds_full()</code></a> for a discussion of why it is
|
982
982
|
a good idea to use this function if you don't need finer granularity.</p>
|
983
983
|
<div class="refsect3">
|
984
984
|
<a name="gdk-threads-add-timeout-seconds-full.parameters"></a><h4>Parameters</h4>
|
@@ -992,7 +992,7 @@ a good idea to use this function if you don't need finer granularity.</p>
|
|
992
992
|
<tr>
|
993
993
|
<td class="parameter_name"><p>priority</p></td>
|
994
994
|
<td class="parameter_description"><p>the priority of the timeout source. Typically this will be in the
|
995
|
-
range between <a href="
|
995
|
+
range between <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-DEFAULT-IDLE:CAPS"><span class="type">G_PRIORITY_DEFAULT_IDLE</span></a> and <a href="https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html#G-PRIORITY-HIGH-IDLE:CAPS"><span class="type">G_PRIORITY_HIGH_IDLE</span></a>.</p></td>
|
996
996
|
<td class="parameter_annotations"> </td>
|
997
997
|
</tr>
|
998
998
|
<tr>
|
@@ -1013,7 +1013,7 @@ range between <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
1013
1013
|
</tr>
|
1014
1014
|
<tr>
|
1015
1015
|
<td class="parameter_name"><p>notify</p></td>
|
1016
|
-
<td class="parameter_description"><p> function to call when the timeout is removed, or <a href="
|
1016
|
+
<td class="parameter_description"><p> function to call when the timeout is removed, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
|
1017
1017
|
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
1018
1018
|
</tr>
|
1019
1019
|
</tbody>
|
@@ -1034,7 +1034,7 @@ range between <a href="/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/share/
|
|
1034
1034
|
</pre>
|
1035
1035
|
<div class="warning"><p><code class="literal">gdk_threads_mutex</code> is deprecated and should not be used in newly-written code.</p></div>
|
1036
1036
|
<p>
|
1037
|
-
The <a href="
|
1037
|
+
The <a href="https://developer.gnome.org/glib/unstable/glib-Threads.html#GMutex"><span class="type">GMutex</span></a> used to implement the critical region for
|
1038
1038
|
<a class="link" href="gdk2-Threads.html#gdk-threads-enter" title="gdk_threads_enter ()"><code class="function">gdk_threads_enter()</code></a>/<a class="link" href="gdk2-Threads.html#gdk-threads-leave" title="gdk_threads_leave ()"><code class="function">gdk_threads_leave()</code></a>.
|
1039
1039
|
</p>
|
1040
1040
|
</div>
|