gdk3 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (939) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +6 -2
  3. data/ext/gdk3/extconf.rb +4 -1
  4. data/ext/gdk3/gdk3.def +2 -2
  5. data/ext/gdk3/rbgdk.c +5 -51
  6. data/ext/gdk3/rbgdk3.h +6 -4
  7. data/ext/gdk3/rbgdk3conversions.h +5 -2
  8. data/ext/gdk3/rbgdk3private.h +1 -6
  9. data/ext/gdk3/rbgdkcairo.c +0 -4
  10. data/ext/gdk3/rbgdkdevice.c +60 -4
  11. data/ext/gdk3/rbgdkdevicemanager.c +39 -0
  12. data/ext/gdk3/rbgdkdisplay.c +8 -63
  13. data/ext/gdk3/rbgdkevent.c +644 -396
  14. data/ext/gdk3/rbgdkwindow.c +29 -32
  15. data/lib/1.9/gdk3.so +0 -0
  16. data/lib/2.0/gdk3.so +0 -0
  17. data/lib/gdk3/deprecated.rb +13 -1
  18. data/test/test-gdk-event.rb +598 -0
  19. data/test/test-gdk-rgba.rb +2 -2
  20. data/vendor/local/bin/gtk-launch.exe +0 -0
  21. data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
  22. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  23. data/vendor/local/bin/gtk3-demo-application.exe +0 -0
  24. data/vendor/local/bin/gtk3-demo.exe +0 -0
  25. data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
  26. data/vendor/local/bin/libgailutil-3-0.dll +0 -0
  27. data/vendor/local/bin/libgdk-3-0.dll +0 -0
  28. data/vendor/local/bin/libgtk-3-0.dll +0 -0
  29. data/vendor/local/include/gtk-3.0/gdk/gdkapplaunchcontext.h +6 -0
  30. data/vendor/local/include/gtk-3.0/gdk/gdkcairo.h +13 -0
  31. data/vendor/local/include/gtk-3.0/gdk/gdkcolor.h +8 -0
  32. data/vendor/local/include/gtk-3.0/gdk/gdkcursor.h +17 -0
  33. data/vendor/local/include/gtk-3.0/gdk/gdkdevice.h +40 -0
  34. data/vendor/local/include/gtk-3.0/gdk/gdkdevicemanager.h +4 -0
  35. data/vendor/local/include/gtk-3.0/gdk/gdkdisplay.h +35 -0
  36. data/vendor/local/include/gtk-3.0/gdk/gdkdisplaymanager.h +6 -0
  37. data/vendor/local/include/gtk-3.0/gdk/gdkdnd.h +22 -1
  38. data/vendor/local/include/gtk-3.0/gdk/gdkenumtypes.h +38 -37
  39. data/vendor/local/include/gtk-3.0/gdk/gdkevents.h +50 -9
  40. data/vendor/local/include/gtk-3.0/gdk/gdkframeclock.h +1 -0
  41. data/vendor/local/include/gtk-3.0/gdk/gdkkeys.h +22 -1
  42. data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms-compat.h +1 -0
  43. data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms.h +1 -0
  44. data/vendor/local/include/gtk-3.0/gdk/gdkmain.h +25 -9
  45. data/vendor/local/include/gtk-3.0/gdk/gdkpango.h +5 -0
  46. data/vendor/local/include/gtk-3.0/gdk/gdkpixbuf.h +4 -1
  47. data/vendor/local/include/gtk-3.0/gdk/gdkprivate.h +4 -0
  48. data/vendor/local/include/gtk-3.0/gdk/gdkproperty.h +9 -0
  49. data/vendor/local/include/gtk-3.0/gdk/gdkrectangle.h +4 -0
  50. data/vendor/local/include/gtk-3.0/gdk/gdkrgba.h +8 -0
  51. data/vendor/local/include/gtk-3.0/gdk/gdkscreen.h +33 -0
  52. data/vendor/local/include/gtk-3.0/gdk/gdkselection.h +9 -0
  53. data/vendor/local/include/gtk-3.0/gdk/gdktestutils.h +3 -0
  54. data/vendor/local/include/gtk-3.0/gdk/gdkthreads.h +8 -1
  55. data/vendor/local/include/gtk-3.0/gdk/gdktypes.h +2 -2
  56. data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +53 -23
  57. data/vendor/local/include/gtk-3.0/gdk/gdkvisual.h +21 -0
  58. data/vendor/local/include/gtk-3.0/gdk/gdkwin32.h +1 -65
  59. data/vendor/local/include/gtk-3.0/gdk/gdkwindow.h +182 -0
  60. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32cursor.h +1 -0
  61. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32display.h +1 -0
  62. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32displaymanager.h +1 -0
  63. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32dnd.h +1 -0
  64. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32keys.h +1 -0
  65. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32misc.h +113 -0
  66. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32screen.h +1 -0
  67. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32window.h +1 -0
  68. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkarrowaccessible.h +1 -0
  69. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbooleancellaccessible.h +1 -0
  70. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbuttonaccessible.h +1 -0
  71. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessible.h +1 -0
  72. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessibleparent.h +9 -0
  73. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcheckmenuitemaccessible.h +1 -0
  74. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcomboboxaccessible.h +1 -0
  75. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontaineraccessible.h +1 -0
  76. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontainercellaccessible.h +5 -0
  77. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkentryaccessible.h +4 -0
  78. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkexpanderaccessible.h +1 -0
  79. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkframeaccessible.h +1 -0
  80. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkiconviewaccessible.h +1 -0
  81. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimageaccessible.h +1 -0
  82. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimagecellaccessible.h +1 -0
  83. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklabelaccessible.h +1 -0
  84. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklevelbaraccessible.h +1 -0
  85. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklinkbuttonaccessible.h +1 -0
  86. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxaccessible.h +58 -0
  87. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxrowaccessible.h +55 -0
  88. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklockbuttonaccessible.h +1 -0
  89. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuaccessible.h +1 -0
  90. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuitemaccessible.h +1 -0
  91. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenushellaccessible.h +1 -0
  92. data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookaccessible.h +1 -0
  93. data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookpageaccessible.h +3 -0
  94. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkpanedaccessible.h +1 -0
  95. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkprogressbaraccessible.h +1 -0
  96. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiobuttonaccessible.h +1 -0
  97. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiomenuitemaccessible.h +1 -0
  98. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrangeaccessible.h +1 -0
  99. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrenderercellaccessible.h +2 -0
  100. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscaleaccessible.h +1 -0
  101. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscalebuttonaccessible.h +1 -0
  102. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscrolledwindowaccessible.h +1 -0
  103. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinbuttonaccessible.h +1 -0
  104. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinneraccessible.h +1 -0
  105. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkstatusbaraccessible.h +1 -0
  106. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkswitchaccessible.h +1 -0
  107. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextcellaccessible.h +1 -0
  108. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextviewaccessible.h +1 -0
  109. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktogglebuttonaccessible.h +1 -0
  110. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktoplevelaccessible.h +2 -0
  111. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktreeviewaccessible.h +1 -0
  112. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwidgetaccessible.h +1 -0
  113. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwindowaccessible.h +1 -0
  114. data/vendor/local/include/gtk-3.0/gtk/{gtkaction.h → deprecated/gtkaction.h} +43 -1
  115. data/vendor/local/include/gtk-3.0/gtk/{gtkactiongroup.h → deprecated/gtkactiongroup.h} +31 -4
  116. data/vendor/local/include/gtk-3.0/gtk/{gtkactivatable.h → deprecated/gtkactivatable.h} +10 -1
  117. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h +2 -0
  118. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h +1 -0
  119. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkfontsel.h +2 -1
  120. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkgradient.h +1 -0
  121. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h +1 -0
  122. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbbox.h +1 -0
  123. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbox.h +1 -0
  124. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhpaned.h +1 -0
  125. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscale.h +1 -0
  126. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h +1 -0
  127. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhseparator.h +1 -0
  128. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhsv.h +1 -0
  129. data/vendor/local/include/gtk-3.0/gtk/{gtkiconfactory.h → deprecated/gtkiconfactory.h} +43 -0
  130. data/vendor/local/include/gtk-3.0/gtk/{gtkimagemenuitem.h → deprecated/gtkimagemenuitem.h} +12 -1
  131. data/vendor/local/include/gtk-3.0/gtk/{gtkradioaction.h → deprecated/gtkradioaction.h} +8 -1
  132. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkrc.h +1 -0
  133. data/vendor/local/include/gtk-3.0/gtk/{gtkrecentaction.h → deprecated/gtkrecentaction.h} +6 -1
  134. data/vendor/local/include/gtk-3.0/gtk/{gtkstock.h → deprecated/gtkstock.h} +333 -106
  135. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkstyle.h +20 -0
  136. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtksymboliccolor.h +1 -0
  137. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktable.h +1 -0
  138. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h +1 -0
  139. data/vendor/local/include/gtk-3.0/gtk/{gtktoggleaction.h → deprecated/gtktoggleaction.h} +8 -1
  140. data/vendor/local/include/gtk-3.0/gtk/{gtkuimanager.h → deprecated/gtkuimanager.h} +21 -2
  141. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbbox.h +1 -0
  142. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbox.h +1 -0
  143. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvpaned.h +1 -0
  144. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscale.h +1 -0
  145. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h +1 -0
  146. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvseparator.h +1 -0
  147. data/vendor/local/include/gtk-3.0/gtk/gtk-a11y.h +2 -0
  148. data/vendor/local/include/gtk-3.0/gtk/gtk.h +17 -10
  149. data/vendor/local/include/gtk-3.0/gtk/gtkaboutdialog.h +33 -0
  150. data/vendor/local/include/gtk-3.0/gtk/gtkaccelgroup.h +22 -0
  151. data/vendor/local/include/gtk-3.0/gtk/gtkaccellabel.h +7 -0
  152. data/vendor/local/include/gtk-3.0/gtk/gtkaccelmap.h +15 -0
  153. data/vendor/local/include/gtk-3.0/gtk/gtkaccessible.h +3 -0
  154. data/vendor/local/include/gtk-3.0/gtk/gtkadjustment.h +18 -0
  155. data/vendor/local/include/gtk-3.0/gtk/gtkalignment.h +5 -0
  156. data/vendor/local/include/gtk-3.0/gtk/gtkappchooser.h +5 -0
  157. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserbutton.h +9 -0
  158. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserdialog.h +6 -0
  159. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserwidget.h +14 -0
  160. data/vendor/local/include/gtk-3.0/gtk/gtkapplication.h +5 -0
  161. data/vendor/local/include/gtk-3.0/gtk/gtkarrow.h +3 -0
  162. data/vendor/local/include/gtk-3.0/gtk/gtkaspectframe.h +3 -0
  163. data/vendor/local/include/gtk-3.0/gtk/gtkassistant.h +22 -0
  164. data/vendor/local/include/gtk-3.0/gtk/gtkbbox.h +6 -0
  165. data/vendor/local/include/gtk-3.0/gtk/gtkbin.h +2 -0
  166. data/vendor/local/include/gtk-3.0/gtk/gtkbindings.h +11 -0
  167. data/vendor/local/include/gtk-3.0/gtk/gtkborder.h +5 -0
  168. data/vendor/local/include/gtk-3.0/gtk/gtkbox.h +16 -0
  169. data/vendor/local/include/gtk-3.0/gtk/gtkbuildable.h +11 -0
  170. data/vendor/local/include/gtk-3.0/gtk/gtkbuilder.h +43 -10
  171. data/vendor/local/include/gtk-3.0/gtk/gtkbutton.h +26 -0
  172. data/vendor/local/include/gtk-3.0/gtk/gtkcalendar.h +16 -0
  173. data/vendor/local/include/gtk-3.0/gtk/gtkcellarea.h +47 -0
  174. data/vendor/local/include/gtk-3.0/gtk/gtkcellareabox.h +6 -0
  175. data/vendor/local/include/gtk-3.0/gtk/gtkcellareacontext.h +11 -0
  176. data/vendor/local/include/gtk-3.0/gtk/gtkcelleditable.h +4 -0
  177. data/vendor/local/include/gtk-3.0/gtk/gtkcelllayout.h +11 -0
  178. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderer.h +25 -0
  179. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendereraccel.h +2 -0
  180. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderercombo.h +2 -0
  181. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h +2 -0
  182. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererprogress.h +2 -0
  183. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspin.h +2 -0
  184. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspinner.h +2 -0
  185. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertext.h +3 -0
  186. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertoggle.h +8 -0
  187. data/vendor/local/include/gtk-3.0/gtk/gtkcellview.h +15 -0
  188. data/vendor/local/include/gtk-3.0/gtk/gtkcheckbutton.h +4 -0
  189. data/vendor/local/include/gtk-3.0/gtk/gtkcheckmenuitem.h +11 -0
  190. data/vendor/local/include/gtk-3.0/gtk/gtkclipboard.h +29 -0
  191. data/vendor/local/include/gtk-3.0/gtk/gtkcolorbutton.h +5 -0
  192. data/vendor/local/include/gtk-3.0/gtk/gtkcolorutils.h +3 -0
  193. data/vendor/local/include/gtk-3.0/gtk/gtkcombobox.h +42 -0
  194. data/vendor/local/include/gtk-3.0/gtk/gtkcomboboxtext.h +12 -0
  195. data/vendor/local/include/gtk-3.0/gtk/gtkcontainer.h +36 -0
  196. data/vendor/local/include/gtk-3.0/gtk/gtkcssprovider.h +8 -0
  197. data/vendor/local/include/gtk-3.0/gtk/gtkdebug.h +7 -1
  198. data/vendor/local/include/gtk-3.0/gtk/gtkdialog.h +17 -0
  199. data/vendor/local/include/gtk-3.0/gtk/gtkdnd.h +43 -0
  200. data/vendor/local/include/gtk-3.0/gtk/gtkdrawingarea.h +2 -0
  201. data/vendor/local/include/gtk-3.0/gtk/gtkeditable.h +14 -0
  202. data/vendor/local/include/gtk-3.0/gtk/gtkentry.h +69 -0
  203. data/vendor/local/include/gtk-3.0/gtk/gtkentrybuffer.h +13 -0
  204. data/vendor/local/include/gtk-3.0/gtk/gtkentrycompletion.h +28 -0
  205. data/vendor/local/include/gtk-3.0/gtk/gtkenums.h +29 -1
  206. data/vendor/local/include/gtk-3.0/gtk/gtkeventbox.h +6 -0
  207. data/vendor/local/include/gtk-3.0/gtk/gtkexpander.h +17 -0
  208. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooser.h +64 -2
  209. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserbutton.h +9 -0
  210. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserdialog.h +2 -0
  211. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserwidget.h +2 -0
  212. data/vendor/local/include/gtk-3.0/gtk/gtkfilefilter.h +11 -0
  213. data/vendor/local/include/gtk-3.0/gtk/gtkfixed.h +4 -0
  214. data/vendor/local/include/gtk-3.0/gtk/gtkfontbutton.h +15 -0
  215. data/vendor/local/include/gtk-3.0/gtk/gtkframe.h +10 -0
  216. data/vendor/local/include/gtk-3.0/gtk/gtkgrid.h +30 -0
  217. data/vendor/local/include/gtk-3.0/gtk/gtkheaderbar.h +95 -0
  218. data/vendor/local/include/gtk-3.0/gtk/gtkicontheme.h +76 -2
  219. data/vendor/local/include/gtk-3.0/gtk/gtkiconview.h +62 -0
  220. data/vendor/local/include/gtk-3.0/gtk/gtkimage.h +37 -1
  221. data/vendor/local/include/gtk-3.0/gtk/gtkimcontext.h +12 -0
  222. data/vendor/local/include/gtk-3.0/gtk/gtkimcontextsimple.h +3 -0
  223. data/vendor/local/include/gtk-3.0/gtk/gtkimmulticontext.h +5 -0
  224. data/vendor/local/include/gtk-3.0/gtk/gtkinfobar.h +19 -0
  225. data/vendor/local/include/gtk-3.0/gtk/gtkinvisible.h +5 -0
  226. data/vendor/local/include/gtk-3.0/gtk/gtklabel.h +50 -0
  227. data/vendor/local/include/gtk-3.0/gtk/gtklayout.h +7 -0
  228. data/vendor/local/include/gtk-3.0/gtk/gtklinkbutton.h +7 -0
  229. data/vendor/local/include/gtk-3.0/gtk/gtklistbox.h +232 -0
  230. data/vendor/local/include/gtk-3.0/gtk/gtkliststore.h +23 -0
  231. data/vendor/local/include/gtk-3.0/gtk/gtkmain.h +35 -0
  232. data/vendor/local/include/gtk-3.0/gtk/gtkmenu.h +28 -1
  233. data/vendor/local/include/gtk-3.0/gtk/gtkmenubar.h +6 -0
  234. data/vendor/local/include/gtk-3.0/gtk/gtkmenuitem.h +19 -0
  235. data/vendor/local/include/gtk-3.0/gtk/gtkmenushell.h +14 -0
  236. data/vendor/local/include/gtk-3.0/gtk/gtkmenutoolbutton.h +7 -0
  237. data/vendor/local/include/gtk-3.0/gtk/gtkmessagedialog.h +9 -0
  238. data/vendor/local/include/gtk-3.0/gtk/gtkmisc.h +5 -1
  239. data/vendor/local/include/gtk-3.0/gtk/gtkmountoperation.h +7 -0
  240. data/vendor/local/include/gtk-3.0/gtk/gtknotebook.h +45 -0
  241. data/vendor/local/include/gtk-3.0/gtk/gtknumerableicon.h +13 -0
  242. data/vendor/local/include/gtk-3.0/gtk/gtkoffscreenwindow.h +4 -0
  243. data/vendor/local/include/gtk-3.0/gtk/gtkorientable.h +3 -0
  244. data/vendor/local/include/gtk-3.0/gtk/gtkpagesetup.h +26 -0
  245. data/vendor/local/include/gtk-3.0/gtk/gtkpaned.h +11 -0
  246. data/vendor/local/include/gtk-3.0/gtk/gtkpapersize.h +24 -1
  247. data/vendor/local/include/gtk-3.0/gtk/gtkplacessidebar.h +125 -0
  248. data/vendor/local/include/gtk-3.0/gtk/gtkplug.h +8 -0
  249. data/vendor/local/include/gtk-3.0/gtk/gtkprintcontext.h +12 -0
  250. data/vendor/local/include/gtk-3.0/gtk/gtkprintoperation.h +34 -0
  251. data/vendor/local/include/gtk-3.0/gtk/gtkprintoperationpreview.h +4 -0
  252. data/vendor/local/include/gtk-3.0/gtk/gtkprintsettings.h +94 -0
  253. data/vendor/local/include/gtk-3.0/gtk/gtkprogressbar.h +15 -0
  254. data/vendor/local/include/gtk-3.0/gtk/gtkradiobutton.h +10 -0
  255. data/vendor/local/include/gtk-3.0/gtk/gtkradiomenuitem.h +9 -0
  256. data/vendor/local/include/gtk-3.0/gtk/gtkradiotoolbutton.h +7 -0
  257. data/vendor/local/include/gtk-3.0/gtk/gtkrange.h +29 -0
  258. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooser.h +33 -0
  259. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserdialog.h +3 -0
  260. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchoosermenu.h +5 -0
  261. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserwidget.h +3 -0
  262. data/vendor/local/include/gtk-3.0/gtk/gtkrecentfilter.h +14 -0
  263. data/vendor/local/include/gtk-3.0/gtk/gtkrecentmanager.h +38 -0
  264. data/vendor/local/include/gtk-3.0/gtk/gtkrevealer.h +82 -0
  265. data/vendor/local/include/gtk-3.0/gtk/gtkscale.h +13 -0
  266. data/vendor/local/include/gtk-3.0/gtk/gtkscalebutton.h +10 -0
  267. data/vendor/local/include/gtk-3.0/gtk/gtkscrollable.h +10 -0
  268. data/vendor/local/include/gtk-3.0/gtk/gtkscrollbar.h +2 -0
  269. data/vendor/local/include/gtk-3.0/gtk/gtkscrolledwindow.h +19 -0
  270. data/vendor/local/include/gtk-3.0/gtk/gtksearchbar.h +95 -0
  271. data/vendor/local/include/gtk-3.0/gtk/gtksearchentry.h +2 -1
  272. data/vendor/local/include/gtk-3.0/gtk/gtkselection.h +52 -0
  273. data/vendor/local/include/gtk-3.0/gtk/gtkseparator.h +2 -0
  274. data/vendor/local/include/gtk-3.0/gtk/gtkseparatormenuitem.h +2 -0
  275. data/vendor/local/include/gtk-3.0/gtk/gtkseparatortoolitem.h +4 -0
  276. data/vendor/local/include/gtk-3.0/gtk/gtksettings.h +14 -0
  277. data/vendor/local/include/gtk-3.0/gtk/gtkshow.h +1 -0
  278. data/vendor/local/include/gtk-3.0/gtk/gtksizegroup.h +9 -0
  279. data/vendor/local/include/gtk-3.0/gtk/gtksizerequest.h +1 -0
  280. data/vendor/local/include/gtk-3.0/gtk/gtksocket.h +5 -0
  281. data/vendor/local/include/gtk-3.0/gtk/gtkspinbutton.h +25 -0
  282. data/vendor/local/include/gtk-3.0/gtk/gtkspinner.h +4 -0
  283. data/vendor/local/include/gtk-3.0/gtk/gtkstack.h +105 -0
  284. data/vendor/local/include/gtk-3.0/gtk/gtkstackswitcher.h +65 -0
  285. data/vendor/local/include/gtk-3.0/gtk/gtkstatusbar.h +8 -0
  286. data/vendor/local/include/gtk-3.0/gtk/gtkstatusicon.h +35 -0
  287. data/vendor/local/include/gtk-3.0/gtk/gtkstylecontext.h +122 -2
  288. data/vendor/local/include/gtk-3.0/gtk/gtkstyleproperties.h +11 -0
  289. data/vendor/local/include/gtk-3.0/gtk/gtkstyleprovider.h +3 -1
  290. data/vendor/local/include/gtk-3.0/gtk/gtkswitch.h +4 -0
  291. data/vendor/local/include/gtk-3.0/gtk/gtktestutils.h +18 -0
  292. data/vendor/local/include/gtk-3.0/gtk/gtktextattributes.h +16 -8
  293. data/vendor/local/include/gtk-3.0/gtk/gtktextbuffer.h +62 -0
  294. data/vendor/local/include/gtk-3.0/gtk/gtktextbufferrichtext.h +12 -0
  295. data/vendor/local/include/gtk-3.0/gtk/gtktextchild.h +4 -0
  296. data/vendor/local/include/gtk-3.0/gtk/gtktextdisplay.h +1 -0
  297. data/vendor/local/include/gtk-3.0/gtk/gtktextiter.h +106 -0
  298. data/vendor/local/include/gtk-3.0/gtk/gtktextlayout.h +48 -4
  299. data/vendor/local/include/gtk-3.0/gtk/gtktextmark.h +8 -0
  300. data/vendor/local/include/gtk-3.0/gtk/gtktexttag.h +5 -0
  301. data/vendor/local/include/gtk-3.0/gtk/gtktexttagtable.h +7 -0
  302. data/vendor/local/include/gtk-3.0/gtk/gtktextview.h +61 -0
  303. data/vendor/local/include/gtk-3.0/gtk/gtkthemingengine.h +28 -1
  304. data/vendor/local/include/gtk-3.0/gtk/gtktogglebutton.h +11 -0
  305. data/vendor/local/include/gtk-3.0/gtk/gtktoggletoolbutton.h +5 -0
  306. data/vendor/local/include/gtk-3.0/gtk/gtktoolbar.h +17 -0
  307. data/vendor/local/include/gtk-3.0/gtk/gtktoolbutton.h +15 -0
  308. data/vendor/local/include/gtk-3.0/gtk/gtktoolitem.h +30 -0
  309. data/vendor/local/include/gtk-3.0/gtk/gtktoolitemgroup.h +18 -0
  310. data/vendor/local/include/gtk-3.0/gtk/gtktoolpalette.h +21 -0
  311. data/vendor/local/include/gtk-3.0/gtk/gtktoolshell.h +10 -0
  312. data/vendor/local/include/gtk-3.0/gtk/gtktooltip.h +10 -0
  313. data/vendor/local/include/gtk-3.0/gtk/gtktreednd.h +9 -0
  314. data/vendor/local/include/gtk-3.0/gtk/gtktreemodel.h +68 -0
  315. data/vendor/local/include/gtk-3.0/gtk/gtktreemodelfilter.h +12 -0
  316. data/vendor/local/include/gtk-3.0/gtk/gtktreemodelsort.h +10 -0
  317. data/vendor/local/include/gtk-3.0/gtk/gtktreeselection.h +21 -0
  318. data/vendor/local/include/gtk-3.0/gtk/gtktreesortable.h +7 -0
  319. data/vendor/local/include/gtk-3.0/gtk/gtktreestore.h +24 -0
  320. data/vendor/local/include/gtk-3.0/gtk/gtktreeview.h +94 -0
  321. data/vendor/local/include/gtk-3.0/gtk/gtktreeviewcolumn.h +53 -0
  322. data/vendor/local/include/gtk-3.0/gtk/gtktypebuiltins.h +123 -108
  323. data/vendor/local/include/gtk-3.0/gtk/gtktypes.h +9 -0
  324. data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +4 -4
  325. data/vendor/local/include/gtk-3.0/gtk/gtkviewport.h +6 -0
  326. data/vendor/local/include/gtk-3.0/gtk/gtkvolumebutton.h +2 -0
  327. data/vendor/local/include/gtk-3.0/gtk/gtkwidget.h +365 -4
  328. data/vendor/local/include/gtk-3.0/gtk/gtkwidgetpath.h +30 -0
  329. data/vendor/local/include/gtk-3.0/gtk/gtkwindow.h +119 -0
  330. data/vendor/local/lib/girepository-1.0/Gdk-3.0.typelib +0 -0
  331. data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
  332. data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -1
  333. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll +0 -0
  334. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll.a +0 -0
  335. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.la +2 -2
  336. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll +0 -0
  337. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll.a +0 -0
  338. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.la +2 -2
  339. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll +0 -0
  340. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll.a +0 -0
  341. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la +2 -2
  342. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll +0 -0
  343. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll.a +0 -0
  344. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.la +2 -2
  345. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll +0 -0
  346. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll.a +0 -0
  347. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.la +2 -2
  348. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll +0 -0
  349. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll.a +0 -0
  350. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.la +2 -2
  351. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll +0 -0
  352. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll.a +0 -0
  353. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.la +2 -2
  354. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll +0 -0
  355. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll.a +0 -0
  356. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.la +2 -2
  357. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll +0 -0
  358. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll.a +0 -0
  359. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.la +2 -2
  360. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll +0 -0
  361. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll.a +0 -0
  362. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.la +2 -2
  363. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll +0 -0
  364. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll.a +0 -0
  365. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.la +2 -2
  366. data/vendor/local/lib/libgailutil-3.dll.a +0 -0
  367. data/vendor/local/lib/libgailutil-3.la +2 -2
  368. data/vendor/local/lib/libgdk-3.dll.a +0 -0
  369. data/vendor/local/lib/libgdk-3.la +5 -5
  370. data/vendor/local/lib/libgtk-3.dll.a +0 -0
  371. data/vendor/local/lib/libgtk-3.la +5 -5
  372. data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
  373. data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
  374. data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
  375. data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
  376. data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
  377. data/vendor/local/share/gir-1.0/Gdk-3.0.gir +2639 -2145
  378. data/vendor/local/share/gir-1.0/Gtk-3.0.gir +21620 -16038
  379. data/vendor/local/share/glib-2.0/schemas/gschemas.compiled +0 -0
  380. data/vendor/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml +8 -0
  381. data/vendor/local/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml +25 -0
  382. data/vendor/local/share/gtk-3.0/gtkbuilder.rng +19 -0
  383. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +43 -46
  384. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +17 -20
  385. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/home.png +0 -0
  386. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +4 -4
  387. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left-insensitive.png +0 -0
  388. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left.png +0 -0
  389. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/libgail-util-main.html +9 -9
  390. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right-insensitive.png +0 -0
  391. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right.png +0 -0
  392. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/style.css +71 -16
  393. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up-insensitive.png +0 -0
  394. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up.png +0 -0
  395. data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +114 -18
  396. data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +14 -17
  397. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +26 -25
  398. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplayManager.html +14 -16
  399. data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +58 -22
  400. data/vendor/local/share/gtk-doc/html/gdk3/annotation-glossary.html +39 -51
  401. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-0.html +27 -26
  402. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-10.html +148 -0
  403. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-2.html +13 -16
  404. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-4.html +23 -26
  405. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-6.html +10 -13
  406. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-8.html +41 -17
  407. data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +36 -28
  408. data/vendor/local/share/gtk-doc/html/gdk3/api-index-full.html +187 -58
  409. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Application-launching.html +16 -19
  410. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +159 -54
  411. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Colors.html +12 -15
  412. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +119 -17
  413. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Drag-and-Drop.html +13 -16
  414. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +33 -26
  415. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +70 -17
  416. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameClock.html +12 -15
  417. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameTimings.html +12 -15
  418. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +93 -30
  419. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +18 -21
  420. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +59 -62
  421. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +15 -18
  422. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +15 -18
  423. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Properties-and-Atoms.html +13 -16
  424. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-RGBA-Colors.html +13 -16
  425. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +13 -16
  426. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Testing.html +14 -17
  427. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +40 -43
  428. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Visuals.html +12 -15
  429. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Wayland-Interaction.html +425 -0
  430. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +363 -106
  431. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-X-Window-System-Interaction.html +264 -17
  432. data/vendor/local/share/gtk-doc/html/gdk3/gdk3.devhelp2 +38 -2
  433. data/vendor/local/share/gtk-doc/html/gdk3/home.png +0 -0
  434. data/vendor/local/share/gtk-doc/html/gdk3/index.html +8 -4
  435. data/vendor/local/share/gtk-doc/html/gdk3/index.sgml +44 -6
  436. data/vendor/local/share/gtk-doc/html/gdk3/left-insensitive.png +0 -0
  437. data/vendor/local/share/gtk-doc/html/gdk3/left.png +0 -0
  438. data/vendor/local/share/gtk-doc/html/gdk3/reference.html +12 -9
  439. data/vendor/local/share/gtk-doc/html/gdk3/right-insensitive.png +0 -0
  440. data/vendor/local/share/gtk-doc/html/gdk3/right.png +0 -0
  441. data/vendor/local/share/gtk-doc/html/gdk3/style.css +71 -16
  442. data/vendor/local/share/gtk-doc/html/gdk3/up-insensitive.png +0 -0
  443. data/vendor/local/share/gtk-doc/html/gdk3/up.png +0 -0
  444. data/vendor/local/share/gtk-doc/html/gtk3/AbstractObjects.html +10 -10
  445. data/vendor/local/share/gtk-doc/html/gtk3/Application.html +11 -11
  446. data/vendor/local/share/gtk-doc/html/gtk3/ApplicationChoosing.html +10 -10
  447. data/vendor/local/share/gtk-doc/html/gtk3/Builder.html +14 -14
  448. data/vendor/local/share/gtk-doc/html/gtk3/ButtonWidgets.html +16 -16
  449. data/vendor/local/share/gtk-doc/html/gtk3/DeprecatedObjects.html +38 -11
  450. data/vendor/local/share/gtk-doc/html/gtk3/DisplayWidgets.html +19 -19
  451. data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +15 -22
  452. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +15 -18
  453. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccessible.html +14 -17
  454. data/vendor/local/share/gtk-doc/html/gtk3/GtkAction.html +347 -29
  455. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionGroup.html +158 -21
  456. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +13 -16
  457. data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +58 -25
  458. data/vendor/local/share/gtk-doc/html/gtk3/GtkAdjustment.html +12 -15
  459. data/vendor/local/share/gtk-doc/html/gtk3/GtkAlignment.html +15 -18
  460. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +12 -15
  461. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserButton.html +12 -15
  462. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserDialog.html +12 -15
  463. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserWidget.html +13 -16
  464. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplication.html +82 -23
  465. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplicationWindow.html +14 -17
  466. data/vendor/local/share/gtk-doc/html/gtk3/GtkArrow.html +13 -16
  467. data/vendor/local/share/gtk-doc/html/gtk3/GtkAspectFrame.html +16 -18
  468. data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +19 -22
  469. data/vendor/local/share/gtk-doc/html/gtk3/GtkBin.html +15 -15
  470. data/vendor/local/share/gtk-doc/html/gtk3/GtkBox.html +91 -19
  471. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +16 -19
  472. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +341 -39
  473. data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +82 -27
  474. data/vendor/local/share/gtk-doc/html/gtk3/GtkButtonBox.html +14 -17
  475. data/vendor/local/share/gtk-doc/html/gtk3/GtkCalendar.html +12 -15
  476. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +22 -24
  477. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaBox.html +12 -15
  478. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaContext.html +16 -19
  479. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +12 -15
  480. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +15 -18
  481. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +20 -23
  482. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +12 -15
  483. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererCombo.html +13 -16
  484. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +25 -17
  485. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererProgress.html +13 -16
  486. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpin.html +12 -15
  487. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpinner.html +12 -15
  488. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +36 -39
  489. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererToggle.html +12 -15
  490. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +15 -18
  491. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckButton.html +12 -15
  492. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckMenuItem.html +12 -15
  493. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +22 -25
  494. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +12 -15
  495. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserDialog.html +12 -15
  496. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserWidget.html +12 -15
  497. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +17 -20
  498. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelectionDialog.html +13 -16
  499. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +43 -20
  500. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBoxText.html +14 -17
  501. data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +40 -21
  502. data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +42 -46
  503. data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +30 -34
  504. data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +15 -18
  505. data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +14 -17
  506. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +121 -41
  507. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryBuffer.html +12 -15
  508. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryCompletion.html +13 -16
  509. data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +13 -16
  510. data/vendor/local/share/gtk-doc/html/gtk3/GtkExpander.html +14 -17
  511. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +67 -34
  512. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserButton.html +16 -19
  513. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserDialog.html +21 -24
  514. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserWidget.html +12 -15
  515. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileFilter.html +13 -16
  516. data/vendor/local/share/gtk-doc/html/gtk3/GtkFixed.html +14 -17
  517. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +14 -17
  518. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +37 -40
  519. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserDialog.html +13 -16
  520. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserWidget.html +12 -15
  521. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +34 -37
  522. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +22 -25
  523. data/vendor/local/share/gtk-doc/html/gtk3/GtkFrame.html +15 -17
  524. data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +229 -17
  525. data/vendor/local/share/gtk-doc/html/gtk3/GtkHBox.html +17 -20
  526. data/vendor/local/share/gtk-doc/html/gtk3/GtkHButtonBox.html +13 -16
  527. data/vendor/local/share/gtk-doc/html/gtk3/GtkHPaned.html +13 -16
  528. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSV.html +12 -15
  529. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScale.html +14 -17
  530. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScrollbar.html +13 -16
  531. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSeparator.html +14 -17
  532. data/vendor/local/share/gtk-doc/html/gtk3/GtkHandleBox.html +23 -26
  533. data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +503 -0
  534. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +15 -20
  535. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContextSimple.html +12 -15
  536. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMMulticontext.html +19 -15
  537. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +451 -20
  538. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +25 -27
  539. data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +64 -21
  540. data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +80 -22
  541. data/vendor/local/share/gtk-doc/html/gtk3/GtkInfoBar.html +102 -46
  542. data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +14 -17
  543. data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +146 -72
  544. data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +16 -19
  545. data/vendor/local/share/gtk-doc/html/gtk3/GtkLevelBar.html +15 -18
  546. data/vendor/local/share/gtk-doc/html/gtk3/GtkLinkButton.html +13 -16
  547. data/vendor/local/share/gtk-doc/html/gtk3/GtkListBox.html +1251 -0
  548. data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +17 -20
  549. data/vendor/local/share/gtk-doc/html/gtk3/GtkLockButton.html +15 -18
  550. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +60 -26
  551. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuBar.html +13 -16
  552. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuButton.html +14 -17
  553. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuItem.html +50 -25
  554. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +51 -15
  555. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuToolButton.html +20 -22
  556. data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +23 -26
  557. data/vendor/local/share/gtk-doc/html/gtk3/GtkMisc.html +13 -16
  558. data/vendor/local/share/gtk-doc/html/gtk3/GtkNotebook.html +17 -20
  559. data/vendor/local/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +15 -18
  560. data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +19 -22
  561. data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +14 -17
  562. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetup.html +13 -16
  563. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +12 -15
  564. data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +14 -17
  565. data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +13 -16
  566. data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +983 -0
  567. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +50 -53
  568. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +14 -17
  569. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintSettings.html +12 -15
  570. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +14 -17
  571. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrinter.html +12 -15
  572. data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +24 -27
  573. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioAction.html +53 -16
  574. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioButton.html +13 -16
  575. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioMenuItem.html +14 -17
  576. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioToolButton.html +22 -20
  577. data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +13 -16
  578. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentAction.html +36 -17
  579. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +18 -23
  580. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserDialog.html +15 -18
  581. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserMenu.html +12 -15
  582. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserWidget.html +12 -15
  583. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentFilter.html +13 -16
  584. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +19 -22
  585. data/vendor/local/share/gtk-doc/html/gtk3/GtkRevealer.html +437 -0
  586. data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +21 -24
  587. data/vendor/local/share/gtk-doc/html/gtk3/GtkScaleButton.html +13 -16
  588. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +13 -16
  589. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollbar.html +13 -16
  590. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +25 -24
  591. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +514 -0
  592. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +57 -16
  593. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparator.html +12 -15
  594. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorMenuItem.html +12 -15
  595. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorToolItem.html +12 -15
  596. data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +191 -47
  597. data/vendor/local/share/gtk-doc/html/gtk3/GtkSizeGroup.html +13 -16
  598. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +14 -17
  599. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinner.html +14 -17
  600. data/vendor/local/share/gtk-doc/html/gtk3/GtkStack.html +708 -0
  601. data/vendor/local/share/gtk-doc/html/gtk3/GtkStackSwitcher.html +195 -0
  602. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +32 -19
  603. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusbar.html +14 -17
  604. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +108 -111
  605. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +230 -108
  606. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +15 -18
  607. data/vendor/local/share/gtk-doc/html/gtk3/GtkSwitch.html +14 -17
  608. data/vendor/local/share/gtk-doc/html/gtk3/GtkTable.html +28 -31
  609. data/vendor/local/share/gtk-doc/html/gtk3/GtkTearoffMenuItem.html +14 -17
  610. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +42 -34
  611. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +67 -45
  612. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextMark.html +14 -17
  613. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +84 -133
  614. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTagTable.html +17 -19
  615. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +76 -33
  616. data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +32 -26
  617. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleAction.html +49 -16
  618. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleButton.html +13 -16
  619. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleToolButton.html +17 -17
  620. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolButton.html +29 -18
  621. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +15 -18
  622. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +20 -23
  623. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +20 -22
  624. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +14 -17
  625. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolbar.html +15 -18
  626. data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +19 -18
  627. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +17 -20
  628. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelFilter.html +12 -15
  629. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelSort.html +15 -18
  630. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSelection.html +12 -15
  631. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +12 -15
  632. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +13 -16
  633. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +23 -26
  634. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +16 -19
  635. data/vendor/local/share/gtk-doc/html/gtk3/GtkUIManager.html +114 -25
  636. data/vendor/local/share/gtk-doc/html/gtk3/GtkVBox.html +17 -20
  637. data/vendor/local/share/gtk-doc/html/gtk3/GtkVButtonBox.html +13 -16
  638. data/vendor/local/share/gtk-doc/html/gtk3/GtkVPaned.html +13 -16
  639. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScale.html +14 -17
  640. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScrollbar.html +14 -17
  641. data/vendor/local/share/gtk-doc/html/gtk3/GtkVSeparator.html +13 -16
  642. data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +16 -19
  643. data/vendor/local/share/gtk-doc/html/gtk3/GtkVolumeButton.html +13 -16
  644. data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +1137 -138
  645. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +113 -30
  646. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +13 -16
  647. data/vendor/local/share/gtk-doc/html/gtk3/LayoutContainers.html +35 -20
  648. data/vendor/local/share/gtk-doc/html/gtk3/MenusAndCombos.html +10 -13
  649. data/vendor/local/share/gtk-doc/html/gtk3/MiscObjects.html +10 -10
  650. data/vendor/local/share/gtk-doc/html/gtk3/NumericEntry.html +14 -11
  651. data/vendor/local/share/gtk-doc/html/gtk3/Ornaments.html +11 -11
  652. data/vendor/local/share/gtk-doc/html/gtk3/PlugSocket.html +13 -13
  653. data/vendor/local/share/gtk-doc/html/gtk3/Printing.html +10 -10
  654. data/vendor/local/share/gtk-doc/html/gtk3/RecentDocuments.html +11 -11
  655. data/vendor/local/share/gtk-doc/html/gtk3/ScrollingWidgets.html +10 -10
  656. data/vendor/local/share/gtk-doc/html/gtk3/SelectorWidgets.html +14 -11
  657. data/vendor/local/share/gtk-doc/html/gtk3/TextWidget.html +17 -17
  658. data/vendor/local/share/gtk-doc/html/gtk3/TextWidgetObjects.html +10 -10
  659. data/vendor/local/share/gtk-doc/html/gtk3/TreeWidget.html +15 -15
  660. data/vendor/local/share/gtk-doc/html/gtk3/TreeWidgetObjects.html +10 -10
  661. data/vendor/local/share/gtk-doc/html/gtk3/WindowWidgets.html +17 -17
  662. data/vendor/local/share/gtk-doc/html/gtk3/aboutdialog.png +0 -0
  663. data/vendor/local/share/gtk-doc/html/gtk3/accel-label.png +0 -0
  664. data/vendor/local/share/gtk-doc/html/gtk3/annotation-glossary.html +41 -59
  665. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-0.html +41 -44
  666. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-10.html +666 -0
  667. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-2.html +39 -42
  668. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-4.html +31 -34
  669. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-6.html +27 -30
  670. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-8.html +24 -27
  671. data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +1825 -224
  672. data/vendor/local/share/gtk-doc/html/gtk3/api-index-full.html +917 -112
  673. data/vendor/local/share/gtk-doc/html/gtk3/appchooserbutton.png +0 -0
  674. data/vendor/local/share/gtk-doc/html/gtk3/appchooserdialog.png +0 -0
  675. data/vendor/local/share/gtk-doc/html/gtk3/assistant.png +0 -0
  676. data/vendor/local/share/gtk-doc/html/gtk3/broadwayd.html +10 -10
  677. data/vendor/local/share/gtk-doc/html/gtk3/button.png +0 -0
  678. data/vendor/local/share/gtk-doc/html/gtk3/ch01s02.html +130 -0
  679. data/vendor/local/share/gtk-doc/html/gtk3/ch01s03.html +248 -0
  680. data/vendor/local/share/gtk-doc/html/gtk3/ch01s04.html +157 -0
  681. data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +1773 -0
  682. data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +20 -14
  683. data/vendor/local/share/gtk-doc/html/gtk3/ch03.html +232 -156
  684. data/vendor/local/share/gtk-doc/html/gtk3/{ch25s02.html → ch24s02.html} +47 -47
  685. data/vendor/local/share/gtk-doc/html/gtk3/{ch27s02.html → ch26s02.html} +9 -9
  686. data/vendor/local/share/gtk-doc/html/gtk3/{ch29s02.html → ch28s02.html} +11 -11
  687. data/vendor/local/share/gtk-doc/html/gtk3/{ch29s03.html → ch28s03.html} +11 -11
  688. data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +10 -10
  689. data/vendor/local/share/gtk-doc/html/gtk3/check-button.png +0 -0
  690. data/vendor/local/share/gtk-doc/html/gtk3/checklist-gdkeventexpose-region.html +9 -9
  691. data/vendor/local/share/gtk-doc/html/gtk3/checklist-modifiers.html +9 -9
  692. data/vendor/local/share/gtk-doc/html/gtk3/checklist-named-icons.html +9 -9
  693. data/vendor/local/share/gtk-doc/html/gtk3/color-button.png +0 -0
  694. data/vendor/local/share/gtk-doc/html/gtk3/colorchooser.png +0 -0
  695. data/vendor/local/share/gtk-doc/html/gtk3/combo-box-entry.png +0 -0
  696. data/vendor/local/share/gtk-doc/html/gtk3/combo-box-text.png +0 -0
  697. data/vendor/local/share/gtk-doc/html/gtk3/combo-box.png +0 -0
  698. data/vendor/local/share/gtk-doc/html/gtk3/drawing.png +0 -0
  699. data/vendor/local/share/gtk-doc/html/gtk3/entry.png +0 -0
  700. data/vendor/local/share/gtk-doc/html/gtk3/exampleapp.png +0 -0
  701. data/vendor/local/share/gtk-doc/html/gtk3/file-button.png +0 -0
  702. data/vendor/local/share/gtk-doc/html/gtk3/filechooser.png +0 -0
  703. data/vendor/local/share/gtk-doc/html/gtk3/font-button.png +0 -0
  704. data/vendor/local/share/gtk-doc/html/gtk3/fontchooser.png +0 -0
  705. data/vendor/local/share/gtk-doc/html/gtk3/frame.png +0 -0
  706. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app1.png +0 -0
  707. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app2.png +0 -0
  708. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app3.png +0 -0
  709. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app4.png +0 -0
  710. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app6.png +0 -0
  711. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app7.png +0 -0
  712. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app8.png +0 -0
  713. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app9.png +0 -0
  714. data/vendor/local/share/gtk-doc/html/gtk3/glossary.html +10 -10
  715. data/vendor/local/share/gtk-doc/html/gtk3/grid-packing.png +0 -0
  716. data/vendor/local/share/gtk-doc/html/gtk3/gtk-broadway.html +11 -11
  717. data/vendor/local/share/gtk-doc/html/gtk3/gtk-building.html +20 -12
  718. data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +15 -15
  719. data/vendor/local/share/gtk-doc/html/gtk3/gtk-getting-started.html +147 -965
  720. data/vendor/local/share/gtk-doc/html/gtk3/gtk-launch.html +9 -9
  721. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +67 -67
  722. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkGrid.html +13 -13
  723. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +11 -11
  724. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-checklist.html +12 -12
  725. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +11 -11
  726. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +9 -9
  727. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parsing.html +10 -10
  728. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext.html +10 -10
  729. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-checklist.html +12 -12
  730. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-smclient-GtkApplication.html +10 -10
  731. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-theme-GtkStyleContext-engines.html +10 -10
  732. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-unique-GtkApplication.html +12 -12
  733. data/vendor/local/share/gtk-doc/html/gtk3/gtk-osx.html +11 -11
  734. data/vendor/local/share/gtk-doc/html/gtk3/gtk-query-immodules-3.0.html +9 -9
  735. data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +65 -65
  736. data/vendor/local/share/gtk-doc/html/gtk3/gtk-resources.html +13 -13
  737. data/vendor/local/share/gtk-doc/html/gtk3/gtk-running.html +19 -16
  738. data/vendor/local/share/gtk-doc/html/gtk3/gtk-update-icon-cache.html +9 -9
  739. data/vendor/local/share/gtk-doc/html/gtk3/gtk-wayland.html +12 -12
  740. data/vendor/local/share/gtk-doc/html/gtk3/gtk-windows.html +11 -11
  741. data/vendor/local/share/gtk-doc/html/gtk3/gtk-x11.html +27 -12
  742. data/vendor/local/share/gtk-doc/html/gtk3/gtk.html +26 -49
  743. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +14 -17
  744. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +20 -23
  745. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +17 -18
  746. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +32 -56
  747. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +17 -20
  748. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +14 -17
  749. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +26 -29
  750. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +24 -27
  751. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkPlug.html +303 -0
  752. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSocket.html +273 -0
  753. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkStyleProperties.html +17 -20
  754. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +22 -25
  755. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +12 -15
  756. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkWidgetPath.html +16 -19
  757. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +29 -32
  758. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +18 -18
  759. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +15 -18
  760. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +45 -48
  761. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +15 -18
  762. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Standard-Enumerations.html +13 -16
  763. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +568 -123
  764. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +40 -16
  765. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +248 -27
  766. data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +6347 -6099
  767. data/vendor/local/share/gtk-doc/html/gtk3/gtkbase.html +11 -14
  768. data/vendor/local/share/gtk-doc/html/gtk3/gtkobjects.html +139 -118
  769. data/vendor/local/share/gtk-doc/html/gtk3/headerbar.png +0 -0
  770. data/vendor/local/share/gtk-doc/html/gtk3/hello-world.png +0 -0
  771. data/vendor/local/share/gtk-doc/html/gtk3/home.png +0 -0
  772. data/vendor/local/share/gtk-doc/html/gtk3/icon-view.png +0 -0
  773. data/vendor/local/share/gtk-doc/html/gtk3/image.png +0 -0
  774. data/vendor/local/share/gtk-doc/html/gtk3/index.html +248 -209
  775. data/vendor/local/share/gtk-doc/html/gtk3/index.sgml +5994 -5707
  776. data/vendor/local/share/gtk-doc/html/gtk3/info-bar.png +0 -0
  777. data/vendor/local/share/gtk-doc/html/gtk3/label.png +0 -0
  778. data/vendor/local/share/gtk-doc/html/gtk3/left-insensitive.png +0 -0
  779. data/vendor/local/share/gtk-doc/html/gtk3/left.png +0 -0
  780. data/vendor/local/share/gtk-doc/html/gtk3/levelbar.png +0 -0
  781. data/vendor/local/share/gtk-doc/html/gtk3/link-button.png +0 -0
  782. data/vendor/local/share/gtk-doc/html/gtk3/list-and-tree.png +0 -0
  783. data/vendor/local/share/gtk-doc/html/gtk3/list-box.png +0 -0
  784. data/vendor/local/share/gtk-doc/html/gtk3/lock-button.png +0 -0
  785. data/vendor/local/share/gtk-doc/html/gtk3/menu-button.png +0 -0
  786. data/vendor/local/share/gtk-doc/html/gtk3/menubar.png +0 -0
  787. data/vendor/local/share/gtk-doc/html/gtk3/messagedialog.png +0 -0
  788. data/vendor/local/share/gtk-doc/html/gtk3/migrating.html +31 -31
  789. data/vendor/local/share/gtk-doc/html/gtk3/multiline-text.png +0 -0
  790. data/vendor/local/share/gtk-doc/html/gtk3/notebook.png +0 -0
  791. data/vendor/local/share/gtk-doc/html/gtk3/pagesetupdialog.png +0 -0
  792. data/vendor/local/share/gtk-doc/html/gtk3/panes.png +0 -0
  793. data/vendor/local/share/gtk-doc/html/gtk3/placessidebar.png +0 -0
  794. data/vendor/local/share/gtk-doc/html/gtk3/platform-support.html +75 -0
  795. data/vendor/local/share/gtk-doc/html/gtk3/printdialog.png +0 -0
  796. data/vendor/local/share/gtk-doc/html/gtk3/progressbar.png +0 -0
  797. data/vendor/local/share/gtk-doc/html/gtk3/pt06.html +9 -9
  798. data/vendor/local/share/gtk-doc/html/gtk3/radio-group.png +0 -0
  799. data/vendor/local/share/gtk-doc/html/gtk3/recentchooserdialog.png +0 -0
  800. data/vendor/local/share/gtk-doc/html/gtk3/right-insensitive.png +0 -0
  801. data/vendor/local/share/gtk-doc/html/gtk3/right.png +0 -0
  802. data/vendor/local/share/gtk-doc/html/gtk3/scales.png +0 -0
  803. data/vendor/local/share/gtk-doc/html/gtk3/scrollbar.png +0 -0
  804. data/vendor/local/share/gtk-doc/html/gtk3/scrolledwindow.png +0 -0
  805. data/vendor/local/share/gtk-doc/html/gtk3/search-entry.png +0 -0
  806. data/vendor/local/share/gtk-doc/html/gtk3/separator.png +0 -0
  807. data/vendor/local/share/gtk-doc/html/gtk3/spinbutton.png +0 -0
  808. data/vendor/local/share/gtk-doc/html/gtk3/spinner.png +0 -0
  809. data/vendor/local/share/gtk-doc/html/gtk3/stack.png +0 -0
  810. data/vendor/local/share/gtk-doc/html/gtk3/stackswitcher.png +0 -0
  811. data/vendor/local/share/gtk-doc/html/gtk3/statusbar.png +0 -0
  812. data/vendor/local/share/gtk-doc/html/gtk3/style.css +71 -16
  813. data/vendor/local/share/gtk-doc/html/gtk3/switch.png +0 -0
  814. data/vendor/local/share/gtk-doc/html/gtk3/theming.html +10 -10
  815. data/vendor/local/share/gtk-doc/html/gtk3/toggle-button.png +0 -0
  816. data/vendor/local/share/gtk-doc/html/gtk3/toolbar.png +0 -0
  817. data/vendor/local/share/gtk-doc/html/gtk3/toolpalette.png +0 -0
  818. data/vendor/local/share/gtk-doc/html/gtk3/up-insensitive.png +0 -0
  819. data/vendor/local/share/gtk-doc/html/gtk3/up.png +0 -0
  820. data/vendor/local/share/gtk-doc/html/gtk3/volumebutton.png +0 -0
  821. data/vendor/local/share/gtk-doc/html/gtk3/window-default.png +0 -0
  822. data/vendor/local/share/gtk-doc/html/gtk3/window.png +0 -0
  823. data/vendor/local/share/locale/af/LC_MESSAGES/gtk30.mo +0 -0
  824. data/vendor/local/share/locale/an/LC_MESSAGES/gtk30.mo +0 -0
  825. data/vendor/local/share/locale/ar/LC_MESSAGES/gtk30.mo +0 -0
  826. data/vendor/local/share/locale/as/LC_MESSAGES/gtk30-properties.mo +0 -0
  827. data/vendor/local/share/locale/as/LC_MESSAGES/gtk30.mo +0 -0
  828. data/vendor/local/share/locale/be/LC_MESSAGES/gtk30.mo +0 -0
  829. data/vendor/local/share/locale/bg/LC_MESSAGES/gtk30.mo +0 -0
  830. data/vendor/local/share/locale/bn/LC_MESSAGES/gtk30.mo +0 -0
  831. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtk30.mo +0 -0
  832. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30-properties.mo +0 -0
  833. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30.mo +0 -0
  834. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30-properties.mo +0 -0
  835. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30.mo +0 -0
  836. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
  837. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30.mo +0 -0
  838. data/vendor/local/share/locale/da/LC_MESSAGES/gtk30-properties.mo +0 -0
  839. data/vendor/local/share/locale/da/LC_MESSAGES/gtk30.mo +0 -0
  840. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
  841. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
  842. data/vendor/local/share/locale/el/LC_MESSAGES/gtk30-properties.mo +0 -0
  843. data/vendor/local/share/locale/el/LC_MESSAGES/gtk30.mo +0 -0
  844. data/vendor/local/share/locale/en/LC_MESSAGES/gtk30.mo +0 -0
  845. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk30.mo +0 -0
  846. data/vendor/local/share/locale/eo/LC_MESSAGES/gtk30.mo +0 -0
  847. data/vendor/local/share/locale/es/LC_MESSAGES/gtk30-properties.mo +0 -0
  848. data/vendor/local/share/locale/es/LC_MESSAGES/gtk30.mo +0 -0
  849. data/vendor/local/share/locale/et/LC_MESSAGES/gtk30.mo +0 -0
  850. data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30-properties.mo +0 -0
  851. data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30.mo +0 -0
  852. data/vendor/local/share/locale/fa/LC_MESSAGES/gtk30.mo +0 -0
  853. data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30-properties.mo +0 -0
  854. data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30.mo +0 -0
  855. data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30-properties.mo +0 -0
  856. data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30.mo +0 -0
  857. data/vendor/local/share/locale/ga/LC_MESSAGES/gtk30.mo +0 -0
  858. data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30-properties.mo +0 -0
  859. data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30.mo +0 -0
  860. data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30-properties.mo +0 -0
  861. data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30.mo +0 -0
  862. data/vendor/local/share/locale/gu/LC_MESSAGES/gtk30.mo +0 -0
  863. data/vendor/local/share/locale/he/LC_MESSAGES/gtk30-properties.mo +0 -0
  864. data/vendor/local/share/locale/he/LC_MESSAGES/gtk30.mo +0 -0
  865. data/vendor/local/share/locale/hi/LC_MESSAGES/gtk30.mo +0 -0
  866. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
  867. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30.mo +0 -0
  868. data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30-properties.mo +0 -0
  869. data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30.mo +0 -0
  870. data/vendor/local/share/locale/id/LC_MESSAGES/gtk30-properties.mo +0 -0
  871. data/vendor/local/share/locale/id/LC_MESSAGES/gtk30.mo +0 -0
  872. data/vendor/local/share/locale/it/LC_MESSAGES/gtk30-properties.mo +0 -0
  873. data/vendor/local/share/locale/it/LC_MESSAGES/gtk30.mo +0 -0
  874. data/vendor/local/share/locale/ja/LC_MESSAGES/gtk30.mo +0 -0
  875. data/vendor/local/share/locale/kk/LC_MESSAGES/gtk30.mo +0 -0
  876. data/vendor/local/share/locale/km/LC_MESSAGES/gtk30.mo +0 -0
  877. data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30-properties.mo +0 -0
  878. data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30.mo +0 -0
  879. data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30-properties.mo +0 -0
  880. data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30.mo +0 -0
  881. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30-properties.mo +0 -0
  882. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30.mo +0 -0
  883. data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30-properties.mo +0 -0
  884. data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30.mo +0 -0
  885. data/vendor/local/share/locale/ml/LC_MESSAGES/gtk30.mo +0 -0
  886. data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30-properties.mo +0 -0
  887. data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30.mo +0 -0
  888. data/vendor/local/share/locale/nb/LC_MESSAGES/gtk30.mo +0 -0
  889. data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30.mo +0 -0
  890. data/vendor/local/share/locale/nn/LC_MESSAGES/gtk30.mo +0 -0
  891. data/vendor/local/share/locale/or/LC_MESSAGES/gtk30.mo +0 -0
  892. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30-properties.mo +0 -0
  893. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30.mo +0 -0
  894. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30-properties.mo +0 -0
  895. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30.mo +0 -0
  896. data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30-properties.mo +0 -0
  897. data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30.mo +0 -0
  898. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
  899. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30.mo +0 -0
  900. data/vendor/local/share/locale/ro/LC_MESSAGES/gtk30.mo +0 -0
  901. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
  902. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30.mo +0 -0
  903. data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30-properties.mo +0 -0
  904. data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30.mo +0 -0
  905. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30-properties.mo +0 -0
  906. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30.mo +0 -0
  907. data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30-properties.mo +0 -0
  908. data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30.mo +0 -0
  909. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30-properties.mo +0 -0
  910. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30.mo +0 -0
  911. data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30.mo +0 -0
  912. data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30-properties.mo +0 -0
  913. data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30.mo +0 -0
  914. data/vendor/local/share/locale/te/LC_MESSAGES/gtk30.mo +0 -0
  915. data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30-properties.mo +0 -0
  916. data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30.mo +0 -0
  917. data/vendor/local/share/locale/th/LC_MESSAGES/gtk30.mo +0 -0
  918. data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30-properties.mo +0 -0
  919. data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30.mo +0 -0
  920. data/vendor/local/share/locale/uk/LC_MESSAGES/gtk30.mo +0 -0
  921. data/vendor/local/share/locale/vi/LC_MESSAGES/gtk30.mo +0 -0
  922. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30-properties.mo +0 -0
  923. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
  924. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30-properties.mo +0 -0
  925. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30.mo +0 -0
  926. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30-properties.mo +0 -0
  927. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30.mo +0 -0
  928. data/vendor/local/share/man/man1/broadwayd.1 +1 -1
  929. data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
  930. data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
  931. data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
  932. metadata +86 -39
  933. data/vendor/local/lib/gdk-win32-3.0.def +0 -539
  934. data/vendor/local/lib/gtk-win32-3.0.def +0 -3875
  935. data/vendor/local/share/gtk-doc/html/gtk3/Actions.html +0 -53
  936. data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +0 -388
  937. data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +0 -362
  938. data/vendor/local/share/gtk-doc/html/gtk3/colorsel.png +0 -0
  939. data/vendor/local/share/gtk-doc/html/gtk3/fontsel.png +0 -0
@@ -1,7 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
- * Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2002-2013 Ruby-GNOME2 Project Team
5
4
  * Copyright (C) 1998-2000 Yukihiro Matsumoto,
6
5
  * Daisuke Kanda,
7
6
  * Hiroshi Igarashi
@@ -24,25 +23,344 @@
24
23
 
25
24
  #include "rbgdk3private.h"
26
25
 
27
- static VALUE gdkevents[36];
26
+ static VALUE rb_cGdkEvent;
27
+ static VALUE rb_cGdkEventAny;
28
+ static VALUE rb_cGdkEventExpose;
29
+ static VALUE rb_cGdkEventVisibility;
30
+ static VALUE rb_cGdkEventMotion;
31
+ static VALUE rb_cGdkEventButton;
32
+ static VALUE rb_cGdkEventTouch;
33
+ static VALUE rb_cGdkEventScroll;
34
+ static VALUE rb_cGdkEventKey;
35
+ static VALUE rb_cGdkEventCrossing;
36
+ static VALUE rb_cGdkEventFocus;
37
+ static VALUE rb_cGdkEventConfigure;
38
+ static VALUE rb_cGdkEventProperty;
39
+ static VALUE rb_cGdkEventSelection;
40
+ static VALUE rb_cGdkEventOwnerChange;
41
+ static VALUE rb_cGdkEventProximity;
42
+ static VALUE rb_cGdkEventDND;
43
+ static VALUE rb_cGdkEventWindowState;
44
+ static VALUE rb_cGdkEventSetting;
45
+ static VALUE rb_cGdkEventGrabBroken;
46
+
47
+ #define DEFINE_EVENT_TYPE(type_lower_case, type_upper_case) \
48
+ static GType \
49
+ rb_gdk_event_ ## type_lower_case ## _get_type(void) \
50
+ { \
51
+ static GType type = 0; \
52
+ if (type == 0) { \
53
+ type = g_boxed_type_register_static("GdkEvent" # type_upper_case, \
54
+ (GBoxedCopyFunc)gdk_event_copy, \
55
+ (GBoxedFreeFunc)gdk_event_free); \
56
+ } \
57
+ return type; \
58
+ }
59
+
60
+ DEFINE_EVENT_TYPE(any, Any)
61
+ DEFINE_EVENT_TYPE(expose, Expose)
62
+ DEFINE_EVENT_TYPE(visibility, Visibility)
63
+ DEFINE_EVENT_TYPE(motion, Motion)
64
+ DEFINE_EVENT_TYPE(button, Button)
65
+ DEFINE_EVENT_TYPE(touch, Touch)
66
+ DEFINE_EVENT_TYPE(scroll, Scroll)
67
+ DEFINE_EVENT_TYPE(key, Key)
68
+ DEFINE_EVENT_TYPE(crossing, Crossing)
69
+ DEFINE_EVENT_TYPE(focus, Focus)
70
+ DEFINE_EVENT_TYPE(configure, Configure)
71
+ DEFINE_EVENT_TYPE(property, Property)
72
+ DEFINE_EVENT_TYPE(selection, Selection)
73
+ DEFINE_EVENT_TYPE(owner_change, OwnerChange)
74
+ DEFINE_EVENT_TYPE(proximity, Proximity)
75
+ DEFINE_EVENT_TYPE(dnd, DND)
76
+ DEFINE_EVENT_TYPE(window_state, WindowState)
77
+ DEFINE_EVENT_TYPE(setting, Setting)
78
+ DEFINE_EVENT_TYPE(grab_broken, GrabBroken)
79
+
80
+ #define GDK_TYPE_EVENT_ANY (rb_gdk_event_any_get_type())
81
+ #define GDK_TYPE_EVENT_EXPOSE (rb_gdk_event_expose_get_type())
82
+ #define GDK_TYPE_EVENT_VISIBILITY (rb_gdk_event_visibility_get_type())
83
+ #define GDK_TYPE_EVENT_MOTION (rb_gdk_event_motion_get_type())
84
+ #define GDK_TYPE_EVENT_BUTTON (rb_gdk_event_button_get_type())
85
+ #define GDK_TYPE_EVENT_TOUCH (rb_gdk_event_touch_get_type())
86
+ #define GDK_TYPE_EVENT_SCROLL (rb_gdk_event_scroll_get_type())
87
+ #define GDK_TYPE_EVENT_KEY (rb_gdk_event_key_get_type())
88
+ #define GDK_TYPE_EVENT_CROSSING (rb_gdk_event_crossing_get_type())
89
+ #define GDK_TYPE_EVENT_FOCUS (rb_gdk_event_focus_get_type())
90
+ #define GDK_TYPE_EVENT_CONFIGURE (rb_gdk_event_configure_get_type())
91
+ #define GDK_TYPE_EVENT_PROPERTY (rb_gdk_event_property_get_type())
92
+ #define GDK_TYPE_EVENT_SELECTION (rb_gdk_event_selection_get_type())
93
+ #define GDK_TYPE_EVENT_OWNER_CHANGE (rb_gdk_event_owner_change_get_type())
94
+ #define GDK_TYPE_EVENT_PROXIMITY (rb_gdk_event_proximity_get_type())
95
+ #define GDK_TYPE_EVENT_DND (rb_gdk_event_dnd_get_type())
96
+ #define GDK_TYPE_EVENT_WINDOW_STATE (rb_gdk_event_window_state_get_type())
97
+ #define GDK_TYPE_EVENT_SETTING (rb_gdk_event_setting_get_type())
98
+ #define GDK_TYPE_EVENT_GRAB_BROKEN (rb_gdk_event_grab_broken_get_type())
28
99
 
29
100
  /***********************************************/
30
101
 
31
- VALUE
32
- make_gdkevent(GdkEvent *ev)
102
+ static GType
103
+ rb_gdk_event_type_to_gtype(GdkEventType event_type)
104
+ {
105
+ GType gtype = GDK_TYPE_EVENT_ANY;
106
+
107
+ switch (event_type) {
108
+ case GDK_NOTHING:
109
+ case GDK_DELETE:
110
+ case GDK_DESTROY:
111
+ break;
112
+ case GDK_EXPOSE:
113
+ gtype = GDK_TYPE_EVENT_EXPOSE;
114
+ break;
115
+ case GDK_MOTION_NOTIFY:
116
+ gtype = GDK_TYPE_EVENT_MOTION;
117
+ break;
118
+ case GDK_BUTTON_PRESS:
119
+ case GDK_2BUTTON_PRESS:
120
+ case GDK_3BUTTON_PRESS:
121
+ case GDK_BUTTON_RELEASE:
122
+ gtype = GDK_TYPE_EVENT_BUTTON;
123
+ break;
124
+ case GDK_KEY_PRESS:
125
+ case GDK_KEY_RELEASE:
126
+ gtype = GDK_TYPE_EVENT_KEY;
127
+ break;
128
+ case GDK_ENTER_NOTIFY:
129
+ case GDK_LEAVE_NOTIFY:
130
+ gtype = GDK_TYPE_EVENT_CROSSING;
131
+ break;
132
+ case GDK_FOCUS_CHANGE:
133
+ gtype = GDK_TYPE_EVENT_FOCUS;
134
+ break;
135
+ case GDK_CONFIGURE:
136
+ gtype = GDK_TYPE_EVENT_CONFIGURE;
137
+ break;
138
+ case GDK_MAP:
139
+ case GDK_UNMAP:
140
+ break;
141
+ case GDK_PROPERTY_NOTIFY:
142
+ gtype = GDK_TYPE_EVENT_PROPERTY;
143
+ break;
144
+ case GDK_SELECTION_CLEAR:
145
+ case GDK_SELECTION_REQUEST:
146
+ case GDK_SELECTION_NOTIFY:
147
+ gtype = GDK_TYPE_EVENT_SELECTION;
148
+ break;
149
+ case GDK_PROXIMITY_IN:
150
+ case GDK_PROXIMITY_OUT:
151
+ gtype = GDK_TYPE_EVENT_PROXIMITY;
152
+ break;
153
+ case GDK_DRAG_ENTER:
154
+ case GDK_DRAG_LEAVE:
155
+ case GDK_DRAG_MOTION:
156
+ case GDK_DRAG_STATUS:
157
+ case GDK_DROP_START:
158
+ case GDK_DROP_FINISHED:
159
+ gtype = GDK_TYPE_EVENT_DND;
160
+ break;
161
+ case GDK_CLIENT_EVENT:
162
+ break;
163
+ case GDK_VISIBILITY_NOTIFY:
164
+ gtype = GDK_TYPE_EVENT_VISIBILITY;
165
+ break;
166
+ case GDK_SCROLL:
167
+ gtype = GDK_TYPE_EVENT_SCROLL;
168
+ break;
169
+ case GDK_WINDOW_STATE:
170
+ gtype = GDK_TYPE_EVENT_WINDOW_STATE;
171
+ break;
172
+ case GDK_SETTING:
173
+ gtype = GDK_TYPE_EVENT_SETTING;
174
+ break;
175
+ case GDK_OWNER_CHANGE:
176
+ gtype = GDK_TYPE_EVENT_OWNER_CHANGE;
177
+ break;
178
+ case GDK_GRAB_BROKEN:
179
+ gtype = GDK_TYPE_EVENT_GRAB_BROKEN;
180
+ break;
181
+ case GDK_DAMAGE:
182
+ gtype = GDK_TYPE_EVENT_EXPOSE;
183
+ break;
184
+ case GDK_TOUCH_BEGIN:
185
+ case GDK_TOUCH_UPDATE:
186
+ case GDK_TOUCH_END:
187
+ case GDK_TOUCH_CANCEL:
188
+ gtype = GDK_TYPE_EVENT_TOUCH;
189
+ break;
190
+ case GDK_EVENT_LAST:
191
+ break;
192
+ default:
193
+ break;
194
+ }
195
+
196
+ return gtype;
197
+ }
198
+
199
+ static VALUE
200
+ rb_gdk_event_type_to_class(GdkEventType event_type)
201
+ {
202
+ VALUE klass = Qnil;
203
+
204
+ switch (event_type) {
205
+ case GDK_NOTHING:
206
+ case GDK_DELETE:
207
+ case GDK_DESTROY:
208
+ break;
209
+ case GDK_EXPOSE:
210
+ klass = rb_cGdkEventExpose;
211
+ break;
212
+ case GDK_MOTION_NOTIFY:
213
+ klass = rb_cGdkEventMotion;
214
+ break;
215
+ case GDK_BUTTON_PRESS:
216
+ case GDK_2BUTTON_PRESS:
217
+ case GDK_3BUTTON_PRESS:
218
+ case GDK_BUTTON_RELEASE:
219
+ klass = rb_cGdkEventButton;
220
+ break;
221
+ case GDK_KEY_PRESS:
222
+ case GDK_KEY_RELEASE:
223
+ klass = rb_cGdkEventKey;
224
+ break;
225
+ case GDK_ENTER_NOTIFY:
226
+ case GDK_LEAVE_NOTIFY:
227
+ klass = rb_cGdkEventCrossing;
228
+ break;
229
+ case GDK_FOCUS_CHANGE:
230
+ klass = rb_cGdkEventFocus;
231
+ break;
232
+ case GDK_CONFIGURE:
233
+ klass = rb_cGdkEventConfigure;
234
+ break;
235
+ case GDK_MAP:
236
+ case GDK_UNMAP:
237
+ break;
238
+ case GDK_PROPERTY_NOTIFY:
239
+ klass = rb_cGdkEventProperty;
240
+ break;
241
+ case GDK_SELECTION_CLEAR:
242
+ case GDK_SELECTION_REQUEST:
243
+ case GDK_SELECTION_NOTIFY:
244
+ klass = rb_cGdkEventSelection;
245
+ break;
246
+ case GDK_PROXIMITY_IN:
247
+ case GDK_PROXIMITY_OUT:
248
+ klass = rb_cGdkEventProximity;
249
+ break;
250
+ case GDK_DRAG_ENTER:
251
+ case GDK_DRAG_LEAVE:
252
+ case GDK_DRAG_MOTION:
253
+ case GDK_DRAG_STATUS:
254
+ case GDK_DROP_START:
255
+ case GDK_DROP_FINISHED:
256
+ klass = rb_cGdkEventDND;
257
+ break;
258
+ case GDK_CLIENT_EVENT:
259
+ break;
260
+ case GDK_VISIBILITY_NOTIFY:
261
+ klass = rb_cGdkEventVisibility;
262
+ break;
263
+ case GDK_SCROLL:
264
+ klass = rb_cGdkEventScroll;
265
+ break;
266
+ case GDK_WINDOW_STATE:
267
+ klass = rb_cGdkEventWindowState;
268
+ break;
269
+ case GDK_SETTING:
270
+ klass = rb_cGdkEventSetting;
271
+ break;
272
+ case GDK_OWNER_CHANGE:
273
+ klass = rb_cGdkEventOwnerChange;
274
+ break;
275
+ case GDK_GRAB_BROKEN:
276
+ klass = rb_cGdkEventGrabBroken;
277
+ break;
278
+ case GDK_DAMAGE:
279
+ klass = rb_cGdkEventExpose;
280
+ break;
281
+ case GDK_TOUCH_BEGIN:
282
+ case GDK_TOUCH_UPDATE:
283
+ case GDK_TOUCH_END:
284
+ case GDK_TOUCH_CANCEL:
285
+ klass = rb_cGdkEventTouch;
286
+ break;
287
+ case GDK_EVENT_LAST:
288
+ break;
289
+ default:
290
+ break;
291
+ }
292
+
293
+ if (NIL_P(klass)) {
294
+ klass = rb_cGdkEventAny;
295
+ }
296
+
297
+ return klass;
298
+ }
299
+
300
+ static GType
301
+ rb_gdk_event_to_gtype(VALUE event)
33
302
  {
34
- VALUE obj;
35
- if (ev == NULL) return Qnil;
303
+ VALUE klass;
304
+ GType type = GDK_TYPE_EVENT;
305
+
306
+ klass = rb_obj_class(event);
307
+ if (klass == rb_cGdkEvent) {
308
+ type = GDK_TYPE_EVENT;
309
+ } else if (klass == rb_cGdkEventAny) {
310
+ type = GDK_TYPE_EVENT_ANY;
311
+ } else if (klass == rb_cGdkEventExpose) {
312
+ type = GDK_TYPE_EVENT_EXPOSE;
313
+ } else if (klass == rb_cGdkEventVisibility) {
314
+ type = GDK_TYPE_EVENT_VISIBILITY;
315
+ } else if (klass == rb_cGdkEventMotion) {
316
+ type = GDK_TYPE_EVENT_MOTION;
317
+ } else if (klass == rb_cGdkEventButton) {
318
+ type = GDK_TYPE_EVENT_BUTTON;
319
+ } else if (klass == rb_cGdkEventScroll) {
320
+ type = GDK_TYPE_EVENT_SCROLL;
321
+ } else if (klass == rb_cGdkEventKey) {
322
+ type = GDK_TYPE_EVENT_KEY;
323
+ } else if (klass == rb_cGdkEventCrossing) {
324
+ type = GDK_TYPE_EVENT_CROSSING;
325
+ } else if (klass == rb_cGdkEventFocus) {
326
+ type = GDK_TYPE_EVENT_FOCUS;
327
+ } else if (klass == rb_cGdkEventConfigure) {
328
+ type = GDK_TYPE_EVENT_CONFIGURE;
329
+ } else if (klass == rb_cGdkEventProperty) {
330
+ type = GDK_TYPE_EVENT_PROPERTY;
331
+ } else if (klass == rb_cGdkEventSelection) {
332
+ type = GDK_TYPE_EVENT_SELECTION;
333
+ } else if (klass == rb_cGdkEventOwnerChange) {
334
+ type = GDK_TYPE_EVENT_OWNER_CHANGE;
335
+ } else if (klass == rb_cGdkEventProximity) {
336
+ type = GDK_TYPE_EVENT_PROXIMITY;
337
+ } else if (klass == rb_cGdkEventDND) {
338
+ type = GDK_TYPE_EVENT_DND;
339
+ } else if (klass == rb_cGdkEventWindowState) {
340
+ type = GDK_TYPE_EVENT_WINDOW_STATE;
341
+ } else if (klass == rb_cGdkEventSetting) {
342
+ type = GDK_TYPE_EVENT_SETTING;
343
+ } else if (klass == rb_cGdkEventGrabBroken) {
344
+ type = GDK_TYPE_EVENT_GRAB_BROKEN;
345
+ } else if (klass == rb_cGdkEventTouch) {
346
+ type = GDK_TYPE_EVENT_TOUCH;
347
+ } else {
348
+ rb_raise(rb_eArgError, "Not event object: %s", RBG_INSPECT(event));
349
+ }
350
+
351
+ return type;
352
+ }
36
353
 
37
- obj = GDKEVENT2RVAL(ev);
38
- RBASIC(obj)->klass = gdkevents[ev->type]; /* hack */
39
- return obj;
354
+ VALUE
355
+ rbgdk_gdkevent2rval(GdkEvent *event)
356
+ {
357
+ return BOXED2RVAL(event, rb_gdk_event_type_to_gtype(event->any.type));
40
358
  }
41
359
 
42
- GdkEvent*
43
- get_gdkevent(VALUE event)
360
+ GdkEvent *
361
+ rbgdk_rval2gdkevent(VALUE event)
44
362
  {
45
- return NIL_P(event) ? NULL : RVAL2GDKEVENT(event);
363
+ return RVAL2BOXED(event, rb_gdk_event_to_gtype(event));
46
364
  }
47
365
 
48
366
  /***********************************************/
@@ -50,12 +368,12 @@ get_gdkevent(VALUE event)
50
368
  static VALUE \
51
369
  gdkevent ## type ## _ ## name (VALUE self)\
52
370
  {\
53
- return CSTR2RVAL(get_gdkevent(self)->type.name);\
371
+ return CSTR2RVAL(RVAL2GDKEVENT(self)->type.name);\
54
372
  }\
55
373
  static VALUE \
56
374
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
57
375
  {\
58
- get_gdkevent(self)->type.name = (gchar *)RVAL2CSTR(val);\
376
+ RVAL2GDKEVENT(self)->type.name = (gchar *)RVAL2CSTR(val);\
59
377
  return self;\
60
378
  }
61
379
 
@@ -63,12 +381,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
63
381
  static VALUE \
64
382
  gdkevent ## type ## _ ## name (VALUE self)\
65
383
  {\
66
- return INT2NUM(get_gdkevent(self)->type.name);\
384
+ return INT2NUM(RVAL2GDKEVENT(self)->type.name);\
67
385
  }\
68
386
  static VALUE \
69
387
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
70
388
  {\
71
- get_gdkevent(self)->type.name = NUM2INT(val);\
389
+ RVAL2GDKEVENT(self)->type.name = NUM2INT(val);\
72
390
  return self;\
73
391
  }
74
392
 
@@ -76,12 +394,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
76
394
  static VALUE \
77
395
  gdkevent ## type ## _ ## name (VALUE self)\
78
396
  {\
79
- return UINT2NUM(get_gdkevent(self)->type.name);\
397
+ return UINT2NUM(RVAL2GDKEVENT(self)->type.name);\
80
398
  }\
81
399
  static VALUE \
82
400
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
83
401
  {\
84
- get_gdkevent(self)->type.name = NUM2UINT(val);\
402
+ RVAL2GDKEVENT(self)->type.name = NUM2UINT(val);\
85
403
  return self;\
86
404
  }
87
405
 
@@ -89,12 +407,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
89
407
  static VALUE \
90
408
  gdkevent ## type ## _ ## name (VALUE self)\
91
409
  {\
92
- return GOBJ2RVAL(get_gdkevent(self)->type.name);\
410
+ return GOBJ2RVAL(RVAL2GDKEVENT(self)->type.name);\
93
411
  }\
94
412
  static VALUE \
95
413
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
96
414
  {\
97
- get_gdkevent(self)->type.name = RVAL2GDKWINDOW(val);\
415
+ RVAL2GDKEVENT(self)->type.name = RVAL2GDKWINDOW(val);\
98
416
  return self;\
99
417
  }
100
418
 
@@ -102,12 +420,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
102
420
  static VALUE \
103
421
  gdkevent ## type ## _ ## name (VALUE self)\
104
422
  {\
105
- return rb_float_new(get_gdkevent(self)->type.name);\
423
+ return rb_float_new(RVAL2GDKEVENT(self)->type.name);\
106
424
  }\
107
425
  static VALUE \
108
426
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
109
427
  {\
110
- get_gdkevent(self)->type.name = NUM2DBL(val);\
428
+ RVAL2GDKEVENT(self)->type.name = NUM2DBL(val);\
111
429
  return self;\
112
430
  }
113
431
 
@@ -115,13 +433,13 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
115
433
  static VALUE \
116
434
  gdkevent ## type ## _ ## name (VALUE self)\
117
435
  {\
118
- return GOBJ2RVAL(get_gdkevent(self)->type.name);\
436
+ return GOBJ2RVAL(RVAL2GDKEVENT(self)->type.name);\
119
437
  }\
120
438
  static VALUE \
121
439
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
122
440
  {\
123
441
  GdkEvent *event;\
124
- event = get_gdkevent(self);\
442
+ event = RVAL2GDKEVENT(self);\
125
443
  if (event->type.name)\
126
444
  g_object_unref(event->type.name);\
127
445
  event->type.name = RVAL2GOBJ(val);\
@@ -134,12 +452,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
134
452
  static VALUE \
135
453
  gdkevent ## type ## _ ## name (VALUE self)\
136
454
  {\
137
- return CBOOL2RVAL(get_gdkevent(self)->type.name);\
455
+ return CBOOL2RVAL(RVAL2GDKEVENT(self)->type.name);\
138
456
  }\
139
457
  static VALUE \
140
458
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
141
459
  {\
142
- get_gdkevent(self)->type.name = RVAL2CBOOL(val);\
460
+ RVAL2GDKEVENT(self)->type.name = RVAL2CBOOL(val);\
143
461
  return self;\
144
462
  }
145
463
 
@@ -147,13 +465,13 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
147
465
  static VALUE \
148
466
  gdkevent ## type ## _ ## name (VALUE self)\
149
467
  {\
150
- GdkAtom atom = get_gdkevent(self)->type.name;\
468
+ GdkAtom atom = RVAL2GDKEVENT(self)->type.name;\
151
469
  return GDKATOM2RVAL(atom);\
152
470
  }\
153
471
  static VALUE \
154
472
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
155
473
  {\
156
- get_gdkevent(self)->type.name = RVAL2ATOM(val);\
474
+ RVAL2GDKEVENT(self)->type.name = RVAL2ATOM(val);\
157
475
  return self;\
158
476
  }
159
477
 
@@ -161,12 +479,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
161
479
  static VALUE \
162
480
  gdkevent ## type ## _ ## name (VALUE self)\
163
481
  {\
164
- return GFLAGS2RVAL(get_gdkevent(self)->type.name, gtype);\
482
+ return GFLAGS2RVAL(RVAL2GDKEVENT(self)->type.name, gtype);\
165
483
  }\
166
484
  static VALUE \
167
485
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
168
486
  {\
169
- get_gdkevent(self)->type.name = RVAL2GFLAGS(val, gtype);\
487
+ RVAL2GDKEVENT(self)->type.name = RVAL2GFLAGS(val, gtype);\
170
488
  return self;\
171
489
  }
172
490
 
@@ -174,12 +492,12 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
174
492
  static VALUE \
175
493
  gdkevent ## type ## _ ## name (VALUE self)\
176
494
  {\
177
- return GENUM2RVAL(get_gdkevent(self)->type.name, gtype);\
495
+ return GENUM2RVAL(RVAL2GDKEVENT(self)->type.name, gtype);\
178
496
  }\
179
497
  static VALUE \
180
498
  gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
181
499
  {\
182
- get_gdkevent(self)->type.name = RVAL2GENUM(val, gtype);\
500
+ RVAL2GDKEVENT(self)->type.name = RVAL2GENUM(val, gtype);\
183
501
  return self;\
184
502
  }
185
503
 
@@ -187,7 +505,7 @@ gdkevent ## type ## _set_ ## name (VALUE self, VALUE val)\
187
505
  static VALUE \
188
506
  gdkevent ##type ## _axes(VALUE self)\
189
507
  {\
190
- gdkklass type = get_gdkevent(self)->type;\
508
+ gdkklass type = RVAL2GDKEVENT(self)->type;\
191
509
  return type.axes ? rb_ary_new3(2, \
192
510
  rb_float_new(type.axes[0]),\
193
511
  rb_float_new(type.axes[1])) : Qnil;\
@@ -195,7 +513,7 @@ gdkevent ##type ## _axes(VALUE self)\
195
513
  static VALUE \
196
514
  gdkevent ## type ## _set_axes(VALUE self, VALUE x, VALUE y)\
197
515
  {\
198
- gdkklass val = get_gdkevent(self)->type;\
516
+ gdkklass val = RVAL2GDKEVENT(self)->type;\
199
517
  val.axes[0] = NUM2DBL(x);\
200
518
  val.axes[1] = NUM2DBL(y);\
201
519
  return self;\
@@ -240,45 +558,42 @@ gdkevent_s_events_pending(G_GNUC_UNUSED VALUE self)
240
558
  static VALUE
241
559
  gdkevent_s_peek(G_GNUC_UNUSED VALUE self)
242
560
  {
243
- return make_gdkevent(gdk_event_peek());
561
+ return GDKEVENT2RVAL(gdk_event_peek());
244
562
  }
245
563
 
246
564
  static VALUE
247
565
  gdkevent_s_get(G_GNUC_UNUSED VALUE self)
248
566
  {
249
- return make_gdkevent(gdk_event_get());
250
- }
251
-
252
- /* deprecated
253
- static VALUE
254
- gdkevent_s_get_graphics_expose(G_GNUC_UNUSED VALUE self, VALUE window)
255
- {
256
- return make_gdkevent(gdk_event_get_graphics_expose(RVAL2GDKWINDOW(window)));
567
+ return GDKEVENT2RVAL(gdk_event_get());
257
568
  }
258
- */
259
569
 
260
570
  /* GdkEvent */
261
571
  static VALUE
262
572
  gdkevent_initialize(VALUE self, VALUE type)
263
573
  {
264
- GdkEventType gtype = RVAL2GDKEVENTTYPE(type);
265
- if (RBASIC(self)->klass != gdkevents[gtype])
574
+ GdkEventType event_type;
575
+ VALUE klass;
576
+
577
+ event_type = RVAL2GDKEVENTTYPE(type);
578
+ klass = rb_gdk_event_type_to_class(event_type);
579
+ if (!RVAL2CBOOL(rb_obj_is_kind_of(self, klass))) {
266
580
  rb_raise(rb_eArgError, "Wrong event type for this class.");
581
+ }
267
582
 
268
- G_INITIALIZE(self, gdk_event_new(gtype));
583
+ G_INITIALIZE(self, gdk_event_new(event_type));
269
584
  return Qnil;
270
585
  }
271
586
 
272
587
  static VALUE
273
588
  gdkevent_type(VALUE self)
274
589
  {
275
- return GDKEVENTTYPE2RVAL(get_gdkevent(self)->type);
590
+ return GDKEVENTTYPE2RVAL(RVAL2GDKEVENT(self)->type);
276
591
  }
277
592
 
278
593
  static VALUE
279
594
  gdkevent_put(VALUE self)
280
595
  {
281
- gdk_event_put(get_gdkevent(self));
596
+ gdk_event_put(RVAL2GDKEVENT(self));
282
597
  return self;
283
598
  }
284
599
 
@@ -292,7 +607,7 @@ static VALUE
292
607
  gdkevent_get_axis(VALUE self, VALUE axis_use)
293
608
  {
294
609
  gdouble value;
295
- gboolean ret = gdk_event_get_axis(get_gdkevent(self),
610
+ gboolean ret = gdk_event_get_axis(RVAL2GDKEVENT(self),
296
611
  RVAL2GDKAXISUSE(axis_use), &value);
297
612
  return ret ? rb_float_new(value) : Qnil;
298
613
  }
@@ -301,7 +616,7 @@ static VALUE
301
616
  gdkevent_get_coords(VALUE self)
302
617
  {
303
618
  gdouble x_win, y_win;
304
- gboolean ret = gdk_event_get_coords(get_gdkevent(self), &x_win, &y_win);
619
+ gboolean ret = gdk_event_get_coords(RVAL2GDKEVENT(self), &x_win, &y_win);
305
620
 
306
621
  return ret ? rb_ary_new3(2, rb_float_new(x_win), rb_float_new(y_win)) : Qnil;
307
622
  }
@@ -310,7 +625,7 @@ static VALUE
310
625
  gdkevent_get_root_coords(VALUE self)
311
626
  {
312
627
  gdouble x_root, y_root;
313
- gboolean ret = gdk_event_get_root_coords(get_gdkevent(self), &x_root, &y_root);
628
+ gboolean ret = gdk_event_get_root_coords(RVAL2GDKEVENT(self), &x_root, &y_root);
314
629
 
315
630
  return ret ? rb_ary_new3(2, rb_float_new(x_root), rb_float_new(y_root)) : Qnil;
316
631
  }
@@ -318,7 +633,7 @@ gdkevent_get_root_coords(VALUE self)
318
633
  static void
319
634
  handler_func(GdkEvent *event, gpointer func)
320
635
  {
321
- rb_funcall((VALUE)func, id_call, 1, make_gdkevent(event));
636
+ rb_funcall((VALUE)func, id_call, 1, GDKEVENT2RVAL(event));
322
637
  }
323
638
 
324
639
  static VALUE
@@ -347,14 +662,14 @@ gdkevent_s_set_show_events(VALUE self, VALUE show_events)
347
662
  static VALUE
348
663
  gdkevent_set_screen(VALUE self, VALUE screen)
349
664
  {
350
- gdk_event_set_screen(get_gdkevent(self), RVAL2GDKSCREEN(screen));
665
+ gdk_event_set_screen(RVAL2GDKEVENT(self), RVAL2GDKSCREEN(screen));
351
666
  return self;
352
667
  }
353
668
 
354
669
  static VALUE
355
670
  gdkevent_screen(VALUE self)
356
671
  {
357
- return GOBJ2RVAL(gdk_event_get_screen(get_gdkevent(self)));
672
+ return GOBJ2RVAL(gdk_event_get_screen(RVAL2GDKEVENT(self)));
358
673
  }
359
674
 
360
675
  /*
@@ -405,6 +720,19 @@ ATTR_GOBJ(button, device);
405
720
  ATTR_FLOAT(button, x_root);
406
721
  ATTR_FLOAT(button, y_root);
407
722
 
723
+ /* GdkEventTouch */
724
+ ATTR_GOBJ(touch, window);
725
+ ATTR_BOOL(touch, send_event);
726
+ ATTR_UINT(touch, time);
727
+ ATTR_FLOAT(touch, x);
728
+ ATTR_FLOAT(touch, y);
729
+ ATTR_AXES(touch, GdkEventTouch);
730
+ ATTR_FLAGS(touch, state, GDK_TYPE_MODIFIER_TYPE);
731
+ ATTR_BOOL(touch, emulating_pointer);
732
+ ATTR_GOBJ(touch, device);
733
+ ATTR_FLOAT(touch, x_root);
734
+ ATTR_FLOAT(touch, y_root);
735
+
408
736
  /* GdkEventScroll */
409
737
  ATTR_UINT(scroll, time);
410
738
  ATTR_FLOAT(scroll, x);
@@ -431,45 +759,44 @@ GDKEVENT_INIT(motion, GDK_MOTION_NOTIFY);
431
759
  static VALUE
432
760
  gdkeventmotion_request_motions(VALUE self)
433
761
  {
434
- gdk_event_request_motions(&(get_gdkevent(self)->motion));
762
+ gdk_event_request_motions(&(RVAL2GDKEVENT(self)->motion));
435
763
  return self;
436
764
  }
437
765
 
438
766
  /* GdkEventExpose */
439
- /* deprecated
440
767
  static VALUE
441
768
  gdkeventexpose_area(VALUE self)
442
769
  {
443
- return GDKRECTANGLE2RVAL(&get_gdkevent(self)->expose.area);
770
+ return GDKRECTANGLE2RVAL(&RVAL2GDKEVENT(self)->expose.area);
444
771
  }
445
-
772
+
446
773
  static VALUE
447
774
  gdkeventexpose_set_area(VALUE self, VALUE rect)
448
775
  {
449
776
  GdkRectangle* grect = RVAL2GDKRECTANGLE(rect);
450
- GdkEventExpose event = get_gdkevent(self)->expose;
451
- event.area.x = grect->x;
452
- event.area.y = grect->y;
453
- event.area.width = grect->width;
454
- event.area.height = grect->height;
777
+ GdkEventExpose *event = &(RVAL2GDKEVENT(self)->expose);
778
+ event->area.x = grect->x;
779
+ event->area.y = grect->y;
780
+ event->area.width = grect->width;
781
+ event->area.height = grect->height;
455
782
  return self;
456
783
  }
457
784
 
458
785
  static VALUE
459
786
  gdkeventexpose_region(VALUE self)
460
787
  {
461
- return GDKREGION2RVAL(get_gdkevent(self)->expose.region);
788
+ return CRREGION2RVAL(RVAL2GDKEVENT(self)->expose.region);
462
789
  }
790
+
463
791
  static VALUE
464
792
  gdkeventexpose_set_region(VALUE self, VALUE region)
465
793
  {
466
- get_gdkevent(self)->expose.region = RVAL2GDKREGION(region);
794
+ RVAL2GDKEVENT(self)->expose.region = RVAL2CRREGION(region);
467
795
  return self;
468
796
  }
469
797
 
470
798
  ATTR_INT(expose, count);
471
799
  GDKEVENT_INIT(expose, GDK_EXPOSE);
472
- */
473
800
 
474
801
  /* GdkEventVisibility */
475
802
  ATTR_ENUM(visibility, state, GDK_TYPE_VISIBILITY_STATE);
@@ -521,88 +848,6 @@ ATTR_INT(dnd, y_root);
521
848
  ATTR_UINT(proximity, time);
522
849
  ATTR_GOBJ(proximity, device);
523
850
 
524
- /* GdkEventClient */
525
- /* deprecated
526
- ATTR_ATOM(client, message_type);
527
- GDKEVENT_INIT(client, GDK_CLIENT_EVENT);
528
-
529
- static VALUE
530
- gdkeventclient_data_format(VALUE self)
531
- {
532
- return INT2NUM(get_gdkevent(self)->client.data_format);
533
- }
534
-
535
- static VALUE
536
- gdkeventclient_data(VALUE self)
537
- {
538
- int i;
539
- VALUE ary = Qnil;
540
- gushort format = get_gdkevent(self)->client.data_format;
541
-
542
- if (format == 8) {
543
- ary = rb_ary_new2(20);
544
- for (i = 0; i < 20; i++)
545
- rb_ary_push(ary, INT2FIX(get_gdkevent(self)->client.data.b[i]));
546
- } else if (format == 16) {
547
- ary = rb_ary_new2(10);
548
- for (i = 0; i<10; i++)
549
- rb_ary_push(ary, INT2FIX(get_gdkevent(self)->client.data.s[i]));
550
- } else if (format == 32){
551
- ary = rb_ary_new2(5);
552
- for (i = 0; i < 5; i++)
553
- rb_ary_push(ary, INT2NUM(get_gdkevent(self)->client.data.l[i]));
554
- } else {
555
- rb_warn("The format is not supported.");
556
- }
557
- return ary;
558
- }
559
-
560
- static VALUE
561
- gdkeventclient_send_client_message(int argc, VALUE *argv, VALUE self)
562
- {
563
- VALUE xid, display;
564
- rb_scan_args(argc, argv, "11", &xid, &display);
565
- if (NIL_P(display)){
566
- return CBOOL2RVAL(gdk_event_send_client_message(
567
- get_gdkevent(self), RVAL2GDKNATIVEWINDOW(xid)));
568
- } else {
569
- return CBOOL2RVAL(gdk_event_send_client_message_for_display(
570
- RVAL2GDKDISPLAYOBJECT(display),
571
- get_gdkevent(self),
572
- RVAL2GDKNATIVEWINDOW(xid)));
573
- }
574
- }
575
-
576
- static VALUE
577
- gdkeventclient_send_clientmessage_toall(VALUE self)
578
- {
579
- gdk_event_send_clientmessage_toall(get_gdkevent(self));
580
- return self;
581
- }
582
-
583
- static GdkFilterReturn
584
- filter_func(GdkXEvent *xevent, GdkEvent *event, gpointer func)
585
- {
586
- VALUE ret = rb_funcall((VALUE)func, id_call, 2, LONG2NUM((glong)xevent), make_gdkevent(event));
587
- return RVAL2GDKFILTERRETURN(ret);
588
- }
589
-
590
- static VALUE
591
- gdkevent_s_add_client_message_filter(VALUE self, VALUE message_type)
592
- {
593
- volatile VALUE func = rb_block_proc();
594
- G_RELATIVE(self, func);
595
- gdk_add_client_message_filter(RVAL2ATOM(message_type),
596
- (GdkFilterFunc)filter_func, (gpointer)func);
597
- return self;
598
- }
599
- */
600
-
601
- /* GdkEventNoExpose */
602
- /* deprecated
603
- GDKEVENT_INIT(noexpose, GDK_NO_EXPOSE);
604
- */
605
-
606
851
  /* GdkEventWindowState */
607
852
  ATTR_FLAGS(window_state, changed_mask, GDK_TYPE_WINDOW_STATE);
608
853
  ATTR_FLAGS(window_state, new_window_state, GDK_TYPE_WINDOW_STATE);
@@ -628,299 +873,302 @@ ATTR_GOBJ(grab_broken, grab_window);
628
873
  GDKEVENT_INIT(grab_broken, GDK_GRAB_BROKEN);
629
874
 
630
875
  /* MISC */
631
- static VALUE
876
+ static VALUE
632
877
  gdkevent_g2r(const GValue *values)
633
878
  {
634
- return make_gdkevent(g_value_get_boxed(&values[0]));
879
+ return GDKEVENT2RVAL(g_value_get_boxed(&values[0]));
635
880
  }
636
881
 
637
882
  void
638
883
  Init_gdk_event(VALUE mGdk)
639
884
  {
640
- VALUE ev;
641
- VALUE gdkEvent;
642
- VALUE gdkEventAny;
885
+ /* GdkEvent */
886
+ rb_cGdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
887
+ rbg_define_method(rb_cGdkEvent, "initialize", gdkevent_initialize, 1);
888
+ rbg_define_method(rb_cGdkEvent, "event_type", gdkevent_type, 0);
889
+
890
+ rbg_define_singleton_method(rb_cGdkEvent, "events_pending?", gdkevent_s_events_pending, 0);
891
+ rbg_define_singleton_method(rb_cGdkEvent, "peek", gdkevent_s_peek, 0);
892
+ rbg_define_singleton_method(rb_cGdkEvent, "get", gdkevent_s_get, 0);
893
+ rbg_define_method(rb_cGdkEvent, "put", gdkevent_put, 0);
894
+ rbg_define_method(rb_cGdkEvent, "get_axis", gdkevent_get_axis, 1);
895
+ rbg_define_method(rb_cGdkEvent, "coords", gdkevent_get_coords, 0);
896
+ rbg_define_method(rb_cGdkEvent, "root_coords", gdkevent_get_root_coords, 0);
897
+
898
+ rbg_define_singleton_method(rb_cGdkEvent, "handler_set", gdkevent_s_handler_set, 0);
899
+ rbg_define_singleton_method(rb_cGdkEvent, "show_events?", gdkevent_s_get_show_events, 0);
900
+ rbg_define_singleton_method(rb_cGdkEvent, "set_show_events", gdkevent_s_set_show_events, 1);
901
+ rbg_define_singleton_method(rb_cGdkEvent, "setting_get", gdkevent_s_setting_get, -1);
902
+ rbg_define_method(rb_cGdkEvent, "screen", gdkevent_screen, 0);
903
+ rbg_define_method(rb_cGdkEvent, "set_screen", gdkevent_set_screen, 1);
643
904
 
644
- gdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
645
- gdkEventAny = rb_define_class_under(mGdk, "EventAny", gdkEvent);
905
+ /*
906
+ * GdkEvent's Constants
907
+ */
908
+ rb_define_const(rb_cGdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
909
+ rb_define_const(rb_cGdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
910
+ rb_define_const(rb_cGdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
646
911
 
647
- gdkevents[GDK_DELETE] = gdkEventAny;
648
- gdkevents[GDK_DESTROY] = gdkEventAny;
649
- /* deprecated
650
- gdkevents[GDK_EXPOSE] = rb_define_class_under(mGdk, "EventExpose", gdkEventAny);
651
- */
652
- gdkevents[GDK_MOTION_NOTIFY] = rb_define_class_under(mGdk, "EventMotion", gdkEventAny);
653
- gdkevents[GDK_BUTTON_PRESS] = rb_define_class_under(mGdk, "EventButton", gdkEventAny);
654
- gdkevents[GDK_2BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
655
- gdkevents[GDK_3BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
656
- gdkevents[GDK_BUTTON_RELEASE]= gdkevents[GDK_BUTTON_PRESS];
657
- gdkevents[GDK_KEY_PRESS] = rb_define_class_under(mGdk, "EventKey", gdkEventAny);
658
- gdkevents[GDK_KEY_RELEASE] = gdkevents[GDK_KEY_PRESS];
659
- gdkevents[GDK_ENTER_NOTIFY] = rb_define_class_under(mGdk, "EventCrossing", gdkEventAny);
660
- gdkevents[GDK_LEAVE_NOTIFY] = gdkevents[GDK_ENTER_NOTIFY];
661
- gdkevents[GDK_FOCUS_CHANGE] = rb_define_class_under(mGdk, "EventFocus", gdkEventAny);
662
- gdkevents[GDK_CONFIGURE] = rb_define_class_under(mGdk, "EventConfigure", gdkEventAny);
663
- gdkevents[GDK_MAP] = gdkEventAny;
664
- gdkevents[GDK_UNMAP] = gdkEventAny;
665
- gdkevents[GDK_PROPERTY_NOTIFY]= rb_define_class_under(mGdk, "EventProperty", gdkEventAny);
666
- gdkevents[GDK_SELECTION_CLEAR]= rb_define_class_under(mGdk, "EventSelection", gdkEventAny);
667
- gdkevents[GDK_SELECTION_REQUEST]= gdkevents[GDK_SELECTION_CLEAR];
668
- gdkevents[GDK_SELECTION_NOTIFY] = gdkevents[GDK_SELECTION_CLEAR];
669
- gdkevents[GDK_PROXIMITY_IN] = rb_define_class_under(mGdk, "EventProximity", gdkEventAny);
670
- gdkevents[GDK_PROXIMITY_OUT] = gdkevents[GDK_PROXIMITY_IN];
671
- gdkevents[GDK_DRAG_ENTER] = rb_define_class_under(mGdk, "EventDND", gdkEventAny);
672
- gdkevents[GDK_DRAG_LEAVE] = gdkevents[GDK_DRAG_ENTER];
673
- gdkevents[GDK_DRAG_MOTION] = gdkevents[GDK_DRAG_ENTER];
674
- gdkevents[GDK_DRAG_STATUS] = gdkevents[GDK_DRAG_ENTER];
675
- gdkevents[GDK_DROP_START] = gdkevents[GDK_DRAG_ENTER];
676
- gdkevents[GDK_DROP_FINISHED] = gdkevents[GDK_DRAG_ENTER];
677
- gdkevents[GDK_CLIENT_EVENT] = rb_define_class_under(mGdk, "EventClient", gdkEventAny);
678
- gdkevents[GDK_VISIBILITY_NOTIFY] = rb_define_class_under(mGdk, "EventVisibility", gdkEventAny);
679
- /* deprecated
680
- gdkevents[GDK_NO_EXPOSE] = rb_define_class_under(mGdk, "EventNoExpose", gdkEventAny);
681
- */
682
- gdkevents[GDK_SCROLL] = rb_define_class_under(mGdk, "EventScroll", gdkEventAny);
683
- gdkevents[GDK_WINDOW_STATE] = rb_define_class_under(mGdk, "EventWindowState", gdkEventAny);
684
- gdkevents[GDK_SETTING] = rb_define_class_under(mGdk, "EventSetting", gdkEventAny);
685
- gdkevents[GDK_OWNER_CHANGE] = rb_define_class_under(mGdk, "EventOwnerChange", gdkEventAny);
686
- gdkevents[GDK_GRAB_BROKEN] = rb_define_class_under(mGdk, "EventGrabBroken", gdkEventAny);
912
+ /* GdkEventType */
913
+ /* XXX */
914
+ G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
915
+ G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
916
+ G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", rb_cGdkEvent);
917
+ G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
918
+ G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
919
+ G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_TYPE, "GDK_");
687
920
 
688
- /* GdkEvent */
689
- rbg_define_method(gdkEvent, "initialize", gdkevent_initialize, 1);
690
- rbg_define_method(gdkEvent, "event_type", gdkevent_type, 0);
691
-
692
- rbg_define_singleton_method(gdkEvent, "events_pending?", gdkevent_s_events_pending, 0);
693
- rbg_define_singleton_method(gdkEvent, "peek", gdkevent_s_peek, 0);
694
- rbg_define_singleton_method(gdkEvent, "get", gdkevent_s_get, 0);
695
- rbg_define_method(gdkEvent, "put", gdkevent_put, 0);
696
- rbg_define_method(gdkEvent, "get_axis", gdkevent_get_axis, 1);
697
- rbg_define_method(gdkEvent, "coords", gdkevent_get_coords, 0);
698
- rbg_define_method(gdkEvent, "root_coords", gdkevent_get_root_coords, 0);
699
-
700
- rbg_define_singleton_method(gdkEvent, "handler_set", gdkevent_s_handler_set, 0);
701
- rbg_define_singleton_method(gdkEvent, "show_events?", gdkevent_s_get_show_events, 0);
702
- rbg_define_singleton_method(gdkEvent, "set_show_events", gdkevent_s_set_show_events, 1);
703
- rbg_define_singleton_method(gdkEvent, "setting_get", gdkevent_s_setting_get, -1);
704
- /* deprecated
705
- rbg_define_singleton_method(gdkEvent, "add_client_message_filter", gdkevent_s_add_client_message_filter, 1);
706
- */
707
- rbg_define_method(gdkEvent, "screen", gdkevent_screen, 0);
708
- rbg_define_method(gdkEvent, "set_screen", gdkevent_set_screen, 1);
921
+ /* GdkEventMask */
922
+ G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", rb_cGdkEvent);
923
+ G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_MASK, "GDK_");
709
924
 
710
925
  /* GdkEventAny */
711
- DEFINE_ACCESSOR(gdkEventAny, any, window);
712
- rbg_define_method(gdkEventAny, "send_event?", gdkeventany_send_event, 0);
713
- rbg_define_method(gdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
714
-
715
- /* GdkEventKey */
716
- ev = gdkevents[GDK_KEY_PRESS];
717
- DEFINE_ACCESSOR(ev, key, time);
718
- DEFINE_ACCESSOR(ev, key, state);
719
- DEFINE_ACCESSOR(ev, key, keyval);
720
- DEFINE_ACCESSOR(ev, key, hardware_keycode);
721
- DEFINE_ACCESSOR(ev, key, group);
926
+ rb_cGdkEventAny =
927
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_ANY, "EventAny",
928
+ 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);
722
932
 
723
- /* GdkEventButton */
724
- ev = gdkevents[GDK_BUTTON_PRESS];
725
- DEFINE_ACCESSOR(ev, button, time);
726
- DEFINE_ACCESSOR(ev, button, x);
727
- DEFINE_ACCESSOR(ev, button, y);
728
- rbg_define_method(ev, "axes", gdkeventbutton_axes, 0);
729
- rbg_define_method(ev, "set_axes", gdkeventbutton_set_axes, 2);
730
- DEFINE_ACCESSOR(ev, button, state);
731
- DEFINE_ACCESSOR(ev, button, button);
732
- DEFINE_ACCESSOR(ev, button, device);
733
- DEFINE_ACCESSOR(ev, button, x_root);
734
- DEFINE_ACCESSOR(ev, button, y_root);
933
+ /* GdkEventExpose */
934
+ rb_cGdkEventExpose =
935
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_EXPOSE, "EventExpose",
936
+ mGdk, rb_cGdkEvent);
937
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, area);
938
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, region);
939
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, count);
940
+ DEFINE_INIT(rb_cGdkEventExpose, expose);
735
941
 
736
- /* GdkEventScroll */
737
- ev = gdkevents[GDK_SCROLL];
738
- DEFINE_ACCESSOR(ev, scroll, time);
739
- DEFINE_ACCESSOR(ev, scroll, x);
740
- DEFINE_ACCESSOR(ev, scroll, y);
741
- DEFINE_ACCESSOR(ev, scroll, state);
742
- DEFINE_ACCESSOR(ev, scroll, direction);
743
- DEFINE_ACCESSOR(ev, scroll, device);
744
- DEFINE_ACCESSOR(ev, scroll, x_root);
745
- DEFINE_ACCESSOR(ev, scroll, y_root);
746
- DEFINE_INIT(ev, scroll);
942
+ /* GdkEventVisibility */
943
+ rb_cGdkEventVisibility =
944
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_VISIBILITY, "EventVisibility",
945
+ mGdk, rb_cGdkEvent);
946
+ DEFINE_ACCESSOR(rb_cGdkEventVisibility, visibility, state);
947
+ DEFINE_INIT(rb_cGdkEventVisibility, visibility);
747
948
 
748
- /* GdkScrollDirection */
749
- G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", ev);
949
+ /* GdkVisibilityState */
950
+ G_DEF_CLASS(GDK_TYPE_VISIBILITY_STATE, "State", rb_cGdkEventVisibility);
951
+ G_DEF_CONSTANTS(rb_cGdkEventVisibility,
952
+ GDK_TYPE_VISIBILITY_STATE, "GDK_VISIBILITY_");
750
953
 
751
954
  /* GdkEventMotion */
752
- ev = gdkevents[GDK_MOTION_NOTIFY];
753
- DEFINE_ACCESSOR(ev, motion, time);
754
- DEFINE_ACCESSOR(ev, motion, x);
755
- DEFINE_ACCESSOR(ev, motion, y);
756
- rbg_define_method(ev, "axes", gdkeventmotion_axes, 0);
757
- rbg_define_method(ev, "set_axes", gdkeventmotion_set_axes, 1);
758
- DEFINE_ACCESSOR(ev, motion, state);
759
- rbg_define_method(ev, "hint?", gdkeventmotion_is_hint, 0);
760
- rbg_define_method(ev, "set_hint", gdkeventmotion_set_is_hint, 1);
761
- DEFINE_ACCESSOR(ev, motion, device);
762
- DEFINE_ACCESSOR(ev, motion, x_root);
763
- DEFINE_ACCESSOR(ev, motion, y_root);
764
- DEFINE_INIT(ev, motion);
765
- rbg_define_method(ev, "request", gdkeventmotion_request_motions, 0);
955
+ rb_cGdkEventMotion =
956
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_MOTION, "EventMotion",
957
+ mGdk, rb_cGdkEvent);
958
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, time);
959
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x);
960
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y);
961
+ rbg_define_method(rb_cGdkEventMotion, "axes", gdkeventmotion_axes, 0);
962
+ rbg_define_method(rb_cGdkEventMotion, "set_axes", gdkeventmotion_set_axes, 1);
963
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, state);
964
+ rbg_define_method(rb_cGdkEventMotion, "hint?", gdkeventmotion_is_hint, 0);
965
+ rbg_define_method(rb_cGdkEventMotion, "set_hint", gdkeventmotion_set_is_hint, 1);
966
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, device);
967
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x_root);
968
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y_root);
969
+ DEFINE_INIT(rb_cGdkEventMotion, motion);
970
+ rbg_define_method(rb_cGdkEventMotion, "request", gdkeventmotion_request_motions, 0);
766
971
 
767
- /* GdkEventExpose */
768
- /* deprecated
769
- ev = gdkevents[GDK_EXPOSE];
770
- DEFINE_ACCESSOR(ev, expose, area);
771
- DEFINE_ACCESSOR(ev, expose, region);
772
- DEFINE_ACCESSOR(ev, expose, count);
773
- DEFINE_INIT(ev, expose);
774
- rbg_define_singleton_method(ev, "get_graphics_expose",
775
- gdkevent_s_get_graphics_expose, 1);
776
- */
972
+ /* GdkEventButton */
973
+ rb_cGdkEventButton =
974
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_BUTTON, "EventButton",
975
+ mGdk, rb_cGdkEvent);
976
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, time);
977
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, x);
978
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, y);
979
+ rbg_define_method(rb_cGdkEventButton, "axes", gdkeventbutton_axes, 0);
980
+ rbg_define_method(rb_cGdkEventButton, "set_axes", gdkeventbutton_set_axes, 2);
981
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, state);
982
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, button);
983
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, device);
984
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, x_root);
985
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, y_root);
986
+
987
+ /* GdkEventTouch */
988
+ rb_cGdkEventTouch =
989
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_TOUCH, "EventTouch",
990
+ 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
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, time);
995
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, x);
996
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, y);
997
+ rbg_define_method(rb_cGdkEventTouch, "axes", gdkeventtouch_axes, 0);
998
+ rbg_define_method(rb_cGdkEventTouch, "set_axes", gdkeventtouch_set_axes, 2);
999
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, state);
1000
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, emulating_pointer);
1001
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, device);
1002
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, x_root);
1003
+ DEFINE_ACCESSOR(rb_cGdkEventTouch, touch, y_root);
777
1004
 
778
- /* GdkEventVisibility */
779
- ev = gdkevents[GDK_VISIBILITY_NOTIFY];
780
- DEFINE_ACCESSOR(ev, visibility, state);
781
- DEFINE_INIT(ev, visibility);
1005
+ /* GdkEventScroll */
1006
+ rb_cGdkEventScroll =
1007
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SCROLL, "EventScroll",
1008
+ mGdk, rb_cGdkEvent);
1009
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, time);
1010
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x);
1011
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y);
1012
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, state);
1013
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, direction);
1014
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, device);
1015
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x_root);
1016
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y_root);
1017
+ DEFINE_INIT(rb_cGdkEventScroll, scroll);
782
1018
 
783
- /* GdkVisibilityState */
784
- G_DEF_CLASS(GDK_TYPE_VISIBILITY_STATE, "State", ev);
1019
+ /* GdkScrollDirection */
1020
+ G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", rb_cGdkEventScroll);
1021
+ G_DEF_CONSTANTS(rb_cGdkEventScroll,
1022
+ GDK_TYPE_SCROLL_DIRECTION, "GDK_SCROLL_");
1023
+
1024
+ /* GdkEventKey */
1025
+ rb_cGdkEventKey =
1026
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_KEY, "EventKey",
1027
+ mGdk, rb_cGdkEvent);
1028
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, time);
1029
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, state);
1030
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, keyval);
1031
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, hardware_keycode);
1032
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, group);
785
1033
 
786
1034
  /* GdkEventCrossing */
787
- ev = gdkevents[GDK_ENTER_NOTIFY];
788
- DEFINE_ACCESSOR(ev, crossing, subwindow);
789
- DEFINE_ACCESSOR(ev, crossing, time);
790
- DEFINE_ACCESSOR(ev, crossing, x);
791
- DEFINE_ACCESSOR(ev, crossing, y);
792
- DEFINE_ACCESSOR(ev, crossing, x_root);
793
- DEFINE_ACCESSOR(ev, crossing, y_root);
794
- DEFINE_ACCESSOR(ev, crossing, mode);
795
- DEFINE_ACCESSOR(ev, crossing, detail);
796
- rbg_define_method(ev, "focus?", gdkeventcrossing_focus, 0);
797
- rbg_define_method(ev, "set_focus", gdkeventcrossing_set_focus, 1);
798
- DEFINE_ACCESSOR(ev, crossing, state);
1035
+ rb_cGdkEventCrossing =
1036
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CROSSING, "EventCrossing",
1037
+ mGdk, rb_cGdkEvent);
1038
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, subwindow);
1039
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, time);
1040
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x);
1041
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y);
1042
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x_root);
1043
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y_root);
1044
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, mode);
1045
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, detail);
1046
+ rbg_define_method(rb_cGdkEventCrossing, "focus?", gdkeventcrossing_focus, 0);
1047
+ rbg_define_method(rb_cGdkEventCrossing, "set_focus", gdkeventcrossing_set_focus, 1);
1048
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, state);
799
1049
 
800
1050
  /* GdkCrossingMode */
801
- G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode", ev);
1051
+ G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode", rb_cGdkEventCrossing);
1052
+ G_DEF_CONSTANTS(rb_cGdkEventCrossing,
1053
+ GDK_TYPE_CROSSING_MODE, "GDK_CROSSING_");
802
1054
  /* GdkNotifyType */
803
- G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType", ev);
1055
+ G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType", rb_cGdkEventScroll);
1056
+ G_DEF_CONSTANTS(rb_cGdkEventScroll, GDK_TYPE_NOTIFY_TYPE, "GDK_");
804
1057
 
805
1058
  /* GdkEventFocus */
806
- ev = gdkevents[GDK_FOCUS_CHANGE];
807
- rbg_define_method(ev, "in?", gdkeventfocus_change_in, 0);
808
- rbg_define_method(ev, "set_in", gdkeventfocus_change_set_in, 1);
809
- DEFINE_INIT(ev, focus_change);
1059
+ rb_cGdkEventFocus =
1060
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_FOCUS, "EventFocus",
1061
+ mGdk, rb_cGdkEvent);
1062
+ rbg_define_method(rb_cGdkEventFocus, "in?", gdkeventfocus_change_in, 0);
1063
+ rbg_define_method(rb_cGdkEventFocus, "set_in",
1064
+ gdkeventfocus_change_set_in, 1);
1065
+ DEFINE_INIT(rb_cGdkEventFocus, focus_change);
810
1066
 
811
1067
  /* GdkEventConfigure */
812
- ev = gdkevents[GDK_CONFIGURE];
813
- DEFINE_ACCESSOR(ev, configure, x);
814
- DEFINE_ACCESSOR(ev, configure, y);
815
- DEFINE_ACCESSOR(ev, configure, width);
816
- DEFINE_ACCESSOR(ev, configure, height);
817
- DEFINE_INIT(ev, configure);
1068
+ rb_cGdkEventConfigure =
1069
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CONFIGURE, "EventConfigure",
1070
+ mGdk, rb_cGdkEvent);
1071
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, x);
1072
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, y);
1073
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, width);
1074
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, height);
1075
+ DEFINE_INIT(rb_cGdkEventConfigure, configure);
818
1076
 
819
1077
  /* GdkEventProperty */
820
- ev = gdkevents[GDK_PROPERTY_NOTIFY];
821
- DEFINE_ACCESSOR(ev, property, atom);
822
- DEFINE_ACCESSOR(ev, property, time);
823
- DEFINE_ACCESSOR(ev, property, state);
824
- DEFINE_INIT(ev, property);
825
-
826
- /* GdkPropertyState */
827
- G_DEF_CLASS(GDK_TYPE_PROPERTY_STATE, "State", ev);
1078
+ rb_cGdkEventProperty =
1079
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROPERTY, "EventProperty",
1080
+ mGdk, rb_cGdkEvent);
1081
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, atom);
1082
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, time);
1083
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, state);
1084
+ DEFINE_INIT(rb_cGdkEventProperty, property);
1085
+
1086
+ /* GdkPropertyState */
1087
+ G_DEF_CLASS(GDK_TYPE_PROPERTY_STATE, "State", rb_cGdkEventProperty);
1088
+ G_DEF_CONSTANTS(rb_cGdkEventProperty, GDK_TYPE_PROPERTY_STATE, "GDK_");
828
1089
 
829
1090
  /* GdkEventSelection */
830
- ev = gdkevents[GDK_SELECTION_CLEAR];
831
- DEFINE_ACCESSOR(ev, selection, selection);
832
- DEFINE_ACCESSOR(ev, selection, target);
833
- DEFINE_ACCESSOR(ev, selection, property);
834
- DEFINE_ACCESSOR(ev, selection, requestor);
835
- DEFINE_ACCESSOR(ev, selection, time);
1091
+ rb_cGdkEventSelection =
1092
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SELECTION, "EventSelection",
1093
+ mGdk, rb_cGdkEvent);
1094
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, selection);
1095
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, target);
1096
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, property);
1097
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, requestor);
1098
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, time);
836
1099
 
837
- /* GdkEventDND */
838
- ev = gdkevents[GDK_DRAG_ENTER];
839
- DEFINE_ACCESSOR(ev, dnd, context);
840
- DEFINE_ACCESSOR(ev, dnd, time);
841
- DEFINE_ACCESSOR(ev, dnd, x_root);
842
- DEFINE_ACCESSOR(ev, dnd, y_root);
1100
+ /* GdkEventOwnerChange */
1101
+ rb_cGdkEventOwnerChange =
1102
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_OWNER_CHANGE, "EventOwnerChange",
1103
+ mGdk, rb_cGdkEvent);
1104
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, owner);
1105
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, reason);
1106
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection);
1107
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, time);
1108
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection_time);
1109
+ DEFINE_INIT(rb_cGdkEventOwnerChange, owner_change);
1110
+
1111
+ /* GdkOwnerChange */
1112
+ G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", rb_cGdkEventScroll);
1113
+ G_DEF_CONSTANTS(rb_cGdkEventScroll,
1114
+ GDK_TYPE_OWNER_CHANGE, "GDK_OWNER_CHANGE_");
843
1115
 
844
1116
  /* GdkEventProximity */
845
- ev = gdkevents[GDK_PROXIMITY_IN];
846
- DEFINE_ACCESSOR(ev, proximity, time);
847
- DEFINE_ACCESSOR(ev, proximity, device);
848
-
849
- /* GdkEventClient */
850
- /* deprecated
851
- ev = gdkevents[GDK_CLIENT_EVENT];
852
- DEFINE_ACCESSOR(ev, client, message_type);
853
- rbg_define_method(ev, "data_format", gdkeventclient_data_format, 0);
854
- rbg_define_method(ev, "data", gdkeventclient_data, 0);
855
- rbg_define_method(ev, "send_client_message",
856
- gdkeventclient_send_client_message, -1);
857
- rbg_define_method(ev, "send_clientmessage_toall",
858
- gdkeventclient_send_clientmessage_toall, 0);
859
- DEFINE_INIT(ev, client);
860
- */
1117
+ rb_cGdkEventProximity =
1118
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROXIMITY, "EventProximity",
1119
+ mGdk, rb_cGdkEvent);
1120
+ DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, time);
1121
+ DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, device);
861
1122
 
862
- /* GdkEventNoExpose */
863
- /* deprecated
864
- ev = gdkevents[GDK_NO_EXPOSE];
865
- DEFINE_INIT(ev, noexpose);
866
- */
1123
+ /* GdkEventDND */
1124
+ rb_cGdkEventDND =
1125
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_DND, "EventDND",
1126
+ mGdk, rb_cGdkEvent);
1127
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, context);
1128
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, time);
1129
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, x_root);
1130
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, y_root);
867
1131
 
868
1132
  /* GdkEventWindowState */
869
- ev = gdkevents[GDK_WINDOW_STATE];
870
- DEFINE_ACCESSOR(ev, window_state, changed_mask);
871
- DEFINE_ACCESSOR(ev, window_state, new_window_state);
872
- DEFINE_INIT(ev, window_state);
1133
+ rb_cGdkEventWindowState =
1134
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_WINDOW_STATE, "EventWindowState",
1135
+ mGdk, rb_cGdkEvent);
1136
+ DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, changed_mask);
1137
+ DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, new_window_state);
1138
+ DEFINE_INIT(rb_cGdkEventWindowState, window_state);
873
1139
 
874
1140
  /* GdkWindowState */
875
- G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState", ev);
1141
+ G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState", rb_cGdkEventScroll);
1142
+ G_DEF_CONSTANTS(rb_cGdkEventWindowState,
1143
+ GDK_TYPE_WINDOW_STATE, "GDK_WINDOW_STATE_");
876
1144
 
877
1145
  /* GdkEventSetting */
878
- ev = gdkevents[GDK_SETTING];
879
- DEFINE_ACCESSOR(ev, setting, action);
880
- DEFINE_ACCESSOR(ev, setting, name);
881
- DEFINE_INIT(ev, setting);
1146
+ rb_cGdkEventSetting =
1147
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SETTING, "EventSetting",
1148
+ mGdk, rb_cGdkEvent);
1149
+ DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, action);
1150
+ DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, name);
1151
+ DEFINE_INIT(rb_cGdkEventSetting, setting);
882
1152
 
883
1153
  /* GdkSettingAction */
884
- G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action", ev);
885
-
886
- /* GdkEventOwnerChange */
887
- ev = gdkevents[GDK_OWNER_CHANGE];
888
- DEFINE_ACCESSOR(ev, owner_change, owner);
889
- DEFINE_ACCESSOR(ev, owner_change, reason);
890
- DEFINE_ACCESSOR(ev, owner_change, selection);
891
- DEFINE_ACCESSOR(ev, owner_change, time);
892
- DEFINE_ACCESSOR(ev, owner_change, selection_time);
893
- DEFINE_INIT(ev, owner_change);
894
-
895
- /* GdkOwnerChange */
896
- G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", ev);
1154
+ G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action", rb_cGdkEventScroll);
1155
+ G_DEF_CONSTANTS(rb_cGdkEventSetting,
1156
+ GDK_TYPE_SETTING_ACTION, "GDK_SETTING_");
897
1157
 
898
1158
  /* GdkEventGrabBroken */
899
- ev = gdkevents[GDK_GRAB_BROKEN];
900
- rbg_define_method(ev, "keyboard?", gdkeventgrab_broken_keyboard, 0);
901
- rbg_define_method(ev, "set_keyboard", gdkeventgrab_broken_set_keyboard, 1);
902
- rbg_define_method(ev, "implicit?", gdkeventgrab_broken_implicit, 0);
903
- rbg_define_method(ev, "set_implicit", gdkeventgrab_broken_set_implicit, 1);
904
- DEFINE_ACCESSOR(ev, grab_broken, grab_window);
905
- DEFINE_INIT(ev, grab_broken);
1159
+ rb_cGdkEventGrabBroken =
1160
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_GRAB_BROKEN, "EventGrabBroken",
1161
+ mGdk, rb_cGdkEvent);
1162
+ rbg_define_method(rb_cGdkEventGrabBroken,
1163
+ "keyboard?", gdkeventgrab_broken_keyboard, 0);
1164
+ rbg_define_method(rb_cGdkEventGrabBroken,
1165
+ "set_keyboard", gdkeventgrab_broken_set_keyboard, 1);
1166
+ rbg_define_method(rb_cGdkEventGrabBroken,
1167
+ "implicit?", gdkeventgrab_broken_implicit, 0);
1168
+ rbg_define_method(rb_cGdkEventGrabBroken,
1169
+ "set_implicit", gdkeventgrab_broken_set_implicit, 1);
1170
+ DEFINE_ACCESSOR(rb_cGdkEventGrabBroken, grab_broken, grab_window);
1171
+ DEFINE_INIT(rb_cGdkEventGrabBroken, grab_broken);
906
1172
 
907
1173
  rbgobj_register_g2r_func(GDK_TYPE_EVENT, &gdkevent_g2r);
908
-
909
- /*
910
- * GdkEvent's Constants
911
- */
912
- rb_define_const(gdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
913
- rb_define_const(gdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
914
- rb_define_const(gdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
915
-
916
- /* GdkEventType */
917
- /* XXX */
918
- G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
919
- G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
920
- G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", gdkEvent);
921
- G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
922
- G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
923
-
924
- /* GdkEventMask */
925
- G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", gdkEvent);
926
1174
  }