gtk2 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 (555) hide show
  1. checksums.yaml +7 -0
  2. data/README +2 -2
  3. data/Rakefile +5 -3
  4. data/ext/gtk2/extconf.rb +5 -2
  5. data/ext/gtk2/global.h +1 -8
  6. data/ext/gtk2/rbgdk.c +1 -16
  7. data/ext/gtk2/rbgdkcairo.c +0 -8
  8. data/ext/gtk2/rbgdkcolormap.c +0 -4
  9. data/ext/gtk2/rbgdkcursor.c +0 -18
  10. data/ext/gtk2/rbgdkdisplay.c +7 -45
  11. data/ext/gtk2/rbgdkdisplaymanager.c +0 -5
  12. data/ext/gtk2/rbgdkdragcontext.c +0 -13
  13. data/ext/gtk2/rbgdkdraw.c +2 -26
  14. data/ext/gtk2/rbgdkevent.c +631 -324
  15. data/ext/gtk2/rbgdkgc.c +0 -5
  16. data/ext/gtk2/rbgdkkeymap.c +2 -4
  17. data/ext/gtk2/rbgdkpango.c +0 -5
  18. data/ext/gtk2/rbgdkpangorenderer.c +0 -6
  19. data/ext/gtk2/rbgdkpixbuf.c +0 -3
  20. data/ext/gtk2/rbgdkpixmap.c +3 -18
  21. data/ext/gtk2/rbgdkproperty.c +0 -41
  22. data/ext/gtk2/rbgdkscreen.c +0 -22
  23. data/ext/gtk2/rbgdkselection.c +0 -13
  24. data/ext/gtk2/rbgdkvisual.c +0 -4
  25. data/ext/gtk2/rbgdkwindow.c +2 -71
  26. data/ext/gtk2/rbgdkx11.c +1 -6
  27. data/ext/gtk2/rbgtkaboutdialog.c +0 -5
  28. data/ext/gtk2/rbgtkaccelerator.c +0 -4
  29. data/ext/gtk2/rbgtkaccelgroup.c +0 -8
  30. data/ext/gtk2/rbgtkaccelmap.c +0 -15
  31. data/ext/gtk2/rbgtkaction.c +0 -14
  32. data/ext/gtk2/rbgtkactiongroup.c +0 -9
  33. data/ext/gtk2/rbgtkalignment.c +0 -4
  34. data/ext/gtk2/rbgtkassistant.c +0 -6
  35. data/ext/gtk2/rbgtkbbox.c +0 -4
  36. data/ext/gtk2/rbgtkbutton.c +0 -4
  37. data/ext/gtk2/rbgtkcalendar.c +0 -8
  38. data/ext/gtk2/rbgtkcelllayout.c +0 -5
  39. data/ext/gtk2/rbgtkcellrenderer.c +0 -8
  40. data/ext/gtk2/rbgtkcellrendereraccel.c +0 -6
  41. data/ext/gtk2/rbgtkcellrenderercombo.c +0 -6
  42. data/ext/gtk2/rbgtkcellrendererprogress.c +0 -6
  43. data/ext/gtk2/rbgtkcellrendererspin.c +0 -6
  44. data/ext/gtk2/rbgtkcellview.c +0 -5
  45. data/ext/gtk2/rbgtkclipboard.c +0 -48
  46. data/ext/gtk2/rbgtkcolorbutton.c +0 -6
  47. data/ext/gtk2/rbgtkcolorsel.c +0 -4
  48. data/ext/gtk2/rbgtkcombobox.c +0 -12
  49. data/ext/gtk2/rbgtkcomboboxentry.c +0 -6
  50. data/ext/gtk2/rbgtkconst.c +0 -2
  51. data/ext/gtk2/rbgtkdialog.c +0 -10
  52. data/ext/gtk2/rbgtkdrag.c +0 -24
  53. data/ext/gtk2/rbgtkentry.c +0 -4
  54. data/ext/gtk2/rbgtkentrycompletion.c +0 -10
  55. data/ext/gtk2/rbgtkexpander.c +0 -6
  56. data/ext/gtk2/rbgtkfilechooser.c +0 -10
  57. data/ext/gtk2/rbgtkfilechooserbutton.c +0 -6
  58. data/ext/gtk2/rbgtkfilechooserdialog.c +0 -8
  59. data/ext/gtk2/rbgtkfilechooserwidget.c +0 -6
  60. data/ext/gtk2/rbgtkfilefilter.c +0 -11
  61. data/ext/gtk2/rbgtkfilesystemerror.c +0 -2
  62. data/ext/gtk2/rbgtkfontbutton.c +0 -6
  63. data/ext/gtk2/rbgtkiconinfo.c +0 -5
  64. data/ext/gtk2/rbgtkiconsize.c +0 -4
  65. data/ext/gtk2/rbgtkicontheme.c +0 -11
  66. data/ext/gtk2/rbgtkiconview.c +0 -9
  67. data/ext/gtk2/rbgtkimage.c +0 -8
  68. data/ext/gtk2/rbgtkinvisible.c +0 -4
  69. data/ext/gtk2/rbgtklinkbutton.c +0 -5
  70. data/ext/gtk2/rbgtkliststore.c +0 -14
  71. data/ext/gtk2/rbgtkmenu.c +0 -12
  72. data/ext/gtk2/rbgtkmenubar.c +0 -2
  73. data/ext/gtk2/rbgtkmenushell.c +0 -4
  74. data/ext/gtk2/rbgtkmenutoolbutton.c +0 -5
  75. data/ext/gtk2/rbgtkmessagedialog.c +0 -4
  76. data/ext/gtk2/rbgtknotebook.c +0 -9
  77. data/ext/gtk2/rbgtkpagesetup.c +0 -5
  78. data/ext/gtk2/rbgtkpapersize.c +0 -6
  79. data/ext/gtk2/rbgtkprintcontext.c +0 -5
  80. data/ext/gtk2/rbgtkprintoperation.c +0 -5
  81. data/ext/gtk2/rbgtkprintoperationpreview.c +0 -5
  82. data/ext/gtk2/rbgtkprintsettings.c +0 -5
  83. data/ext/gtk2/rbgtkradioaction.c +0 -18
  84. data/ext/gtk2/rbgtkradiotoolbutton.c +0 -6
  85. data/ext/gtk2/rbgtkrange.c +0 -2
  86. data/ext/gtk2/rbgtkrc.c +0 -4
  87. data/ext/gtk2/rbgtkrecentchooser.c +0 -6
  88. data/ext/gtk2/rbgtkrecentchooserdialog.c +0 -5
  89. data/ext/gtk2/rbgtkrecentchoosermenu.c +0 -6
  90. data/ext/gtk2/rbgtkrecentchooserwidget.c +0 -5
  91. data/ext/gtk2/rbgtkrecentdata.c +0 -6
  92. data/ext/gtk2/rbgtkrecentfilter.c +0 -5
  93. data/ext/gtk2/rbgtkrecentfilterinfo.c +0 -6
  94. data/ext/gtk2/rbgtkrecentinfo.c +0 -5
  95. data/ext/gtk2/rbgtkrecentmanager.c +0 -5
  96. data/ext/gtk2/rbgtkscale.c +0 -6
  97. data/ext/gtk2/rbgtkscrolledwindow.c +0 -9
  98. data/ext/gtk2/rbgtkselection.c +0 -8
  99. data/ext/gtk2/rbgtkselectiondata.c +2 -14
  100. data/ext/gtk2/rbgtkseparatortoolitem.c +0 -6
  101. data/ext/gtk2/rbgtksettings.c +0 -4
  102. data/ext/gtk2/rbgtksizegroup.c +0 -5
  103. data/ext/gtk2/rbgtkstatusicon.c +0 -5
  104. data/ext/gtk2/rbgtkstock.c +0 -38
  105. data/ext/gtk2/rbgtkstyle.c +0 -8
  106. data/ext/gtk2/rbgtktargetlist.c +0 -34
  107. data/ext/gtk2/rbgtktextbuffer.c +0 -12
  108. data/ext/gtk2/rbgtktextiter.c +0 -8
  109. data/ext/gtk2/rbgtktextview.c +0 -4
  110. data/ext/gtk2/rbgtktoggleaction.c +0 -7
  111. data/ext/gtk2/rbgtktoggletoolbutton.c +0 -6
  112. data/ext/gtk2/rbgtktoolbar.c +0 -6
  113. data/ext/gtk2/rbgtktoolbutton.c +0 -6
  114. data/ext/gtk2/rbgtktoolitem.c +0 -9
  115. data/ext/gtk2/rbgtktooltips.c +0 -4
  116. data/ext/gtk2/rbgtktreeiter.c +0 -4
  117. data/ext/gtk2/rbgtktreemodelfilter.c +0 -5
  118. data/ext/gtk2/rbgtktreemodelsort.c +0 -4
  119. data/ext/gtk2/rbgtktreerowreference.c +0 -4
  120. data/ext/gtk2/rbgtktreeselection.c +0 -4
  121. data/ext/gtk2/rbgtktreestore.c +0 -19
  122. data/ext/gtk2/rbgtktreeview.c +0 -24
  123. data/ext/gtk2/rbgtktreeviewcolumn.c +0 -10
  124. data/ext/gtk2/rbgtkuimanager.c +0 -6
  125. data/ext/gtk2/rbgtkwidget.c +1 -31
  126. data/ext/gtk2/rbgtkwindow.c +2 -47
  127. data/lib/1.9/gtk2.so +0 -0
  128. data/lib/2.0/gtk2.so +0 -0
  129. data/sample/gtk-demo/common.rb +6 -1
  130. data/sample/gtk-demo/main.rb +89 -85
  131. data/test/test_gtk_icon_theme.rb +11 -6
  132. data/vendor/local/bin/gtk-demo.exe +0 -0
  133. data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
  134. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  135. data/vendor/local/bin/libgailutil-18.dll +0 -0
  136. data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
  137. data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
  138. data/vendor/local/include/gtk-2.0/gtk/gtksignal.h +3 -1
  139. data/vendor/local/include/gtk-2.0/gtk/gtkversion.h +3 -3
  140. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
  141. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll.a +0 -0
  142. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.la +2 -2
  143. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
  144. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll.a +0 -0
  145. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.la +2 -2
  146. data/vendor/local/lib/gtk-2.0/2.10.0/immodules.cache +40 -0
  147. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll +0 -0
  148. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.dll.a +0 -0
  149. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-am-et.la +2 -2
  150. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll +0 -0
  151. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.dll.a +0 -0
  152. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cedilla.la +2 -2
  153. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll +0 -0
  154. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.dll.a +0 -0
  155. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-cyrillic-translit.la +2 -2
  156. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll +0 -0
  157. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.dll.a +0 -0
  158. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ime.la +2 -2
  159. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll +0 -0
  160. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.dll.a +0 -0
  161. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-inuktitut.la +2 -2
  162. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll +0 -0
  163. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.dll.a +0 -0
  164. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ipa.la +2 -2
  165. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll +0 -0
  166. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.dll.a +0 -0
  167. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-multipress.la +2 -2
  168. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll +0 -0
  169. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.dll.a +0 -0
  170. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-thai.la +2 -2
  171. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll +0 -0
  172. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.dll.a +0 -0
  173. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-er.la +2 -2
  174. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll +0 -0
  175. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.dll.a +0 -0
  176. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-ti-et.la +2 -2
  177. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll +0 -0
  178. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.dll.a +0 -0
  179. data/vendor/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.la +2 -2
  180. data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
  181. data/vendor/local/lib/gtk-2.0/modules/libgail.dll.a +0 -0
  182. data/vendor/local/lib/gtk-2.0/modules/libgail.la +2 -2
  183. data/vendor/local/lib/libgailutil.dll.a +0 -0
  184. data/vendor/local/lib/libgailutil.la +2 -2
  185. data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
  186. data/vendor/local/lib/libgdk-win32-2.0.la +3 -3
  187. data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
  188. data/vendor/local/lib/libgtk-win32-2.0.la +3 -3
  189. data/vendor/local/lib/pkgconfig/gail.pc +1 -1
  190. data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
  191. data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
  192. data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
  193. data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
  194. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +111 -111
  195. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +33 -33
  196. data/vendor/local/share/gtk-doc/html/gail-libgail-util/index.html +2 -2
  197. data/vendor/local/share/gtk-doc/html/gail-libgail-util/libgail-util-main.html +2 -2
  198. data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplay.html +101 -99
  199. data/vendor/local/share/gtk-doc/html/gdk2/GdkDisplayManager.html +9 -9
  200. data/vendor/local/share/gtk-doc/html/gdk2/GdkScreen.html +167 -167
  201. data/vendor/local/share/gtk-doc/html/gdk2/annotation-glossary.html +31 -22
  202. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-10.html +2 -2
  203. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-12.html +2 -2
  204. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-14.html +2 -2
  205. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-16.html +2 -2
  206. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-18.html +2 -2
  207. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-2.html +2 -2
  208. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-20.html +2 -2
  209. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-22.html +2 -2
  210. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-4.html +2 -2
  211. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-6.html +2 -2
  212. data/vendor/local/share/gtk-doc/html/gdk2/api-index-2-8.html +2 -2
  213. data/vendor/local/share/gtk-doc/html/gdk2/api-index-deprecated.html +2 -2
  214. data/vendor/local/share/gtk-doc/html/gdk2/api-index-full.html +8 -8
  215. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Application-launching.html +15 -15
  216. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Bitmaps-and-Pixmaps.html +68 -68
  217. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cairo-Interaction.html +36 -36
  218. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Colormaps-and-Colors.html +89 -89
  219. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Cursors.html +25 -25
  220. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drag-and-Drop.html +47 -47
  221. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Drawing-Primitives.html +268 -268
  222. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Event-Structures.html +106 -106
  223. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Events.html +66 -66
  224. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Fonts.html +125 -125
  225. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-GdkRGB.html +125 -125
  226. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-General.html +85 -85
  227. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Graphics-Contexts.html +54 -54
  228. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Images.html +54 -54
  229. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input-Devices.html +59 -59
  230. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Input.html +25 -25
  231. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Keyboard-Handling.html +121 -104
  232. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pango-Interaction.html +111 -111
  233. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Pixbufs.html +41 -41
  234. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Points-Rectangles-and-Regions.html +49 -49
  235. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Properties-and-Atoms.html +133 -132
  236. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Selections.html +39 -39
  237. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Testing.html +20 -20
  238. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Threads.html +105 -105
  239. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Visuals.html +59 -59
  240. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-Windows.html +478 -478
  241. data/vendor/local/share/gtk-doc/html/gdk2/gdk2-X-Window-System-Interaction.html +76 -76
  242. data/vendor/local/share/gtk-doc/html/gdk2/index.html +2 -2
  243. data/vendor/local/share/gtk-doc/html/gdk2/index.sgml +6 -6
  244. data/vendor/local/share/gtk-doc/html/gdk2/multihead.html +8 -8
  245. data/vendor/local/share/gtk-doc/html/gdk2/reference.html +2 -2
  246. data/vendor/local/share/gtk-doc/html/gtk2/AbstractObjects.html +2 -2
  247. data/vendor/local/share/gtk-doc/html/gtk2/Actions.html +2 -2
  248. data/vendor/local/share/gtk-doc/html/gtk2/Builder.html +2 -2
  249. data/vendor/local/share/gtk-doc/html/gtk2/ButtonWidgets.html +2 -2
  250. data/vendor/local/share/gtk-doc/html/gtk2/DeprecatedObjects.html +2 -2
  251. data/vendor/local/share/gtk-doc/html/gtk2/DisplayWidgets.html +2 -2
  252. data/vendor/local/share/gtk-doc/html/gtk2/GtkAboutDialog.html +144 -144
  253. data/vendor/local/share/gtk-doc/html/gtk2/GtkAccelLabel.html +17 -17
  254. data/vendor/local/share/gtk-doc/html/gtk2/GtkAccessible.html +5 -5
  255. data/vendor/local/share/gtk-doc/html/gtk2/GtkAction.html +135 -135
  256. data/vendor/local/share/gtk-doc/html/gtk2/GtkActionGroup.html +112 -112
  257. data/vendor/local/share/gtk-doc/html/gtk2/GtkActivatable.html +25 -25
  258. data/vendor/local/share/gtk-doc/html/gtk2/GtkAdjustment.html +80 -80
  259. data/vendor/local/share/gtk-doc/html/gtk2/GtkAlignment.html +56 -56
  260. data/vendor/local/share/gtk-doc/html/gtk2/GtkArrow.html +6 -6
  261. data/vendor/local/share/gtk-doc/html/gtk2/GtkAspectFrame.html +32 -32
  262. data/vendor/local/share/gtk-doc/html/gtk2/GtkAssistant.html +73 -73
  263. data/vendor/local/share/gtk-doc/html/gtk2/GtkBin.html +5 -5
  264. data/vendor/local/share/gtk-doc/html/gtk2/GtkBox.html +70 -70
  265. data/vendor/local/share/gtk-doc/html/gtk2/GtkBuildable.html +54 -54
  266. data/vendor/local/share/gtk-doc/html/gtk2/GtkBuilder.html +129 -129
  267. data/vendor/local/share/gtk-doc/html/gtk2/GtkButton.html +75 -75
  268. data/vendor/local/share/gtk-doc/html/gtk2/GtkButtonBox.html +36 -36
  269. data/vendor/local/share/gtk-doc/html/gtk2/GtkCList.html +296 -296
  270. data/vendor/local/share/gtk-doc/html/gtk2/GtkCTree.html +214 -214
  271. data/vendor/local/share/gtk-doc/html/gtk2/GtkCalendar.html +99 -99
  272. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellEditable.html +10 -10
  273. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellLayout.html +29 -29
  274. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRenderer.html +104 -104
  275. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererAccel.html +16 -16
  276. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererCombo.html +14 -14
  277. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererPixbuf.html +27 -27
  278. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererProgress.html +17 -17
  279. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpin.html +9 -9
  280. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererSpinner.html +9 -9
  281. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererText.html +98 -98
  282. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellRendererToggle.html +36 -36
  283. data/vendor/local/share/gtk-doc/html/gtk2/GtkCellView.html +26 -26
  284. data/vendor/local/share/gtk-doc/html/gtk2/GtkCheckButton.html +12 -12
  285. data/vendor/local/share/gtk-doc/html/gtk2/GtkColorButton.html +27 -27
  286. data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelection.html +55 -55
  287. data/vendor/local/share/gtk-doc/html/gtk2/GtkColorSelectionDialog.html +6 -6
  288. data/vendor/local/share/gtk-doc/html/gtk2/GtkCombo.html +43 -43
  289. data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBox.html +116 -114
  290. data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxEntry.html +13 -13
  291. data/vendor/local/share/gtk-doc/html/gtk2/GtkComboBoxText.html +18 -18
  292. data/vendor/local/share/gtk-doc/html/gtk2/GtkContainer.html +95 -95
  293. data/vendor/local/share/gtk-doc/html/gtk2/GtkCurve.html +28 -28
  294. data/vendor/local/share/gtk-doc/html/gtk2/GtkDialog.html +77 -77
  295. data/vendor/local/share/gtk-doc/html/gtk2/GtkDrawingArea.html +14 -14
  296. data/vendor/local/share/gtk-doc/html/gtk2/GtkEditable.html +62 -62
  297. data/vendor/local/share/gtk-doc/html/gtk2/GtkEntry.html +299 -299
  298. data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryBuffer.html +61 -61
  299. data/vendor/local/share/gtk-doc/html/gtk2/GtkEntryCompletion.html +106 -106
  300. data/vendor/local/share/gtk-doc/html/gtk2/GtkEventBox.html +19 -19
  301. data/vendor/local/share/gtk-doc/html/gtk2/GtkExpander.html +61 -61
  302. data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooser.html +219 -219
  303. data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserButton.html +34 -34
  304. data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserDialog.html +20 -20
  305. data/vendor/local/share/gtk-doc/html/gtk2/GtkFileChooserWidget.html +6 -6
  306. data/vendor/local/share/gtk-doc/html/gtk2/GtkFileSelection.html +34 -34
  307. data/vendor/local/share/gtk-doc/html/gtk2/GtkFixed.html +23 -23
  308. data/vendor/local/share/gtk-doc/html/gtk2/GtkFontButton.html +61 -61
  309. data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelection.html +32 -32
  310. data/vendor/local/share/gtk-doc/html/gtk2/GtkFontSelectionDialog.html +22 -22
  311. data/vendor/local/share/gtk-doc/html/gtk2/GtkFrame.html +31 -31
  312. data/vendor/local/share/gtk-doc/html/gtk2/GtkGammaCurve.html +4 -4
  313. data/vendor/local/share/gtk-doc/html/gtk2/GtkHBox.html +9 -9
  314. data/vendor/local/share/gtk-doc/html/gtk2/GtkHButtonBox.html +8 -8
  315. data/vendor/local/share/gtk-doc/html/gtk2/GtkHPaned.html +4 -4
  316. data/vendor/local/share/gtk-doc/html/gtk2/GtkHRuler.html +4 -4
  317. data/vendor/local/share/gtk-doc/html/gtk2/GtkHSV.html +50 -50
  318. data/vendor/local/share/gtk-doc/html/gtk2/GtkHScale.html +10 -10
  319. data/vendor/local/share/gtk-doc/html/gtk2/GtkHScrollbar.html +6 -6
  320. data/vendor/local/share/gtk-doc/html/gtk2/GtkHSeparator.html +4 -4
  321. data/vendor/local/share/gtk-doc/html/gtk2/GtkHandleBox.html +16 -16
  322. data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContext.html +71 -71
  323. data/vendor/local/share/gtk-doc/html/gtk2/GtkIMContextSimple.html +10 -10
  324. data/vendor/local/share/gtk-doc/html/gtk2/GtkIMMulticontext.html +3 -3
  325. data/vendor/local/share/gtk-doc/html/gtk2/GtkIconTheme.html +115 -115
  326. data/vendor/local/share/gtk-doc/html/gtk2/GtkIconView.html +222 -222
  327. data/vendor/local/share/gtk-doc/html/gtk2/GtkImage.html +105 -105
  328. data/vendor/local/share/gtk-doc/html/gtk2/GtkImageMenuItem.html +32 -32
  329. data/vendor/local/share/gtk-doc/html/gtk2/GtkInfoBar.html +43 -43
  330. data/vendor/local/share/gtk-doc/html/gtk2/GtkInputDialog.html +8 -8
  331. data/vendor/local/share/gtk-doc/html/gtk2/GtkInvisible.html +4 -4
  332. data/vendor/local/share/gtk-doc/html/gtk2/GtkItem.html +10 -10
  333. data/vendor/local/share/gtk-doc/html/gtk2/GtkItemFactory.html +109 -109
  334. data/vendor/local/share/gtk-doc/html/gtk2/GtkLabel.html +205 -205
  335. data/vendor/local/share/gtk-doc/html/gtk2/GtkLayout.html +35 -35
  336. data/vendor/local/share/gtk-doc/html/gtk2/GtkLinkButton.html +34 -34
  337. data/vendor/local/share/gtk-doc/html/gtk2/GtkList.html +42 -42
  338. data/vendor/local/share/gtk-doc/html/gtk2/GtkListItem.html +30 -30
  339. data/vendor/local/share/gtk-doc/html/gtk2/GtkListStore.html +68 -68
  340. data/vendor/local/share/gtk-doc/html/gtk2/GtkMenu.html +115 -115
  341. data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuBar.html +6 -6
  342. data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuItem.html +68 -68
  343. data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuShell.html +47 -47
  344. data/vendor/local/share/gtk-doc/html/gtk2/GtkMenuToolButton.html +20 -20
  345. data/vendor/local/share/gtk-doc/html/gtk2/GtkMessageDialog.html +48 -48
  346. data/vendor/local/share/gtk-doc/html/gtk2/GtkMisc.html +36 -36
  347. data/vendor/local/share/gtk-doc/html/gtk2/GtkNotebook.html +230 -230
  348. data/vendor/local/share/gtk-doc/html/gtk2/GtkObject.html +119 -119
  349. data/vendor/local/share/gtk-doc/html/gtk2/GtkOffscreenWindow.html +10 -10
  350. data/vendor/local/share/gtk-doc/html/gtk2/GtkOldEditable.html +52 -52
  351. data/vendor/local/share/gtk-doc/html/gtk2/GtkOptionMenu.html +10 -10
  352. data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetup.html +77 -77
  353. data/vendor/local/share/gtk-doc/html/gtk2/GtkPageSetupUnixDialog.html +8 -8
  354. data/vendor/local/share/gtk-doc/html/gtk2/GtkPaned.html +57 -57
  355. data/vendor/local/share/gtk-doc/html/gtk2/GtkPaperSize.html +70 -70
  356. data/vendor/local/share/gtk-doc/html/gtk2/GtkPixmap.html +8 -8
  357. data/vendor/local/share/gtk-doc/html/gtk2/GtkPlug.html +13 -13
  358. data/vendor/local/share/gtk-doc/html/gtk2/GtkPreview.html +47 -47
  359. data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintContext.html +60 -60
  360. data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintJob.html +42 -42
  361. data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintSettings.html +212 -212
  362. data/vendor/local/share/gtk-doc/html/gtk2/GtkPrintUnixDialog.html +38 -38
  363. data/vendor/local/share/gtk-doc/html/gtk2/GtkPrinter.html +98 -98
  364. data/vendor/local/share/gtk-doc/html/gtk2/GtkProgress.html +48 -48
  365. data/vendor/local/share/gtk-doc/html/gtk2/GtkProgressBar.html +60 -60
  366. data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioAction.html +31 -31
  367. data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioButton.html +32 -32
  368. data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioMenuItem.html +28 -28
  369. data/vendor/local/share/gtk-doc/html/gtk2/GtkRadioToolButton.html +18 -18
  370. data/vendor/local/share/gtk-doc/html/gtk2/GtkRange.html +113 -113
  371. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentAction.html +34 -34
  372. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooser.html +117 -117
  373. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserDialog.html +18 -18
  374. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserMenu.html +11 -11
  375. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentChooserWidget.html +4 -4
  376. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentFilter.html +38 -38
  377. data/vendor/local/share/gtk-doc/html/gtk2/GtkRecentManager.html +154 -154
  378. data/vendor/local/share/gtk-doc/html/gtk2/GtkRuler.html +32 -32
  379. data/vendor/local/share/gtk-doc/html/gtk2/GtkScale.html +49 -49
  380. data/vendor/local/share/gtk-doc/html/gtk2/GtkScaleButton.html +32 -32
  381. data/vendor/local/share/gtk-doc/html/gtk2/GtkScrollbar.html +16 -16
  382. data/vendor/local/share/gtk-doc/html/gtk2/GtkScrolledWindow.html +45 -24
  383. data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparator.html +4 -4
  384. data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorMenuItem.html +4 -4
  385. data/vendor/local/share/gtk-doc/html/gtk2/GtkSeparatorToolItem.html +13 -13
  386. data/vendor/local/share/gtk-doc/html/gtk2/GtkSettings.html +236 -220
  387. data/vendor/local/share/gtk-doc/html/gtk2/GtkSizeGroup.html +15 -15
  388. data/vendor/local/share/gtk-doc/html/gtk2/GtkSocket.html +14 -14
  389. data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinButton.html +95 -95
  390. data/vendor/local/share/gtk-doc/html/gtk2/GtkSpinner.html +10 -10
  391. data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusIcon.html +177 -177
  392. data/vendor/local/share/gtk-doc/html/gtk2/GtkStatusbar.html +39 -39
  393. data/vendor/local/share/gtk-doc/html/gtk2/GtkStyle.html +476 -476
  394. data/vendor/local/share/gtk-doc/html/gtk2/GtkTable.html +95 -95
  395. data/vendor/local/share/gtk-doc/html/gtk2/GtkTearoffMenuItem.html +4 -4
  396. data/vendor/local/share/gtk-doc/html/gtk2/GtkText.html +38 -38
  397. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextBuffer.html +241 -241
  398. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextIter.html +319 -319
  399. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextMark.html +29 -29
  400. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTag.html +153 -153
  401. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextTagTable.html +19 -19
  402. data/vendor/local/share/gtk-doc/html/gtk2/GtkTextView.html +248 -248
  403. data/vendor/local/share/gtk-doc/html/gtk2/GtkTipsQuery.html +29 -29
  404. data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleAction.html +29 -29
  405. data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleButton.html +48 -48
  406. data/vendor/local/share/gtk-doc/html/gtk2/GtkToggleToolButton.html +18 -18
  407. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolButton.html +64 -64
  408. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItem.html +75 -75
  409. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolItemGroup.html +56 -56
  410. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolPalette.html +41 -41
  411. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolShell.html +6 -6
  412. data/vendor/local/share/gtk-doc/html/gtk2/GtkToolbar.html +129 -129
  413. data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltip.html +33 -33
  414. data/vendor/local/share/gtk-doc/html/gtk2/GtkTooltips.html +19 -19
  415. data/vendor/local/share/gtk-doc/html/gtk2/GtkTree.html +36 -36
  416. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeItem.html +10 -10
  417. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModel.html +158 -158
  418. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelFilter.html +50 -50
  419. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeModelSort.html +18 -18
  420. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSelection.html +45 -45
  421. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeSortable.html +36 -36
  422. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeStore.html +77 -77
  423. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeView.html +482 -482
  424. data/vendor/local/share/gtk-doc/html/gtk2/GtkTreeViewColumn.html +180 -180
  425. data/vendor/local/share/gtk-doc/html/gtk2/GtkUIManager.html +66 -66
  426. data/vendor/local/share/gtk-doc/html/gtk2/GtkVBox.html +9 -9
  427. data/vendor/local/share/gtk-doc/html/gtk2/GtkVButtonBox.html +8 -8
  428. data/vendor/local/share/gtk-doc/html/gtk2/GtkVPaned.html +4 -4
  429. data/vendor/local/share/gtk-doc/html/gtk2/GtkVRuler.html +4 -4
  430. data/vendor/local/share/gtk-doc/html/gtk2/GtkVScale.html +10 -10
  431. data/vendor/local/share/gtk-doc/html/gtk2/GtkVScrollbar.html +6 -6
  432. data/vendor/local/share/gtk-doc/html/gtk2/GtkVSeparator.html +4 -4
  433. data/vendor/local/share/gtk-doc/html/gtk2/GtkViewport.html +6 -6
  434. data/vendor/local/share/gtk-doc/html/gtk2/GtkVolumeButton.html +4 -4
  435. data/vendor/local/share/gtk-doc/html/gtk2/GtkWidget.html +803 -803
  436. data/vendor/local/share/gtk-doc/html/gtk2/GtkWindow.html +324 -324
  437. data/vendor/local/share/gtk-doc/html/gtk2/GtkWindowGroup.html +5 -5
  438. data/vendor/local/share/gtk-doc/html/gtk2/LayoutContainers.html +2 -2
  439. data/vendor/local/share/gtk-doc/html/gtk2/MenusAndCombos.html +2 -2
  440. data/vendor/local/share/gtk-doc/html/gtk2/MiscObjects.html +2 -2
  441. data/vendor/local/share/gtk-doc/html/gtk2/NumericEntry.html +2 -2
  442. data/vendor/local/share/gtk-doc/html/gtk2/Ornaments.html +2 -2
  443. data/vendor/local/share/gtk-doc/html/gtk2/PlugSocket.html +2 -2
  444. data/vendor/local/share/gtk-doc/html/gtk2/Printing.html +2 -2
  445. data/vendor/local/share/gtk-doc/html/gtk2/RecentDocuments.html +2 -2
  446. data/vendor/local/share/gtk-doc/html/gtk2/ScrollingWidgets.html +2 -2
  447. data/vendor/local/share/gtk-doc/html/gtk2/SelectorWidgets.html +2 -2
  448. data/vendor/local/share/gtk-doc/html/gtk2/SpecialObjects.html +2 -2
  449. data/vendor/local/share/gtk-doc/html/gtk2/TextWidget.html +5 -5
  450. data/vendor/local/share/gtk-doc/html/gtk2/TextWidgetObjects.html +2 -2
  451. data/vendor/local/share/gtk-doc/html/gtk2/TreeWidget.html +25 -25
  452. data/vendor/local/share/gtk-doc/html/gtk2/TreeWidgetObjects.html +2 -2
  453. data/vendor/local/share/gtk-doc/html/gtk2/WindowWidgets.html +2 -2
  454. data/vendor/local/share/gtk-doc/html/gtk2/annotation-glossary.html +34 -31
  455. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-10.html +2 -2
  456. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-12.html +2 -2
  457. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-14.html +2 -2
  458. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-16.html +2 -2
  459. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-18.html +2 -2
  460. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-2.html +2 -2
  461. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-20.html +2 -2
  462. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-22.html +2 -2
  463. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-24.html +10 -2
  464. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-4.html +2 -2
  465. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-6.html +2 -2
  466. data/vendor/local/share/gtk-doc/html/gtk2/api-index-2-8.html +2 -2
  467. data/vendor/local/share/gtk-doc/html/gtk2/api-index-deprecated.html +2 -2
  468. data/vendor/local/share/gtk-doc/html/gtk2/api-index-full.html +26 -18
  469. data/vendor/local/share/gtk-doc/html/gtk2/ch01.html +6 -6
  470. data/vendor/local/share/gtk-doc/html/gtk2/ch02.html +2 -2
  471. data/vendor/local/share/gtk-doc/html/gtk2/chap-drawing-model.html +3 -3
  472. data/vendor/local/share/gtk-doc/html/gtk2/checklist-gdkeventexpose-region.html +2 -2
  473. data/vendor/local/share/gtk-doc/html/gtk2/checklist-modifiers.html +2 -2
  474. data/vendor/local/share/gtk-doc/html/gtk2/checklist-named-icons.html +2 -2
  475. data/vendor/local/share/gtk-doc/html/gtk2/decorating-the-assistant-pages.html +2 -2
  476. data/vendor/local/share/gtk-doc/html/gtk2/glossary.html +2 -2
  477. data/vendor/local/share/gtk-doc/html/gtk2/gtk-builder-convert.html +2 -2
  478. data/vendor/local/share/gtk-doc/html/gtk2/gtk-building.html +2 -2
  479. data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-1-2.html +2 -2
  480. data/vendor/local/share/gtk-doc/html/gtk2/gtk-changes-2-0.html +7 -7
  481. data/vendor/local/share/gtk-doc/html/gtk2/gtk-compiling.html +2 -2
  482. data/vendor/local/share/gtk-doc/html/gtk2/gtk-directfb.html +2 -2
  483. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-ClientSideWindows.html +4 -4
  484. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAboutDialog.html +9 -9
  485. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAction.html +2 -2
  486. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkAssistant.html +2 -2
  487. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkBuilder.html +2 -2
  488. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkColorButton.html +5 -5
  489. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkComboBox.html +10 -10
  490. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkFileChooser.html +2 -2
  491. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkIconView.html +9 -9
  492. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkLinkButton.html +5 -5
  493. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-GtkRecentChooser.html +13 -13
  494. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-checklist.html +3 -3
  495. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-entry-icons.html +9 -9
  496. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-label-links.html +2 -2
  497. data/vendor/local/share/gtk-doc/html/gtk2/gtk-migrating-tooltips.html +4 -4
  498. data/vendor/local/share/gtk-doc/html/gtk2/gtk-osx.html +2 -2
  499. data/vendor/local/share/gtk-doc/html/gtk2/gtk-query-immodules-2.0.html +28 -7
  500. data/vendor/local/share/gtk-doc/html/gtk2/gtk-question-index.html +61 -61
  501. data/vendor/local/share/gtk-doc/html/gtk2/gtk-resources.html +2 -2
  502. data/vendor/local/share/gtk-doc/html/gtk2/gtk-running.html +7 -8
  503. data/vendor/local/share/gtk-doc/html/gtk2/gtk-update-icon-cache.html +2 -2
  504. data/vendor/local/share/gtk-doc/html/gtk2/gtk-windows.html +2 -2
  505. data/vendor/local/share/gtk-doc/html/gtk2/gtk-x11.html +2 -2
  506. data/vendor/local/share/gtk-doc/html/gtk2/gtk.html +2 -2
  507. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Accelerator-Maps.html +54 -54
  508. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Bindings.html +57 -57
  509. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Clipboards.html +128 -128
  510. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Drag-and-Drop.html +89 -89
  511. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Feature-Test-Macros.html +13 -13
  512. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Filesystem-utilities.html +27 -27
  513. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-General.html +180 -180
  514. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Graphics-Contexts.html +4 -4
  515. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-GtkTreeView-drag-and-drop.html +26 -26
  516. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-High-level-Printing-API.html +184 -184
  517. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Keyboard-Accelerators.html +102 -102
  518. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Orientable.html +3 -3
  519. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Resource-Files.html +73 -73
  520. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Selections.html +161 -161
  521. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Signals.html +97 -97
  522. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Standard-Enumerations.html +2 -2
  523. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Stock-Items.html +28 -28
  524. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Testing.html +54 -54
  525. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Themeable-Stock-Images.html +84 -84
  526. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-Types.html +40 -40
  527. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkcheckmenuitem.html +36 -36
  528. data/vendor/local/share/gtk-doc/html/gtk2/gtk2-gtkfilefilter.html +31 -31
  529. data/vendor/local/share/gtk-doc/html/gtk2/gtk2.devhelp2 +4 -2
  530. data/vendor/local/share/gtk-doc/html/gtk2/gtkbase.html +2 -2
  531. data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-installing-extra-widgets.html +2 -2
  532. data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-installing-preview.html +2 -2
  533. data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-new-features.html +2 -2
  534. data/vendor/local/share/gtk-doc/html/gtk2/gtkfilechooser-selection-modes.html +3 -3
  535. data/vendor/local/share/gtk-doc/html/gtk2/gtkobjects.html +2 -2
  536. data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-advanced.html +6 -6
  537. data/vendor/local/share/gtk-doc/html/gtk2/gtkrecent-chooser.html +3 -3
  538. data/vendor/local/share/gtk-doc/html/gtk2/index.html +2 -2
  539. data/vendor/local/share/gtk-doc/html/gtk2/index.sgml +10 -8
  540. data/vendor/local/share/gtk-doc/html/gtk2/migrating-GtkCombo.html +9 -9
  541. data/vendor/local/share/gtk-doc/html/gtk2/migrating-gnomeuiinfo.html +2 -2
  542. data/vendor/local/share/gtk-doc/html/gtk2/migrating.html +2 -2
  543. data/vendor/local/share/gtk-doc/html/gtk2/new-features-GtkComboBox.html +2 -2
  544. data/vendor/local/share/gtk-doc/html/gtk2/pt05.html +2 -2
  545. data/vendor/local/share/gtk-doc/html/gtk2/setting-the-page-flow.html +2 -2
  546. data/vendor/local/share/gtk-doc/html/gtk2/ui-manager.html +2 -2
  547. data/vendor/local/share/icons/hicolor/index.theme +179 -11
  548. data/vendor/local/share/locale/de/LC_MESSAGES/gtk20-properties.mo +0 -0
  549. data/vendor/local/share/locale/de/LC_MESSAGES/gtk20.mo +0 -0
  550. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk20.mo +0 -0
  551. data/vendor/local/share/locale/it/LC_MESSAGES/gtk20.mo +0 -0
  552. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk20.mo +0 -0
  553. data/vendor/local/share/locale/th/LC_MESSAGES/gtk20.mo +0 -0
  554. metadata +15 -23
  555. data/vendor/local/etc/gtk-2.0/gtk.immodules +0 -39
@@ -21,8 +21,6 @@
21
21
 
22
22
  #include "global.h"
23
23
 
24
- #if GTK_CHECK_VERSION(2,2,0)
25
-
26
24
  #define RG_TARGET_NAMESPACE cDisplayManager
27
25
  #define _SELF(obj) GDK_DISPLAY_MANAGER(RVAL2GOBJ(obj))
28
26
 
@@ -45,15 +43,12 @@ gdkdisplaymanager_get_core_pointer(VALUE self)
45
43
  return GOBJ2RVAL(gdk_display_get_core_pointer(_SELF(self)));
46
44
  }
47
45
  */
48
- #endif
49
46
 
50
47
  void
51
48
  Init_gtk_gdk_display_manager(VALUE mGdk)
52
49
  {
53
- #if GTK_CHECK_VERSION(2,2,0)
54
50
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_DISPLAY_MANAGER, "DisplayManager", mGdk);
55
51
 
56
52
  RG_DEF_SMETHOD(get, 0);
57
53
  RG_DEF_METHOD(displays, 0);
58
- #endif
59
54
  }
@@ -102,15 +102,10 @@ rg_s_get_protocol(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
102
102
  rb_scan_args(argc, argv, "10", &xid);
103
103
  ret = gdk_drag_get_protocol(RVAL2GDKNATIVEWINDOW(xid), &prot);
104
104
  } else {
105
- #if GTK_CHECK_VERSION(2,2,0)
106
105
  VALUE display;
107
106
  rb_scan_args(argc, argv, "20", &display, &xid);
108
107
  ret = gdk_drag_get_protocol_for_display(GDK_DISPLAY_OBJECT(RVAL2GOBJ(display)),
109
108
  RVAL2GDKNATIVEWINDOW(xid), &prot);
110
- #else
111
- rb_warn("Not supported arguments for Gdk::Display in GTK+-2.0.x.");
112
- ret = gdk_drag_get_protocol(NUM2UINT(xid), &prot);
113
- #endif
114
109
  }
115
110
 
116
111
  return rb_ary_new3(2, GENUM2RVAL(prot, GDK_TYPE_DRAG_PROTOCOL), GDKNATIVEWINDOW2RVAL(ret));
@@ -158,7 +153,6 @@ rg_find_window(int argc, VALUE *argv, VALUE self)
158
153
  NUM2INT(x_root), NUM2INT(y_root),
159
154
  &dest_window, &prot);
160
155
  } else {
161
- #if GTK_CHECK_VERSION(2,2,0)
162
156
  VALUE screen;
163
157
  rb_scan_args(argc, argv, "40", &drag_window, &screen, &x_root, &y_root);
164
158
  gdk_drag_find_window_for_screen(_SELF(self),
@@ -166,9 +160,6 @@ rg_find_window(int argc, VALUE *argv, VALUE self)
166
160
  GDK_SCREEN(RVAL2GOBJ(screen)),
167
161
  NUM2INT(x_root), NUM2INT(y_root),
168
162
  &dest_window, &prot);
169
- #else
170
- rb_raise(rb_eArgError, "Wrong number of arguments: %d", argc);
171
- #endif
172
163
  }
173
164
 
174
165
  return rb_ary_new3(2, GOBJ2RVAL(dest_window),
@@ -258,13 +249,11 @@ rg_drag_status(VALUE self, VALUE action, VALUE time)
258
249
  return self;
259
250
  }
260
251
 
261
- #if GTK_CHECK_VERSION(2,6,0)
262
252
  static VALUE
263
253
  rg_drag_drop_succeeded_p(VALUE self)
264
254
  {
265
255
  return CBOOL2RVAL(gdk_drag_drop_succeeded(_SELF(self)));
266
256
  }
267
- #endif
268
257
 
269
258
  void
270
259
  Init_gtk_gdk_dragcontext(VALUE mGdk)
@@ -293,9 +282,7 @@ Init_gtk_gdk_dragcontext(VALUE mGdk)
293
282
  RG_DEF_METHOD(drag_motion, 7);
294
283
  RG_DEF_METHOD(drop_finish, 2);
295
284
  RG_DEF_METHOD(drag_status, 2);
296
- #if GTK_CHECK_VERSION(2,6,0)
297
285
  RG_DEF_METHOD_P(drag_drop_succeeded, 0);
298
- #endif
299
286
  /* Constants */
300
287
  G_DEF_CLASS(GDK_TYPE_DRAG_PROTOCOL, "Protocol", RG_TARGET_NAMESPACE);
301
288
  G_DEF_CLASS(GDK_TYPE_DRAG_ACTION, "Action", RG_TARGET_NAMESPACE);
@@ -136,7 +136,6 @@ rg_draw_lines(VALUE self, VALUE rbgc, VALUE rbpoints)
136
136
  return self;
137
137
  }
138
138
 
139
- #if GTK_CHECK_VERSION(2,2,0)
140
139
  static VALUE
141
140
  rg_draw_pixbuf(VALUE self, VALUE gc, VALUE pixbuf, VALUE src_x, VALUE src_y, VALUE dest_x, VALUE dest_y, VALUE width, VALUE height, VALUE dither, VALUE x_dither, VALUE y_dither)
142
141
  {
@@ -150,7 +149,6 @@ rg_draw_pixbuf(VALUE self, VALUE gc, VALUE pixbuf, VALUE src_x, VALUE src_y, VAL
150
149
  NUM2INT(x_dither), NUM2INT(y_dither));
151
150
  return self;
152
151
  }
153
- #endif
154
152
 
155
153
  struct rbgdk_rval2gdksegments_args {
156
154
  VALUE ary;
@@ -259,7 +257,6 @@ rg_draw_polygon(VALUE self, VALUE rbgc, VALUE rbfilled, VALUE rbpoints)
259
257
  return self;
260
258
  }
261
259
 
262
- #if GTK_CHECK_VERSION(2,6,0)
263
260
  /*
264
261
  trapezoids = [[y1, x11, x21, y2, x12, x22], ...]
265
262
  */
@@ -334,7 +331,6 @@ rg_draw_trapezoids(VALUE self, VALUE rbgc, VALUE rbtrapezoids)
334
331
 
335
332
  return self;
336
333
  }
337
- #endif
338
334
 
339
335
  static VALUE
340
336
  rg_draw_glyphs(VALUE self, VALUE gc, VALUE font, VALUE x, VALUE y, VALUE glyphs)
@@ -345,7 +341,6 @@ rg_draw_glyphs(VALUE self, VALUE gc, VALUE font, VALUE x, VALUE y, VALUE glyphs)
345
341
  return self;
346
342
  }
347
343
 
348
- #if GTK_CHECK_VERSION(2,6,0)
349
344
  static VALUE
350
345
  rg_draw_glyphs_transformed(VALUE self, VALUE gc, VALUE matrix, VALUE font, VALUE x, VALUE y, VALUE glyphs)
351
346
  {
@@ -356,7 +351,6 @@ rg_draw_glyphs_transformed(VALUE self, VALUE gc, VALUE matrix, VALUE font, VALUE
356
351
  (PangoGlyphString*)(RVAL2BOXED(glyphs, PANGO_TYPE_GLYPH_STRING)));
357
352
  return self;
358
353
  }
359
- #endif
360
354
 
361
355
  static VALUE
362
356
  rg_draw_layout_line(int argc, VALUE *argv, VALUE self)
@@ -418,7 +412,6 @@ rg_get_image(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
418
412
  NUM2INT(w), NUM2INT(h)));
419
413
  }
420
414
 
421
- #if GTK_CHECK_VERSION(2,4,0)
422
415
  static VALUE
423
416
  rg_copy_to_image(VALUE self, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VALUE ydst, VALUE w, VALUE h)
424
417
  {
@@ -428,7 +421,6 @@ rg_copy_to_image(VALUE self, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VA
428
421
  NUM2INT(xdst), NUM2INT(ydst),
429
422
  NUM2INT(w), NUM2INT(h)));
430
423
  }
431
- #endif
432
424
 
433
425
  #ifdef GDK_WINDOWING_X11
434
426
  static VALUE
@@ -448,7 +440,6 @@ rg_handle(VALUE self)
448
440
  }
449
441
  #endif
450
442
 
451
- #if GTK_CHECK_VERSION(2,2,0)
452
443
  static VALUE
453
444
  rg_display(VALUE self)
454
445
  {
@@ -460,10 +451,8 @@ rg_screen(VALUE self)
460
451
  {
461
452
  return GOBJ2RVAL(gdk_drawable_get_screen(_SELF(self)));
462
453
  }
463
- #endif
464
454
 
465
- #if GTK_CHECK_VERSION(2,8,0)
466
- # ifdef HAVE_RB_CAIRO_H
455
+ #ifdef HAVE_RB_CAIRO_H
467
456
  static VALUE
468
457
  rg_create_cairo_context(VALUE self)
469
458
  {
@@ -475,7 +464,6 @@ rg_create_cairo_context(VALUE self)
475
464
  cairo_destroy (cr);
476
465
  return rb_cr;
477
466
  }
478
- # endif
479
467
  #endif
480
468
 
481
469
  void
@@ -494,28 +482,20 @@ Init_gtk_gdk_draw(VALUE mGdk)
494
482
  RG_DEF_METHOD(draw_points, 2);
495
483
  RG_DEF_METHOD(draw_line, 5);
496
484
  RG_DEF_METHOD(draw_lines, 2);
497
- #if GTK_CHECK_VERSION(2,2,0)
498
485
  RG_DEF_METHOD(draw_pixbuf, 11);
499
- #endif
500
486
  RG_DEF_METHOD(draw_segments, 2);
501
487
  RG_DEF_METHOD(draw_rectangle, 6);
502
488
  RG_DEF_METHOD(draw_arc, 8);
503
489
  RG_DEF_METHOD(draw_polygon, 3);
504
- #if GTK_CHECK_VERSION(2,6,0)
505
490
  RG_DEF_METHOD(draw_trapezoids, 2);
506
- #endif
507
491
  RG_DEF_METHOD(draw_glyphs, 5);
508
- #if GTK_CHECK_VERSION(2,6,0)
509
492
  RG_DEF_METHOD(draw_glyphs_transformed, 6);
510
- #endif
511
493
  RG_DEF_METHOD(draw_layout_line, -1);
512
494
  RG_DEF_METHOD(draw_layout, -1);
513
495
  RG_DEF_METHOD(draw_drawable, 8);
514
496
  RG_DEF_METHOD(draw_image, 8);
515
497
  RG_DEF_METHOD(get_image, 4);
516
- #if GTK_CHECK_VERSION(2,4,0)
517
498
  RG_DEF_METHOD(copy_to_image, 7);
518
- #endif
519
499
 
520
500
  #ifdef GDK_WINDOWING_X11
521
501
  RG_DEF_METHOD(xid, 0);
@@ -523,15 +503,11 @@ Init_gtk_gdk_draw(VALUE mGdk)
523
503
  #ifdef GDK_WINDOWING_WIN32
524
504
  RG_DEF_METHOD(handle, 0);
525
505
  #endif
526
- #if GTK_CHECK_VERSION(2,2,0)
527
506
  RG_DEF_METHOD(display, 0);
528
507
  RG_DEF_METHOD(screen, 0);
529
- #endif
530
508
 
531
- #if GTK_CHECK_VERSION(2,8,0)
532
- # ifdef HAVE_RB_CAIRO_H
509
+ #ifdef HAVE_RB_CAIRO_H
533
510
  RG_DEF_METHOD(create_cairo_context, 0);
534
- # endif
535
511
  #endif
536
512
 
537
513
  #ifdef GDK_WINDOWING_X11
@@ -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,31 +23,356 @@
24
23
 
25
24
  #include "global.h"
26
25
 
27
- #if GTK_CHECK_VERSION(2,8,0)
28
- static VALUE gdkevents[36];
29
- #elif GTK_CHECK_VERSION(2,6,0)
30
- static VALUE gdkevents[35];
31
- #else
32
- static VALUE gdkevents[34];
33
- #endif
26
+ static VALUE rb_cGdkEvent;
27
+ static VALUE rb_cGdkEventAny;
28
+ static VALUE rb_cGdkEventExpose;
29
+ static VALUE rb_cGdkEventNoExpose;
30
+ static VALUE rb_cGdkEventVisibility;
31
+ static VALUE rb_cGdkEventMotion;
32
+ static VALUE rb_cGdkEventButton;
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_cGdkEventClient;
43
+ static VALUE rb_cGdkEventDND;
44
+ static VALUE rb_cGdkEventWindowState;
45
+ static VALUE rb_cGdkEventSetting;
46
+ static VALUE rb_cGdkEventGrabBroken;
47
+
48
+ #define DEFINE_EVENT_TYPE(type_lower_case, type_upper_case) \
49
+ static GType \
50
+ rb_gdk_event_ ## type_lower_case ## _get_type(void) \
51
+ { \
52
+ static GType type = 0; \
53
+ if (type == 0) { \
54
+ type = g_boxed_type_register_static("GdkEvent" # type_upper_case, \
55
+ (GBoxedCopyFunc)gdk_event_copy, \
56
+ (GBoxedFreeFunc)gdk_event_free); \
57
+ } \
58
+ return type; \
59
+ }
60
+
61
+ DEFINE_EVENT_TYPE(any, Any)
62
+ DEFINE_EVENT_TYPE(expose, Expose)
63
+ DEFINE_EVENT_TYPE(no_expose, NoExpose)
64
+ DEFINE_EVENT_TYPE(visibility, Visibility)
65
+ DEFINE_EVENT_TYPE(motion, Motion)
66
+ DEFINE_EVENT_TYPE(button, Button)
67
+ DEFINE_EVENT_TYPE(scroll, Scroll)
68
+ DEFINE_EVENT_TYPE(key, Key)
69
+ DEFINE_EVENT_TYPE(crossing, Crossing)
70
+ DEFINE_EVENT_TYPE(focus, Focus)
71
+ DEFINE_EVENT_TYPE(configure, Configure)
72
+ DEFINE_EVENT_TYPE(property, Property)
73
+ DEFINE_EVENT_TYPE(selection, Selection)
74
+ DEFINE_EVENT_TYPE(owner_change, OwnerChange)
75
+ DEFINE_EVENT_TYPE(proximity, Proximity)
76
+ DEFINE_EVENT_TYPE(client, Client)
77
+ DEFINE_EVENT_TYPE(dnd, DND)
78
+ DEFINE_EVENT_TYPE(window_state, WindowState)
79
+ DEFINE_EVENT_TYPE(setting, Setting)
80
+ DEFINE_EVENT_TYPE(grab_broken, GrabBroken)
81
+
82
+ #define GDK_TYPE_EVENT_ANY (rb_gdk_event_any_get_type())
83
+ #define GDK_TYPE_EVENT_EXPOSE (rb_gdk_event_expose_get_type())
84
+ #define GDK_TYPE_EVENT_NO_EXPOSE (rb_gdk_event_no_expose_get_type())
85
+ #define GDK_TYPE_EVENT_VISIBILITY (rb_gdk_event_visibility_get_type())
86
+ #define GDK_TYPE_EVENT_MOTION (rb_gdk_event_motion_get_type())
87
+ #define GDK_TYPE_EVENT_BUTTON (rb_gdk_event_button_get_type())
88
+ #define GDK_TYPE_EVENT_SCROLL (rb_gdk_event_scroll_get_type())
89
+ #define GDK_TYPE_EVENT_KEY (rb_gdk_event_key_get_type())
90
+ #define GDK_TYPE_EVENT_CROSSING (rb_gdk_event_crossing_get_type())
91
+ #define GDK_TYPE_EVENT_FOCUS (rb_gdk_event_focus_get_type())
92
+ #define GDK_TYPE_EVENT_CONFIGURE (rb_gdk_event_configure_get_type())
93
+ #define GDK_TYPE_EVENT_PROPERTY (rb_gdk_event_property_get_type())
94
+ #define GDK_TYPE_EVENT_SELECTION (rb_gdk_event_selection_get_type())
95
+ #define GDK_TYPE_EVENT_OWNER_CHANGE (rb_gdk_event_owner_change_get_type())
96
+ #define GDK_TYPE_EVENT_PROXIMITY (rb_gdk_event_proximity_get_type())
97
+ #define GDK_TYPE_EVENT_CLIENT (rb_gdk_event_client_get_type())
98
+ #define GDK_TYPE_EVENT_DND (rb_gdk_event_dnd_get_type())
99
+ #define GDK_TYPE_EVENT_WINDOW_STATE (rb_gdk_event_window_state_get_type())
100
+ #define GDK_TYPE_EVENT_SETTING (rb_gdk_event_setting_get_type())
101
+ #define GDK_TYPE_EVENT_GRAB_BROKEN (rb_gdk_event_grab_broken_get_type())
34
102
 
35
103
  /***********************************************/
36
104
 
105
+ static GType
106
+ rb_gdk_event_type_to_gtype(GdkEventType event_type)
107
+ {
108
+ GType gtype = GDK_TYPE_EVENT_ANY;
109
+
110
+ switch (event_type) {
111
+ case GDK_NOTHING:
112
+ case GDK_DELETE:
113
+ case GDK_DESTROY:
114
+ break;
115
+ case GDK_EXPOSE:
116
+ gtype = GDK_TYPE_EVENT_EXPOSE;
117
+ break;
118
+ case GDK_MOTION_NOTIFY:
119
+ gtype = GDK_TYPE_EVENT_MOTION;
120
+ break;
121
+ case GDK_BUTTON_PRESS:
122
+ case GDK_2BUTTON_PRESS:
123
+ case GDK_3BUTTON_PRESS:
124
+ case GDK_BUTTON_RELEASE:
125
+ gtype = GDK_TYPE_EVENT_BUTTON;
126
+ break;
127
+ case GDK_KEY_PRESS:
128
+ case GDK_KEY_RELEASE:
129
+ gtype = GDK_TYPE_EVENT_KEY;
130
+ break;
131
+ case GDK_ENTER_NOTIFY:
132
+ case GDK_LEAVE_NOTIFY:
133
+ gtype = GDK_TYPE_EVENT_CROSSING;
134
+ break;
135
+ case GDK_FOCUS_CHANGE:
136
+ gtype = GDK_TYPE_EVENT_FOCUS;
137
+ break;
138
+ case GDK_CONFIGURE:
139
+ gtype = GDK_TYPE_EVENT_CONFIGURE;
140
+ break;
141
+ case GDK_MAP:
142
+ case GDK_UNMAP:
143
+ break;
144
+ case GDK_PROPERTY_NOTIFY:
145
+ gtype = GDK_TYPE_EVENT_PROPERTY;
146
+ break;
147
+ case GDK_SELECTION_CLEAR:
148
+ case GDK_SELECTION_REQUEST:
149
+ case GDK_SELECTION_NOTIFY:
150
+ gtype = GDK_TYPE_EVENT_SELECTION;
151
+ break;
152
+ case GDK_PROXIMITY_IN:
153
+ case GDK_PROXIMITY_OUT:
154
+ gtype = GDK_TYPE_EVENT_PROXIMITY;
155
+ break;
156
+ case GDK_DRAG_ENTER:
157
+ case GDK_DRAG_LEAVE:
158
+ case GDK_DRAG_MOTION:
159
+ case GDK_DRAG_STATUS:
160
+ case GDK_DROP_START:
161
+ case GDK_DROP_FINISHED:
162
+ gtype = GDK_TYPE_EVENT_DND;
163
+ break;
164
+ case GDK_CLIENT_EVENT:
165
+ gtype = GDK_TYPE_EVENT_CLIENT;
166
+ break;
167
+ case GDK_VISIBILITY_NOTIFY:
168
+ gtype = GDK_TYPE_EVENT_VISIBILITY;
169
+ break;
170
+ case GDK_NO_EXPOSE:
171
+ gtype = GDK_TYPE_EVENT_NO_EXPOSE;
172
+ break;
173
+ case GDK_SCROLL:
174
+ gtype = GDK_TYPE_EVENT_SCROLL;
175
+ break;
176
+ case GDK_WINDOW_STATE:
177
+ gtype = GDK_TYPE_EVENT_WINDOW_STATE;
178
+ break;
179
+ case GDK_SETTING:
180
+ gtype = GDK_TYPE_EVENT_SETTING;
181
+ break;
182
+ case GDK_OWNER_CHANGE:
183
+ gtype = GDK_TYPE_EVENT_OWNER_CHANGE;
184
+ break;
185
+ case GDK_GRAB_BROKEN:
186
+ gtype = GDK_TYPE_EVENT_GRAB_BROKEN;
187
+ break;
188
+ #if GTK_CHECK_VERSION(2, 14, 0)
189
+ case GDK_DAMAGE:
190
+ gtype = GDK_TYPE_EVENT_EXPOSE;
191
+ break;
192
+ #endif
193
+ #if GTK_CHECK_VERSION(2, 18, 0)
194
+ case GDK_EVENT_LAST:
195
+ break;
196
+ #endif
197
+ default:
198
+ break;
199
+ }
200
+
201
+ return gtype;
202
+ }
203
+
204
+ static VALUE
205
+ rb_gdk_event_type_to_class(GdkEventType event_type)
206
+ {
207
+ VALUE klass = Qnil;
208
+
209
+ switch (event_type) {
210
+ case GDK_NOTHING:
211
+ case GDK_DELETE:
212
+ case GDK_DESTROY:
213
+ break;
214
+ case GDK_EXPOSE:
215
+ klass = rb_cGdkEventExpose;
216
+ break;
217
+ case GDK_MOTION_NOTIFY:
218
+ klass = rb_cGdkEventMotion;
219
+ break;
220
+ case GDK_BUTTON_PRESS:
221
+ case GDK_2BUTTON_PRESS:
222
+ case GDK_3BUTTON_PRESS:
223
+ case GDK_BUTTON_RELEASE:
224
+ klass = rb_cGdkEventButton;
225
+ break;
226
+ case GDK_KEY_PRESS:
227
+ case GDK_KEY_RELEASE:
228
+ klass = rb_cGdkEventKey;
229
+ break;
230
+ case GDK_ENTER_NOTIFY:
231
+ case GDK_LEAVE_NOTIFY:
232
+ klass = rb_cGdkEventCrossing;
233
+ break;
234
+ case GDK_FOCUS_CHANGE:
235
+ klass = rb_cGdkEventFocus;
236
+ break;
237
+ case GDK_CONFIGURE:
238
+ klass = rb_cGdkEventConfigure;
239
+ break;
240
+ case GDK_MAP:
241
+ case GDK_UNMAP:
242
+ break;
243
+ case GDK_PROPERTY_NOTIFY:
244
+ klass = rb_cGdkEventProperty;
245
+ break;
246
+ case GDK_SELECTION_CLEAR:
247
+ case GDK_SELECTION_REQUEST:
248
+ case GDK_SELECTION_NOTIFY:
249
+ klass = rb_cGdkEventSelection;
250
+ break;
251
+ case GDK_PROXIMITY_IN:
252
+ case GDK_PROXIMITY_OUT:
253
+ klass = rb_cGdkEventProximity;
254
+ break;
255
+ case GDK_DRAG_ENTER:
256
+ case GDK_DRAG_LEAVE:
257
+ case GDK_DRAG_MOTION:
258
+ case GDK_DRAG_STATUS:
259
+ case GDK_DROP_START:
260
+ case GDK_DROP_FINISHED:
261
+ klass = rb_cGdkEventDND;
262
+ break;
263
+ case GDK_CLIENT_EVENT:
264
+ klass = rb_cGdkEventClient;
265
+ break;
266
+ case GDK_VISIBILITY_NOTIFY:
267
+ klass = rb_cGdkEventVisibility;
268
+ break;
269
+ case GDK_NO_EXPOSE:
270
+ klass = rb_cGdkEventNoExpose;
271
+ break;
272
+ case GDK_SCROLL:
273
+ klass = rb_cGdkEventScroll;
274
+ break;
275
+ case GDK_WINDOW_STATE:
276
+ klass = rb_cGdkEventWindowState;
277
+ break;
278
+ case GDK_SETTING:
279
+ klass = rb_cGdkEventSetting;
280
+ break;
281
+ case GDK_OWNER_CHANGE:
282
+ klass = rb_cGdkEventOwnerChange;
283
+ break;
284
+ case GDK_GRAB_BROKEN:
285
+ klass = rb_cGdkEventGrabBroken;
286
+ break;
287
+ #if GTK_CHECK_VERSION(2, 14, 0)
288
+ case GDK_DAMAGE:
289
+ klass = rb_cGdkEventExpose;
290
+ break;
291
+ #endif
292
+ #if GTK_CHECK_VERSION(2, 18, 0)
293
+ case GDK_EVENT_LAST:
294
+ break;
295
+ #endif
296
+ default:
297
+ break;
298
+ }
299
+
300
+ if (NIL_P(klass)) {
301
+ klass = rb_cGdkEventAny;
302
+ }
303
+
304
+ return klass;
305
+ }
306
+
307
+ static GType
308
+ rb_gdk_event_to_gtype(VALUE event)
309
+ {
310
+ VALUE klass;
311
+ GType type = GDK_TYPE_EVENT;
312
+
313
+ klass = rb_obj_class(event);
314
+ if (klass == rb_cGdkEvent) {
315
+ type = GDK_TYPE_EVENT;
316
+ } else if (klass == rb_cGdkEventAny) {
317
+ type = GDK_TYPE_EVENT_ANY;
318
+ } else if (klass == rb_cGdkEventExpose) {
319
+ type = GDK_TYPE_EVENT_EXPOSE;
320
+ } else if (klass == rb_cGdkEventNoExpose) {
321
+ type = GDK_TYPE_EVENT_NO_EXPOSE;
322
+ } else if (klass == rb_cGdkEventVisibility) {
323
+ type = GDK_TYPE_EVENT_VISIBILITY;
324
+ } else if (klass == rb_cGdkEventMotion) {
325
+ type = GDK_TYPE_EVENT_MOTION;
326
+ } else if (klass == rb_cGdkEventButton) {
327
+ type = GDK_TYPE_EVENT_BUTTON;
328
+ } else if (klass == rb_cGdkEventScroll) {
329
+ type = GDK_TYPE_EVENT_SCROLL;
330
+ } else if (klass == rb_cGdkEventKey) {
331
+ type = GDK_TYPE_EVENT_KEY;
332
+ } else if (klass == rb_cGdkEventCrossing) {
333
+ type = GDK_TYPE_EVENT_CROSSING;
334
+ } else if (klass == rb_cGdkEventFocus) {
335
+ type = GDK_TYPE_EVENT_FOCUS;
336
+ } else if (klass == rb_cGdkEventConfigure) {
337
+ type = GDK_TYPE_EVENT_CONFIGURE;
338
+ } else if (klass == rb_cGdkEventProperty) {
339
+ type = GDK_TYPE_EVENT_PROPERTY;
340
+ } else if (klass == rb_cGdkEventSelection) {
341
+ type = GDK_TYPE_EVENT_SELECTION;
342
+ } else if (klass == rb_cGdkEventOwnerChange) {
343
+ type = GDK_TYPE_EVENT_OWNER_CHANGE;
344
+ } else if (klass == rb_cGdkEventProximity) {
345
+ type = GDK_TYPE_EVENT_PROXIMITY;
346
+ } else if (klass == rb_cGdkEventClient) {
347
+ type = GDK_TYPE_EVENT_CLIENT;
348
+ } else if (klass == rb_cGdkEventDND) {
349
+ type = GDK_TYPE_EVENT_DND;
350
+ } else if (klass == rb_cGdkEventWindowState) {
351
+ type = GDK_TYPE_EVENT_WINDOW_STATE;
352
+ } else if (klass == rb_cGdkEventSetting) {
353
+ type = GDK_TYPE_EVENT_SETTING;
354
+ } else if (klass == rb_cGdkEventGrabBroken) {
355
+ type = GDK_TYPE_EVENT_GRAB_BROKEN;
356
+ } else {
357
+ rb_raise(rb_eArgError, "Not event object: %s", RBG_INSPECT(event));
358
+ }
359
+
360
+ return type;
361
+ }
362
+
37
363
  VALUE
38
- make_gdkevent(GdkEvent *ev)
364
+ make_gdkevent(GdkEvent *event)
39
365
  {
40
- VALUE obj;
41
- if (ev == NULL) return Qnil;
366
+ if (!event)
367
+ return Qnil;
42
368
 
43
- obj = BOXED2RVAL(ev, GDK_TYPE_EVENT);
44
- RBASIC(obj)->klass = gdkevents[ev->type]; /* hack */
45
- return obj;
369
+ return BOXED2RVAL(event, rb_gdk_event_type_to_gtype(event->any.type));
46
370
  }
47
371
 
48
372
  GdkEvent*
49
373
  get_gdkevent(VALUE event)
50
374
  {
51
- return NIL_P(event) ? NULL : RVAL2BOXED(event, GDK_TYPE_EVENT);
375
+ return RVAL2BOXED(event, rb_gdk_event_to_gtype(event));
52
376
  }
53
377
 
54
378
  /***********************************************/
@@ -213,7 +537,6 @@ gdkevent ## type ## _set_axes(VALUE self, VALUE x, VALUE y)\
213
537
 
214
538
 
215
539
  /* initialize */
216
- #if GTK_CHECK_VERSION(2,2,0)
217
540
  #define GDKEVENT_INIT(type, default_gtype) \
218
541
  static VALUE \
219
542
  gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
@@ -231,15 +554,6 @@ gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
231
554
  G_INITIALIZE(self, gdk_event_new(gtype));\
232
555
  return Qnil;\
233
556
  }
234
- #else
235
- #define GDKEVENT_INIT(type, default_gtype) \
236
- static VALUE \
237
- gdkevent ## type ## _initialize(int argc, VALUE *argv, VALUE self)\
238
- {\
239
- rb_raise(rb_eRuntimeError, "Gdk::Event.new is not supported in this environment.");\
240
- return Qnil;\
241
- }
242
- #endif
243
557
 
244
558
  #define DEFINE_INIT(event, type) \
245
559
  rb_define_method(event, "initialize", gdkevent ## type ## _initialize, -1);
@@ -272,18 +586,22 @@ gdkevent_s_get_graphics_expose(G_GNUC_UNUSED VALUE self, VALUE window)
272
586
  }
273
587
 
274
588
  /* GdkEvent */
275
- #if GTK_CHECK_VERSION(2,2,0)
276
589
  static VALUE
277
590
  gdkevent_initialize(VALUE self, VALUE type)
278
591
  {
279
- GdkEventType gtype = RVAL2GENUM(type, GDK_TYPE_EVENT_TYPE);
280
- if (RBASIC(self)->klass != gdkevents[gtype])
281
- rb_raise(rb_eArgError, "Wrong event type for this class.");
592
+ GdkEventType event_type;
593
+ VALUE klass;
594
+
595
+ event_type = RVAL2GENUM(type, GDK_TYPE_EVENT_TYPE);
596
+ klass = rb_gdk_event_type_to_class(event_type);
597
+ if (!RVAL2CBOOL(rb_obj_is_kind_of(self, klass))) {
598
+ rb_raise(rb_eArgError, "Wrong event type for this class: %s: %s",
599
+ RBG_INSPECT(type), RBG_INSPECT(klass));
600
+ }
282
601
 
283
- G_INITIALIZE(self, gdk_event_new(gtype));
602
+ G_INITIALIZE(self, gdk_event_new(event_type));
284
603
  return Qnil;
285
604
  }
286
- #endif
287
605
 
288
606
  static VALUE
289
607
  gdkevent_type(VALUE self)
@@ -308,7 +626,7 @@ static VALUE
308
626
  gdkevent_get_axis(VALUE self, VALUE axis_use)
309
627
  {
310
628
  gdouble value;
311
- gboolean ret = gdk_event_get_axis(get_gdkevent(self),
629
+ gboolean ret = gdk_event_get_axis(get_gdkevent(self),
312
630
  RVAL2GENUM(axis_use, GDK_TYPE_AXIS_USE), &value);
313
631
  return ret ? rb_float_new(value) : Qnil;
314
632
  }
@@ -359,7 +677,7 @@ gdkevent_s_set_show_events(VALUE self, VALUE show_events)
359
677
  gdk_set_show_events(RVAL2CBOOL(show_events));
360
678
  return self;
361
679
  }
362
- #if GTK_CHECK_VERSION(2,2,0)
680
+
363
681
  static VALUE
364
682
  gdkevent_set_screen(VALUE self, VALUE screen)
365
683
  {
@@ -372,7 +690,6 @@ gdkevent_screen(VALUE self)
372
690
  {
373
691
  return GOBJ2RVAL(gdk_event_get_screen(get_gdkevent(self)));
374
692
  }
375
- #endif
376
693
 
377
694
  /*
378
695
  type: String, Integer, Gdk::Color.
@@ -460,16 +777,16 @@ gdkeventexpose_area(VALUE self)
460
777
  {
461
778
  return BOXED2RVAL(&get_gdkevent(self)->expose.area, GDK_TYPE_RECTANGLE);
462
779
  }
463
-
780
+
464
781
  static VALUE
465
782
  gdkeventexpose_set_area(VALUE self, VALUE rect)
466
783
  {
467
784
  GdkRectangle* grect = (GdkRectangle*)RVAL2BOXED(rect, GDK_TYPE_RECTANGLE);
468
- GdkEventExpose event = get_gdkevent(self)->expose;
469
- event.area.x = grect->x;
470
- event.area.y = grect->y;
471
- event.area.width = grect->width;
472
- event.area.height = grect->height;
785
+ GdkEventExpose *event = &(get_gdkevent(self)->expose);
786
+ event->area.x = grect->x;
787
+ event->area.y = grect->y;
788
+ event->area.width = grect->width;
789
+ event->area.height = grect->height;
473
790
  return self;
474
791
  }
475
792
 
@@ -556,7 +873,7 @@ gdkeventclient_data(VALUE self)
556
873
  gushort format = get_gdkevent(self)->client.data_format;
557
874
 
558
875
  if (format == 8) {
559
- ary = rb_ary_new2(20);
876
+ ary = rb_ary_new2(20);
560
877
  for (i = 0; i < 20; i++)
561
878
  rb_ary_push(ary, INT2FIX(get_gdkevent(self)->client.data.b[i]));
562
879
  } else if (format == 16) {
@@ -582,15 +899,10 @@ gdkeventclient_send_client_message(int argc, VALUE *argv, VALUE self)
582
899
  return CBOOL2RVAL(gdk_event_send_client_message(
583
900
  get_gdkevent(self), RVAL2GDKNATIVEWINDOW(xid)));
584
901
  } else {
585
- #if GTK_CHECK_VERSION(2,2,0)
586
902
  return CBOOL2RVAL(gdk_event_send_client_message_for_display(
587
903
  GDK_DISPLAY_OBJECT(RVAL2GOBJ(display)),
588
904
  get_gdkevent(self),
589
905
  RVAL2GDKNATIVEWINDOW(xid)));
590
- #else
591
- rb_warn("this arguments number has been supported since 2.2");
592
- return Qfalse;
593
- #endif
594
906
  }
595
907
  }
596
908
 
@@ -632,25 +944,21 @@ ATTR_STR(setting, name);
632
944
  GDKEVENT_INIT(setting, GDK_SETTING);
633
945
 
634
946
  /* GdkEventOwnerChange */
635
- #if GTK_CHECK_VERSION(2,6,0)
636
947
  ATTR_GDKNATIVEWINDOW(owner_change, owner);
637
948
  ATTR_ENUM(owner_change, reason, GDK_TYPE_OWNER_CHANGE);
638
949
  ATTR_ATOM(owner_change, selection);
639
950
  ATTR_UINT(owner_change, time);
640
951
  ATTR_UINT(owner_change, selection_time);
641
952
  GDKEVENT_INIT(owner_change, GDK_OWNER_CHANGE);
642
- #endif
643
953
 
644
954
  /* GdkEventGrabBroken */
645
- #if GTK_CHECK_VERSION(2,8,0)
646
955
  ATTR_BOOL(grab_broken, keyboard);
647
956
  ATTR_BOOL(grab_broken, implicit);
648
957
  ATTR_GOBJ(grab_broken, grab_window);
649
958
  GDKEVENT_INIT(grab_broken, GDK_GRAB_BROKEN);
650
- #endif
651
959
 
652
960
  /* MISC */
653
- static VALUE
961
+ static VALUE
654
962
  gdkevent_g2r(const GValue *values)
655
963
  {
656
964
  return make_gdkevent(g_value_get_boxed(&values[0]));
@@ -659,323 +967,322 @@ gdkevent_g2r(const GValue *values)
659
967
  void
660
968
  Init_gtk_gdk_event(VALUE mGdk)
661
969
  {
662
- VALUE ev;
663
- VALUE gdkEvent;
664
- VALUE gdkEventAny;
665
-
666
- gdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
667
- gdkEventAny = rb_define_class_under(mGdk, "EventAny", gdkEvent);
668
-
669
- gdkevents[GDK_DELETE] = gdkEventAny;
670
- gdkevents[GDK_DESTROY] = gdkEventAny;
671
- gdkevents[GDK_EXPOSE] = rb_define_class_under(mGdk, "EventExpose", gdkEventAny);
672
- gdkevents[GDK_MOTION_NOTIFY] = rb_define_class_under(mGdk, "EventMotion", gdkEventAny);
673
- gdkevents[GDK_BUTTON_PRESS] = rb_define_class_under(mGdk, "EventButton", gdkEventAny);
674
- gdkevents[GDK_2BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
675
- gdkevents[GDK_3BUTTON_PRESS] = gdkevents[GDK_BUTTON_PRESS];
676
- gdkevents[GDK_BUTTON_RELEASE]= gdkevents[GDK_BUTTON_PRESS];
677
- gdkevents[GDK_KEY_PRESS] = rb_define_class_under(mGdk, "EventKey", gdkEventAny);
678
- gdkevents[GDK_KEY_RELEASE] = gdkevents[GDK_KEY_PRESS];
679
- gdkevents[GDK_ENTER_NOTIFY] = rb_define_class_under(mGdk, "EventCrossing", gdkEventAny);
680
- gdkevents[GDK_LEAVE_NOTIFY] = gdkevents[GDK_ENTER_NOTIFY];
681
- gdkevents[GDK_FOCUS_CHANGE] = rb_define_class_under(mGdk, "EventFocus", gdkEventAny);
682
- gdkevents[GDK_CONFIGURE] = rb_define_class_under(mGdk, "EventConfigure", gdkEventAny);
683
- gdkevents[GDK_MAP] = gdkEventAny;
684
- gdkevents[GDK_UNMAP] = gdkEventAny;
685
- gdkevents[GDK_PROPERTY_NOTIFY]= rb_define_class_under(mGdk, "EventProperty", gdkEventAny);
686
- gdkevents[GDK_SELECTION_CLEAR]= rb_define_class_under(mGdk, "EventSelection", gdkEventAny);
687
- gdkevents[GDK_SELECTION_REQUEST]= gdkevents[GDK_SELECTION_CLEAR];
688
- gdkevents[GDK_SELECTION_NOTIFY] = gdkevents[GDK_SELECTION_CLEAR];
689
- gdkevents[GDK_PROXIMITY_IN] = rb_define_class_under(mGdk, "EventProximity", gdkEventAny);
690
- gdkevents[GDK_PROXIMITY_OUT] = gdkevents[GDK_PROXIMITY_IN];
691
- gdkevents[GDK_DRAG_ENTER] = rb_define_class_under(mGdk, "EventDND", gdkEventAny);
692
- gdkevents[GDK_DRAG_LEAVE] = gdkevents[GDK_DRAG_ENTER];
693
- gdkevents[GDK_DRAG_MOTION] = gdkevents[GDK_DRAG_ENTER];
694
- gdkevents[GDK_DRAG_STATUS] = gdkevents[GDK_DRAG_ENTER];
695
- gdkevents[GDK_DROP_START] = gdkevents[GDK_DRAG_ENTER];
696
- gdkevents[GDK_DROP_FINISHED] = gdkevents[GDK_DRAG_ENTER];
697
- gdkevents[GDK_CLIENT_EVENT] = rb_define_class_under(mGdk, "EventClient", gdkEventAny);
698
- gdkevents[GDK_VISIBILITY_NOTIFY] = rb_define_class_under(mGdk, "EventVisibility", gdkEventAny);
699
- gdkevents[GDK_NO_EXPOSE] = rb_define_class_under(mGdk, "EventNoExpose", gdkEventAny);
700
- gdkevents[GDK_SCROLL] = rb_define_class_under(mGdk, "EventScroll", gdkEventAny);
701
- gdkevents[GDK_WINDOW_STATE] = rb_define_class_under(mGdk, "EventWindowState", gdkEventAny);
702
- gdkevents[GDK_SETTING] = rb_define_class_under(mGdk, "EventSetting", gdkEventAny);
703
- #if GTK_CHECK_VERSION(2,6,0)
704
- gdkevents[GDK_OWNER_CHANGE] = rb_define_class_under(mGdk, "EventOwnerChange", gdkEventAny);
705
- #endif
706
- #if GTK_CHECK_VERSION(2,8,0)
707
- gdkevents[GDK_GRAB_BROKEN] = rb_define_class_under(mGdk, "EventGrabBroken", gdkEventAny);
708
- #endif
709
-
710
970
  /* GdkEvent */
711
- #if GTK_CHECK_VERSION(2,2,0)
712
- rb_define_method(gdkEvent, "initialize", gdkevent_initialize, 1);
713
- #endif
714
- rb_define_method(gdkEvent, "event_type", gdkevent_type, 0);
715
-
716
- rb_define_singleton_method(gdkEvent, "events_pending?", gdkevent_s_events_pending, 0);
717
- rb_define_singleton_method(gdkEvent, "peek", gdkevent_s_peek, 0);
718
- rb_define_singleton_method(gdkEvent, "get", gdkevent_s_get, 0);
719
- rb_define_method(gdkEvent, "put", gdkevent_put, 0);
720
- rb_define_method(gdkEvent, "get_axis", gdkevent_get_axis, 1);
721
- rb_define_method(gdkEvent, "coords", gdkevent_get_coords, 0);
722
- rb_define_method(gdkEvent, "root_coords", gdkevent_get_root_coords, 0);
723
-
724
- rb_define_singleton_method(gdkEvent, "handler_set", gdkevent_s_handler_set, 0);
725
- rb_define_singleton_method(gdkEvent, "show_events?", gdkevent_s_get_show_events, 0);
726
- rb_define_singleton_method(gdkEvent, "set_show_events", gdkevent_s_set_show_events, 1);
727
- rb_define_singleton_method(gdkEvent, "setting_get", gdkevent_s_setting_get, -1);
728
- rb_define_singleton_method(gdkEvent, "add_client_message_filter", gdkevent_s_add_client_message_filter, 1);
729
- #if GTK_CHECK_VERSION(2,2,0)
730
- rb_define_method(gdkEvent, "screen", gdkevent_screen, 0);
731
- rb_define_method(gdkEvent, "set_screen", gdkevent_set_screen, 1);
732
- #endif
733
- G_DEF_SETTERS(gdkEvent);
971
+ rb_cGdkEvent = G_DEF_CLASS(GDK_TYPE_EVENT, "Event", mGdk);
972
+ rb_define_method(rb_cGdkEvent, "initialize", gdkevent_initialize, 1);
973
+ rb_define_method(rb_cGdkEvent, "event_type", gdkevent_type, 0);
974
+
975
+ rb_define_singleton_method(rb_cGdkEvent, "events_pending?", gdkevent_s_events_pending, 0);
976
+ rb_define_singleton_method(rb_cGdkEvent, "peek", gdkevent_s_peek, 0);
977
+ rb_define_singleton_method(rb_cGdkEvent, "get", gdkevent_s_get, 0);
978
+ rb_define_method(rb_cGdkEvent, "put", gdkevent_put, 0);
979
+ rb_define_method(rb_cGdkEvent, "get_axis", gdkevent_get_axis, 1);
980
+ rb_define_method(rb_cGdkEvent, "coords", gdkevent_get_coords, 0);
981
+ rb_define_method(rb_cGdkEvent, "root_coords", gdkevent_get_root_coords, 0);
982
+
983
+ rb_define_singleton_method(rb_cGdkEvent, "handler_set", gdkevent_s_handler_set, 0);
984
+ rb_define_singleton_method(rb_cGdkEvent, "show_events?", gdkevent_s_get_show_events, 0);
985
+ rb_define_singleton_method(rb_cGdkEvent, "set_show_events", gdkevent_s_set_show_events, 1);
986
+ rb_define_singleton_method(rb_cGdkEvent, "setting_get", gdkevent_s_setting_get, -1);
987
+ rb_define_singleton_method(rb_cGdkEvent, "add_client_message_filter", gdkevent_s_add_client_message_filter, 1);
988
+ rb_define_method(rb_cGdkEvent, "screen", gdkevent_screen, 0);
989
+ rb_define_method(rb_cGdkEvent, "set_screen", gdkevent_set_screen, 1);
990
+ G_DEF_SETTERS(rb_cGdkEvent);
991
+
992
+ /*
993
+ * GdkEvent's Constants
994
+ */
995
+ rb_define_const(rb_cGdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
996
+ rb_define_const(rb_cGdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
997
+ rb_define_const(rb_cGdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
998
+
999
+ /* GdkEventType */
1000
+ /* XXX */
1001
+ G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
1002
+ G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
1003
+ G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", rb_cGdkEvent);
1004
+ G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
1005
+ G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
1006
+ G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_TYPE, "GDK_");
1007
+
1008
+ /* GdkEventMask */
1009
+ G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", rb_cGdkEvent);
1010
+ G_DEF_CONSTANTS(rb_cGdkEvent, GDK_TYPE_EVENT_MASK, "GDK_");
734
1011
 
735
1012
  /* GdkEventAny */
736
- DEFINE_ACCESSOR(gdkEventAny, any, window);
737
- rb_define_method(gdkEventAny, "send_event?", gdkeventany_send_event, 0);
738
- rb_define_method(gdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
739
- G_DEF_SETTERS(gdkEventAny);
1013
+ rb_cGdkEventAny =
1014
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_ANY, "EventAny",
1015
+ mGdk, rb_cGdkEvent);
1016
+ DEFINE_ACCESSOR(rb_cGdkEventAny, any, window);
1017
+ rb_define_method(rb_cGdkEventAny, "send_event?", gdkeventany_send_event, 0);
1018
+ rb_define_method(rb_cGdkEventAny, "set_send_event", gdkeventany_set_send_event, 1);
1019
+ G_DEF_SETTERS(rb_cGdkEventAny);
740
1020
 
741
- /* GdkEventKey */
742
- ev = gdkevents[GDK_KEY_PRESS];
743
- DEFINE_ACCESSOR(ev, key, time);
744
- DEFINE_ACCESSOR(ev, key, state);
745
- DEFINE_ACCESSOR(ev, key, keyval);
746
- DEFINE_ACCESSOR(ev, key, hardware_keycode);
747
- DEFINE_ACCESSOR(ev, key, group);
748
- G_DEF_SETTERS(ev);
1021
+ /* GdkEventExpose */
1022
+ rb_cGdkEventExpose =
1023
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_EXPOSE, "EventExpose",
1024
+ mGdk, rb_cGdkEvent);
1025
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, area);
1026
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, region);
1027
+ DEFINE_ACCESSOR(rb_cGdkEventExpose, expose, count);
1028
+ DEFINE_INIT(rb_cGdkEventExpose, expose);
1029
+ rb_define_singleton_method(rb_cGdkEventExpose, "get_graphics_expose",
1030
+ gdkevent_s_get_graphics_expose, 1);
1031
+ G_DEF_SETTERS(rb_cGdkEventExpose);
749
1032
 
750
- /* GdkEventButton */
751
- ev = gdkevents[GDK_BUTTON_PRESS];
752
- DEFINE_ACCESSOR(ev, button, time);
753
- DEFINE_ACCESSOR(ev, button, x);
754
- DEFINE_ACCESSOR(ev, button, y);
755
- rb_define_method(ev, "axes", gdkeventbutton_axes, 0);
756
- rb_define_method(ev, "set_axes", gdkeventbutton_set_axes, 2);
757
- DEFINE_ACCESSOR(ev, button, state);
758
- DEFINE_ACCESSOR(ev, button, button);
759
- DEFINE_ACCESSOR(ev, button, device);
760
- DEFINE_ACCESSOR(ev, button, x_root);
761
- DEFINE_ACCESSOR(ev, button, y_root);
762
- G_DEF_SETTERS(ev);
1033
+ /* GdkEventNoExpose */
1034
+ rb_cGdkEventNoExpose =
1035
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_NO_EXPOSE, "EventNoExpose",
1036
+ mGdk, rb_cGdkEvent);
1037
+ DEFINE_INIT(rb_cGdkEventNoExpose, noexpose);
763
1038
 
764
- /* GdkEventScroll */
765
- ev = gdkevents[GDK_SCROLL];
766
- DEFINE_ACCESSOR(ev, scroll, time);
767
- DEFINE_ACCESSOR(ev, scroll, x);
768
- DEFINE_ACCESSOR(ev, scroll, y);
769
- DEFINE_ACCESSOR(ev, scroll, state);
770
- DEFINE_ACCESSOR(ev, scroll, direction);
771
- DEFINE_ACCESSOR(ev, scroll, device);
772
- DEFINE_ACCESSOR(ev, scroll, x_root);
773
- DEFINE_ACCESSOR(ev, scroll, y_root);
774
- DEFINE_INIT(ev, scroll);
775
- G_DEF_SETTERS(ev);
1039
+ /* GdkEventVisibility */
1040
+ rb_cGdkEventVisibility =
1041
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_VISIBILITY, "EventVisibility",
1042
+ mGdk, rb_cGdkEvent);
1043
+ DEFINE_ACCESSOR(rb_cGdkEventVisibility, visibility, state);
1044
+ DEFINE_INIT(rb_cGdkEventVisibility, visibility);
1045
+ G_DEF_SETTERS(rb_cGdkEventVisibility);
1046
+
1047
+ /* GdkVisibilityState */
1048
+ G_DEF_CLASS(GDK_TYPE_VISIBILITY_STATE, "State", rb_cGdkEventVisibility);
1049
+ G_DEF_CONSTANTS(rb_cGdkEventVisibility,
1050
+ GDK_TYPE_VISIBILITY_STATE, "GDK_VISIBILITY_");
776
1051
 
777
- /* GdkScrollDirection */
778
- G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", ev);
779
- G_DEF_CONSTANTS(ev, GDK_TYPE_SCROLL_DIRECTION, "GDK_SCROLL_");
780
1052
 
781
1053
  /* GdkEventMotion */
782
- ev = gdkevents[GDK_MOTION_NOTIFY];
783
- DEFINE_ACCESSOR(ev, motion, time);
784
- DEFINE_ACCESSOR(ev, motion, x);
785
- DEFINE_ACCESSOR(ev, motion, y);
786
- rb_define_method(ev, "axes", gdkeventmotion_axes, 0);
787
- rb_define_method(ev, "set_axes", gdkeventmotion_set_axes, 1);
788
- DEFINE_ACCESSOR(ev, motion, state);
789
- rb_define_method(ev, "hint?", gdkeventmotion_is_hint, 0);
790
- rb_define_method(ev, "set_hint", gdkeventmotion_set_is_hint, 1);
791
- DEFINE_ACCESSOR(ev, motion, device);
792
- DEFINE_ACCESSOR(ev, motion, x_root);
793
- DEFINE_ACCESSOR(ev, motion, y_root);
794
- DEFINE_INIT(ev, motion);
1054
+ rb_cGdkEventMotion =
1055
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_MOTION, "EventMotion",
1056
+ mGdk, rb_cGdkEvent);
1057
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, time);
1058
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x);
1059
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y);
1060
+ rb_define_method(rb_cGdkEventMotion, "axes", gdkeventmotion_axes, 0);
1061
+ rb_define_method(rb_cGdkEventMotion, "set_axes", gdkeventmotion_set_axes, 1);
1062
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, state);
1063
+ rb_define_method(rb_cGdkEventMotion, "hint?", gdkeventmotion_is_hint, 0);
1064
+ rb_define_method(rb_cGdkEventMotion, "set_hint", gdkeventmotion_set_is_hint, 1);
1065
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, device);
1066
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, x_root);
1067
+ DEFINE_ACCESSOR(rb_cGdkEventMotion, motion, y_root);
1068
+ DEFINE_INIT(rb_cGdkEventMotion, motion);
795
1069
  #if GTK_CHECK_VERSION(2, 12, 0)
796
- rb_define_method(ev, "request", gdkeventmotion_request_motions, 0);
1070
+ rb_define_method(rb_cGdkEventMotion, "request", gdkeventmotion_request_motions, 0);
797
1071
  #endif
798
- G_DEF_SETTERS(ev);
1072
+ G_DEF_SETTERS(rb_cGdkEventMotion);
799
1073
 
800
- /* GdkEventExpose */
801
- ev = gdkevents[GDK_EXPOSE];
802
- DEFINE_ACCESSOR(ev, expose, area);
803
- DEFINE_ACCESSOR(ev, expose, region);
804
- DEFINE_ACCESSOR(ev, expose, count);
805
- DEFINE_INIT(ev, expose);
806
- rb_define_singleton_method(ev, "get_graphics_expose",
807
- gdkevent_s_get_graphics_expose, 1);
808
- G_DEF_SETTERS(ev);
1074
+ /* GdkEventButton */
1075
+ rb_cGdkEventButton =
1076
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_BUTTON, "EventButton",
1077
+ mGdk, rb_cGdkEvent);
1078
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, time);
1079
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, x);
1080
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, y);
1081
+ rb_define_method(rb_cGdkEventButton, "axes", gdkeventbutton_axes, 0);
1082
+ rb_define_method(rb_cGdkEventButton, "set_axes", gdkeventbutton_set_axes, 2);
1083
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, state);
1084
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, button);
1085
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, device);
1086
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, x_root);
1087
+ DEFINE_ACCESSOR(rb_cGdkEventButton, button, y_root);
1088
+ G_DEF_SETTERS(rb_cGdkEventButton);
809
1089
 
810
- /* GdkEventVisibility */
811
- ev = gdkevents[GDK_VISIBILITY_NOTIFY];
812
- DEFINE_ACCESSOR(ev, visibility, state);
813
- DEFINE_INIT(ev, visibility);
814
- G_DEF_SETTERS(ev);
1090
+ /* GdkEventScroll */
1091
+ rb_cGdkEventScroll =
1092
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SCROLL, "EventScroll",
1093
+ mGdk, rb_cGdkEvent);
1094
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, time);
1095
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x);
1096
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y);
1097
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, state);
1098
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, direction);
1099
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, device);
1100
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, x_root);
1101
+ DEFINE_ACCESSOR(rb_cGdkEventScroll, scroll, y_root);
1102
+ DEFINE_INIT(rb_cGdkEventScroll, scroll);
1103
+ G_DEF_SETTERS(rb_cGdkEventScroll);
815
1104
 
816
- /* GdkVisibilityState */
817
- G_DEF_CLASS(GDK_TYPE_VISIBILITY_STATE, "State", ev);
818
- G_DEF_CONSTANTS(ev, GDK_TYPE_VISIBILITY_STATE, "GDK_VISIBILITY_");
1105
+ /* GdkScrollDirection */
1106
+ G_DEF_CLASS(GDK_TYPE_SCROLL_DIRECTION, "Direction", rb_cGdkEventScroll);
1107
+ G_DEF_CONSTANTS(rb_cGdkEventScroll,
1108
+ GDK_TYPE_SCROLL_DIRECTION, "GDK_SCROLL_");
1109
+
1110
+ /* GdkEventKey */
1111
+ rb_cGdkEventKey =
1112
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_KEY, "EventKey",
1113
+ mGdk, rb_cGdkEvent);
1114
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, time);
1115
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, state);
1116
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, keyval);
1117
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, hardware_keycode);
1118
+ DEFINE_ACCESSOR(rb_cGdkEventKey, key, group);
1119
+ G_DEF_SETTERS(rb_cGdkEventKey);
819
1120
 
820
1121
  /* GdkEventCrossing */
821
- ev = gdkevents[GDK_ENTER_NOTIFY];
822
- DEFINE_ACCESSOR(ev, crossing, subwindow);
823
- DEFINE_ACCESSOR(ev, crossing, time);
824
- DEFINE_ACCESSOR(ev, crossing, x);
825
- DEFINE_ACCESSOR(ev, crossing, y);
826
- DEFINE_ACCESSOR(ev, crossing, x_root);
827
- DEFINE_ACCESSOR(ev, crossing, y_root);
828
- DEFINE_ACCESSOR(ev, crossing, mode);
829
- DEFINE_ACCESSOR(ev, crossing, detail);
830
- rb_define_method(ev, "focus?", gdkeventcrossing_focus, 0);
831
- rb_define_method(ev, "set_focus", gdkeventcrossing_set_focus, 1);
832
- DEFINE_ACCESSOR(ev, crossing, state);
833
- G_DEF_SETTERS(ev);
1122
+ rb_cGdkEventCrossing =
1123
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CROSSING, "EventCrossing",
1124
+ mGdk, rb_cGdkEvent);
1125
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, subwindow);
1126
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, time);
1127
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x);
1128
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y);
1129
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, x_root);
1130
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, y_root);
1131
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, mode);
1132
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, detail);
1133
+ rb_define_method(rb_cGdkEventCrossing, "focus?", gdkeventcrossing_focus, 0);
1134
+ rb_define_method(rb_cGdkEventCrossing, "set_focus", gdkeventcrossing_set_focus, 1);
1135
+ DEFINE_ACCESSOR(rb_cGdkEventCrossing, crossing, state);
1136
+ G_DEF_SETTERS(rb_cGdkEventCrossing);
834
1137
 
835
1138
  /* GdkCrossingMode */
836
- G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode", ev);
837
- G_DEF_CONSTANTS(ev, GDK_TYPE_CROSSING_MODE, "GDK_CROSSING_");
1139
+ G_DEF_CLASS(GDK_TYPE_CROSSING_MODE, "Mode", rb_cGdkEventScroll);
1140
+ G_DEF_CONSTANTS(rb_cGdkEventCrossing,
1141
+ GDK_TYPE_CROSSING_MODE, "GDK_CROSSING_");
1142
+
838
1143
  /* GdkNotifyType */
839
- G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType", ev);
840
- G_DEF_CONSTANTS(ev, GDK_TYPE_NOTIFY_TYPE, "GDK_");
1144
+ G_DEF_CLASS(GDK_TYPE_NOTIFY_TYPE, "NotifyType", rb_cGdkEventScroll);
1145
+ G_DEF_CONSTANTS(rb_cGdkEventScroll, GDK_TYPE_NOTIFY_TYPE, "GDK_");
841
1146
 
842
1147
  /* GdkEventFocus */
843
- ev = gdkevents[GDK_FOCUS_CHANGE];
844
- rb_define_method(ev, "in?", gdkeventfocus_change_in, 0);
845
- rb_define_method(ev, "set_in", gdkeventfocus_change_set_in, 1);
846
- DEFINE_INIT(ev, focus_change);
847
- G_DEF_SETTERS(ev);
1148
+ rb_cGdkEventFocus =
1149
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_FOCUS, "EventFocus",
1150
+ mGdk, rb_cGdkEvent);
1151
+ rb_define_method(rb_cGdkEventFocus, "in?", gdkeventfocus_change_in, 0);
1152
+ rb_define_method(rb_cGdkEventFocus, "set_in",
1153
+ gdkeventfocus_change_set_in, 1);
1154
+ DEFINE_INIT(rb_cGdkEventFocus, focus_change);
1155
+ G_DEF_SETTERS(rb_cGdkEventFocus);
848
1156
 
849
1157
  /* GdkEventConfigure */
850
- ev = gdkevents[GDK_CONFIGURE];
851
- DEFINE_ACCESSOR(ev, configure, x);
852
- DEFINE_ACCESSOR(ev, configure, y);
853
- DEFINE_ACCESSOR(ev, configure, width);
854
- DEFINE_ACCESSOR(ev, configure, height);
855
- DEFINE_INIT(ev, configure);
856
- G_DEF_SETTERS(ev);
1158
+ rb_cGdkEventConfigure =
1159
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CONFIGURE, "EventConfigure",
1160
+ mGdk, rb_cGdkEvent);
1161
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, x);
1162
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, y);
1163
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, width);
1164
+ DEFINE_ACCESSOR(rb_cGdkEventConfigure, configure, height);
1165
+ DEFINE_INIT(rb_cGdkEventConfigure, configure);
1166
+ G_DEF_SETTERS(rb_cGdkEventConfigure);
857
1167
 
858
1168
  /* GdkEventProperty */
859
- ev = gdkevents[GDK_PROPERTY_NOTIFY];
860
- DEFINE_ACCESSOR(ev, property, atom);
861
- DEFINE_ACCESSOR(ev, property, time);
862
- DEFINE_ACCESSOR(ev, property, state);
863
- DEFINE_INIT(ev, property);
864
- G_DEF_SETTERS(ev);
865
-
866
- /* GdkPropertyState */
867
- G_DEF_CLASS(GDK_TYPE_PROPERTY_STATE, "State", ev);
868
- G_DEF_CONSTANTS(ev, GDK_TYPE_PROPERTY_STATE, "GDK_");
1169
+ rb_cGdkEventProperty =
1170
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROPERTY, "EventProperty",
1171
+ mGdk, rb_cGdkEvent);
1172
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, atom);
1173
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, time);
1174
+ DEFINE_ACCESSOR(rb_cGdkEventProperty, property, state);
1175
+ DEFINE_INIT(rb_cGdkEventProperty, property);
1176
+ G_DEF_SETTERS(rb_cGdkEventProperty);
1177
+
1178
+ /* GdkPropertyState */
1179
+ G_DEF_CLASS(GDK_TYPE_PROPERTY_STATE, "State", rb_cGdkEventProperty);
1180
+ G_DEF_CONSTANTS(rb_cGdkEventProperty, GDK_TYPE_PROPERTY_STATE, "GDK_");
869
1181
 
870
1182
  /* GdkEventSelection */
871
- ev = gdkevents[GDK_SELECTION_CLEAR];
872
- DEFINE_ACCESSOR(ev, selection, selection);
873
- DEFINE_ACCESSOR(ev, selection, target);
874
- DEFINE_ACCESSOR(ev, selection, property);
875
- DEFINE_ACCESSOR(ev, selection, requestor);
876
- DEFINE_ACCESSOR(ev, selection, time);
877
- G_DEF_SETTERS(ev);
1183
+ rb_cGdkEventSelection =
1184
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SELECTION, "EventSelection",
1185
+ mGdk, rb_cGdkEvent);
1186
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, selection);
1187
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, target);
1188
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, property);
1189
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, requestor);
1190
+ DEFINE_ACCESSOR(rb_cGdkEventSelection, selection, time);
1191
+ G_DEF_SETTERS(rb_cGdkEventSelection);
878
1192
 
879
- /* GdkEventDND */
880
- ev = gdkevents[GDK_DRAG_ENTER];
881
- DEFINE_ACCESSOR(ev, dnd, context);
882
- DEFINE_ACCESSOR(ev, dnd, time);
883
- DEFINE_ACCESSOR(ev, dnd, x_root);
884
- DEFINE_ACCESSOR(ev, dnd, y_root);
885
- G_DEF_SETTERS(ev);
1193
+ /* GdkEventOwnerChange */
1194
+ rb_cGdkEventOwnerChange =
1195
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_OWNER_CHANGE, "EventOwnerChange",
1196
+ mGdk, rb_cGdkEvent);
1197
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, owner);
1198
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, reason);
1199
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection);
1200
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, time);
1201
+ DEFINE_ACCESSOR(rb_cGdkEventOwnerChange, owner_change, selection_time);
1202
+ G_DEF_SETTERS(rb_cGdkEventOwnerChange);
1203
+ DEFINE_INIT(rb_cGdkEventOwnerChange, owner_change);
1204
+
1205
+ /* GdkOwnerChange */
1206
+ G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", rb_cGdkEventScroll);
1207
+ G_DEF_CONSTANTS(rb_cGdkEventScroll,
1208
+ GDK_TYPE_OWNER_CHANGE, "GDK_OWNER_CHANGE_");
886
1209
 
887
1210
  /* GdkEventProximity */
888
- ev = gdkevents[GDK_PROXIMITY_IN];
889
- DEFINE_ACCESSOR(ev, proximity, time);
890
- DEFINE_ACCESSOR(ev, proximity, device);
891
- G_DEF_SETTERS(ev);
1211
+ rb_cGdkEventProximity =
1212
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_PROXIMITY, "EventProximity",
1213
+ mGdk, rb_cGdkEvent);
1214
+ DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, time);
1215
+ DEFINE_ACCESSOR(rb_cGdkEventProximity, proximity, device);
1216
+ G_DEF_SETTERS(rb_cGdkEventProximity);
892
1217
 
893
1218
  /* GdkEventClient */
894
- ev = gdkevents[GDK_CLIENT_EVENT];
895
- DEFINE_ACCESSOR(ev, client, message_type);
896
- rb_define_method(ev, "data_format", gdkeventclient_data_format, 0);
897
- rb_define_method(ev, "data", gdkeventclient_data, 0);
898
- rb_define_method(ev, "send_client_message",
1219
+ rb_cGdkEventClient =
1220
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_CLIENT, "EventClient",
1221
+ mGdk, rb_cGdkEvent);
1222
+ DEFINE_ACCESSOR(rb_cGdkEventClient, client, message_type);
1223
+ rb_define_method(rb_cGdkEventClient,
1224
+ "data_format", gdkeventclient_data_format, 0);
1225
+ rb_define_method(rb_cGdkEventClient, "data", gdkeventclient_data, 0);
1226
+ rb_define_method(rb_cGdkEventClient, "send_client_message",
899
1227
  gdkeventclient_send_client_message, -1);
900
- rb_define_method(ev, "send_clientmessage_toall",
1228
+ rb_define_method(rb_cGdkEventClient, "send_clientmessage_toall",
901
1229
  gdkeventclient_send_clientmessage_toall, 0);
902
- DEFINE_INIT(ev, client);
903
- G_DEF_SETTERS(ev);
1230
+ DEFINE_INIT(rb_cGdkEventClient, client);
1231
+ G_DEF_SETTERS(rb_cGdkEventClient);
904
1232
 
905
- /* GdkEventNoExpose */
906
- ev = gdkevents[GDK_NO_EXPOSE];
907
- DEFINE_INIT(ev, noexpose);
1233
+ /* GdkEventDND */
1234
+ rb_cGdkEventDND =
1235
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_DND, "EventDND",
1236
+ mGdk, rb_cGdkEvent);
1237
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, context);
1238
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, time);
1239
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, x_root);
1240
+ DEFINE_ACCESSOR(rb_cGdkEventDND, dnd, y_root);
1241
+ G_DEF_SETTERS(rb_cGdkEventDND);
908
1242
 
909
1243
  /* GdkEventWindowState */
910
- ev = gdkevents[GDK_WINDOW_STATE];
911
- DEFINE_ACCESSOR(ev, window_state, changed_mask);
912
- DEFINE_ACCESSOR(ev, window_state, new_window_state);
913
- DEFINE_INIT(ev, window_state);
914
- G_DEF_SETTERS(ev);
1244
+ rb_cGdkEventWindowState =
1245
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_WINDOW_STATE, "EventWindowState",
1246
+ mGdk, rb_cGdkEvent);
1247
+ DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, changed_mask);
1248
+ DEFINE_ACCESSOR(rb_cGdkEventWindowState, window_state, new_window_state);
1249
+ DEFINE_INIT(rb_cGdkEventWindowState, window_state);
1250
+ G_DEF_SETTERS(rb_cGdkEventWindowState);
915
1251
 
916
1252
  /* GdkWindowState */
917
- G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState", ev);
918
- G_DEF_CONSTANTS(ev, GDK_TYPE_WINDOW_STATE, "GDK_WINDOW_STATE_");
1253
+ G_DEF_CLASS(GDK_TYPE_WINDOW_STATE, "WindowState", rb_cGdkEventScroll);
1254
+ G_DEF_CONSTANTS(rb_cGdkEventWindowState,
1255
+ GDK_TYPE_WINDOW_STATE, "GDK_WINDOW_STATE_");
919
1256
 
920
1257
  /* GdkEventSetting */
921
- ev = gdkevents[GDK_SETTING];
922
- DEFINE_ACCESSOR(ev, setting, action);
923
- DEFINE_ACCESSOR(ev, setting, name);
924
- DEFINE_INIT(ev, setting);
925
- G_DEF_SETTERS(ev);
1258
+ rb_cGdkEventSetting =
1259
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_SETTING, "EventSetting",
1260
+ mGdk, rb_cGdkEvent);
1261
+ DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, action);
1262
+ DEFINE_ACCESSOR(rb_cGdkEventSetting, setting, name);
1263
+ DEFINE_INIT(rb_cGdkEventSetting, setting);
1264
+ G_DEF_SETTERS(rb_cGdkEventSetting);
926
1265
 
927
1266
  /* GdkSettingAction */
928
- G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action", ev);
929
- G_DEF_CONSTANTS(ev, GDK_TYPE_SETTING_ACTION, "GDK_SETTING_");
1267
+ G_DEF_CLASS(GDK_TYPE_SETTING_ACTION, "Action", rb_cGdkEventScroll);
1268
+ G_DEF_CONSTANTS(rb_cGdkEventSetting,
1269
+ GDK_TYPE_SETTING_ACTION, "GDK_SETTING_");
930
1270
 
931
- #if GTK_CHECK_VERSION(2,6,0)
932
- /* GdkEventOwnerChange */
933
- ev = gdkevents[GDK_OWNER_CHANGE];
934
- DEFINE_ACCESSOR(ev, owner_change, owner);
935
- DEFINE_ACCESSOR(ev, owner_change, reason);
936
- DEFINE_ACCESSOR(ev, owner_change, selection);
937
- DEFINE_ACCESSOR(ev, owner_change, time);
938
- DEFINE_ACCESSOR(ev, owner_change, selection_time);
939
- G_DEF_SETTERS(ev);
940
- DEFINE_INIT(ev, owner_change);
941
-
942
- /* GdkOwnerChange */
943
- G_DEF_CLASS(GDK_TYPE_OWNER_CHANGE, "OwnerChange", ev);
944
- G_DEF_CONSTANTS(ev, GDK_TYPE_OWNER_CHANGE, "GDK_OWNER_CHANGE_");
945
- #endif
946
-
947
- #if GTK_CHECK_VERSION(2,8,0)
948
1271
  /* GdkEventGrabBroken */
949
- ev = gdkevents[GDK_GRAB_BROKEN];
950
- rb_define_method(ev, "keyboard?", gdkeventgrab_broken_keyboard, 0);
951
- rb_define_method(ev, "set_keyboard", gdkeventgrab_broken_set_keyboard, 1);
952
- rb_define_method(ev, "implicit?", gdkeventgrab_broken_implicit, 0);
953
- rb_define_method(ev, "set_implicit", gdkeventgrab_broken_set_implicit, 1);
954
- DEFINE_ACCESSOR(ev, grab_broken, grab_window);
955
- DEFINE_INIT(ev, grab_broken);
956
- G_DEF_SETTERS(ev);
957
- #endif
1272
+ rb_cGdkEventGrabBroken =
1273
+ G_DEF_CLASS_WITH_PARENT(GDK_TYPE_EVENT_GRAB_BROKEN, "EventGrabBroken",
1274
+ mGdk, rb_cGdkEvent);
1275
+ rb_define_method(rb_cGdkEventGrabBroken,
1276
+ "keyboard?", gdkeventgrab_broken_keyboard, 0);
1277
+ rb_define_method(rb_cGdkEventGrabBroken,
1278
+ "set_keyboard", gdkeventgrab_broken_set_keyboard, 1);
1279
+ rb_define_method(rb_cGdkEventGrabBroken,
1280
+ "implicit?", gdkeventgrab_broken_implicit, 0);
1281
+ rb_define_method(rb_cGdkEventGrabBroken,
1282
+ "set_implicit", gdkeventgrab_broken_set_implicit, 1);
1283
+ DEFINE_ACCESSOR(rb_cGdkEventGrabBroken, grab_broken, grab_window);
1284
+ DEFINE_INIT(rb_cGdkEventGrabBroken, grab_broken);
1285
+ G_DEF_SETTERS(rb_cGdkEventGrabBroken);
958
1286
 
959
1287
  rbgobj_register_g2r_func(GDK_TYPE_EVENT, &gdkevent_g2r);
960
-
961
- /*
962
- * GdkEvent's Constants
963
- */
964
- rb_define_const(gdkEvent, "CURRENT_TIME", INT2FIX(GDK_CURRENT_TIME));
965
- rb_define_const(gdkEvent, "PRIORITY_EVENTS", INT2FIX(GDK_PRIORITY_EVENTS));
966
- rb_define_const(gdkEvent, "PRIORITY_REDRAW", INT2FIX(GDK_PRIORITY_REDRAW));
967
-
968
- /* GdkEventType */
969
- /* XXX */
970
- G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
971
- G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
972
- G_DEF_CLASS(GDK_TYPE_EVENT_TYPE, "Type", gdkEvent);
973
- G_RENAME_CONSTANT("2BUTTON_PRESS","BUTTON2_PRESS");
974
- G_RENAME_CONSTANT("3BUTTON_PRESS","BUTTON3_PRESS");
975
- G_DEF_CONSTANTS(gdkEvent, GDK_TYPE_EVENT_TYPE, "GDK_");
976
-
977
- /* GdkEventMask */
978
- G_DEF_CLASS(GDK_TYPE_EVENT_MASK, "Mask", gdkEvent);
979
- G_DEF_CONSTANTS(gdkEvent, GDK_TYPE_EVENT_MASK, "GDK_");
980
-
981
1288
  }