gdk3 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -1
  3. data/ext/gdk3/rbgdkcursor.c +5 -12
  4. data/ext/gdk3/rbgdkdevicemanager.c +2 -2
  5. data/ext/gdk3/rbgdkdisplay.c +7 -0
  6. data/ext/gdk3/rbgdkevent.c +8 -9
  7. data/ext/gdk3/rbgdkwindow.c +7 -0
  8. data/lib/1.9/gdk3.so +0 -0
  9. data/lib/2.0/gdk3.so +0 -0
  10. data/lib/2.1/gdk3.so +0 -0
  11. data/test/test-gdk-event.rb +126 -20
  12. data/vendor/local/bin/gtk-launch.exe +0 -0
  13. data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
  14. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  15. data/vendor/local/bin/gtk3-demo-application.exe +0 -0
  16. data/vendor/local/bin/gtk3-demo.exe +0 -0
  17. data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
  18. data/vendor/local/bin/libgailutil-3-0.dll +0 -0
  19. data/vendor/local/bin/libgdk-3-0.dll +0 -0
  20. data/vendor/local/bin/libgtk-3-0.dll +0 -0
  21. data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +1 -1
  22. data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +3 -3
  23. data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
  24. data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -34
  25. data/vendor/local/lib/libgailutil-3.dll.a +0 -0
  26. data/vendor/local/lib/libgdk-3.dll.a +0 -0
  27. data/vendor/local/lib/libgdk-3.la +1 -1
  28. data/vendor/local/lib/libgtk-3.dll.a +0 -0
  29. data/vendor/local/lib/libgtk-3.la +2 -2
  30. data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
  31. data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
  32. data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
  33. data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
  34. data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
  35. data/vendor/local/share/gir-1.0/Gtk-3.0.gir +5 -4
  36. data/vendor/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml +36 -1
  37. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +1 -1
  38. data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +3 -3
  39. data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +7 -7
  40. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +6 -6
  41. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplayManager.html +4 -4
  42. data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +11 -11
  43. data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +2 -2
  44. data/vendor/local/share/gtk-doc/html/gdk3/api-index-full.html +4 -4
  45. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Application-launching.html +9 -9
  46. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +3 -3
  47. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Drag-and-Drop.html +1 -1
  48. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +3 -3
  49. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameClock.html +2 -2
  50. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +1 -1
  51. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +9 -9
  52. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +2 -2
  53. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +7 -7
  54. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Visuals.html +1 -1
  55. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Wayland-Interaction.html +1 -1
  56. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +10 -10
  57. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-X-Window-System-Interaction.html +1 -1
  58. data/vendor/local/share/gtk-doc/html/gdk3/index.html +1 -1
  59. data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +11 -11
  60. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +6 -6
  61. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccessible.html +1 -1
  62. data/vendor/local/share/gtk-doc/html/gtk3/GtkAction.html +81 -81
  63. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionGroup.html +7 -7
  64. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +3 -3
  65. data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +12 -12
  66. data/vendor/local/share/gtk-doc/html/gtk3/GtkAdjustment.html +9 -9
  67. data/vendor/local/share/gtk-doc/html/gtk3/GtkAlignment.html +2 -2
  68. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +7 -7
  69. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserButton.html +6 -6
  70. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserDialog.html +8 -8
  71. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserWidget.html +14 -14
  72. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplication.html +66 -66
  73. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplicationWindow.html +18 -18
  74. data/vendor/local/share/gtk-doc/html/gtk3/GtkArrow.html +2 -2
  75. data/vendor/local/share/gtk-doc/html/gtk3/GtkAspectFrame.html +2 -2
  76. data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +10 -10
  77. data/vendor/local/share/gtk-doc/html/gtk3/GtkBin.html +2 -2
  78. data/vendor/local/share/gtk-doc/html/gtk3/GtkBox.html +9 -9
  79. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +17 -17
  80. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +45 -45
  81. data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +14 -14
  82. data/vendor/local/share/gtk-doc/html/gtk3/GtkButtonBox.html +2 -2
  83. data/vendor/local/share/gtk-doc/html/gtk3/GtkCalendar.html +16 -16
  84. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +25 -25
  85. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaBox.html +2 -2
  86. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaContext.html +1 -1
  87. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +4 -4
  88. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +3 -3
  89. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +9 -9
  90. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +6 -6
  91. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererCombo.html +5 -5
  92. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +5 -5
  93. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererProgress.html +2 -2
  94. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpin.html +2 -2
  95. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpinner.html +2 -2
  96. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +5 -5
  97. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererToggle.html +5 -5
  98. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +2 -2
  99. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckButton.html +2 -2
  100. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckMenuItem.html +4 -4
  101. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +4 -4
  102. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +3 -3
  103. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserDialog.html +2 -2
  104. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserWidget.html +2 -2
  105. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +72 -4
  106. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelectionDialog.html +10 -2
  107. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +16 -16
  108. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBoxText.html +2 -2
  109. data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +43 -43
  110. data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +14 -10
  111. data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +8 -8
  112. data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +4 -4
  113. data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +11 -11
  114. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +44 -44
  115. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryBuffer.html +5 -5
  116. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryCompletion.html +10 -10
  117. data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +2 -2
  118. data/vendor/local/share/gtk-doc/html/gtk3/GtkExpander.html +4 -4
  119. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +44 -44
  120. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserButton.html +4 -4
  121. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserDialog.html +2 -2
  122. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserWidget.html +2 -2
  123. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileFilter.html +2 -2
  124. data/vendor/local/share/gtk-doc/html/gtk3/GtkFixed.html +2 -2
  125. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +4 -4
  126. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +3 -3
  127. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserDialog.html +2 -2
  128. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserWidget.html +2 -2
  129. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +2 -2
  130. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +2 -2
  131. data/vendor/local/share/gtk-doc/html/gtk3/GtkFrame.html +2 -2
  132. data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +8 -8
  133. data/vendor/local/share/gtk-doc/html/gtk3/GtkHBox.html +2 -2
  134. data/vendor/local/share/gtk-doc/html/gtk3/GtkHButtonBox.html +2 -2
  135. data/vendor/local/share/gtk-doc/html/gtk3/GtkHPaned.html +2 -2
  136. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSV.html +30 -6
  137. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScale.html +2 -2
  138. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScrollbar.html +2 -2
  139. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSeparator.html +2 -2
  140. data/vendor/local/share/gtk-doc/html/gtk3/GtkHandleBox.html +6 -6
  141. data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +2 -2
  142. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +16 -16
  143. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContextSimple.html +1 -1
  144. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMMulticontext.html +1 -1
  145. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +49 -49
  146. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +28 -28
  147. data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +16 -16
  148. data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +2 -2
  149. data/vendor/local/share/gtk-doc/html/gtk3/GtkInfoBar.html +8 -8
  150. data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +2 -2
  151. data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +14 -14
  152. data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +2 -2
  153. data/vendor/local/share/gtk-doc/html/gtk3/GtkLevelBar.html +4 -4
  154. data/vendor/local/share/gtk-doc/html/gtk3/GtkLinkButton.html +4 -4
  155. data/vendor/local/share/gtk-doc/html/gtk3/GtkListBox.html +18 -18
  156. data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +22 -22
  157. data/vendor/local/share/gtk-doc/html/gtk3/GtkLockButton.html +17 -17
  158. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +9 -9
  159. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuBar.html +5 -5
  160. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuButton.html +14 -14
  161. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuItem.html +14 -14
  162. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +24 -24
  163. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuToolButton.html +4 -4
  164. data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +4 -4
  165. data/vendor/local/share/gtk-doc/html/gtk3/GtkMisc.html +2 -2
  166. data/vendor/local/share/gtk-doc/html/gtk3/GtkNotebook.html +22 -22
  167. data/vendor/local/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +26 -26
  168. data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +2 -2
  169. data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +4 -4
  170. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetup.html +2 -2
  171. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +2 -2
  172. data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +14 -14
  173. data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +45 -45
  174. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +2 -2
  175. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +3 -3
  176. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintSettings.html +1 -1
  177. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +2 -2
  178. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrinter.html +4 -4
  179. data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +2 -2
  180. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioAction.html +3 -3
  181. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioButton.html +4 -4
  182. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioMenuItem.html +4 -4
  183. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioToolButton.html +2 -2
  184. data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +10 -10
  185. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentAction.html +1 -1
  186. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +5 -5
  187. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserDialog.html +2 -2
  188. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserMenu.html +2 -2
  189. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserWidget.html +2 -2
  190. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentFilter.html +2 -2
  191. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +14 -14
  192. data/vendor/local/share/gtk-doc/html/gtk3/GtkRevealer.html +2 -2
  193. data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +4 -4
  194. data/vendor/local/share/gtk-doc/html/gtk3/GtkScaleButton.html +10 -10
  195. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +1 -1
  196. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollbar.html +2 -2
  197. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +6 -6
  198. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +10 -10
  199. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +4 -4
  200. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparator.html +2 -2
  201. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorMenuItem.html +2 -2
  202. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorToolItem.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +38 -38
  204. data/vendor/local/share/gtk-doc/html/gtk3/GtkSizeGroup.html +2 -2
  205. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +12 -12
  206. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinner.html +2 -2
  207. data/vendor/local/share/gtk-doc/html/gtk3/GtkStack.html +2 -2
  208. data/vendor/local/share/gtk-doc/html/gtk3/GtkStackSwitcher.html +2 -2
  209. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +30 -30
  210. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusbar.html +6 -6
  211. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +37 -21
  212. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +9 -9
  213. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +6 -6
  214. data/vendor/local/share/gtk-doc/html/gtk3/GtkSwitch.html +4 -4
  215. data/vendor/local/share/gtk-doc/html/gtk3/GtkTable.html +2 -2
  216. data/vendor/local/share/gtk-doc/html/gtk3/GtkTearoffMenuItem.html +2 -2
  217. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +30 -30
  218. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextMark.html +1 -1
  219. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +7 -7
  220. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTagTable.html +7 -7
  221. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +33 -33
  222. data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +12 -12
  223. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleAction.html +3 -3
  224. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleButton.html +8 -8
  225. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleToolButton.html +4 -4
  226. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolButton.html +4 -4
  227. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +6 -6
  228. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +2 -2
  229. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +4 -4
  230. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolbar.html +10 -10
  231. data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +4 -4
  232. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +34 -34
  233. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelFilter.html +8 -8
  234. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelSort.html +1 -1
  235. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSelection.html +3 -3
  236. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +9 -9
  237. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +18 -18
  238. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +32 -32
  239. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +4 -4
  240. data/vendor/local/share/gtk-doc/html/gtk3/GtkUIManager.html +15 -15
  241. data/vendor/local/share/gtk-doc/html/gtk3/GtkVBox.html +2 -2
  242. data/vendor/local/share/gtk-doc/html/gtk3/GtkVButtonBox.html +2 -2
  243. data/vendor/local/share/gtk-doc/html/gtk3/GtkVPaned.html +2 -2
  244. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScale.html +2 -2
  245. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScrollbar.html +2 -2
  246. data/vendor/local/share/gtk-doc/html/gtk3/GtkVSeparator.html +2 -2
  247. data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +2 -2
  248. data/vendor/local/share/gtk-doc/html/gtk3/GtkVolumeButton.html +2 -2
  249. data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +188 -188
  250. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +11 -11
  251. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +2 -2
  252. data/vendor/local/share/gtk-doc/html/gtk3/TreeWidget.html +11 -11
  253. data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +126 -2
  254. data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +21 -21
  255. data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +5 -5
  256. data/vendor/local/share/gtk-doc/html/gtk3/ch24s02.html +4 -4
  257. data/vendor/local/share/gtk-doc/html/gtk3/ch26s02.html +7 -7
  258. data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +1 -1
  259. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +9 -9
  260. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parsing.html +1 -1
  261. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-smclient-GtkApplication.html +2 -2
  262. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-unique-GtkApplication.html +10 -10
  263. data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +9 -9
  264. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +3 -3
  265. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +9 -9
  266. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +10 -10
  267. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +6 -6
  268. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +3 -3
  269. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +7 -7
  270. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +8 -8
  271. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +4 -0
  272. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkStyleProperties.html +14 -14
  273. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkWidgetPath.html +16 -16
  274. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +43 -43
  275. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +30 -30
  276. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +1 -1
  277. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +7 -7
  278. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +1 -1
  279. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +11 -11
  280. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +1 -1
  281. data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +31 -31
  282. data/vendor/local/share/gtk-doc/html/gtk3/index.html +1 -1
  283. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
  284. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
  285. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
  286. data/vendor/local/share/locale/el/LC_MESSAGES/gtk30-properties.mo +0 -0
  287. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
  288. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30-properties.mo +0 -0
  289. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30.mo +0 -0
  290. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
  291. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30-properties.mo +0 -0
  292. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30-properties.mo +0 -0
  293. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
  294. data/vendor/local/share/man/man1/broadwayd.1 +1 -1
  295. data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
  296. data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
  297. data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
  298. metadata +6 -39
  299. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll +0 -0
  300. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll.a +0 -0
  301. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.la +0 -41
  302. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll +0 -0
  303. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll.a +0 -0
  304. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.la +0 -41
  305. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll +0 -0
  306. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll.a +0 -0
  307. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la +0 -41
  308. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll +0 -0
  309. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll.a +0 -0
  310. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.la +0 -41
  311. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll +0 -0
  312. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll.a +0 -0
  313. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.la +0 -41
  314. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll +0 -0
  315. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll.a +0 -0
  316. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.la +0 -41
  317. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll +0 -0
  318. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll.a +0 -0
  319. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.la +0 -41
  320. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll +0 -0
  321. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll.a +0 -0
  322. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.la +0 -41
  323. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll +0 -0
  324. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll.a +0 -0
  325. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.la +0 -41
  326. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll +0 -0
  327. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll.a +0 -0
  328. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.la +0 -41
  329. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll +0 -0
  330. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll.a +0 -0
  331. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.la +0 -41
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f33425a4af9cbe611186550b67c0d39da0180bc
4
- data.tar.gz: f1650bbf882aed7dec4a1ed08e3a41f19d567d5e
3
+ metadata.gz: 0f3c5493972febc6b6042e59d8f3550a87bbcf01
4
+ data.tar.gz: 8663b90432a95dcc4576413b347cf20265a87fb9
5
5
  SHA512:
6
- metadata.gz: 9117f3cc438b91fa45da8321e8efeff2c4878495bed4dd01870c2e46cc284b58a901480b1a8e1556a9717766edd821af9c117623232cfaedf2b630a57fe90aff
7
- data.tar.gz: c489ed8d80ba57e22db18d370ba90e21f6886f787cfc9f26c92aca312a4266807f8b9610db0d5b09682e4131ace0c1968ac8fb442055a932d4c664ff0863e339
6
+ metadata.gz: d066a7c552159c08e5874f0251005427983902757c7951ae8b11c06ffb5eb80c043ee63de417956169d89ea61db11da25a78237d93231de89b2cb38719d3a858
7
+ data.tar.gz: 4a4c03f3b400671a4567f227efc8f45d0dcbcf660a0bbbe74b5fce5459f70db76e159ed5afb38dfa6086693d1da4c7e215d53b24653091b1296a1443ee1ee396
data/Rakefile CHANGED
@@ -26,16 +26,18 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
26
26
  :name => "gtk+",
27
27
  :download_site => :gnome,
28
28
  :label => "GTK+",
29
- :version => "3.10.6",
29
+ :version => "3.10.7",
30
30
  :compression_method => "xz",
31
31
  :windows => {
32
32
  :configure_args => [
33
33
  "--enable-introspection",
34
+ "--with-included-immodules",
34
35
  ],
35
36
  :patches => [
36
37
  "gdk+-3.10.6-remove-def-use.diff",
37
38
  ],
38
39
  :need_autoreconf => true,
40
+ :build_concurrently => false,
39
41
  :built_file => "bin/libgdk-3-0.dll",
40
42
  },
41
43
  },
@@ -39,20 +39,20 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
39
39
  cursor = gdk_cursor_new_from_name(RVAL2GDKDISPLAYOBJECT(display),
40
40
  RVAL2CSTR(type_or_name));
41
41
  else
42
- cursor = gdk_cursor_new_for_display(RVAL2GDKDISPLAYOBJECT(display),
42
+ cursor = gdk_cursor_new_for_display(RVAL2GDKDISPLAYOBJECT(display),
43
43
  RVAL2GDKCURSORTYPE(type_or_name));
44
44
  } else if (argc == 4) {
45
45
  VALUE display, pixbuf, x, y;
46
46
  rb_scan_args(argc, argv, "40", &display, &pixbuf, &x, &y);
47
- cursor = gdk_cursor_new_from_pixbuf(RVAL2GDKDISPLAYOBJECT(display),
48
- RVAL2GDKPIXBUF(pixbuf),
47
+ cursor = gdk_cursor_new_from_pixbuf(RVAL2GDKDISPLAYOBJECT(display),
48
+ RVAL2GDKPIXBUF(pixbuf),
49
49
  NUM2INT(x), NUM2INT(y));
50
50
  /* deprecated
51
51
  } else if (argc == 6) {
52
52
  VALUE pixmap, mask, fg, bg, x, y;
53
53
  rb_scan_args(argc, argv, "60", &pixmap, &mask, &fg, &bg, &x, &y);
54
- cursor = gdk_cursor_new_from_pixmap(RVAL2GDKPIXMAP(pixmap),
55
- NIL_P(mask)?NULL:RVAL2GDKPIXMAP(mask),
54
+ cursor = gdk_cursor_new_from_pixmap(RVAL2GDKPIXMAP(pixmap),
55
+ NIL_P(mask)?NULL:RVAL2GDKPIXMAP(mask),
56
56
  RVAL2GDKCOLOR(fg),
57
57
  RVAL2GDKCOLOR(bg),
58
58
  NUM2INT(x), NUM2INT(y));
@@ -63,12 +63,6 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
63
63
  return Qnil;
64
64
  }
65
65
 
66
- static VALUE
67
- rg_display(VALUE self)
68
- {
69
- return GOBJ2RVAL(gdk_cursor_get_display(RVAL2GDKCURSOR(self)));
70
- }
71
-
72
66
  /* TODO
73
67
  static VALUE
74
68
  rg_cursor_type(VALUE self)
@@ -89,7 +83,6 @@ Init_gdk_cursor(VALUE mGdk)
89
83
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_CURSOR, "Cursor", mGdk);
90
84
 
91
85
  RG_DEF_METHOD(initialize, -1);
92
- RG_DEF_METHOD(display, 0);
93
86
  /* TODO
94
87
  RG_DEF_METHOD(cursor_type, 0);
95
88
  */
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
6
6
  * modify it under the terms of the GNU Lesser General Public
@@ -33,7 +33,7 @@ rg_devices(VALUE self)
33
33
  void
34
34
  Init_gdk_device_manager(VALUE mGdk)
35
35
  {
36
- VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DISPLAY_MANAGER, "DeviceManager", mGdk);
36
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DEVICE_MANAGER, "DeviceManager", mGdk);
37
37
 
38
38
  RG_DEF_METHOD(devices, 0);
39
39
  }
@@ -86,6 +86,12 @@ rg_default_screen(VALUE self)
86
86
  return GOBJ2RVAL(gdk_display_get_default_screen(_SELF(self)));
87
87
  }
88
88
 
89
+ static VALUE
90
+ rg_device_manager(VALUE self)
91
+ {
92
+ return GOBJ2RVAL(gdk_display_get_device_manager(_SELF(self)));
93
+ }
94
+
89
95
  static VALUE
90
96
  rg_device_is_grabbed_p(VALUE self, VALUE device)
91
97
  {
@@ -382,6 +388,7 @@ Init_gdk_display(VALUE mGdk)
382
388
  RG_DEF_METHOD(get_screen, 1);
383
389
  RG_DEF_ALIAS("[]", "get_screen");
384
390
  RG_DEF_METHOD(default_screen, 0);
391
+ RG_DEF_METHOD(device_manager, 0);
385
392
 
386
393
  RG_DEF_METHOD_P(device_is_grabbed, 1);
387
394
 
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2002-2013 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2002-2014 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 1998-2000 Yukihiro Matsumoto,
5
5
  * Daisuke Kanda,
6
6
  * Hiroshi Igarashi
@@ -721,8 +721,6 @@ ATTR_FLOAT(button, x_root);
721
721
  ATTR_FLOAT(button, y_root);
722
722
 
723
723
  /* GdkEventTouch */
724
- ATTR_GOBJ(touch, window);
725
- ATTR_BOOL(touch, send_event);
726
724
  ATTR_UINT(touch, time);
727
725
  ATTR_FLOAT(touch, x);
728
726
  ATTR_FLOAT(touch, y);
@@ -902,10 +900,17 @@ Init_gdk_event(VALUE mGdk)
902
900
  rbg_define_method(rb_cGdkEvent, "screen", gdkevent_screen, 0);
903
901
  rbg_define_method(rb_cGdkEvent, "set_screen", gdkevent_set_screen, 1);
904
902
 
903
+ /* GdkEventAny's fields */
904
+ DEFINE_ACCESSOR(rb_cGdkEvent, any, window);
905
+ rbg_define_method(rb_cGdkEvent, "send_event?", gdkeventany_send_event, 0);
906
+ rbg_define_method(rb_cGdkEvent, "set_send_event", gdkeventany_set_send_event, 1);
907
+
905
908
  /*
906
909
  * GdkEvent's Constants
907
910
  */
908
911
  rb_define_const(rb_cGdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
912
+ rb_define_const(rb_cGdkEvent, "PROPAGATE", CBOOL2RVAL(GDK_EVENT_PROPAGATE));
913
+ rb_define_const(rb_cGdkEvent, "STOP", CBOOL2RVAL(GDK_EVENT_STOP));
909
914
  rb_define_const(rb_cGdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
910
915
  rb_define_const(rb_cGdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
911
916
 
@@ -926,9 +931,6 @@ Init_gdk_event(VALUE mGdk)
926
931
  rb_cGdkEventAny =
927
932
  G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_ANY, "EventAny",
928
933
  mGdk, rb_cGdkEvent);
929
- DEFINE_ACCESSOR(rb_cGdkEventAny, any, window);
930
- rbg_define_method(rb_cGdkEventAny, "send_event?", gdkeventany_send_event, 0);
931
- rbg_define_method(rb_cGdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
932
934
 
933
935
  /* GdkEventExpose */
934
936
  rb_cGdkEventExpose =
@@ -988,9 +990,6 @@ Init_gdk_event(VALUE mGdk)
988
990
  rb_cGdkEventTouch =
989
991
  G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_TOUCH, "EventTouch",
990
992
  mGdk, rb_cGdkEvent);
991
- DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, window);
992
- rbg_define_method(rb_cGdkEventTouch, "send_event?", gdkeventtouch_send_event, 0);
993
- rbg_define_method(rb_cGdkEventTouch, "set_send_event", gdkeventtouch_set_send_event, 1);
994
993
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, time);
995
994
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, x);
996
995
  DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, y);
@@ -55,6 +55,12 @@ rg_window_type(VALUE self)
55
55
  return GDKWINDOWTYPE2RVAL(gdk_window_get_window_type(_SELF(self)));
56
56
  }
57
57
 
58
+ static VALUE
59
+ rg_display(VALUE self)
60
+ {
61
+ return GOBJ2RVAL(gdk_window_get_display(_SELF(self)));
62
+ }
63
+
58
64
  static VALUE
59
65
  rg_show(VALUE self)
60
66
  {
@@ -930,6 +936,7 @@ Init_gdk_window(VALUE mGdk)
930
936
  RG_DEF_METHOD(initialize, 3);
931
937
  RG_DEF_METHOD(destroy, 0);
932
938
  RG_DEF_METHOD(window_type, 0);
939
+ RG_DEF_METHOD(display, 0);
933
940
  RG_DEF_SMETHOD(constrain_size, 4);
934
941
  RG_DEF_SMETHOD(process_all_updates, 0);
935
942
  RG_DEF_SMETHOD(set_debug_updates, 1);
data/lib/1.9/gdk3.so CHANGED
Binary file
data/lib/2.0/gdk3.so CHANGED
Binary file
data/lib/2.1/gdk3.so CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
- # Copyright (C) 2013 Ruby-GNOME2 Project Team
3
+ # Copyright (C) 2013-2014 Ruby-GNOME2 Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -17,11 +17,37 @@
17
17
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
 
19
19
  class TestGdkEvent < Test::Unit::TestCase
20
+ class TestConstant < self
21
+ def test_propagate
22
+ assert_false(Gdk::Event::PROPAGATE)
23
+ end
24
+
25
+ def test_stop
26
+ assert_true(Gdk::Event::STOP)
27
+ end
28
+ end
29
+
30
+ module TestAnyMethods
31
+ def test_window
32
+ assert_nil(event.window)
33
+ end
34
+
35
+ def test_send_event
36
+ assert_false(event.send_event?)
37
+ end
38
+ end
39
+
20
40
  class TestAny < self
41
+ include TestAnyMethods
42
+
21
43
  def setup
22
44
  @event = Gdk::EventAny.new(:delete)
23
45
  end
24
46
 
47
+ def event
48
+ @event
49
+ end
50
+
25
51
  def test_delete
26
52
  assert_equal("GDK_DELETE",
27
53
  Gdk::EventAny.new(:delete).event_type.name)
@@ -31,23 +57,19 @@ class TestGdkEvent < Test::Unit::TestCase
31
57
  assert_equal("GDK_DESTROY",
32
58
  Gdk::EventAny.new(:destroy).event_type.name)
33
59
  end
34
-
35
- def test_window
36
- assert_nothing_raised do
37
- @event.window
38
- end
39
- end
40
-
41
- def test_send_event
42
- assert_false(@event.send_event?)
43
- end
44
60
  end
45
61
 
46
62
  class TestKey < self
63
+ include TestAnyMethods
64
+
47
65
  def setup
48
66
  @key = Gdk::EventKey.new(:key_press)
49
67
  end
50
68
 
69
+ def event
70
+ @key
71
+ end
72
+
51
73
  def test_key_press
52
74
  assert_equal("GDK_KEY_PRESS",
53
75
  Gdk::EventKey.new(:key_press).event_type.name)
@@ -72,10 +94,16 @@ class TestGdkEvent < Test::Unit::TestCase
72
94
  end
73
95
 
74
96
  class TestButton < self
97
+ include TestAnyMethods
98
+
75
99
  def setup
76
100
  @button = Gdk::EventButton.new(:button_press)
77
101
  end
78
102
 
103
+ def event
104
+ @button
105
+ end
106
+
79
107
  def test_button_press
80
108
  assert_equal("GDK_BUTTON_PRESS",
81
109
  Gdk::EventButton.new(:button_press).event_type.name)
@@ -126,18 +154,14 @@ class TestGdkEvent < Test::Unit::TestCase
126
154
  end
127
155
 
128
156
  class TestTouch < self
157
+ include TestAnyMethods
158
+
129
159
  def setup
130
160
  @touch = Gdk::EventTouch.new(:touch_begin)
131
161
  end
132
162
 
133
- def test_window
134
- assert_nothing_raised do
135
- @touch.window
136
- end
137
- end
138
-
139
- def test_send_event
140
- assert_false(@touch.send_event?)
163
+ def event
164
+ @touch
141
165
  end
142
166
 
143
167
  def test_time
@@ -204,10 +228,16 @@ class TestGdkEvent < Test::Unit::TestCase
204
228
  end
205
229
 
206
230
  class TestScroll < self
231
+ include TestAnyMethods
232
+
207
233
  def setup
208
234
  @scroll = Gdk::EventScroll.new
209
235
  end
210
236
 
237
+ def event
238
+ @scroll
239
+ end
240
+
211
241
  def test_time
212
242
  assert_kind_of(Integer, @scroll.time)
213
243
  end
@@ -238,10 +268,16 @@ class TestGdkEvent < Test::Unit::TestCase
238
268
  end
239
269
 
240
270
  class TestMotion < self
271
+ include TestAnyMethods
272
+
241
273
  def setup
242
274
  @motion = Gdk::EventMotion.new
243
275
  end
244
276
 
277
+ def event
278
+ @motion
279
+ end
280
+
245
281
  def test_time
246
282
  assert_kind_of(Integer, @motion.time)
247
283
  end
@@ -274,20 +310,32 @@ class TestGdkEvent < Test::Unit::TestCase
274
310
  end
275
311
 
276
312
  class TestVisibility < self
313
+ include TestAnyMethods
314
+
277
315
  def setup
278
316
  @visibility = Gdk::EventVisibility.new(:visibility_notify)
279
317
  end
280
318
 
319
+ def event
320
+ @visibility
321
+ end
322
+
281
323
  def test_state
282
324
  assert_kind_of(Gdk::EventVisibility::State, @visibility.state)
283
325
  end
284
326
  end
285
327
 
286
328
  class TestCrossing < self
329
+ include TestAnyMethods
330
+
287
331
  def setup
288
332
  @crossing = Gdk::EventCrossing.new(:enter_notify)
289
333
  end
290
334
 
335
+ def event
336
+ @crossing
337
+ end
338
+
291
339
  def test_enter_notify
292
340
  assert_equal("GDK_ENTER_NOTIFY",
293
341
  Gdk::EventCrossing.new(:enter_notify).event_type.name)
@@ -334,20 +382,32 @@ class TestGdkEvent < Test::Unit::TestCase
334
382
  end
335
383
 
336
384
  class TestFocus < self
385
+ include TestAnyMethods
386
+
337
387
  def setup
338
388
  @focus = Gdk::EventFocus.new
339
389
  end
340
390
 
391
+ def event
392
+ @focus
393
+ end
394
+
341
395
  def test_in
342
396
  assert_false(@focus.in?)
343
397
  end
344
398
  end
345
399
 
346
400
  class TestConfigure < self
401
+ include TestAnyMethods
402
+
347
403
  def setup
348
404
  @configure = Gdk::EventConfigure.new
349
405
  end
350
406
 
407
+ def event
408
+ @configure
409
+ end
410
+
351
411
  def test_x
352
412
  assert_kind_of(Integer, @configure.x)
353
413
  end
@@ -366,10 +426,16 @@ class TestGdkEvent < Test::Unit::TestCase
366
426
  end
367
427
 
368
428
  class TestProperty < self
429
+ include TestAnyMethods
430
+
369
431
  def setup
370
432
  @property = Gdk::EventProperty.new
371
433
  end
372
434
 
435
+ def event
436
+ @property
437
+ end
438
+
373
439
  def test_atom
374
440
  assert_nothing_raised do
375
441
  @property.atom
@@ -381,15 +447,21 @@ class TestGdkEvent < Test::Unit::TestCase
381
447
  end
382
448
 
383
449
  def test_state
384
- assert_not_nil(Integer, @property.state)
450
+ assert_equal(Gdk::EventProperty::State::NEW_VALUE, @property.state)
385
451
  end
386
452
  end
387
453
 
388
454
  class TestSelection < self
455
+ include TestAnyMethods
456
+
389
457
  def setup
390
458
  @selection = Gdk::EventSelection.new(:selection_clear)
391
459
  end
392
460
 
461
+ def event
462
+ @selection
463
+ end
464
+
393
465
  def test_selection_clear
394
466
  assert_equal("GDK_SELECTION_CLEAR",
395
467
  Gdk::EventSelection.new(:selection_clear).event_type.name)
@@ -429,10 +501,16 @@ class TestGdkEvent < Test::Unit::TestCase
429
501
  end
430
502
 
431
503
  class TestDND < self
504
+ include TestAnyMethods
505
+
432
506
  def setup
433
507
  @dnd = Gdk::EventDND.new(:drag_enter)
434
508
  end
435
509
 
510
+ def event
511
+ @dnd
512
+ end
513
+
436
514
  def test_drag_enter
437
515
  assert_equal("GDK_DRAG_ENTER",
438
516
  Gdk::EventDND.new(:drag_enter).event_type.name)
@@ -483,10 +561,16 @@ class TestGdkEvent < Test::Unit::TestCase
483
561
  end
484
562
 
485
563
  class TestProximity < self
564
+ include TestAnyMethods
565
+
486
566
  def setup
487
567
  @proximity = Gdk::EventProximity.new(:proximity_in)
488
568
  end
489
569
 
570
+ def event
571
+ @proximity
572
+ end
573
+
490
574
  def test_proximity_in
491
575
  assert_equal("GDK_PROXIMITY_IN",
492
576
  Gdk::EventProximity.new(:proximity_in).event_type.name)
@@ -509,10 +593,16 @@ class TestGdkEvent < Test::Unit::TestCase
509
593
  end
510
594
 
511
595
  class TestWindowState < self
596
+ include TestAnyMethods
597
+
512
598
  def setup
513
599
  @window_state = Gdk::EventWindowState.new
514
600
  end
515
601
 
602
+ def event
603
+ @window_state
604
+ end
605
+
516
606
  def test_changed_mask
517
607
  assert_nothing_raised do
518
608
  @window_state.changed_mask
@@ -527,10 +617,16 @@ class TestGdkEvent < Test::Unit::TestCase
527
617
  end
528
618
 
529
619
  class TestSetting < self
620
+ include TestAnyMethods
621
+
530
622
  def setup
531
623
  @setting = Gdk::EventSetting.new
532
624
  end
533
625
 
626
+ def event
627
+ @setting
628
+ end
629
+
534
630
  def test_action
535
631
  assert_nothing_raised do
536
632
  @setting.action
@@ -549,6 +645,10 @@ class TestGdkEvent < Test::Unit::TestCase
549
645
  @owner_change = Gdk::EventOwnerChange.new
550
646
  end
551
647
 
648
+ def event
649
+ @owner_change
650
+ end
651
+
552
652
  def test_owner
553
653
  assert_nothing_raised do
554
654
  @owner_change.owner
@@ -577,10 +677,16 @@ class TestGdkEvent < Test::Unit::TestCase
577
677
  end
578
678
 
579
679
  class TestGrabBroken < self
680
+ include TestAnyMethods
681
+
580
682
  def setup
581
683
  @grab_broken = Gdk::EventGrabBroken.new
582
684
  end
583
685
 
686
+ def event
687
+ @grab_broken
688
+ end
689
+
584
690
  def test_keyboard
585
691
  assert_boolean(@grab_broken.keyboard?)
586
692
  end