gtk2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (756) hide show
  1. data/Rakefile +66 -1
  2. data/ext/gtk2/extconf.rb +0 -96
  3. data/ext/gtk2/global.h +274 -13
  4. data/ext/gtk2/gtk2.def +5 -3
  5. data/ext/gtk2/init.c +263 -19
  6. data/ext/gtk2/rbgdk.c +245 -89
  7. data/ext/gtk2/rbgdk.h +32 -6
  8. data/ext/gtk2/rbgdkatom.c +38 -28
  9. data/ext/gtk2/rbgdkcairo.c +32 -42
  10. data/ext/gtk2/rbgdkcolor.c +52 -42
  11. data/ext/gtk2/rbgdkcolormap.c +42 -37
  12. data/ext/gtk2/rbgdkconst.c +23 -13
  13. data/ext/gtk2/rbgdkconversions.h +19 -6
  14. data/ext/gtk2/rbgdkcursor.c +37 -25
  15. data/ext/gtk2/rbgdkdevice.c +77 -67
  16. data/ext/gtk2/rbgdkdisplay.c +158 -150
  17. data/ext/gtk2/rbgdkdisplaymanager.c +27 -15
  18. data/ext/gtk2/rbgdkdragcontext.c +121 -70
  19. data/ext/gtk2/rbgdkdraw.c +252 -160
  20. data/ext/gtk2/rbgdkevent.c +30 -20
  21. data/ext/gtk2/rbgdkgc.c +123 -116
  22. data/ext/gtk2/rbgdkgeometry.c +77 -68
  23. data/ext/gtk2/rbgdkimage.c +58 -47
  24. data/ext/gtk2/rbgdkinput.c +33 -26
  25. data/ext/gtk2/rbgdkkeymap.c +38 -27
  26. data/ext/gtk2/rbgdkkeyval.c +44 -32
  27. data/ext/gtk2/rbgdkpango.c +66 -39
  28. data/ext/gtk2/rbgdkpangorenderer.c +63 -35
  29. data/ext/gtk2/rbgdkpixbuf.c +36 -25
  30. data/ext/gtk2/rbgdkpixmap.c +65 -49
  31. data/ext/gtk2/rbgdkproperty.c +66 -60
  32. data/ext/gtk2/rbgdkrectangle.c +54 -46
  33. data/ext/gtk2/rbgdkregion.c +144 -79
  34. data/ext/gtk2/rbgdkrgb.c +74 -58
  35. data/ext/gtk2/rbgdkscreen.c +103 -97
  36. data/ext/gtk2/rbgdkselection.c +49 -39
  37. data/ext/gtk2/rbgdkthreads.c +32 -19
  38. data/ext/gtk2/rbgdktimecoord.c +60 -38
  39. data/ext/gtk2/rbgdkvisual.c +79 -71
  40. data/ext/gtk2/rbgdkwindow.c +284 -305
  41. data/ext/gtk2/rbgdkwindowattr.c +69 -58
  42. data/ext/gtk2/rbgdkx11.c +41 -28
  43. data/ext/gtk2/rbgtk.c +498 -19
  44. data/ext/gtk2/rbgtk.h +35 -20
  45. data/ext/gtk2/rbgtkaboutdialog.c +33 -80
  46. data/ext/gtk2/rbgtkaccelerator.c +36 -23
  47. data/ext/gtk2/rbgtkaccelgroup.c +50 -40
  48. data/ext/gtk2/rbgtkaccelgroupentry.c +32 -20
  49. data/ext/gtk2/rbgtkaccelkey.c +40 -28
  50. data/ext/gtk2/rbgtkaccellabel.c +30 -18
  51. data/ext/gtk2/rbgtkaccelmap.c +55 -42
  52. data/ext/gtk2/rbgtkaccessible.c +25 -14
  53. data/ext/gtk2/rbgtkaction.c +68 -68
  54. data/ext/gtk2/rbgtkactiongroup.c +317 -195
  55. data/ext/gtk2/rbgtkadjustment.c +33 -46
  56. data/ext/gtk2/rbgtkalignment.c +36 -24
  57. data/ext/gtk2/rbgtkallocation.c +53 -42
  58. data/ext/gtk2/rbgtkarrow.c +34 -22
  59. data/ext/gtk2/rbgtkaspectframe.c +32 -20
  60. data/ext/gtk2/rbgtkassistant.c +81 -61
  61. data/ext/gtk2/rbgtkbbox.c +32 -20
  62. data/ext/gtk2/rbgtkbin.c +28 -16
  63. data/ext/gtk2/rbgtkbindingset.c +42 -35
  64. data/ext/gtk2/rbgtkborder.c +34 -23
  65. data/ext/gtk2/rbgtkbox.c +40 -29
  66. data/ext/gtk2/rbgtkbuildable.c +57 -45
  67. data/ext/gtk2/rbgtkbuilder.c +53 -38
  68. data/ext/gtk2/rbgtkbutton.c +41 -55
  69. data/ext/gtk2/rbgtkcalendar.c +51 -40
  70. data/ext/gtk2/rbgtkcelleditable.c +28 -17
  71. data/ext/gtk2/rbgtkcelllayout.c +41 -30
  72. data/ext/gtk2/rbgtkcellrenderer.c +43 -32
  73. data/ext/gtk2/rbgtkcellrendereraccel.c +26 -18
  74. data/ext/gtk2/rbgtkcellrenderercombo.c +25 -17
  75. data/ext/gtk2/rbgtkcellrendererpixbuf.c +24 -17
  76. data/ext/gtk2/rbgtkcellrendererprogress.c +25 -17
  77. data/ext/gtk2/rbgtkcellrendererspin.c +24 -16
  78. data/ext/gtk2/rbgtkcellrendererspinner.c +23 -11
  79. data/ext/gtk2/rbgtkcellrenderertext.c +28 -21
  80. data/ext/gtk2/rbgtkcellrenderertoggle.c +24 -16
  81. data/ext/gtk2/rbgtkcellview.c +34 -33
  82. data/ext/gtk2/rbgtkcheckbutton.c +28 -16
  83. data/ext/gtk2/rbgtkcheckmenuitem.c +31 -19
  84. data/ext/gtk2/rbgtkclipboard.c +123 -77
  85. data/ext/gtk2/rbgtkcolorbutton.c +26 -31
  86. data/ext/gtk2/rbgtkcolorsel.c +109 -55
  87. data/ext/gtk2/rbgtkcolorselectiondialog.c +28 -19
  88. data/ext/gtk2/rbgtkcombo.c +43 -32
  89. data/ext/gtk2/rbgtkcombobox.c +44 -83
  90. data/ext/gtk2/rbgtkcomboboxentry.c +26 -21
  91. data/ext/gtk2/rbgtkconst.c +23 -13
  92. data/ext/gtk2/rbgtkcontainer.c +153 -100
  93. data/ext/gtk2/rbgtkconversions.h +19 -6
  94. data/ext/gtk2/rbgtkcurve.c +46 -36
  95. data/ext/gtk2/rbgtkdialog.c +104 -70
  96. data/ext/gtk2/rbgtkdrag.c +173 -121
  97. data/ext/gtk2/rbgtkdrawingarea.c +28 -16
  98. data/ext/gtk2/rbgtkeditable.c +63 -51
  99. data/ext/gtk2/rbgtkentry.c +48 -85
  100. data/ext/gtk2/rbgtkentrycompletion.c +42 -55
  101. data/ext/gtk2/rbgtkeventbox.c +28 -16
  102. data/ext/gtk2/rbgtkexpander.c +26 -35
  103. data/ext/gtk2/rbgtkfilechooser.c +87 -143
  104. data/ext/gtk2/rbgtkfilechooserbutton.c +26 -32
  105. data/ext/gtk2/rbgtkfilechooserdialog.c +25 -15
  106. data/ext/gtk2/rbgtkfilechooserwidget.c +26 -15
  107. data/ext/gtk2/rbgtkfilefilter.c +45 -35
  108. data/ext/gtk2/rbgtkfilesel.c +54 -43
  109. data/ext/gtk2/rbgtkfilesystemerror.c +51 -0
  110. data/ext/gtk2/rbgtkfixed.c +36 -25
  111. data/ext/gtk2/rbgtkfontbutton.c +26 -37
  112. data/ext/gtk2/rbgtkfontselection.c +27 -15
  113. data/ext/gtk2/rbgtkfontselectiondialog.c +43 -32
  114. data/ext/gtk2/rbgtkframe.c +39 -28
  115. data/ext/gtk2/rbgtkgamma.c +32 -20
  116. data/ext/gtk2/rbgtkhandlebox.c +31 -19
  117. data/ext/gtk2/rbgtkhbbox.c +28 -16
  118. data/ext/gtk2/rbgtkhbox.c +29 -17
  119. data/ext/gtk2/rbgtkhpaned.c +28 -16
  120. data/ext/gtk2/rbgtkhruler.c +28 -16
  121. data/ext/gtk2/rbgtkhscale.c +28 -16
  122. data/ext/gtk2/rbgtkhscrollbar.c +28 -16
  123. data/ext/gtk2/rbgtkhseparator.c +28 -16
  124. data/ext/gtk2/rbgtkiconfactory.c +35 -23
  125. data/ext/gtk2/rbgtkiconinfo.c +42 -30
  126. data/ext/gtk2/rbgtkiconset.c +31 -19
  127. data/ext/gtk2/rbgtkiconsize.c +38 -25
  128. data/ext/gtk2/rbgtkiconsource.c +62 -50
  129. data/ext/gtk2/rbgtkicontheme.c +95 -95
  130. data/ext/gtk2/rbgtkiconview.c +87 -121
  131. data/ext/gtk2/rbgtkimage.c +31 -40
  132. data/ext/gtk2/rbgtkimagemenuitem.c +26 -14
  133. data/ext/gtk2/rbgtkimcontext.c +46 -34
  134. data/ext/gtk2/rbgtkimcontextsimple.c +47 -24
  135. data/ext/gtk2/rbgtkimmulticontext.c +26 -14
  136. data/ext/gtk2/rbgtkinputdialog.c +28 -16
  137. data/ext/gtk2/rbgtkinvisible.c +24 -18
  138. data/ext/gtk2/rbgtkitem.c +32 -20
  139. data/ext/gtk2/rbgtkitemfactory.c +65 -57
  140. data/ext/gtk2/rbgtklabel.c +46 -57
  141. data/ext/gtk2/rbgtklayout.c +40 -29
  142. data/ext/gtk2/rbgtklinkbutton.c +26 -15
  143. data/ext/gtk2/rbgtkliststore.c +145 -102
  144. data/ext/gtk2/rbgtkmacros.h +19 -6
  145. data/ext/gtk2/rbgtkmenu.c +47 -59
  146. data/ext/gtk2/rbgtkmenubar.c +30 -30
  147. data/ext/gtk2/rbgtkmenuitem.c +34 -41
  148. data/ext/gtk2/rbgtkmenushell.c +43 -42
  149. data/ext/gtk2/rbgtkmenutoolbutton.c +27 -16
  150. data/ext/gtk2/rbgtkmessagedialog.c +31 -25
  151. data/ext/gtk2/rbgtkmisc.c +33 -22
  152. data/ext/gtk2/rbgtknotebook.c +98 -134
  153. data/ext/gtk2/rbgtkobject.c +46 -81
  154. data/ext/gtk2/rbgtkoptionmenu.c +35 -23
  155. data/ext/gtk2/rbgtkpagesetup.c +64 -54
  156. data/ext/gtk2/rbgtkpagesetupunixdialog.c +34 -27
  157. data/ext/gtk2/rbgtkpaned.c +46 -36
  158. data/ext/gtk2/rbgtkpapersize.c +60 -54
  159. data/ext/gtk2/rbgtkplug.c +32 -20
  160. data/ext/gtk2/rbgtkprintcontext.c +43 -35
  161. data/ext/gtk2/rbgtkprinter.c +36 -37
  162. data/ext/gtk2/rbgtkprintjob.c +36 -37
  163. data/ext/gtk2/rbgtkprintoperation.c +44 -33
  164. data/ext/gtk2/rbgtkprintoperationpreview.c +30 -18
  165. data/ext/gtk2/rbgtkprintsettings.c +248 -192
  166. data/ext/gtk2/rbgtkprintunixdialog.c +33 -45
  167. data/ext/gtk2/rbgtkprogress.c +23 -13
  168. data/ext/gtk2/rbgtkprogressbar.c +47 -46
  169. data/ext/gtk2/rbgtkradioaction.c +84 -39
  170. data/ext/gtk2/rbgtkradiobutton.c +33 -21
  171. data/ext/gtk2/rbgtkradiomenuitem.c +86 -45
  172. data/ext/gtk2/rbgtkradiotoolbutton.c +99 -53
  173. data/ext/gtk2/rbgtkrange.c +36 -56
  174. data/ext/gtk2/rbgtkrc.c +61 -49
  175. data/ext/gtk2/rbgtkrcstyle.c +59 -48
  176. data/ext/gtk2/rbgtkrecentaction.c +28 -16
  177. data/ext/gtk2/rbgtkrecentchooser.c +58 -92
  178. data/ext/gtk2/rbgtkrecentchooserdialog.c +29 -18
  179. data/ext/gtk2/rbgtkrecentchoosermenu.c +25 -21
  180. data/ext/gtk2/rbgtkrecentchooserwidget.c +24 -13
  181. data/ext/gtk2/rbgtkrecentdata.c +47 -36
  182. data/ext/gtk2/rbgtkrecentfilter.c +55 -46
  183. data/ext/gtk2/rbgtkrecentfilterinfo.c +51 -40
  184. data/ext/gtk2/rbgtkrecentinfo.c +66 -56
  185. data/ext/gtk2/rbgtkrecentmanager.c +47 -43
  186. data/ext/gtk2/rbgtkruler.c +35 -30
  187. data/ext/gtk2/rbgtkscale.c +29 -18
  188. data/ext/gtk2/rbgtkscalebutton.c +27 -27
  189. data/ext/gtk2/rbgtkscrollbar.c +23 -13
  190. data/ext/gtk2/rbgtkscrolledwindow.c +44 -60
  191. data/ext/gtk2/rbgtkselection.c +87 -67
  192. data/ext/gtk2/rbgtkselectiondata.c +74 -65
  193. data/ext/gtk2/rbgtkseparator.c +23 -13
  194. data/ext/gtk2/rbgtkseparatormenuitem.c +25 -13
  195. data/ext/gtk2/rbgtkseparatortoolitem.c +26 -21
  196. data/ext/gtk2/rbgtksettings.c +123 -103
  197. data/ext/gtk2/rbgtksizegroup.c +33 -30
  198. data/ext/gtk2/rbgtksocket.c +32 -20
  199. data/ext/gtk2/rbgtkspinbutton.c +48 -38
  200. data/ext/gtk2/rbgtkspinner.c +27 -14
  201. data/ext/gtk2/rbgtkstatusbar.c +36 -31
  202. data/ext/gtk2/rbgtkstatusicon.c +31 -44
  203. data/ext/gtk2/rbgtkstock.c +137 -125
  204. data/ext/gtk2/rbgtkstyle.c +177 -161
  205. data/ext/gtk2/rbgtktable.c +58 -47
  206. data/ext/gtk2/rbgtktargetlist.c +56 -36
  207. data/ext/gtk2/rbgtktearoffmenuitem.c +28 -16
  208. data/ext/gtk2/rbgtktextappearance.c +44 -34
  209. data/ext/gtk2/rbgtktextattributes.c +54 -42
  210. data/ext/gtk2/rbgtktextbuffer.c +188 -191
  211. data/ext/gtk2/rbgtktextchild.c +29 -18
  212. data/ext/gtk2/rbgtktextiter.c +153 -145
  213. data/ext/gtk2/rbgtktextmark.c +33 -30
  214. data/ext/gtk2/rbgtktexttag.c +34 -22
  215. data/ext/gtk2/rbgtktexttagtable.c +36 -25
  216. data/ext/gtk2/rbgtktextview.c +85 -73
  217. data/ext/gtk2/rbgtktoggleaction.c +27 -22
  218. data/ext/gtk2/rbgtktogglebutton.c +37 -26
  219. data/ext/gtk2/rbgtktoggletoolbutton.c +26 -20
  220. data/ext/gtk2/rbgtktoolbar.c +66 -69
  221. data/ext/gtk2/rbgtktoolbutton.c +27 -40
  222. data/ext/gtk2/rbgtktoolitem.c +60 -62
  223. data/ext/gtk2/rbgtktooltip.c +36 -25
  224. data/ext/gtk2/rbgtktooltips.c +42 -34
  225. data/ext/gtk2/rbgtktreedragdest.c +20 -11
  226. data/ext/gtk2/rbgtktreedragsource.c +20 -11
  227. data/ext/gtk2/rbgtktreeiter.c +58 -47
  228. data/ext/gtk2/rbgtktreemodel.c +83 -65
  229. data/ext/gtk2/rbgtktreemodelfilter.c +47 -35
  230. data/ext/gtk2/rbgtktreemodelsort.c +38 -27
  231. data/ext/gtk2/rbgtktreepath.c +55 -44
  232. data/ext/gtk2/rbgtktreerowreference.c +60 -42
  233. data/ext/gtk2/rbgtktreeselection.c +61 -52
  234. data/ext/gtk2/rbgtktreesortable.c +52 -42
  235. data/ext/gtk2/rbgtktreestore.c +88 -67
  236. data/ext/gtk2/rbgtktreeview.c +157 -185
  237. data/ext/gtk2/rbgtktreeviewcolumn.c +57 -62
  238. data/ext/gtk2/rbgtkuimanager.c +61 -61
  239. data/ext/gtk2/rbgtkvbbox.c +28 -16
  240. data/ext/gtk2/rbgtkvbox.c +29 -17
  241. data/ext/gtk2/rbgtkviewport.c +28 -16
  242. data/ext/gtk2/rbgtkvolumebutton.c +28 -16
  243. data/ext/gtk2/rbgtkvpaned.c +28 -16
  244. data/ext/gtk2/rbgtkvruler.c +28 -16
  245. data/ext/gtk2/rbgtkvscale.c +28 -16
  246. data/ext/gtk2/rbgtkvscrollbar.c +28 -16
  247. data/ext/gtk2/rbgtkvseparator.c +28 -16
  248. data/ext/gtk2/rbgtkwidget.c +284 -296
  249. data/ext/gtk2/rbgtkwindow.c +156 -214
  250. data/ext/gtk2/rbgtkwindowgroup.c +35 -24
  251. data/lib/1.8/gtk2.so +0 -0
  252. data/lib/1.9/gtk2.so +0 -0
  253. data/sample/testgtk/labels.rb +1 -0
  254. data/sample/testgtk/testgtk.rb +2 -0
  255. data/vendor/local/bin/gtk-builder-convert +29 -2
  256. data/vendor/local/bin/gtk-demo.exe +0 -0
  257. data/vendor/local/bin/gtk-query-immodules-2.0.exe +0 -0
  258. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  259. data/vendor/local/bin/libgailutil-18.dll +0 -0
  260. data/vendor/local/bin/libgdk-win32-2.0-0.dll +0 -0
  261. data/vendor/local/bin/libgtk-win32-2.0-0.dll +0 -0
  262. data/vendor/local/etc/gtk-2.0/gtk.immodules +1 -1
  263. data/vendor/local/include/gtk-2.0/gdk/gdk.h +4 -7
  264. data/vendor/local/include/gtk-2.0/gdk/gdkcairo.h +4 -0
  265. data/vendor/local/include/gtk-2.0/gdk/gdkdisplay.h +4 -2
  266. data/vendor/local/include/gtk-2.0/gdk/gdkdnd.h +7 -0
  267. data/vendor/local/include/gtk-2.0/gdk/gdkdrawable.h +7 -4
  268. data/vendor/local/include/gtk-2.0/gdk/gdkfont.h +1 -1
  269. data/vendor/local/include/gtk-2.0/gdk/gdkinput.h +2 -1
  270. data/vendor/local/include/gtk-2.0/gdk/gdkpixmap.h +4 -0
  271. data/vendor/local/include/gtk-2.0/gdk/gdkproperty.h +13 -9
  272. data/vendor/local/include/gtk-2.0/gdk/gdkspawn.h +2 -0
  273. data/vendor/local/include/gtk-2.0/gdk/gdkwin32.h +6 -0
  274. data/vendor/local/include/gtk-2.0/gdk/gdkwindow.h +16 -6
  275. data/vendor/local/include/gtk-2.0/gtk/gtk.h +1 -0
  276. data/vendor/local/include/gtk-2.0/gtk/gtkaboutdialog.h +18 -14
  277. data/vendor/local/include/gtk-2.0/gtk/gtkaction.h +7 -7
  278. data/vendor/local/include/gtk-2.0/gtk/gtkactiongroup.h +2 -2
  279. data/vendor/local/include/gtk-2.0/gtk/gtkassistant.h +1 -1
  280. data/vendor/local/include/gtk-2.0/gtk/gtkbutton.h +1 -1
  281. data/vendor/local/include/gtk-2.0/gtk/gtkcolorbutton.h +1 -1
  282. data/vendor/local/include/gtk-2.0/gtk/gtkcombobox.h +15 -4
  283. data/vendor/local/include/gtk-2.0/gtk/gtkcomboboxentry.h +3 -0
  284. data/vendor/local/include/gtk-2.0/gtk/gtkcomboboxtext.h +77 -0
  285. data/vendor/local/include/gtk-2.0/gtk/gtkentry.h +2 -2
  286. data/vendor/local/include/gtk-2.0/gtk/gtkentrybuffer.h +1 -1
  287. data/vendor/local/include/gtk-2.0/gtk/gtkexpander.h +1 -1
  288. data/vendor/local/include/gtk-2.0/gtk/gtkfilechooser.h +1 -1
  289. data/vendor/local/include/gtk-2.0/gtk/gtkfilechooserbutton.h +1 -1
  290. data/vendor/local/include/gtk-2.0/gtk/gtkfilefilter.h +1 -1
  291. data/vendor/local/include/gtk-2.0/gtk/gtkfilesel.h +1 -1
  292. data/vendor/local/include/gtk-2.0/gtk/gtkfontbutton.h +2 -2
  293. data/vendor/local/include/gtk-2.0/gtk/gtkfontsel.h +1 -1
  294. data/vendor/local/include/gtk-2.0/gtk/gtkframe.h +1 -1
  295. data/vendor/local/include/gtk-2.0/gtk/gtkhruler.h +4 -0
  296. data/vendor/local/include/gtk-2.0/gtk/gtkiconfactory.h +3 -3
  297. data/vendor/local/include/gtk-2.0/gtk/gtkicontheme.h +2 -2
  298. data/vendor/local/include/gtk-2.0/gtk/gtkimage.h +1 -1
  299. data/vendor/local/include/gtk-2.0/gtk/gtkitemfactory.h +1 -1
  300. data/vendor/local/include/gtk-2.0/gtk/gtklabel.h +3 -3
  301. data/vendor/local/include/gtk-2.0/gtk/gtklinkbutton.h +3 -1
  302. data/vendor/local/include/gtk-2.0/gtk/gtkmain.h +5 -2
  303. data/vendor/local/include/gtk-2.0/gtk/gtkmenu.h +1 -1
  304. data/vendor/local/include/gtk-2.0/gtk/gtkmenuitem.h +3 -3
  305. data/vendor/local/include/gtk-2.0/gtk/gtknotebook.h +9 -7
  306. data/vendor/local/include/gtk-2.0/gtk/gtkpapersize.h +4 -4
  307. data/vendor/local/include/gtk-2.0/gtk/gtkprintoperation.h +1 -1
  308. data/vendor/local/include/gtk-2.0/gtk/gtkprintsettings.h +7 -7
  309. data/vendor/local/include/gtk-2.0/gtk/gtkprivate.h +25 -2
  310. data/vendor/local/include/gtk-2.0/gtk/gtkprogressbar.h +1 -1
  311. data/vendor/local/include/gtk-2.0/gtk/gtkrange.h +6 -0
  312. data/vendor/local/include/gtk-2.0/gtk/gtkrecentfilter.h +1 -1
  313. data/vendor/local/include/gtk-2.0/gtk/gtkrecentmanager.h +4 -4
  314. data/vendor/local/include/gtk-2.0/gtk/gtkruler.h +4 -0
  315. data/vendor/local/include/gtk-2.0/gtk/gtkstatusicon.h +3 -3
  316. data/vendor/local/include/gtk-2.0/gtk/gtktextmark.h +1 -1
  317. data/vendor/local/include/gtk-2.0/gtk/gtktoolbutton.h +3 -3
  318. data/vendor/local/include/gtk-2.0/gtk/gtktoolitemgroup.h +1 -1
  319. data/vendor/local/include/gtk-2.0/gtk/gtktoolpalette.h +2 -2
  320. data/vendor/local/include/gtk-2.0/gtk/gtktreeviewcolumn.h +1 -1
  321. data/vendor/local/include/gtk-2.0/gtk/gtktypeutils.h +2 -0
  322. data/vendor/local/include/gtk-2.0/gtk/gtkversion.h +4 -4
  323. data/vendor/local/include/gtk-2.0/gtk/gtkvruler.h +4 -0
  324. data/vendor/local/include/gtk-2.0/gtk/gtkwidget.h +6 -2
  325. data/vendor/local/include/gtk-2.0/gtk/gtkwindow.h +8 -7
  326. data/vendor/local/lib/gailutil.lib +0 -0
  327. data/vendor/local/lib/gdk-win32-2.0.lib +0 -0
  328. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libpixmap.dll +0 -0
  329. data/vendor/local/lib/gtk-2.0/2.10.0/engines/libwimp.dll +0 -0
  330. data/vendor/local/lib/gtk-2.0/modules/libgail.dll +0 -0
  331. data/vendor/local/lib/gtk-win32-2.0.lib +0 -0
  332. data/vendor/local/lib/libgailutil.dll.a +0 -0
  333. data/vendor/local/lib/libgdk-win32-2.0.dll.a +0 -0
  334. data/vendor/local/lib/libgtk-win32-2.0.dll.a +0 -0
  335. data/vendor/local/lib/pkgconfig/gail.pc +1 -1
  336. data/vendor/local/lib/pkgconfig/gdk-2.0.pc +1 -1
  337. data/vendor/local/lib/pkgconfig/gdk-win32-2.0.pc +1 -1
  338. data/vendor/local/lib/pkgconfig/gtk+-2.0.pc +1 -1
  339. data/vendor/local/lib/pkgconfig/gtk+-win32-2.0.pc +1 -1
  340. data/vendor/local/manifest/{gtk+-dev_2.22.1-1_win32.mft → gtk+-dev_2.24.8-1_win32.mft} +10 -8
  341. data/vendor/local/manifest/{gtk+_2.22.1-1_win32.mft → gtk+_2.24.8-1_win32.mft} +2 -6
  342. data/vendor/local/share/doc/{gtk+-2.22.1 → gtk+-2.24.8}/COPYING +0 -0
  343. data/vendor/local/share/doc/{gtk+-dev-2.22.1 → gtk+-dev-2.24.8}/COPYING +0 -0
  344. data/vendor/local/share/gtk-2.0/demo/appwindow.c +0 -21
  345. data/vendor/local/share/gtk-2.0/demo/combobox.c +6 -6
  346. data/vendor/local/share/gtk-2.0/demo/editable_cells.c +5 -5
  347. data/vendor/local/share/gtk-2.0/demo/iconview.c +1 -0
  348. data/vendor/local/share/gtk-2.0/demo/offscreen_window.c +1 -1
  349. data/vendor/local/share/gtk-2.0/demo/offscreen_window2.c +1 -1
  350. data/vendor/local/share/gtk-2.0/demo/sizegroup.c +2 -2
  351. data/vendor/local/share/gtk-2.0/demo/textview.c +4 -4
  352. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailMisc.html +74 -108
  353. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util-GailTextUtil.html +48 -62
  354. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util.devhelp +1 -1
  355. data/vendor/local/share/gtk-doc/html/gail-libgail-util/gail-libgail-util.devhelp2 +1 -1
  356. data/vendor/local/share/gtk-doc/html/gail-libgail-util/index.html +3 -3
  357. data/vendor/local/share/gtk-doc/html/gail-libgail-util/libgail-util-main.html +3 -3
  358. data/vendor/local/share/gtk-doc/html/gail-libgail-util/style.css +2 -1
  359. data/vendor/local/share/gtk-doc/html/gdk/GdkDisplay.html +154 -211
  360. data/vendor/local/share/gtk-doc/html/gdk/GdkDisplayManager.html +35 -39
  361. data/vendor/local/share/gtk-doc/html/gdk/GdkScreen.html +182 -241
  362. data/vendor/local/share/gtk-doc/html/gdk/annotation-glossary.html +9 -6
  363. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-10.html +7 -7
  364. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-12.html +8 -8
  365. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-14.html +7 -7
  366. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-16.html +6 -6
  367. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-18.html +6 -6
  368. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-2.html +26 -26
  369. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-20.html +6 -6
  370. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-22.html +6 -6
  371. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-4.html +7 -7
  372. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-6.html +10 -10
  373. data/vendor/local/share/gtk-doc/html/gdk/api-index-2-8.html +10 -10
  374. data/vendor/local/share/gtk-doc/html/gdk/api-index-deprecated.html +150 -20
  375. data/vendor/local/share/gtk-doc/html/gdk/api-index-full.html +174 -138
  376. data/vendor/local/share/gtk-doc/html/gdk/gdk-Application-launching.html +24 -27
  377. data/vendor/local/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html +136 -136
  378. data/vendor/local/share/gtk-doc/html/gdk/gdk-Cairo-Interaction.html +88 -46
  379. data/vendor/local/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html +139 -203
  380. data/vendor/local/share/gtk-doc/html/gdk/gdk-Cursors.html +76 -95
  381. data/vendor/local/share/gtk-doc/html/gdk/gdk-Drag-and-Drop.html +164 -203
  382. data/vendor/local/share/gtk-doc/html/gdk/gdk-Drawing-Primitives.html +303 -419
  383. data/vendor/local/share/gtk-doc/html/gdk/gdk-Event-Structures.html +324 -439
  384. data/vendor/local/share/gtk-doc/html/gdk/gdk-Events.html +114 -147
  385. data/vendor/local/share/gtk-doc/html/gdk/gdk-Fonts.html +157 -236
  386. data/vendor/local/share/gtk-doc/html/gdk/gdk-GdkRGB.html +159 -233
  387. data/vendor/local/share/gtk-doc/html/gdk/gdk-General.html +114 -134
  388. data/vendor/local/share/gtk-doc/html/gdk/gdk-Graphics-Contexts.html +170 -252
  389. data/vendor/local/share/gtk-doc/html/gdk/gdk-Images.html +92 -133
  390. data/vendor/local/share/gtk-doc/html/gdk/gdk-Input-Devices.html +146 -194
  391. data/vendor/local/share/gtk-doc/html/gdk/gdk-Input.html +37 -55
  392. data/vendor/local/share/gtk-doc/html/gdk/gdk-Keyboard-Handling.html +183 -198
  393. data/vendor/local/share/gtk-doc/html/gdk/gdk-Pango-Interaction.html +94 -121
  394. data/vendor/local/share/gtk-doc/html/gdk/gdk-Pixbufs.html +100 -158
  395. data/vendor/local/share/gtk-doc/html/gdk/gdk-Points-Rectangles-and-Regions.html +147 -179
  396. data/vendor/local/share/gtk-doc/html/gdk/gdk-Properties-and-Atoms.html +190 -237
  397. data/vendor/local/share/gtk-doc/html/gdk/gdk-Selections.html +100 -137
  398. data/vendor/local/share/gtk-doc/html/gdk/gdk-Testing.html +26 -39
  399. data/vendor/local/share/gtk-doc/html/gdk/gdk-Threads.html +61 -87
  400. data/vendor/local/share/gtk-doc/html/gdk/gdk-Visuals.html +86 -111
  401. data/vendor/local/share/gtk-doc/html/gdk/gdk-Windows.html +725 -801
  402. data/vendor/local/share/gtk-doc/html/gdk/gdk.devhelp +51 -134
  403. data/vendor/local/share/gtk-doc/html/gdk/gdk.devhelp2 +75 -158
  404. data/vendor/local/share/gtk-doc/html/gdk/index.html +10 -13
  405. data/vendor/local/share/gtk-doc/html/gdk/index.sgml +10 -94
  406. data/vendor/local/share/gtk-doc/html/gdk/multihead.html +15 -15
  407. data/vendor/local/share/gtk-doc/html/gdk/reference.html +8 -10
  408. data/vendor/local/share/gtk-doc/html/gdk/style.css +2 -1
  409. data/vendor/local/share/gtk-doc/html/gtk/AbstractObjects.html +5 -5
  410. data/vendor/local/share/gtk-doc/html/gtk/Actions.html +5 -5
  411. data/vendor/local/share/gtk-doc/html/gtk/Builder.html +5 -5
  412. data/vendor/local/share/gtk-doc/html/gtk/ButtonWidgets.html +5 -5
  413. data/vendor/local/share/gtk-doc/html/gtk/DeprecatedObjects.html +5 -5
  414. data/vendor/local/share/gtk-doc/html/gtk/DisplayWidgets.html +5 -5
  415. data/vendor/local/share/gtk-doc/html/gtk/GtkAboutDialog.html +228 -212
  416. data/vendor/local/share/gtk-doc/html/gtk/GtkAccelLabel.html +41 -49
  417. data/vendor/local/share/gtk-doc/html/gtk/GtkAccessible.html +20 -20
  418. data/vendor/local/share/gtk-doc/html/gtk/GtkAction.html +181 -248
  419. data/vendor/local/share/gtk-doc/html/gtk/GtkActionGroup.html +178 -261
  420. data/vendor/local/share/gtk-doc/html/gtk/GtkActivatable.html +48 -52
  421. data/vendor/local/share/gtk-doc/html/gtk/GtkAdjustment.html +80 -116
  422. data/vendor/local/share/gtk-doc/html/gtk/GtkAlignment.html +58 -68
  423. data/vendor/local/share/gtk-doc/html/gtk/GtkArrow.html +32 -38
  424. data/vendor/local/share/gtk-doc/html/gtk/GtkAspectFrame.html +38 -48
  425. data/vendor/local/share/gtk-doc/html/gtk/GtkAssistant.html +113 -134
  426. data/vendor/local/share/gtk-doc/html/gtk/GtkBin.html +16 -16
  427. data/vendor/local/share/gtk-doc/html/gtk/GtkBox.html +97 -122
  428. data/vendor/local/share/gtk-doc/html/gtk/GtkBuildable.html +88 -116
  429. data/vendor/local/share/gtk-doc/html/gtk/GtkBuilder.html +100 -139
  430. data/vendor/local/share/gtk-doc/html/gtk/GtkButton.html +156 -187
  431. data/vendor/local/share/gtk-doc/html/gtk/GtkButtonBox.html +61 -78
  432. data/vendor/local/share/gtk-doc/html/gtk/GtkCList.html +637 -917
  433. data/vendor/local/share/gtk-doc/html/gtk/GtkCTree.html +570 -1841
  434. data/vendor/local/share/gtk-doc/html/gtk/GtkCalendar.html +130 -165
  435. data/vendor/local/share/gtk-doc/html/gtk/GtkCellEditable.html +38 -40
  436. data/vendor/local/share/gtk-doc/html/gtk/GtkCellLayout.html +62 -89
  437. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRenderer.html +136 -160
  438. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererAccel.html +40 -49
  439. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererCombo.html +29 -34
  440. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererPixbuf.html +33 -34
  441. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererProgress.html +25 -27
  442. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererSpin.html +21 -22
  443. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererSpinner.html +21 -22
  444. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererText.html +75 -80
  445. data/vendor/local/share/gtk-doc/html/gtk/GtkCellRendererToggle.html +47 -56
  446. data/vendor/local/share/gtk-doc/html/gtk/GtkCellView.html +65 -83
  447. data/vendor/local/share/gtk-doc/html/gtk/GtkCheckButton.html +32 -36
  448. data/vendor/local/share/gtk-doc/html/gtk/GtkColorButton.html +63 -85
  449. data/vendor/local/share/gtk-doc/html/gtk/GtkColorSelection.html +128 -200
  450. data/vendor/local/share/gtk-doc/html/gtk/GtkColorSelectionDialog.html +31 -34
  451. data/vendor/local/share/gtk-doc/html/gtk/GtkCombo.html +65 -83
  452. data/vendor/local/share/gtk-doc/html/gtk/GtkComboBox.html +346 -188
  453. data/vendor/local/share/gtk-doc/html/gtk/GtkComboBoxEntry.html +59 -48
  454. data/vendor/local/share/gtk-doc/html/gtk/GtkComboBoxText.html +328 -0
  455. data/vendor/local/share/gtk-doc/html/gtk/GtkContainer.html +170 -262
  456. data/vendor/local/share/gtk-doc/html/gtk/GtkCurve.html +63 -81
  457. data/vendor/local/share/gtk-doc/html/gtk/GtkDialog.html +102 -124
  458. data/vendor/local/share/gtk-doc/html/gtk/GtkDrawingArea.html +28 -30
  459. data/vendor/local/share/gtk-doc/html/gtk/GtkEditable.html +71 -90
  460. data/vendor/local/share/gtk-doc/html/gtk/GtkEntry.html +389 -491
  461. data/vendor/local/share/gtk-doc/html/gtk/GtkEntryBuffer.html +73 -106
  462. data/vendor/local/share/gtk-doc/html/gtk/GtkEntryCompletion.html +132 -187
  463. data/vendor/local/share/gtk-doc/html/gtk/GtkEventBox.html +37 -42
  464. data/vendor/local/share/gtk-doc/html/gtk/GtkExpander.html +80 -100
  465. data/vendor/local/share/gtk-doc/html/gtk/GtkFileChooser.html +358 -414
  466. data/vendor/local/share/gtk-doc/html/gtk/GtkFileChooserButton.html +71 -94
  467. data/vendor/local/share/gtk-doc/html/gtk/GtkFileChooserDialog.html +32 -37
  468. data/vendor/local/share/gtk-doc/html/gtk/GtkFileChooserWidget.html +23 -28
  469. data/vendor/local/share/gtk-doc/html/gtk/GtkFileSelection.html +104 -148
  470. data/vendor/local/share/gtk-doc/html/gtk/GtkFixed.html +43 -54
  471. data/vendor/local/share/gtk-doc/html/gtk/GtkFontButton.html +64 -90
  472. data/vendor/local/share/gtk-doc/html/gtk/GtkFontSelection.html +70 -85
  473. data/vendor/local/share/gtk-doc/html/gtk/GtkFontSelectionDialog.html +54 -63
  474. data/vendor/local/share/gtk-doc/html/gtk/GtkFrame.html +55 -60
  475. data/vendor/local/share/gtk-doc/html/gtk/GtkGammaCurve.html +20 -21
  476. data/vendor/local/share/gtk-doc/html/gtk/GtkHBox.html +19 -22
  477. data/vendor/local/share/gtk-doc/html/gtk/GtkHButtonBox.html +31 -36
  478. data/vendor/local/share/gtk-doc/html/gtk/GtkHPaned.html +15 -15
  479. data/vendor/local/share/gtk-doc/html/gtk/GtkHRuler.html +32 -26
  480. data/vendor/local/share/gtk-doc/html/gtk/GtkHSV.html +67 -92
  481. data/vendor/local/share/gtk-doc/html/gtk/GtkHScale.html +27 -32
  482. data/vendor/local/share/gtk-doc/html/gtk/GtkHScrollbar.html +20 -20
  483. data/vendor/local/share/gtk-doc/html/gtk/GtkHSeparator.html +21 -22
  484. data/vendor/local/share/gtk-doc/html/gtk/GtkHandleBox.html +57 -68
  485. data/vendor/local/share/gtk-doc/html/gtk/GtkIMContext.html +153 -191
  486. data/vendor/local/share/gtk-doc/html/gtk/GtkIMContextSimple.html +20 -24
  487. data/vendor/local/share/gtk-doc/html/gtk/GtkIMMulticontext.html +20 -24
  488. data/vendor/local/share/gtk-doc/html/gtk/GtkIconTheme.html +213 -271
  489. data/vendor/local/share/gtk-doc/html/gtk/GtkIconView.html +333 -455
  490. data/vendor/local/share/gtk-doc/html/gtk/GtkImage.html +241 -262
  491. data/vendor/local/share/gtk-doc/html/gtk/GtkImageMenuItem.html +60 -71
  492. data/vendor/local/share/gtk-doc/html/gtk/GtkInfoBar.html +69 -82
  493. data/vendor/local/share/gtk-doc/html/gtk/GtkInputDialog.html +37 -42
  494. data/vendor/local/share/gtk-doc/html/gtk/GtkInvisible.html +42 -50
  495. data/vendor/local/share/gtk-doc/html/gtk/GtkItem.html +38 -44
  496. data/vendor/local/share/gtk-doc/html/gtk/GtkItemFactory.html +185 -276
  497. data/vendor/local/share/gtk-doc/html/gtk/GtkLabel.html +201 -251
  498. data/vendor/local/share/gtk-doc/html/gtk/GtkLayout.html +72 -78
  499. data/vendor/local/share/gtk-doc/html/gtk/GtkLinkButton.html +55 -64
  500. data/vendor/local/share/gtk-doc/html/gtk/GtkList.html +132 -182
  501. data/vendor/local/share/gtk-doc/html/gtk/GtkListItem.html +82 -132
  502. data/vendor/local/share/gtk-doc/html/gtk/GtkListStore.html +142 -172
  503. data/vendor/local/share/gtk-doc/html/gtk/GtkMenu.html +185 -229
  504. data/vendor/local/share/gtk-doc/html/gtk/GtkMenuBar.html +43 -51
  505. data/vendor/local/share/gtk-doc/html/gtk/GtkMenuItem.html +114 -147
  506. data/vendor/local/share/gtk-doc/html/gtk/GtkMenuShell.html +89 -121
  507. data/vendor/local/share/gtk-doc/html/gtk/GtkMenuToolButton.html +75 -51
  508. data/vendor/local/share/gtk-doc/html/gtk/GtkMessageDialog.html +83 -83
  509. data/vendor/local/share/gtk-doc/html/gtk/GtkMisc.html +37 -41
  510. data/vendor/local/share/gtk-doc/html/gtk/GtkNotebook.html +398 -454
  511. data/vendor/local/share/gtk-doc/html/gtk/GtkObject.html +150 -208
  512. data/vendor/local/share/gtk-doc/html/gtk/GtkOffscreenWindow.html +30 -34
  513. data/vendor/local/share/gtk-doc/html/gtk/GtkOldEditable.html +82 -167
  514. data/vendor/local/share/gtk-doc/html/gtk/GtkOptionMenu.html +58 -68
  515. data/vendor/local/share/gtk-doc/html/gtk/GtkPageSetup.html +117 -162
  516. data/vendor/local/share/gtk-doc/html/gtk/GtkPageSetupUnixDialog.html +24 -27
  517. data/vendor/local/share/gtk-doc/html/gtk/GtkPaned.html +99 -139
  518. data/vendor/local/share/gtk-doc/html/gtk/{gtk-GtkPaperSize.html → GtkPaperSize.html} +206 -254
  519. data/vendor/local/share/gtk-doc/html/gtk/GtkPixmap.html +51 -61
  520. data/vendor/local/share/gtk-doc/html/gtk/GtkPlug.html +67 -83
  521. data/vendor/local/share/gtk-doc/html/gtk/GtkPreview.html +122 -149
  522. data/vendor/local/share/gtk-doc/html/gtk/GtkPrintContext.html +40 -51
  523. data/vendor/local/share/gtk-doc/html/gtk/GtkPrintJob.html +57 -72
  524. data/vendor/local/share/gtk-doc/html/gtk/GtkPrintSettings.html +284 -413
  525. data/vendor/local/share/gtk-doc/html/gtk/GtkPrintUnixDialog.html +76 -96
  526. data/vendor/local/share/gtk-doc/html/gtk/GtkPrinter.html +112 -142
  527. data/vendor/local/share/gtk-doc/html/gtk/GtkProgress.html +82 -113
  528. data/vendor/local/share/gtk-doc/html/gtk/GtkProgressBar.html +93 -110
  529. data/vendor/local/share/gtk-doc/html/gtk/GtkRadioAction.html +44 -55
  530. data/vendor/local/share/gtk-doc/html/gtk/GtkRadioButton.html +88 -81
  531. data/vendor/local/share/gtk-doc/html/gtk/GtkRadioMenuItem.html +65 -73
  532. data/vendor/local/share/gtk-doc/html/gtk/GtkRadioToolButton.html +35 -44
  533. data/vendor/local/share/gtk-doc/html/gtk/GtkRange.html +224 -188
  534. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentAction.html +36 -43
  535. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentChooser.html +137 -196
  536. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentChooserDialog.html +29 -31
  537. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentChooserMenu.html +27 -32
  538. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentChooserWidget.html +19 -21
  539. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentFilter.html +67 -89
  540. data/vendor/local/share/gtk-doc/html/gtk/GtkRecentManager.html +219 -286
  541. data/vendor/local/share/gtk-doc/html/gtk/GtkRuler.html +85 -60
  542. data/vendor/local/share/gtk-doc/html/gtk/GtkScale.html +63 -74
  543. data/vendor/local/share/gtk-doc/html/gtk/GtkScaleButton.html +67 -84
  544. data/vendor/local/share/gtk-doc/html/gtk/GtkScrollbar.html +23 -23
  545. data/vendor/local/share/gtk-doc/html/gtk/GtkScrolledWindow.html +98 -146
  546. data/vendor/local/share/gtk-doc/html/gtk/GtkSeparator.html +15 -15
  547. data/vendor/local/share/gtk-doc/html/gtk/GtkSeparatorMenuItem.html +19 -20
  548. data/vendor/local/share/gtk-doc/html/gtk/GtkSeparatorToolItem.html +26 -29
  549. data/vendor/local/share/gtk-doc/html/gtk/GtkSettings.html +134 -264
  550. data/vendor/local/share/gtk-doc/html/gtk/GtkSizeGroup.html +40 -47
  551. data/vendor/local/share/gtk-doc/html/gtk/GtkSocket.html +52 -61
  552. data/vendor/local/share/gtk-doc/html/gtk/GtkSpinButton.html +134 -179
  553. data/vendor/local/share/gtk-doc/html/gtk/GtkSpinner.html +26 -27
  554. data/vendor/local/share/gtk-doc/html/gtk/GtkStatusIcon.html +221 -285
  555. data/vendor/local/share/gtk-doc/html/gtk/GtkStatusbar.html +62 -77
  556. data/vendor/local/share/gtk-doc/html/gtk/GtkStyle.html +754 -1135
  557. data/vendor/local/share/gtk-doc/html/gtk/GtkTable.html +96 -137
  558. data/vendor/local/share/gtk-doc/html/gtk/GtkTearoffMenuItem.html +20 -21
  559. data/vendor/local/share/gtk-doc/html/gtk/GtkText.html +105 -148
  560. data/vendor/local/share/gtk-doc/html/gtk/GtkTextBuffer.html +527 -685
  561. data/vendor/local/share/gtk-doc/html/gtk/{gtk-GtkTextIter.html → GtkTextIter.html} +666 -807
  562. data/vendor/local/share/gtk-doc/html/gtk/GtkTextMark.html +43 -48
  563. data/vendor/local/share/gtk-doc/html/gtk/GtkTextTag.html +180 -210
  564. data/vendor/local/share/gtk-doc/html/gtk/GtkTextTagTable.html +86 -78
  565. data/vendor/local/share/gtk-doc/html/gtk/GtkTextView.html +355 -439
  566. data/vendor/local/share/gtk-doc/html/gtk/GtkTipsQuery.html +76 -96
  567. data/vendor/local/share/gtk-doc/html/gtk/GtkToggleAction.html +45 -59
  568. data/vendor/local/share/gtk-doc/html/gtk/GtkToggleButton.html +61 -73
  569. data/vendor/local/share/gtk-doc/html/gtk/GtkToggleToolButton.html +34 -40
  570. data/vendor/local/share/gtk-doc/html/gtk/GtkToolButton.html +82 -93
  571. data/vendor/local/share/gtk-doc/html/gtk/GtkToolItem.html +135 -168
  572. data/vendor/local/share/gtk-doc/html/gtk/GtkToolItemGroup.html +86 -105
  573. data/vendor/local/share/gtk-doc/html/gtk/GtkToolPalette.html +121 -144
  574. data/vendor/local/share/gtk-doc/html/gtk/GtkToolShell.html +44 -61
  575. data/vendor/local/share/gtk-doc/html/gtk/GtkToolbar.html +251 -362
  576. data/vendor/local/share/gtk-doc/html/gtk/GtkTooltip.html +37 -37
  577. data/vendor/local/share/gtk-doc/html/gtk/GtkTooltips.html +62 -72
  578. data/vendor/local/share/gtk-doc/html/gtk/GtkTree.html +107 -154
  579. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeItem.html +48 -136
  580. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeModel.html +434 -566
  581. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeModelFilter.html +97 -127
  582. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeModelSort.html +65 -72
  583. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeSelection.html +125 -173
  584. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeSortable.html +55 -64
  585. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeStore.html +173 -202
  586. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeView.html +588 -867
  587. data/vendor/local/share/gtk-doc/html/gtk/GtkTreeViewColumn.html +209 -288
  588. data/vendor/local/share/gtk-doc/html/gtk/GtkUIManager.html +127 -191
  589. data/vendor/local/share/gtk-doc/html/gtk/GtkVBox.html +19 -22
  590. data/vendor/local/share/gtk-doc/html/gtk/GtkVButtonBox.html +29 -36
  591. data/vendor/local/share/gtk-doc/html/gtk/GtkVPaned.html +16 -16
  592. data/vendor/local/share/gtk-doc/html/gtk/GtkVRuler.html +33 -26
  593. data/vendor/local/share/gtk-doc/html/gtk/GtkVScale.html +26 -31
  594. data/vendor/local/share/gtk-doc/html/gtk/GtkVScrollbar.html +20 -20
  595. data/vendor/local/share/gtk-doc/html/gtk/GtkVSeparator.html +19 -20
  596. data/vendor/local/share/gtk-doc/html/gtk/GtkViewport.html +60 -71
  597. data/vendor/local/share/gtk-doc/html/gtk/GtkVolumeButton.html +18 -19
  598. data/vendor/local/share/gtk-doc/html/gtk/GtkWidget.html +1499 -1795
  599. data/vendor/local/share/gtk-doc/html/gtk/GtkWindow.html +447 -597
  600. data/vendor/local/share/gtk-doc/html/gtk/GtkWindowGroup.html +23 -41
  601. data/vendor/local/share/gtk-doc/html/gtk/LayoutContainers.html +5 -5
  602. data/vendor/local/share/gtk-doc/html/gtk/MenusAndCombos.html +8 -5
  603. data/vendor/local/share/gtk-doc/html/gtk/MiscObjects.html +5 -5
  604. data/vendor/local/share/gtk-doc/html/gtk/NumericEntry.html +5 -5
  605. data/vendor/local/share/gtk-doc/html/gtk/Ornaments.html +5 -5
  606. data/vendor/local/share/gtk-doc/html/gtk/PlugSocket.html +5 -5
  607. data/vendor/local/share/gtk-doc/html/gtk/Printing.html +6 -6
  608. data/vendor/local/share/gtk-doc/html/gtk/RecentDocuments.html +5 -5
  609. data/vendor/local/share/gtk-doc/html/gtk/ScrollingWidgets.html +5 -5
  610. data/vendor/local/share/gtk-doc/html/gtk/SelectorWidgets.html +5 -5
  611. data/vendor/local/share/gtk-doc/html/gtk/SpecialObjects.html +5 -5
  612. data/vendor/local/share/gtk-doc/html/gtk/TextWidget.html +18 -18
  613. data/vendor/local/share/gtk-doc/html/gtk/TextWidgetObjects.html +6 -6
  614. data/vendor/local/share/gtk-doc/html/gtk/TreeWidget.html +18 -18
  615. data/vendor/local/share/gtk-doc/html/gtk/TreeWidgetObjects.html +5 -5
  616. data/vendor/local/share/gtk-doc/html/gtk/WindowWidgets.html +5 -5
  617. data/vendor/local/share/gtk-doc/html/gtk/annotation-glossary.html +20 -14
  618. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-10.html +23 -23
  619. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-12.html +9 -9
  620. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-14.html +6 -6
  621. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-16.html +7 -7
  622. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-18.html +6 -6
  623. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-2.html +8 -8
  624. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-20.html +6 -6
  625. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-22.html +8 -8
  626. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-24.html +121 -0
  627. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-4.html +31 -31
  628. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-6.html +6 -6
  629. data/vendor/local/share/gtk-doc/html/gtk/api-index-2-8.html +10 -10
  630. data/vendor/local/share/gtk-doc/html/gtk/api-index-deprecated.html +239 -48
  631. data/vendor/local/share/gtk-doc/html/gtk/api-index-full.html +476 -388
  632. data/vendor/local/share/gtk-doc/html/gtk/ch01.html +17 -6
  633. data/vendor/local/share/gtk-doc/html/gtk/ch02.html +6 -6
  634. data/vendor/local/share/gtk-doc/html/gtk/chap-drawing-model.html +19 -19
  635. data/vendor/local/share/gtk-doc/html/gtk/checklist-gdkeventexpose-region.html +7 -7
  636. data/vendor/local/share/gtk-doc/html/gtk/checklist-modifiers.html +6 -6
  637. data/vendor/local/share/gtk-doc/html/gtk/checklist-named-icons.html +6 -6
  638. data/vendor/local/share/gtk-doc/html/gtk/decorating-the-assistant-pages.html +5 -5
  639. data/vendor/local/share/gtk-doc/html/gtk/glossary.html +6 -6
  640. data/vendor/local/share/gtk-doc/html/gtk/gtk-Accelerator-Maps.html +78 -133
  641. data/vendor/local/share/gtk-doc/html/gtk/gtk-Bindings.html +172 -234
  642. data/vendor/local/share/gtk-doc/html/gtk/gtk-Clipboards.html +235 -339
  643. data/vendor/local/share/gtk-doc/html/gtk/gtk-Drag-and-Drop.html +248 -318
  644. data/vendor/local/share/gtk-doc/html/gtk/gtk-Feature-Test-Macros.html +37 -43
  645. data/vendor/local/share/gtk-doc/html/gtk/gtk-Filesystem-utilities.html +54 -60
  646. data/vendor/local/share/gtk-doc/html/gtk/gtk-General.html +295 -339
  647. data/vendor/local/share/gtk-doc/html/gtk/gtk-Graphics-Contexts.html +36 -42
  648. data/vendor/local/share/gtk-doc/html/gtk/gtk-GtkTreeView-drag-and-drop.html +80 -85
  649. data/vendor/local/share/gtk-doc/html/gtk/gtk-High-level-Printing-API.html +225 -293
  650. data/vendor/local/share/gtk-doc/html/gtk/gtk-Keyboard-Accelerators.html +180 -268
  651. data/vendor/local/share/gtk-doc/html/gtk/gtk-Orientable.html +19 -22
  652. data/vendor/local/share/gtk-doc/html/gtk/gtk-Resource-Files.html +159 -195
  653. data/vendor/local/share/gtk-doc/html/gtk/gtk-Selections.html +377 -450
  654. data/vendor/local/share/gtk-doc/html/gtk/gtk-Signals.html +192 -308
  655. data/vendor/local/share/gtk-doc/html/gtk/gtk-Standard-Enumerations.html +55 -55
  656. data/vendor/local/share/gtk-doc/html/gtk/gtk-Stock-Items.html +154 -158
  657. data/vendor/local/share/gtk-doc/html/gtk/gtk-Testing.html +95 -143
  658. data/vendor/local/share/gtk-doc/html/gtk/gtk-Themeable-Stock-Images.html +212 -243
  659. data/vendor/local/share/gtk-doc/html/gtk/gtk-Types.html +273 -345
  660. data/vendor/local/share/gtk-doc/html/gtk/gtk-builder-convert.html +20 -13
  661. data/vendor/local/share/gtk-doc/html/gtk/gtk-building.html +22 -22
  662. data/vendor/local/share/gtk-doc/html/gtk/gtk-changes-1-2.html +7 -7
  663. data/vendor/local/share/gtk-doc/html/gtk/gtk-changes-2-0.html +7 -7
  664. data/vendor/local/share/gtk-doc/html/gtk/gtk-compiling.html +9 -9
  665. data/vendor/local/share/gtk-doc/html/gtk/gtk-directfb.html +9 -9
  666. data/vendor/local/share/gtk-doc/html/gtk/gtk-gtkcheckmenuitem.html +65 -77
  667. data/vendor/local/share/gtk-doc/html/gtk/gtk-gtkfilefilter.html +62 -79
  668. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-ClientSideWindows.html +15 -15
  669. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkAboutDialog.html +8 -8
  670. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkAction.html +6 -6
  671. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkAssistant.html +6 -6
  672. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkBuilder.html +7 -12
  673. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkColorButton.html +5 -5
  674. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkComboBox.html +6 -6
  675. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkFileChooser.html +7 -7
  676. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkIconView.html +7 -7
  677. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkLinkButton.html +5 -5
  678. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-GtkRecentChooser.html +7 -7
  679. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-checklist.html +9 -9
  680. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-entry-icons.html +6 -6
  681. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-label-links.html +5 -5
  682. data/vendor/local/share/gtk-doc/html/gtk/gtk-migrating-tooltips.html +5 -5
  683. data/vendor/local/share/gtk-doc/html/gtk/gtk-osx.html +8 -8
  684. data/vendor/local/share/gtk-doc/html/gtk/gtk-query-immodules-2.0.html +12 -12
  685. data/vendor/local/share/gtk-doc/html/gtk/gtk-question-index.html +115 -115
  686. data/vendor/local/share/gtk-doc/html/gtk/gtk-resources.html +11 -11
  687. data/vendor/local/share/gtk-doc/html/gtk/gtk-running.html +60 -33
  688. data/vendor/local/share/gtk-doc/html/gtk/gtk-update-icon-cache.html +12 -12
  689. data/vendor/local/share/gtk-doc/html/gtk/gtk-windows.html +16 -16
  690. data/vendor/local/share/gtk-doc/html/gtk/gtk-x11.html +14 -14
  691. data/vendor/local/share/gtk-doc/html/gtk/gtk.devhelp +440 -413
  692. data/vendor/local/share/gtk-doc/html/gtk/gtk.devhelp2 +483 -456
  693. data/vendor/local/share/gtk-doc/html/gtk/gtk.html +8 -8
  694. data/vendor/local/share/gtk-doc/html/gtk/gtkbase.html +6 -6
  695. data/vendor/local/share/gtk-doc/html/gtk/gtkfilechooser-installing-extra-widgets.html +5 -5
  696. data/vendor/local/share/gtk-doc/html/gtk/gtkfilechooser-installing-preview.html +5 -5
  697. data/vendor/local/share/gtk-doc/html/gtk/gtkfilechooser-new-features.html +5 -5
  698. data/vendor/local/share/gtk-doc/html/gtk/gtkfilechooser-selection-modes.html +7 -7
  699. data/vendor/local/share/gtk-doc/html/gtk/gtkobjects.html +11 -8
  700. data/vendor/local/share/gtk-doc/html/gtk/gtkrecent-advanced.html +5 -5
  701. data/vendor/local/share/gtk-doc/html/gtk/gtkrecent-chooser.html +5 -5
  702. data/vendor/local/share/gtk-doc/html/gtk/index.html +16 -12
  703. data/vendor/local/share/gtk-doc/html/gtk/index.sgml +189 -142
  704. data/vendor/local/share/gtk-doc/html/gtk/migrating-GtkCombo.html +5 -5
  705. data/vendor/local/share/gtk-doc/html/gtk/migrating-gnomeuiinfo.html +20 -20
  706. data/vendor/local/share/gtk-doc/html/gtk/migrating.html +7 -7
  707. data/vendor/local/share/gtk-doc/html/gtk/new-features-GtkComboBox.html +5 -5
  708. data/vendor/local/share/gtk-doc/html/gtk/pt05.html +7 -7
  709. data/vendor/local/share/gtk-doc/html/gtk/setting-the-page-flow.html +5 -5
  710. data/vendor/local/share/gtk-doc/html/gtk/style.css +2 -1
  711. data/vendor/local/share/gtk-doc/html/gtk/{document-x-generic.png → text-x-generic.png} +0 -0
  712. data/vendor/local/share/gtk-doc/html/gtk/ui-manager.html +5 -5
  713. data/vendor/local/share/icons/hicolor/index.theme +1662 -0
  714. data/vendor/local/share/locale/be/LC_MESSAGES/gtk20.mo +0 -0
  715. data/vendor/local/share/locale/bg/LC_MESSAGES/gtk20-properties.mo +0 -0
  716. data/vendor/local/share/locale/bg/LC_MESSAGES/gtk20.mo +0 -0
  717. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk20-properties.mo +0 -0
  718. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk20.mo +0 -0
  719. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk20-properties.mo +0 -0
  720. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk20.mo +0 -0
  721. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk20.mo +0 -0
  722. data/vendor/local/share/locale/de/LC_MESSAGES/gtk20.mo +0 -0
  723. data/vendor/local/share/locale/el/LC_MESSAGES/gtk20-properties.mo +0 -0
  724. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk20-properties.mo +0 -0
  725. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk20.mo +0 -0
  726. data/vendor/local/share/locale/es/LC_MESSAGES/gtk20.mo +0 -0
  727. data/vendor/local/share/locale/et/LC_MESSAGES/gtk20-properties.mo +0 -0
  728. data/vendor/local/share/locale/gl/LC_MESSAGES/gtk20.mo +0 -0
  729. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk20-properties.mo +0 -0
  730. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk20.mo +0 -0
  731. data/vendor/local/share/locale/it/LC_MESSAGES/gtk20-properties.mo +0 -0
  732. data/vendor/local/share/locale/it/LC_MESSAGES/gtk20.mo +0 -0
  733. data/vendor/local/share/locale/ja/LC_MESSAGES/gtk20-properties.mo +0 -0
  734. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk20-properties.mo +0 -0
  735. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk20.mo +0 -0
  736. data/vendor/local/share/locale/nb/LC_MESSAGES/gtk20.mo +0 -0
  737. data/vendor/local/share/locale/nl/LC_MESSAGES/gtk20.mo +0 -0
  738. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk20-properties.mo +0 -0
  739. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk20.mo +0 -0
  740. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk20-properties.mo +0 -0
  741. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk20.mo +0 -0
  742. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk20.mo +0 -0
  743. data/vendor/local/share/locale/te/LC_MESSAGES/gtk20.mo +0 -0
  744. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk20.mo +0 -0
  745. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk20.mo +0 -0
  746. data/vendor/local/src/dieterv/packaging/gtk+_2.24.8-1_win32.log +4937 -0
  747. data/vendor/local/src/{tml/packaging/gtk+_2.22.1-1_win32.sh → dieterv/packaging/gtk+_2.24.8-1_win32.sh} +8 -8
  748. metadata +29 -31
  749. data/ChangeLog +0 -6902
  750. data/ext/gtk2/rbgtkmain.c +0 -493
  751. data/vendor/local/share/gtk-doc/html/gdk/gdk-X-Window-System-Interaction.html +0 -2500
  752. data/vendor/local/share/locale/kg/LC_MESSAGES/gtk20-properties.mo +0 -0
  753. data/vendor/local/share/locale/kg/LC_MESSAGES/gtk20.mo +0 -0
  754. data/vendor/local/share/locale/lg/LC_MESSAGES/gtk20-properties.mo +0 -0
  755. data/vendor/local/share/locale/lg/LC_MESSAGES/gtk20.mo +0 -0
  756. data/vendor/local/src/tml/packaging/gtk+_2.22.1-1_win32.log +0 -5048
@@ -1,16 +1,28 @@
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
5
+ * Copyright (C) 2002,2003 OGASAWARA, Takeshi
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2.1 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the Free Software
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
+ * MA 02110-1301 USA
21
+ */
3
22
 
4
- rbgtktextattributes.c -
5
-
6
- $Author: ggc $
7
- $Date: 2007/07/13 16:07:32 $
8
-
9
- Copyright (C) 2002-2004 Ruby-GNOME2 Project Team
10
- Copyright (C) 2002,2003 OGASAWARA, Takeshi
11
- ************************************************/
12
23
  #include "global.h"
13
24
 
25
+ #define RG_TARGET_NAMESPACE cTextAttributes
14
26
  #define _SELF(s) ((GtkTextAttributes*)RVAL2BOXED(s, GTK_TYPE_TEXT_ATTRIBUTES))
15
27
 
16
28
  /***********************************************/
@@ -139,7 +151,7 @@ ATTR_BOOL(realized);
139
151
  /***********************************************/
140
152
 
141
153
  static VALUE
142
- txt_attr_initialize(VALUE self)
154
+ rg_initialize(VALUE self)
143
155
  {
144
156
  GtkTextAttributes *attr;
145
157
 
@@ -149,43 +161,43 @@ txt_attr_initialize(VALUE self)
149
161
  }
150
162
 
151
163
  static VALUE
152
- txt_attr_copy_values(VALUE self, VALUE dest)
164
+ rg_copy_values(VALUE self, VALUE dest)
153
165
  {
154
166
  gtk_text_attributes_copy_values(_SELF(self), _SELF(dest));
155
167
  return self;
156
168
  }
157
169
 
158
170
  void
159
- Init_txt_attr()
171
+ Init_gtk_text_attributes(VALUE mGtk)
160
172
  {
161
- VALUE gTextAttributes = G_DEF_CLASS(GTK_TYPE_TEXT_ATTRIBUTES, "TextAttributes", mGtk);
162
-
163
- rb_define_method(gTextAttributes, "initialize", txt_attr_initialize, 0);
164
- rb_define_method(gTextAttributes, "copy_values", txt_attr_copy_values, 1);
165
-
166
- DEFINE_ACCESSOR(gTextAttributes, boxed, appearance);
167
- DEFINE_ACCESSOR(gTextAttributes, enums, justification);
168
- DEFINE_ACCESSOR(gTextAttributes, enums, direction);
169
- DEFINE_ACCESSOR(gTextAttributes, boxed, font);
170
- DEFINE_ACCESSOR(gTextAttributes, double, font_scale);
171
- DEFINE_ACCESSOR(gTextAttributes, int, left_margin);
172
- DEFINE_ACCESSOR(gTextAttributes, int, indent);
173
- DEFINE_ACCESSOR(gTextAttributes, int, right_margin);
174
- DEFINE_ACCESSOR(gTextAttributes, int, pixels_above_lines);
175
- DEFINE_ACCESSOR(gTextAttributes, int, pixels_below_lines);
176
- DEFINE_ACCESSOR(gTextAttributes, int, pixels_inside_wrap);
177
- DEFINE_ACCESSOR(gTextAttributes, boxed, tabs);
178
- DEFINE_ACCESSOR(gTextAttributes, enums, wrap_mode);
179
- DEFINE_ACCESSOR(gTextAttributes, boxed, language);
180
-
181
- rb_define_method(gTextAttributes, "invisible?", txt_attr_bool_invisible, 0);
182
- rb_define_method(gTextAttributes, "set_invisible", txt_attr_bool_set_invisible, 1);
183
- rb_define_method(gTextAttributes, "bg_full_height?", txt_attr_bool_bg_full_height, 0);
184
- rb_define_method(gTextAttributes, "set_bg_full_height", txt_attr_bool_set_bg_full_height, 1);
185
- rb_define_method(gTextAttributes, "editable?", txt_attr_bool_editable, 0);
186
- rb_define_method(gTextAttributes, "set_editable", txt_attr_bool_set_editable, 1);
187
- rb_define_method(gTextAttributes, "realized?", txt_attr_bool_realized, 0);
188
- rb_define_method(gTextAttributes, "set_realized", txt_attr_bool_set_realized, 1);
189
-
190
- G_DEF_SETTERS(gTextAttributes);
173
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TEXT_ATTRIBUTES, "TextAttributes", mGtk);
174
+
175
+ RG_DEF_METHOD(initialize, 0);
176
+ RG_DEF_METHOD(copy_values, 1);
177
+
178
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, boxed, appearance);
179
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, enums, justification);
180
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, enums, direction);
181
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, boxed, font);
182
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, double, font_scale);
183
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, left_margin);
184
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, indent);
185
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, right_margin);
186
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, pixels_above_lines);
187
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, pixels_below_lines);
188
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, int, pixels_inside_wrap);
189
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, boxed, tabs);
190
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, enums, wrap_mode);
191
+ DEFINE_ACCESSOR(RG_TARGET_NAMESPACE, boxed, language);
192
+
193
+ rb_define_method(RG_TARGET_NAMESPACE, "invisible?", txt_attr_bool_invisible, 0);
194
+ rb_define_method(RG_TARGET_NAMESPACE, "set_invisible", txt_attr_bool_set_invisible, 1);
195
+ rb_define_method(RG_TARGET_NAMESPACE, "bg_full_height?", txt_attr_bool_bg_full_height, 0);
196
+ rb_define_method(RG_TARGET_NAMESPACE, "set_bg_full_height", txt_attr_bool_set_bg_full_height, 1);
197
+ rb_define_method(RG_TARGET_NAMESPACE, "editable?", txt_attr_bool_editable, 0);
198
+ rb_define_method(RG_TARGET_NAMESPACE, "set_editable", txt_attr_bool_set_editable, 1);
199
+ rb_define_method(RG_TARGET_NAMESPACE, "realized?", txt_attr_bool_realized, 0);
200
+ rb_define_method(RG_TARGET_NAMESPACE, "set_realized", txt_attr_bool_set_realized, 1);
201
+
202
+ G_DEF_SETTERS(RG_TARGET_NAMESPACE);
191
203
  }
@@ -1,17 +1,28 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
- /************************************************
3
-
4
- rbgtktextbuffer.c -
5
-
6
- $Author: ggc $
7
- $Date: 2007/07/13 16:07:32 $
8
-
9
- Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
10
- Copyright (C) 2002,2003 Masahiro Sakai
11
- ************************************************/
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2002-2005 Ruby-GNOME2 Project Team
5
+ * Copyright (C) 2002,2003 Masahiro Sakai
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2.1 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the Free Software
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
+ * MA 02110-1301 USA
21
+ */
12
22
 
13
23
  #include "global.h"
14
24
 
25
+ #define RG_TARGET_NAMESPACE cTextBuffer
15
26
  #define _SELF(s) (GTK_TEXT_BUFFER(RVAL2GOBJ(s)))
16
27
  #define RVAL2ITR(i) (GtkTextIter*)RVAL2BOXED(i, GTK_TYPE_TEXT_ITER)
17
28
  #define ITR2RVAL(i) (BOXED2RVAL(i, GTK_TYPE_TEXT_ITER))
@@ -24,7 +35,7 @@
24
35
  static ID id_tagtable;
25
36
 
26
37
  static VALUE
27
- txt_initialize(int argc, VALUE *argv, VALUE self)
38
+ rg_initialize(int argc, VALUE *argv, VALUE self)
28
39
  {
29
40
  VALUE table;
30
41
  rb_scan_args(argc, argv, "01", &table);
@@ -38,21 +49,17 @@ txt_initialize(int argc, VALUE *argv, VALUE self)
38
49
  }
39
50
 
40
51
  static VALUE
41
- txt_get_line_count(VALUE self)
52
+ rg_line_count(VALUE self)
42
53
  {
43
54
  return INT2NUM(gtk_text_buffer_get_line_count(_SELF(self)));
44
55
  }
45
56
 
46
57
  static VALUE
47
- txt_get_char_count(VALUE self)
58
+ rg_char_count(VALUE self)
48
59
  {
49
60
  return INT2NUM(gtk_text_buffer_get_char_count(_SELF(self)));
50
61
  }
51
62
 
52
- /* Defined as Properties:
53
- GtkTextTagTable * gtk_text_buffer_get_tag_table (GtkTextBuffer *buffer);
54
- */
55
-
56
63
  static VALUE
57
64
  txt_set_text(VALUE self, VALUE text)
58
65
  {
@@ -63,7 +70,7 @@ txt_set_text(VALUE self, VALUE text)
63
70
 
64
71
  #if GTK_CHECK_VERSION(2,6,0)
65
72
  static VALUE
66
- txt_backspace(VALUE self, VALUE iter, VALUE interactive, VALUE default_editable)
73
+ rg_backspace(VALUE self, VALUE iter, VALUE interactive, VALUE default_editable)
67
74
  {
68
75
  return CBOOL2RVAL(gtk_text_buffer_backspace(_SELF(self), RVAL2ITR(iter),
69
76
  RVAL2CBOOL(interactive),
@@ -72,7 +79,7 @@ txt_backspace(VALUE self, VALUE iter, VALUE interactive, VALUE default_editable)
72
79
  #endif
73
80
 
74
81
  static VALUE
75
- txt_insert_at_cursor(VALUE self, VALUE text)
82
+ rg_insert_at_cursor(VALUE self, VALUE text)
76
83
  {
77
84
  StringValue(text);
78
85
  gtk_text_buffer_insert_at_cursor(_SELF(self), RSTRING_PTR(text), RSTRING_LEN(text));
@@ -80,7 +87,7 @@ txt_insert_at_cursor(VALUE self, VALUE text)
80
87
  }
81
88
 
82
89
  static VALUE
83
- txt_insert_interactive(VALUE self, VALUE iter, VALUE text, VALUE editable)
90
+ rg_insert_interactive(VALUE self, VALUE iter, VALUE text, VALUE editable)
84
91
  {
85
92
  StringValue(text);
86
93
 
@@ -92,7 +99,7 @@ txt_insert_interactive(VALUE self, VALUE iter, VALUE text, VALUE editable)
92
99
  }
93
100
 
94
101
  static VALUE
95
- txt_insert_interactive_at_cursor(VALUE self, VALUE text, VALUE editable)
102
+ rg_insert_interactive_at_cursor(VALUE self, VALUE text, VALUE editable)
96
103
  {
97
104
  StringValue(text);
98
105
 
@@ -103,7 +110,7 @@ txt_insert_interactive_at_cursor(VALUE self, VALUE text, VALUE editable)
103
110
  }
104
111
 
105
112
  static VALUE
106
- txt_insert_range(VALUE self, VALUE iter, VALUE start, VALUE end)
113
+ rg_insert_range(VALUE self, VALUE iter, VALUE start, VALUE end)
107
114
  {
108
115
  gtk_text_buffer_insert_range(_SELF(self), RVAL2ITR(iter),
109
116
  RVAL2ITR(start), RVAL2ITR(end));
@@ -111,7 +118,7 @@ txt_insert_range(VALUE self, VALUE iter, VALUE start, VALUE end)
111
118
  }
112
119
 
113
120
  static VALUE
114
- txt_insert_range_interactive(VALUE self, VALUE iter, VALUE start, VALUE end, VALUE editable)
121
+ rg_insert_range_interactive(VALUE self, VALUE iter, VALUE start, VALUE end, VALUE editable)
115
122
  {
116
123
  return CBOOL2RVAL(gtk_text_buffer_insert_range_interactive(_SELF(self),
117
124
  RVAL2ITR(iter),
@@ -121,7 +128,7 @@ txt_insert_range_interactive(VALUE self, VALUE iter, VALUE start, VALUE end, VAL
121
128
  }
122
129
 
123
130
  static VALUE
124
- txt_delete(VALUE self, VALUE start, VALUE end)
131
+ rg_delete(VALUE self, VALUE start, VALUE end)
125
132
  {
126
133
  gtk_text_buffer_delete(GTK_TEXT_BUFFER(RVAL2GOBJ(self)),
127
134
  RVAL2ITR(start), RVAL2ITR(end));
@@ -129,7 +136,7 @@ txt_delete(VALUE self, VALUE start, VALUE end)
129
136
  }
130
137
 
131
138
  static VALUE
132
- txt_delete_interactive(VALUE self, VALUE start, VALUE end, VALUE editable)
139
+ rg_delete_interactive(VALUE self, VALUE start, VALUE end, VALUE editable)
133
140
  {
134
141
  return CBOOL2RVAL(gtk_text_buffer_delete_interactive(_SELF(self),
135
142
  RVAL2ITR(start),
@@ -138,7 +145,7 @@ txt_delete_interactive(VALUE self, VALUE start, VALUE end, VALUE editable)
138
145
  }
139
146
 
140
147
  static VALUE
141
- txt_get_text(int argc, VALUE *argv, VALUE self)
148
+ rg_get_text(int argc, VALUE *argv, VALUE self)
142
149
  {
143
150
  VALUE start, end, include_hidden_chars;
144
151
  GtkTextIter start_iter, end_iter;
@@ -166,11 +173,11 @@ txt_get_text(int argc, VALUE *argv, VALUE self)
166
173
  static VALUE
167
174
  txt_get_text_all(VALUE self)
168
175
  {
169
- return txt_get_text(0, NULL, self);
176
+ return rg_get_text(0, NULL, self);
170
177
  }
171
178
 
172
179
  static VALUE
173
- txt_get_slice(int argc, VALUE *argv, VALUE self)
180
+ rg_get_slice(int argc, VALUE *argv, VALUE self)
174
181
  {
175
182
  VALUE start, end, include_hidden_chars;
176
183
  GtkTextIter start_iter, end_iter;
@@ -196,13 +203,13 @@ txt_get_slice(int argc, VALUE *argv, VALUE self)
196
203
  }
197
204
 
198
205
  static VALUE
199
- txt_get_slice_all(VALUE self)
206
+ rg_slice(VALUE self)
200
207
  {
201
- return txt_get_slice(0, NULL, self);
208
+ return rg_get_slice(0, NULL, self);
202
209
  }
203
210
 
204
211
  static VALUE
205
- txt_insert_pixbuf(VALUE self, VALUE iter, VALUE pixbuf)
212
+ rg_insert_pixbuf(VALUE self, VALUE iter, VALUE pixbuf)
206
213
  {
207
214
  G_CHILD_ADD(self, iter);
208
215
  G_CHILD_ADD(iter, pixbuf);
@@ -215,7 +222,7 @@ txt_insert_pixbuf(VALUE self, VALUE iter, VALUE pixbuf)
215
222
  }
216
223
 
217
224
  static VALUE
218
- txt_insert_child_anchor(VALUE self, VALUE iter, VALUE anchor)
225
+ rg_insert_child_anchor(VALUE self, VALUE iter, VALUE anchor)
219
226
  {
220
227
  G_CHILD_ADD(self, iter);
221
228
  G_CHILD_ADD(iter, anchor);
@@ -227,7 +234,7 @@ txt_insert_child_anchor(VALUE self, VALUE iter, VALUE anchor)
227
234
  }
228
235
 
229
236
  static VALUE
230
- txt_create_child_anchor(VALUE self, VALUE iter)
237
+ rg_create_child_anchor(VALUE self, VALUE iter)
231
238
  {
232
239
  VALUE ret = GOBJ2RVAL(gtk_text_buffer_create_child_anchor(_SELF(self), RVAL2ITR(iter)));
233
240
  G_CHILD_ADD(self, ret);
@@ -235,7 +242,7 @@ txt_create_child_anchor(VALUE self, VALUE iter)
235
242
  }
236
243
 
237
244
  static VALUE
238
- txt_create_mark(VALUE self, VALUE name, VALUE where, VALUE left_gravity)
245
+ rg_create_mark(VALUE self, VALUE name, VALUE where, VALUE left_gravity)
239
246
  {
240
247
  VALUE ret = GOBJ2RVAL(gtk_text_buffer_create_mark(_SELF(self),
241
248
  NIL_P(name) ? NULL : RVAL2CSTR(name),
@@ -247,7 +254,7 @@ txt_create_mark(VALUE self, VALUE name, VALUE where, VALUE left_gravity)
247
254
 
248
255
  #if GTK_CHECK_VERSION(2,12,0)
249
256
  static VALUE
250
- txt_add_mark(VALUE self, VALUE mark, VALUE where)
257
+ rg_add_mark(VALUE self, VALUE mark, VALUE where)
251
258
  {
252
259
  gtk_text_buffer_add_mark(_SELF(self), RVAL2MARK(mark), RVAL2ITR(where));
253
260
  return self;
@@ -255,7 +262,7 @@ txt_add_mark(VALUE self, VALUE mark, VALUE where)
255
262
  #endif
256
263
 
257
264
  static VALUE
258
- txt_delete_mark(VALUE self, VALUE mark)
265
+ rg_delete_mark(VALUE self, VALUE mark)
259
266
  {
260
267
  if (rb_obj_is_kind_of(mark, GTYPE2CLASS(GTK_TYPE_TEXT_MARK))){
261
268
  G_CHILD_REMOVE(self, mark);
@@ -268,27 +275,27 @@ txt_delete_mark(VALUE self, VALUE mark)
268
275
  }
269
276
 
270
277
  static VALUE
271
- txt_get_mark(VALUE self, VALUE name)
278
+ rg_get_mark(VALUE self, VALUE name)
272
279
  {
273
280
  return GOBJ2RVAL(gtk_text_buffer_get_mark(_SELF(self), RVAL2CSTR(name)));
274
281
  }
275
282
 
276
283
  /*
277
284
  static VALUE
278
- txt_get_insert(VALUE self)
285
+ rg_get_insert(VALUE self)
279
286
  {
280
287
  return GOBJ2RVAL(gtk_text_buffer_get_insert(_SELF(self)));
281
288
  }
282
289
  */
283
290
 
284
291
  static VALUE
285
- txt_get_selection_bound(VALUE self)
292
+ rg_selection_bound(VALUE self)
286
293
  {
287
294
  return GOBJ2RVAL(gtk_text_buffer_get_selection_bound(_SELF(self)));
288
295
  }
289
296
 
290
297
  static VALUE
291
- txt_place_cursor(VALUE self, VALUE where)
298
+ rg_place_cursor(VALUE self, VALUE where)
292
299
  {
293
300
  gtk_text_buffer_place_cursor(_SELF(self), RVAL2ITR(where));
294
301
  return self;
@@ -296,7 +303,7 @@ txt_place_cursor(VALUE self, VALUE where)
296
303
 
297
304
  #if GTK_CHECK_VERSION(2,4,0)
298
305
  static VALUE
299
- txt_select_range(VALUE self, VALUE ins, VALUE bound)
306
+ rg_select_range(VALUE self, VALUE ins, VALUE bound)
300
307
  {
301
308
  gtk_text_buffer_select_range(_SELF(self), RVAL2ITR(ins), RVAL2ITR(bound));
302
309
  return self;
@@ -304,7 +311,7 @@ txt_select_range(VALUE self, VALUE ins, VALUE bound)
304
311
  #endif
305
312
 
306
313
  static VALUE
307
- txt_get_iter_at_child_anchor(VALUE self, VALUE anchor)
314
+ rg_get_iter_at_child_anchor(VALUE self, VALUE anchor)
308
315
  {
309
316
  GtkTextIter iter;
310
317
  gtk_text_buffer_get_iter_at_child_anchor(_SELF(self), &iter, RVAL2ANCHOR(anchor));
@@ -312,20 +319,20 @@ txt_get_iter_at_child_anchor(VALUE self, VALUE anchor)
312
319
  }
313
320
 
314
321
  static VALUE
315
- txt_get_modified(VALUE self)
322
+ rg_modified_p(VALUE self)
316
323
  {
317
324
  return CBOOL2RVAL(gtk_text_buffer_get_modified(_SELF(self)));
318
325
  }
319
326
 
320
327
  static VALUE
321
- txt_set_modified(VALUE self, VALUE setting)
328
+ rg_set_modified(VALUE self, VALUE setting)
322
329
  {
323
330
  gtk_text_buffer_set_modified(_SELF(self), RVAL2CBOOL(setting));
324
331
  return setting;
325
332
  }
326
333
 
327
334
  static VALUE
328
- txt_add_selection_clipboard(VALUE self, VALUE clipboard)
335
+ rg_add_selection_clipboard(VALUE self, VALUE clipboard)
329
336
  {
330
337
  G_CHILD_ADD(self, clipboard);
331
338
  gtk_text_buffer_add_selection_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
@@ -333,7 +340,7 @@ txt_add_selection_clipboard(VALUE self, VALUE clipboard)
333
340
  }
334
341
 
335
342
  static VALUE
336
- txt_remove_selection_clipboard(VALUE self, VALUE clipboard)
343
+ rg_remove_selection_clipboard(VALUE self, VALUE clipboard)
337
344
  {
338
345
  G_CHILD_REMOVE(self, clipboard);
339
346
  gtk_text_buffer_remove_selection_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
@@ -342,13 +349,12 @@ txt_remove_selection_clipboard(VALUE self, VALUE clipboard)
342
349
 
343
350
  #if GTK_CHECK_VERSION(2,10,0)
344
351
  static VALUE
345
- txt_deserialize(VALUE self, VALUE content_buffer, VALUE format, VALUE iter, VALUE data)
352
+ rg_deserialize(VALUE self, VALUE content_buffer, VALUE format, VALUE iter, VALUE data)
346
353
  {
347
354
  GError* error = NULL;
348
355
  gboolean ret;
349
356
 
350
- /* TODO: Why not StringValue(data)? */
351
- Check_Type(data, T_STRING);
357
+ StringValue(data);
352
358
  ret = gtk_text_buffer_deserialize(_SELF(self), _SELF(content_buffer),
353
359
  RVAL2ATOM(format),
354
360
  RVAL2ITR(iter),
@@ -360,7 +366,7 @@ txt_deserialize(VALUE self, VALUE content_buffer, VALUE format, VALUE iter, VALU
360
366
  }
361
367
 
362
368
  static VALUE
363
- txt_deserialize_get_can_create_tags(VALUE self, VALUE format)
369
+ rg_deserialize_can_create_tags_p(VALUE self, VALUE format)
364
370
  {
365
371
  return CBOOL2RVAL(gtk_text_buffer_deserialize_get_can_create_tags(_SELF(self),
366
372
  RVAL2ATOM(format)));
@@ -368,7 +374,7 @@ txt_deserialize_get_can_create_tags(VALUE self, VALUE format)
368
374
  }
369
375
 
370
376
  static VALUE
371
- txt_deserialize_set_can_create_tags(VALUE self, VALUE format, VALUE can_create_tags)
377
+ rg_deserialize_set_can_create_tags(VALUE self, VALUE format, VALUE can_create_tags)
372
378
  {
373
379
  gtk_text_buffer_deserialize_set_can_create_tags(_SELF(self),
374
380
  RVAL2ATOM(format),
@@ -376,13 +382,8 @@ txt_deserialize_set_can_create_tags(VALUE self, VALUE format, VALUE can_create_t
376
382
  return self;
377
383
  }
378
384
 
379
- /* Defined as Properties
380
- GtkTargetList* gtk_text_buffer_get_copy_target_list
381
- (GtkTextBuffer *buffer);
382
- */
383
-
384
385
  static VALUE
385
- txt_get_deserialize_formats(VALUE self)
386
+ rg_deserialize_formats(VALUE self)
386
387
  {
387
388
  gint i;
388
389
  gint n_formats;
@@ -395,13 +396,8 @@ txt_get_deserialize_formats(VALUE self)
395
396
  return ary;
396
397
  }
397
398
 
398
- /* Defined as Properties
399
- GtkTargetList* gtk_text_buffer_get_paste_target_list
400
- (GtkTextBuffer *buffer);
401
- */
402
-
403
399
  static VALUE
404
- txt_get_serialize_formats(VALUE self)
400
+ rg_serialize_formats(VALUE self)
405
401
  {
406
402
  gint i;
407
403
  gint n_formats;
@@ -430,7 +426,14 @@ invoke_callback(VALUE data)
430
426
  }
431
427
 
432
428
  static gboolean
433
- deserialize_func(GtkTextBuffer *register_buffer, GtkTextBuffer *content_buffer, GtkTextIter *iter, const guint8 *data, gsize length, gboolean create_tags, gpointer func, GError **error)
429
+ deserialize_func(GtkTextBuffer *register_buffer,
430
+ GtkTextBuffer *content_buffer,
431
+ GtkTextIter *iter,
432
+ const guint8 *data,
433
+ gsize length,
434
+ gboolean create_tags,
435
+ gpointer func,
436
+ G_GNUC_UNUSED GError **error)
434
437
  {
435
438
  VALUE result;
436
439
  VALUE argv[5];
@@ -457,7 +460,7 @@ remove_callback_reference(gpointer callback)
457
460
  }
458
461
 
459
462
  static VALUE
460
- txt_register_deserialize_format(VALUE self, VALUE mime_type)
463
+ rg_register_deserialize_format(VALUE self, VALUE mime_type)
461
464
  {
462
465
  VALUE block = rb_block_proc();
463
466
  GdkAtom atom;
@@ -471,7 +474,7 @@ txt_register_deserialize_format(VALUE self, VALUE mime_type)
471
474
  }
472
475
 
473
476
  static VALUE
474
- txt_register_deserialize_target(VALUE self, VALUE tagset_name)
477
+ rg_register_deserialize_target(VALUE self, VALUE tagset_name)
475
478
  {
476
479
  return ATOM2RVAL(gtk_text_buffer_register_deserialize_tagset(_SELF(self),
477
480
  (const gchar*)(NIL_P(tagset_name) ? NULL : RVAL2CSTR(tagset_name))));
@@ -495,14 +498,13 @@ serialize_func(GtkTextBuffer *register_buffer, GtkTextBuffer *content_buffer, Gt
495
498
 
496
499
  /* This should return data as String */
497
500
  result = G_PROTECT_CALLBACK(invoke_callback, &arg);
498
- /* TODO: Why not StringValue(result)? */
499
- Check_Type(result, T_STRING);
501
+ StringValue(result);
500
502
  *length = RSTRING_LEN(result);
501
503
  return (guint8*)(NIL_P(rb_errinfo()) ? RSTRING_PTR(result) : NULL);
502
504
  }
503
505
 
504
506
  static VALUE
505
- txt_register_serialize_format(VALUE self, VALUE mime_type)
507
+ rg_register_serialize_format(VALUE self, VALUE mime_type)
506
508
  {
507
509
  VALUE block = rb_block_proc();
508
510
  GdkAtom atom;
@@ -516,17 +518,17 @@ txt_register_serialize_format(VALUE self, VALUE mime_type)
516
518
  }
517
519
 
518
520
  static VALUE
519
- txt_register_serialize_target(VALUE self, VALUE tagset_name)
521
+ rg_register_serialize_target(VALUE self, VALUE tagset_name)
520
522
  {
521
523
  return ATOM2RVAL(gtk_text_buffer_register_serialize_tagset(_SELF(self),
522
524
  NIL_P(tagset_name) ? NULL : RVAL2CSTR(tagset_name)));
523
525
  }
524
526
 
525
527
  static VALUE
526
- txt_serialize(VALUE self, VALUE content_buffer, VALUE format, VALUE start, VALUE end)
528
+ rg_serialize(VALUE self, VALUE content_buffer, VALUE format, VALUE start, VALUE end)
527
529
  {
528
530
  gsize length;
529
- guint8* ret = gtk_text_buffer_serialize(_SELF(self), _SELF(self),
531
+ guint8* ret = gtk_text_buffer_serialize(_SELF(self), _SELF(content_buffer),
530
532
  RVAL2ATOM(format),
531
533
  RVAL2ITR(start), RVAL2ITR(end),
532
534
  &length);
@@ -534,14 +536,14 @@ txt_serialize(VALUE self, VALUE content_buffer, VALUE format, VALUE start, VALUE
534
536
  }
535
537
 
536
538
  static VALUE
537
- txt_unregister_deserialize_format(VALUE self, VALUE format)
539
+ rg_unregister_deserialize_format(VALUE self, VALUE format)
538
540
  {
539
541
  gtk_text_buffer_unregister_deserialize_format(_SELF(self), RVAL2ATOM(format));
540
542
  return self;
541
543
  }
542
544
 
543
545
  static VALUE
544
- txt_unregister_serialize_format(VALUE self, VALUE format)
546
+ rg_unregister_serialize_format(VALUE self, VALUE format)
545
547
  {
546
548
  gtk_text_buffer_unregister_serialize_format(_SELF(self), RVAL2ATOM(format));
547
549
  return self;
@@ -549,7 +551,7 @@ txt_unregister_serialize_format(VALUE self, VALUE format)
549
551
  #endif
550
552
 
551
553
  static VALUE
552
- txt_cut_clipboard(VALUE self, VALUE clipboard, VALUE default_editable)
554
+ rg_cut_clipboard(VALUE self, VALUE clipboard, VALUE default_editable)
553
555
  {
554
556
  G_CHILD_ADD(self, clipboard);
555
557
  gtk_text_buffer_cut_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard), RVAL2CBOOL(default_editable));
@@ -557,7 +559,7 @@ txt_cut_clipboard(VALUE self, VALUE clipboard, VALUE default_editable)
557
559
  }
558
560
 
559
561
  static VALUE
560
- txt_copy_clipboard(VALUE self, VALUE clipboard)
562
+ rg_copy_clipboard(VALUE self, VALUE clipboard)
561
563
  {
562
564
  G_CHILD_ADD(self, clipboard);
563
565
  gtk_text_buffer_copy_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
@@ -565,7 +567,7 @@ txt_copy_clipboard(VALUE self, VALUE clipboard)
565
567
  }
566
568
 
567
569
  static VALUE
568
- txt_paste_clipboard(VALUE self, VALUE clipboard, VALUE location, VALUE default_editable)
570
+ rg_paste_clipboard(VALUE self, VALUE clipboard, VALUE location, VALUE default_editable)
569
571
  {
570
572
  G_CHILD_ADD(self, clipboard);
571
573
  gtk_text_buffer_paste_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard),
@@ -575,21 +577,16 @@ txt_paste_clipboard(VALUE self, VALUE clipboard, VALUE location, VALUE default_e
575
577
  }
576
578
 
577
579
  static VALUE
578
- txt_get_selection_bounds(VALUE self)
580
+ rg_selection_bounds(VALUE self)
579
581
  {
580
582
  GtkTextIter start, end;
581
-
583
+
582
584
  gboolean ret = gtk_text_buffer_get_selection_bounds(_SELF(self), &start, &end);
583
585
  return rb_ary_new3(3, ITR2RVAL(&start), ITR2RVAL(&end), CBOOL2RVAL(ret));
584
586
  }
585
587
 
586
- /* Defined as a proprety
587
- gboolean gtk_text_buffer_get_has_selection
588
- (GtkTextBuffer *buffer);
589
- */
590
-
591
588
  static VALUE
592
- txt_delete_selection(int argc, VALUE *argv, VALUE self)
589
+ rg_delete_selection(int argc, VALUE *argv, VALUE self)
593
590
  {
594
591
  VALUE interactive, default_editable;
595
592
  rb_scan_args(argc, argv, "20", &interactive, &default_editable);
@@ -598,23 +595,23 @@ txt_delete_selection(int argc, VALUE *argv, VALUE self)
598
595
  }
599
596
 
600
597
  static VALUE
601
- txt_end_user_action(VALUE self)
598
+ rg_end_user_action(VALUE self)
602
599
  {
603
600
  gtk_text_buffer_end_user_action(_SELF(self));
604
601
  return self;
605
602
  }
606
603
 
607
604
  static VALUE
608
- txt_begin_user_action(VALUE self)
605
+ rg_begin_user_action(VALUE self)
609
606
  {
610
607
  gtk_text_buffer_begin_user_action(_SELF(self));
611
608
  if (rb_block_given_p())
612
- rb_ensure(rb_yield, self, txt_end_user_action, self);
609
+ rb_ensure(rb_yield, self, rg_end_user_action, self);
613
610
  return self;
614
611
  }
615
612
 
616
613
  static VALUE
617
- txt_get_start_iter(VALUE self)
614
+ rg_start_iter(VALUE self)
618
615
  {
619
616
  GtkTextIter iter;
620
617
  gtk_text_buffer_get_start_iter(_SELF(self), &iter);
@@ -622,7 +619,7 @@ txt_get_start_iter(VALUE self)
622
619
  }
623
620
 
624
621
  static VALUE
625
- txt_get_end_iter(VALUE self)
622
+ rg_end_iter(VALUE self)
626
623
  {
627
624
  GtkTextIter iter;
628
625
  gtk_text_buffer_get_end_iter(_SELF(self), &iter);
@@ -630,7 +627,7 @@ txt_get_end_iter(VALUE self)
630
627
  }
631
628
 
632
629
  static VALUE
633
- txt_move_mark(VALUE self, VALUE mark, VALUE where)
630
+ rg_move_mark(VALUE self, VALUE mark, VALUE where)
634
631
  {
635
632
  if (rb_obj_is_kind_of(mark, GTYPE2CLASS(GTK_TYPE_TEXT_MARK)))
636
633
  gtk_text_buffer_move_mark(_SELF(self), RVAL2MARK(mark), RVAL2ITR(where));
@@ -640,7 +637,7 @@ txt_move_mark(VALUE self, VALUE mark, VALUE where)
640
637
  }
641
638
 
642
639
  static VALUE
643
- txt_create_tag(VALUE self, VALUE tag_name, VALUE properties)
640
+ rg_create_tag(VALUE self, VALUE tag_name, VALUE properties)
644
641
  {
645
642
  GtkTextTag *tag;
646
643
  VALUE ret;
@@ -649,7 +646,7 @@ txt_create_tag(VALUE self, VALUE tag_name, VALUE properties)
649
646
  gtk_text_tag_table_add (gtk_text_buffer_get_tag_table(_SELF(self)), tag);
650
647
 
651
648
  G_SET_PROPERTIES(GOBJ2RVAL(tag), properties);
652
-
649
+
653
650
  ret = GOBJ2RVAL(tag);
654
651
 
655
652
  G_CHILD_ADD(self, ret);
@@ -658,7 +655,7 @@ txt_create_tag(VALUE self, VALUE tag_name, VALUE properties)
658
655
  }
659
656
 
660
657
  static VALUE
661
- txt_insert(int argc, VALUE *argv, VALUE self)
658
+ rg_insert(int argc, VALUE *argv, VALUE self)
662
659
  {
663
660
  VALUE where, value, tags;
664
661
  gint start_offset;
@@ -680,25 +677,27 @@ txt_insert(int argc, VALUE *argv, VALUE self)
680
677
  StringValue(value);
681
678
  gtk_text_buffer_insert(_SELF(self), RVAL2ITR(where),
682
679
  RSTRING_PTR(value), RSTRING_LEN(value));
683
-
680
+
684
681
  if (RARRAY_LEN(tags) == 0)
685
682
  return self;
686
683
 
684
+ /* TODO: Do we really want to do this before we know that everything
685
+ * below passed without any errors? */
687
686
  G_CHILD_ADD(self, tags);
688
-
687
+
689
688
  gtk_text_buffer_get_iter_at_offset(_SELF(self), &start, start_offset);
690
-
689
+
691
690
  for(i = 0; i < RARRAY_LEN(tags); i++) {
692
691
  GtkTextTag *tag;
693
-
692
+
694
693
  if (rb_obj_is_kind_of(RARRAY_PTR(tags)[i], GTYPE2CLASS(GTK_TYPE_TEXT_TAG))) {
695
694
  tag = RVAL2GOBJ(RARRAY_PTR(tags)[i]);
696
695
  } else {
697
696
  tag = gtk_text_tag_table_lookup(_SELF(self)->tag_table,
698
- RVAL2CSTR(RARRAY_PTR(tags)[i]));
697
+ RVAL2CSTR(RARRAY_PTR(tags)[i]));
699
698
  if (tag == NULL) {
700
699
  g_warning ("%s: no tag with name '%s'!",
701
- G_STRLOC, RVAL2CSTR(RARRAY_PTR(tags)[i]));
700
+ G_STRLOC, RVAL2CSTR(RARRAY_PTR(tags)[i]));
702
701
  return self;
703
702
  }
704
703
  }
@@ -709,16 +708,16 @@ txt_insert(int argc, VALUE *argv, VALUE self)
709
708
  }
710
709
 
711
710
  static VALUE
712
- txt_insert_with_tags(int argc, VALUE *argv, VALUE self)
711
+ rg_insert_with_tags(int argc, VALUE *argv, VALUE self)
713
712
  {
714
713
  if (RVAL2CBOOL(ruby_debug))
715
714
  rb_warning("Gtk::TextBuffer#insert_with_tags is deprecated. Use Gtk::TextBuffer#insert instead.");
716
- txt_insert(argc, argv, self);
715
+ rg_insert(argc, argv, self);
717
716
  return self;
718
717
  }
719
718
 
720
719
  static VALUE
721
- txt_apply_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
720
+ rg_apply_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
722
721
  {
723
722
  if (rb_obj_is_kind_of(tag, GTYPE2CLASS(GTK_TYPE_TEXT_TAG)))
724
723
  gtk_text_buffer_apply_tag(_SELF(self), RVAL2TAG(tag), RVAL2ITR(start), RVAL2ITR(end));
@@ -729,7 +728,7 @@ txt_apply_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
729
728
  }
730
729
 
731
730
  static VALUE
732
- txt_remove_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
731
+ rg_remove_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
733
732
  {
734
733
  if (rb_obj_is_kind_of(tag, GTYPE2CLASS(GTK_TYPE_TEXT_TAG)))
735
734
  gtk_text_buffer_remove_tag(_SELF(self), RVAL2TAG(tag), RVAL2ITR(start), RVAL2ITR(end));
@@ -740,14 +739,14 @@ txt_remove_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
740
739
  }
741
740
 
742
741
  static VALUE
743
- txt_remove_all_tags(VALUE self, VALUE start, VALUE end)
742
+ rg_remove_all_tags(VALUE self, VALUE start, VALUE end)
744
743
  {
745
744
  gtk_text_buffer_remove_all_tags(_SELF(self), RVAL2ITR(start), RVAL2ITR(end));
746
745
  return self;
747
746
  }
748
747
 
749
748
  static VALUE
750
- txt_get_iter_at_line_offset(VALUE self, VALUE line_number, VALUE char_offset)
749
+ rg_get_iter_at_line_offset(VALUE self, VALUE line_number, VALUE char_offset)
751
750
  {
752
751
  GtkTextIter iter;
753
752
  gtk_text_buffer_get_iter_at_line_offset(_SELF(self), &iter, NUM2INT(line_number), NUM2INT(char_offset));
@@ -755,7 +754,7 @@ txt_get_iter_at_line_offset(VALUE self, VALUE line_number, VALUE char_offset)
755
754
  }
756
755
 
757
756
  static VALUE
758
- txt_get_iter_at_line_index(VALUE self, VALUE line_number, VALUE byte_index)
757
+ rg_get_iter_at_line_index(VALUE self, VALUE line_number, VALUE byte_index)
759
758
  {
760
759
  GtkTextIter iter;
761
760
  gtk_text_buffer_get_iter_at_line_index(_SELF(self), &iter, NUM2INT(line_number), NUM2INT(byte_index));
@@ -763,7 +762,7 @@ txt_get_iter_at_line_index(VALUE self, VALUE line_number, VALUE byte_index)
763
762
  }
764
763
 
765
764
  static VALUE
766
- txt_get_iter_at_offset(VALUE self, VALUE char_offset)
765
+ rg_get_iter_at_offset(VALUE self, VALUE char_offset)
767
766
  {
768
767
  GtkTextIter iter;
769
768
  gtk_text_buffer_get_iter_at_offset(_SELF(self), &iter, NUM2INT(char_offset));
@@ -771,7 +770,7 @@ txt_get_iter_at_offset(VALUE self, VALUE char_offset)
771
770
  }
772
771
 
773
772
  static VALUE
774
- txt_get_iter_at_line(VALUE self, VALUE line_number)
773
+ rg_get_iter_at_line(VALUE self, VALUE line_number)
775
774
  {
776
775
  GtkTextIter iter;
777
776
  gtk_text_buffer_get_iter_at_line(_SELF(self), &iter, NUM2INT(line_number));
@@ -779,11 +778,11 @@ txt_get_iter_at_line(VALUE self, VALUE line_number)
779
778
  }
780
779
 
781
780
  static VALUE
782
- txt_get_bounds(VALUE self)
781
+ rg_bounds(VALUE self)
783
782
  {
784
783
  GtkTextIter start, end;
785
784
  VALUE result;
786
-
785
+
787
786
  gtk_text_buffer_get_bounds(_SELF(self), &start, &end);
788
787
  result = rb_ary_new();
789
788
  rb_ary_push(result, ITR2RVAL(&start));
@@ -793,109 +792,107 @@ txt_get_bounds(VALUE self)
793
792
  }
794
793
 
795
794
  static VALUE
796
- txt_get_iter_at_mark(VALUE self, VALUE mark)
795
+ rg_get_iter_at_mark(VALUE self, VALUE mark)
797
796
  {
798
797
  GtkTextIter iter;
799
798
  gtk_text_buffer_get_iter_at_mark(_SELF(self), &iter, RVAL2MARK(mark));
800
799
  return ITR2RVAL(&iter);
801
800
  }
802
801
 
803
-
804
802
  void
805
- Init_gtk_textbuffer()
803
+ Init_gtk_textbuffer(VALUE mGtk)
806
804
  {
807
- VALUE gTextBuffer = G_DEF_CLASS(GTK_TYPE_TEXT_BUFFER, "TextBuffer", mGtk);
805
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TEXT_BUFFER, "TextBuffer", mGtk);
808
806
 
809
807
  id_tagtable = rb_intern("tagtable");
810
808
 
811
- rb_define_method(gTextBuffer, "initialize", txt_initialize, -1);
812
- rb_define_method(gTextBuffer, "line_count", txt_get_line_count, 0);
813
- rb_define_method(gTextBuffer, "char_count", txt_get_char_count, 0);
809
+ RG_DEF_METHOD(initialize, -1);
810
+ RG_DEF_METHOD(line_count, 0);
811
+ RG_DEF_METHOD(char_count, 0);
814
812
 
815
- G_REPLACE_SET_PROPERTY(gTextBuffer, "text", txt_set_text, 1);
816
- rb_define_method(gTextBuffer, "insert", txt_insert, -1);
817
- rb_define_method(gTextBuffer, "insert_with_tags", txt_insert_with_tags, -1);
813
+ G_REPLACE_SET_PROPERTY(RG_TARGET_NAMESPACE, "text", txt_set_text, 1);
814
+ RG_DEF_METHOD(insert, -1);
815
+ RG_DEF_METHOD(insert_with_tags, -1);
818
816
  #if GTK_CHECK_VERSION(2,6,0)
819
- rb_define_method(gTextBuffer, "backspace", txt_backspace, 3);
817
+ RG_DEF_METHOD(backspace, 3);
820
818
  #endif
821
- rb_define_method(gTextBuffer, "insert_at_cursor", txt_insert_at_cursor, 1);
822
- rb_define_method(gTextBuffer, "insert_interactive", txt_insert_interactive, 3);
823
- rb_define_method(gTextBuffer, "insert_interactive_at_cursor", txt_insert_interactive_at_cursor, 2);
824
- rb_define_method(gTextBuffer, "insert_range", txt_insert_range, 3);
825
- rb_define_method(gTextBuffer, "insert_range_interactive", txt_insert_range_interactive, 4);
826
-
827
- rb_define_method(gTextBuffer, "delete", txt_delete, 2);
828
- rb_define_method(gTextBuffer, "delete_interactive", txt_delete_interactive, 3);
829
-
830
- rb_define_method(gTextBuffer, "get_text", txt_get_text, -1);
831
- G_REPLACE_GET_PROPERTY(gTextBuffer, "text", txt_get_text_all, 0);
832
- rb_define_method(gTextBuffer, "get_slice", txt_get_slice, -1);
833
- rb_define_method(gTextBuffer, "slice", txt_get_slice_all, 0);
834
-
835
- rb_define_method(gTextBuffer, "insert_pixbuf", txt_insert_pixbuf, 2);
836
- rb_define_method(gTextBuffer, "insert_child_anchor", txt_insert_child_anchor, 2);
837
- rb_define_method(gTextBuffer, "create_child_anchor", txt_create_child_anchor, 1);
838
-
839
- rb_define_method(gTextBuffer, "create_mark", txt_create_mark, 3);
819
+ RG_DEF_METHOD(insert_at_cursor, 1);
820
+ RG_DEF_METHOD(insert_interactive, 3);
821
+ RG_DEF_METHOD(insert_interactive_at_cursor, 2);
822
+ RG_DEF_METHOD(insert_range, 3);
823
+ RG_DEF_METHOD(insert_range_interactive, 4);
824
+
825
+ RG_DEF_METHOD(delete, 2);
826
+ RG_DEF_METHOD(delete_interactive, 3);
827
+
828
+ RG_DEF_METHOD(get_text, -1);
829
+ G_REPLACE_GET_PROPERTY(RG_TARGET_NAMESPACE, "text", txt_get_text_all, 0);
830
+ RG_DEF_METHOD(get_slice, -1);
831
+ RG_DEF_METHOD(slice, 0);
832
+
833
+ RG_DEF_METHOD(insert_pixbuf, 2);
834
+ RG_DEF_METHOD(insert_child_anchor, 2);
835
+ RG_DEF_METHOD(create_child_anchor, 1);
836
+
837
+ RG_DEF_METHOD(create_mark, 3);
840
838
  #if GTK_CHECK_VERSION(2,12,0)
841
- rb_define_method(gTextBuffer, "add_mark", txt_add_mark, 2);
839
+ RG_DEF_METHOD(add_mark, 2);
842
840
  #endif
843
- rb_define_method(gTextBuffer, "delete_mark", txt_delete_mark, 1);
841
+ RG_DEF_METHOD(delete_mark, 1);
844
842
 
845
- rb_define_method(gTextBuffer, "get_mark", txt_get_mark, 1);
843
+ RG_DEF_METHOD(get_mark, 1);
846
844
  /* Comment out because this method's name is very bad.
847
845
  Use Gtk::TextBuffer#get_mark("insert") instead.
848
- rb_define_method(gTextBuffer, "get_insert", txt_get_insert, 0);
846
+ RG_DEF_METHOD(get_insert, 0);
849
847
  */
850
- rb_define_method(gTextBuffer, "selection_bound", txt_get_selection_bound, 0);
851
- rb_define_method(gTextBuffer, "place_cursor", txt_place_cursor, 1);
848
+ RG_DEF_METHOD(selection_bound, 0);
849
+ RG_DEF_METHOD(place_cursor, 1);
852
850
  #if GTK_CHECK_VERSION(2,4,0)
853
- rb_define_method(gTextBuffer, "select_range", txt_select_range, 2);
851
+ RG_DEF_METHOD(select_range, 2);
854
852
  #endif
855
- rb_define_method(gTextBuffer, "modified?", txt_get_modified, 0);
856
- rb_define_method(gTextBuffer, "set_modified", txt_set_modified, 1);
857
- G_DEF_SETTER(gTextBuffer, "modified");
853
+ RG_DEF_METHOD_P(modified, 0);
854
+ RG_DEF_METHOD(set_modified, 1);
855
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "modified");
858
856
 
859
- rb_define_method(gTextBuffer, "add_selection_clipboard", txt_add_selection_clipboard, 1);
860
- rb_define_method(gTextBuffer, "remove_selection_clipboard", txt_remove_selection_clipboard, 1);
857
+ RG_DEF_METHOD(add_selection_clipboard, 1);
858
+ RG_DEF_METHOD(remove_selection_clipboard, 1);
861
859
  #if GTK_CHECK_VERSION(2,10,0)
862
- rb_define_method(gTextBuffer, "deserialize", txt_deserialize, 4);
863
- rb_define_method(gTextBuffer, "deserialize_can_create_tags?", txt_deserialize_get_can_create_tags, 1);
864
- rb_define_method(gTextBuffer, "deserialize_set_can_create_tags", txt_deserialize_set_can_create_tags, 2);
865
- rb_define_method(gTextBuffer, "deserialize_formats", txt_get_deserialize_formats, 0);
866
- rb_define_method(gTextBuffer, "serialize_formats", txt_get_serialize_formats, 0);
867
- rb_define_method(gTextBuffer, "register_deserialize_format", txt_register_deserialize_format, 1);
868
- rb_define_method(gTextBuffer, "register_deserialize_target", txt_register_deserialize_target, 1);
869
- rb_define_method(gTextBuffer, "register_serialize_format", txt_register_serialize_format, 1);
870
- rb_define_method(gTextBuffer, "register_serialize_target", txt_register_serialize_target, 1);
871
- rb_define_method(gTextBuffer, "serialize", txt_serialize, 4);
872
- rb_define_method(gTextBuffer, "unregister_deserialize_format", txt_unregister_deserialize_format, 1);
873
- rb_define_method(gTextBuffer, "unregister_serialize_format", txt_unregister_serialize_format, 1);
860
+ RG_DEF_METHOD(deserialize, 4);
861
+ RG_DEF_METHOD_P(deserialize_can_create_tags, 1);
862
+ RG_DEF_METHOD(deserialize_set_can_create_tags, 2);
863
+ RG_DEF_METHOD(deserialize_formats, 0);
864
+ RG_DEF_METHOD(serialize_formats, 0);
865
+ RG_DEF_METHOD(register_deserialize_format, 1);
866
+ RG_DEF_METHOD(register_deserialize_target, 1);
867
+ RG_DEF_METHOD(register_serialize_format, 1);
868
+ RG_DEF_METHOD(register_serialize_target, 1);
869
+ RG_DEF_METHOD(serialize, 4);
870
+ RG_DEF_METHOD(unregister_deserialize_format, 1);
871
+ RG_DEF_METHOD(unregister_serialize_format, 1);
874
872
  #endif
875
- rb_define_method(gTextBuffer, "cut_clipboard", txt_cut_clipboard, 2);
876
- rb_define_method(gTextBuffer, "copy_clipboard", txt_copy_clipboard, 1);
877
- rb_define_method(gTextBuffer, "paste_clipboard", txt_paste_clipboard, 3);
878
-
879
- rb_define_method(gTextBuffer, "selection_bounds", txt_get_selection_bounds, 0);
880
- rb_define_method(gTextBuffer, "delete_selection", txt_delete_selection, -1);
881
-
882
- rb_define_method(gTextBuffer, "begin_user_action", txt_begin_user_action, 0);
883
- rb_define_method(gTextBuffer, "end_user_action", txt_end_user_action, 0);
884
-
885
- rb_define_method(gTextBuffer, "start_iter", txt_get_start_iter, 0);
886
- rb_define_method(gTextBuffer, "end_iter", txt_get_end_iter, 0);
887
- rb_define_method(gTextBuffer, "get_iter_at_line_offset", txt_get_iter_at_line_offset, 2);
888
- rb_define_method(gTextBuffer, "get_iter_at_line_index", txt_get_iter_at_line_index, 2);
889
- rb_define_method(gTextBuffer, "get_iter_at_offset", txt_get_iter_at_offset, 1);
890
- rb_define_method(gTextBuffer, "get_iter_at_line", txt_get_iter_at_line, 1);
891
- rb_define_method(gTextBuffer, "bounds", txt_get_bounds, 0);
892
- rb_define_method(gTextBuffer, "get_iter_at_mark", txt_get_iter_at_mark, 1);
893
- rb_define_method(gTextBuffer, "move_mark", txt_move_mark, 2);
894
- rb_define_method(gTextBuffer, "get_iter_at_child_anchor", txt_get_iter_at_child_anchor, 1);
895
-
896
- rb_define_method(gTextBuffer, "create_tag", txt_create_tag, 2);
897
- rb_define_method(gTextBuffer, "apply_tag", txt_apply_tag, 3);
898
- rb_define_method(gTextBuffer, "remove_tag", txt_remove_tag, 3);
899
- rb_define_method(gTextBuffer, "remove_all_tags", txt_remove_all_tags, 2);
873
+ RG_DEF_METHOD(cut_clipboard, 2);
874
+ RG_DEF_METHOD(copy_clipboard, 1);
875
+ RG_DEF_METHOD(paste_clipboard, 3);
876
+
877
+ RG_DEF_METHOD(selection_bounds, 0);
878
+ RG_DEF_METHOD(delete_selection, -1);
879
+
880
+ RG_DEF_METHOD(begin_user_action, 0);
881
+ RG_DEF_METHOD(end_user_action, 0);
882
+
883
+ RG_DEF_METHOD(start_iter, 0);
884
+ RG_DEF_METHOD(end_iter, 0);
885
+ RG_DEF_METHOD(get_iter_at_line_offset, 2);
886
+ RG_DEF_METHOD(get_iter_at_line_index, 2);
887
+ RG_DEF_METHOD(get_iter_at_offset, 1);
888
+ RG_DEF_METHOD(get_iter_at_line, 1);
889
+ RG_DEF_METHOD(bounds, 0);
890
+ RG_DEF_METHOD(get_iter_at_mark, 1);
891
+ RG_DEF_METHOD(move_mark, 2);
892
+ RG_DEF_METHOD(get_iter_at_child_anchor, 1);
893
+
894
+ RG_DEF_METHOD(create_tag, 2);
895
+ RG_DEF_METHOD(apply_tag, 3);
896
+ RG_DEF_METHOD(remove_tag, 3);
897
+ RG_DEF_METHOD(remove_all_tags, 2);
900
898
  }
901
-