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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (939) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +6 -2
  3. data/ext/gdk3/extconf.rb +4 -1
  4. data/ext/gdk3/gdk3.def +2 -2
  5. data/ext/gdk3/rbgdk.c +5 -51
  6. data/ext/gdk3/rbgdk3.h +6 -4
  7. data/ext/gdk3/rbgdk3conversions.h +5 -2
  8. data/ext/gdk3/rbgdk3private.h +1 -6
  9. data/ext/gdk3/rbgdkcairo.c +0 -4
  10. data/ext/gdk3/rbgdkdevice.c +60 -4
  11. data/ext/gdk3/rbgdkdevicemanager.c +39 -0
  12. data/ext/gdk3/rbgdkdisplay.c +8 -63
  13. data/ext/gdk3/rbgdkevent.c +644 -396
  14. data/ext/gdk3/rbgdkwindow.c +29 -32
  15. data/lib/1.9/gdk3.so +0 -0
  16. data/lib/2.0/gdk3.so +0 -0
  17. data/lib/gdk3/deprecated.rb +13 -1
  18. data/test/test-gdk-event.rb +598 -0
  19. data/test/test-gdk-rgba.rb +2 -2
  20. data/vendor/local/bin/gtk-launch.exe +0 -0
  21. data/vendor/local/bin/gtk-query-immodules-3.0.exe +0 -0
  22. data/vendor/local/bin/gtk-update-icon-cache.exe +0 -0
  23. data/vendor/local/bin/gtk3-demo-application.exe +0 -0
  24. data/vendor/local/bin/gtk3-demo.exe +0 -0
  25. data/vendor/local/bin/gtk3-widget-factory.exe +0 -0
  26. data/vendor/local/bin/libgailutil-3-0.dll +0 -0
  27. data/vendor/local/bin/libgdk-3-0.dll +0 -0
  28. data/vendor/local/bin/libgtk-3-0.dll +0 -0
  29. data/vendor/local/include/gtk-3.0/gdk/gdkapplaunchcontext.h +6 -0
  30. data/vendor/local/include/gtk-3.0/gdk/gdkcairo.h +13 -0
  31. data/vendor/local/include/gtk-3.0/gdk/gdkcolor.h +8 -0
  32. data/vendor/local/include/gtk-3.0/gdk/gdkcursor.h +17 -0
  33. data/vendor/local/include/gtk-3.0/gdk/gdkdevice.h +40 -0
  34. data/vendor/local/include/gtk-3.0/gdk/gdkdevicemanager.h +4 -0
  35. data/vendor/local/include/gtk-3.0/gdk/gdkdisplay.h +35 -0
  36. data/vendor/local/include/gtk-3.0/gdk/gdkdisplaymanager.h +6 -0
  37. data/vendor/local/include/gtk-3.0/gdk/gdkdnd.h +22 -1
  38. data/vendor/local/include/gtk-3.0/gdk/gdkenumtypes.h +38 -37
  39. data/vendor/local/include/gtk-3.0/gdk/gdkevents.h +50 -9
  40. data/vendor/local/include/gtk-3.0/gdk/gdkframeclock.h +1 -0
  41. data/vendor/local/include/gtk-3.0/gdk/gdkkeys.h +22 -1
  42. data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms-compat.h +1 -0
  43. data/vendor/local/include/gtk-3.0/gdk/gdkkeysyms.h +1 -0
  44. data/vendor/local/include/gtk-3.0/gdk/gdkmain.h +25 -9
  45. data/vendor/local/include/gtk-3.0/gdk/gdkpango.h +5 -0
  46. data/vendor/local/include/gtk-3.0/gdk/gdkpixbuf.h +4 -1
  47. data/vendor/local/include/gtk-3.0/gdk/gdkprivate.h +4 -0
  48. data/vendor/local/include/gtk-3.0/gdk/gdkproperty.h +9 -0
  49. data/vendor/local/include/gtk-3.0/gdk/gdkrectangle.h +4 -0
  50. data/vendor/local/include/gtk-3.0/gdk/gdkrgba.h +8 -0
  51. data/vendor/local/include/gtk-3.0/gdk/gdkscreen.h +33 -0
  52. data/vendor/local/include/gtk-3.0/gdk/gdkselection.h +9 -0
  53. data/vendor/local/include/gtk-3.0/gdk/gdktestutils.h +3 -0
  54. data/vendor/local/include/gtk-3.0/gdk/gdkthreads.h +8 -1
  55. data/vendor/local/include/gtk-3.0/gdk/gdktypes.h +2 -2
  56. data/vendor/local/include/gtk-3.0/gdk/gdkversionmacros.h +53 -23
  57. data/vendor/local/include/gtk-3.0/gdk/gdkvisual.h +21 -0
  58. data/vendor/local/include/gtk-3.0/gdk/gdkwin32.h +1 -65
  59. data/vendor/local/include/gtk-3.0/gdk/gdkwindow.h +182 -0
  60. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32cursor.h +1 -0
  61. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32display.h +1 -0
  62. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32displaymanager.h +1 -0
  63. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32dnd.h +1 -0
  64. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32keys.h +1 -0
  65. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32misc.h +113 -0
  66. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32screen.h +1 -0
  67. data/vendor/local/include/gtk-3.0/gdk/win32/gdkwin32window.h +1 -0
  68. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkarrowaccessible.h +1 -0
  69. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbooleancellaccessible.h +1 -0
  70. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkbuttonaccessible.h +1 -0
  71. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessible.h +1 -0
  72. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcellaccessibleparent.h +9 -0
  73. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcheckmenuitemaccessible.h +1 -0
  74. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcomboboxaccessible.h +1 -0
  75. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontaineraccessible.h +1 -0
  76. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkcontainercellaccessible.h +5 -0
  77. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkentryaccessible.h +4 -0
  78. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkexpanderaccessible.h +1 -0
  79. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkframeaccessible.h +1 -0
  80. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkiconviewaccessible.h +1 -0
  81. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimageaccessible.h +1 -0
  82. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkimagecellaccessible.h +1 -0
  83. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklabelaccessible.h +1 -0
  84. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklevelbaraccessible.h +1 -0
  85. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklinkbuttonaccessible.h +1 -0
  86. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxaccessible.h +58 -0
  87. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklistboxrowaccessible.h +55 -0
  88. data/vendor/local/include/gtk-3.0/gtk/a11y/gtklockbuttonaccessible.h +1 -0
  89. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuaccessible.h +1 -0
  90. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenuitemaccessible.h +1 -0
  91. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkmenushellaccessible.h +1 -0
  92. data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookaccessible.h +1 -0
  93. data/vendor/local/include/gtk-3.0/gtk/a11y/gtknotebookpageaccessible.h +3 -0
  94. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkpanedaccessible.h +1 -0
  95. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkprogressbaraccessible.h +1 -0
  96. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiobuttonaccessible.h +1 -0
  97. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkradiomenuitemaccessible.h +1 -0
  98. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrangeaccessible.h +1 -0
  99. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkrenderercellaccessible.h +2 -0
  100. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscaleaccessible.h +1 -0
  101. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscalebuttonaccessible.h +1 -0
  102. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkscrolledwindowaccessible.h +1 -0
  103. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinbuttonaccessible.h +1 -0
  104. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkspinneraccessible.h +1 -0
  105. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkstatusbaraccessible.h +1 -0
  106. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkswitchaccessible.h +1 -0
  107. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextcellaccessible.h +1 -0
  108. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktextviewaccessible.h +1 -0
  109. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktogglebuttonaccessible.h +1 -0
  110. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktoplevelaccessible.h +2 -0
  111. data/vendor/local/include/gtk-3.0/gtk/a11y/gtktreeviewaccessible.h +1 -0
  112. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwidgetaccessible.h +1 -0
  113. data/vendor/local/include/gtk-3.0/gtk/a11y/gtkwindowaccessible.h +1 -0
  114. data/vendor/local/include/gtk-3.0/gtk/{gtkaction.h → deprecated/gtkaction.h} +43 -1
  115. data/vendor/local/include/gtk-3.0/gtk/{gtkactiongroup.h → deprecated/gtkactiongroup.h} +31 -4
  116. data/vendor/local/include/gtk-3.0/gtk/{gtkactivatable.h → deprecated/gtkactivatable.h} +10 -1
  117. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorsel.h +2 -0
  118. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkcolorseldialog.h +1 -0
  119. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkfontsel.h +2 -1
  120. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkgradient.h +1 -0
  121. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhandlebox.h +1 -0
  122. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbbox.h +1 -0
  123. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhbox.h +1 -0
  124. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhpaned.h +1 -0
  125. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscale.h +1 -0
  126. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhscrollbar.h +1 -0
  127. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhseparator.h +1 -0
  128. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkhsv.h +1 -0
  129. data/vendor/local/include/gtk-3.0/gtk/{gtkiconfactory.h → deprecated/gtkiconfactory.h} +43 -0
  130. data/vendor/local/include/gtk-3.0/gtk/{gtkimagemenuitem.h → deprecated/gtkimagemenuitem.h} +12 -1
  131. data/vendor/local/include/gtk-3.0/gtk/{gtkradioaction.h → deprecated/gtkradioaction.h} +8 -1
  132. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkrc.h +1 -0
  133. data/vendor/local/include/gtk-3.0/gtk/{gtkrecentaction.h → deprecated/gtkrecentaction.h} +6 -1
  134. data/vendor/local/include/gtk-3.0/gtk/{gtkstock.h → deprecated/gtkstock.h} +333 -106
  135. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkstyle.h +20 -0
  136. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtksymboliccolor.h +1 -0
  137. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktable.h +1 -0
  138. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtktearoffmenuitem.h +1 -0
  139. data/vendor/local/include/gtk-3.0/gtk/{gtktoggleaction.h → deprecated/gtktoggleaction.h} +8 -1
  140. data/vendor/local/include/gtk-3.0/gtk/{gtkuimanager.h → deprecated/gtkuimanager.h} +21 -2
  141. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbbox.h +1 -0
  142. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvbox.h +1 -0
  143. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvpaned.h +1 -0
  144. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscale.h +1 -0
  145. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvscrollbar.h +1 -0
  146. data/vendor/local/include/gtk-3.0/gtk/deprecated/gtkvseparator.h +1 -0
  147. data/vendor/local/include/gtk-3.0/gtk/gtk-a11y.h +2 -0
  148. data/vendor/local/include/gtk-3.0/gtk/gtk.h +17 -10
  149. data/vendor/local/include/gtk-3.0/gtk/gtkaboutdialog.h +33 -0
  150. data/vendor/local/include/gtk-3.0/gtk/gtkaccelgroup.h +22 -0
  151. data/vendor/local/include/gtk-3.0/gtk/gtkaccellabel.h +7 -0
  152. data/vendor/local/include/gtk-3.0/gtk/gtkaccelmap.h +15 -0
  153. data/vendor/local/include/gtk-3.0/gtk/gtkaccessible.h +3 -0
  154. data/vendor/local/include/gtk-3.0/gtk/gtkadjustment.h +18 -0
  155. data/vendor/local/include/gtk-3.0/gtk/gtkalignment.h +5 -0
  156. data/vendor/local/include/gtk-3.0/gtk/gtkappchooser.h +5 -0
  157. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserbutton.h +9 -0
  158. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserdialog.h +6 -0
  159. data/vendor/local/include/gtk-3.0/gtk/gtkappchooserwidget.h +14 -0
  160. data/vendor/local/include/gtk-3.0/gtk/gtkapplication.h +5 -0
  161. data/vendor/local/include/gtk-3.0/gtk/gtkarrow.h +3 -0
  162. data/vendor/local/include/gtk-3.0/gtk/gtkaspectframe.h +3 -0
  163. data/vendor/local/include/gtk-3.0/gtk/gtkassistant.h +22 -0
  164. data/vendor/local/include/gtk-3.0/gtk/gtkbbox.h +6 -0
  165. data/vendor/local/include/gtk-3.0/gtk/gtkbin.h +2 -0
  166. data/vendor/local/include/gtk-3.0/gtk/gtkbindings.h +11 -0
  167. data/vendor/local/include/gtk-3.0/gtk/gtkborder.h +5 -0
  168. data/vendor/local/include/gtk-3.0/gtk/gtkbox.h +16 -0
  169. data/vendor/local/include/gtk-3.0/gtk/gtkbuildable.h +11 -0
  170. data/vendor/local/include/gtk-3.0/gtk/gtkbuilder.h +43 -10
  171. data/vendor/local/include/gtk-3.0/gtk/gtkbutton.h +26 -0
  172. data/vendor/local/include/gtk-3.0/gtk/gtkcalendar.h +16 -0
  173. data/vendor/local/include/gtk-3.0/gtk/gtkcellarea.h +47 -0
  174. data/vendor/local/include/gtk-3.0/gtk/gtkcellareabox.h +6 -0
  175. data/vendor/local/include/gtk-3.0/gtk/gtkcellareacontext.h +11 -0
  176. data/vendor/local/include/gtk-3.0/gtk/gtkcelleditable.h +4 -0
  177. data/vendor/local/include/gtk-3.0/gtk/gtkcelllayout.h +11 -0
  178. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderer.h +25 -0
  179. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendereraccel.h +2 -0
  180. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderercombo.h +2 -0
  181. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererpixbuf.h +2 -0
  182. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererprogress.h +2 -0
  183. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspin.h +2 -0
  184. data/vendor/local/include/gtk-3.0/gtk/gtkcellrendererspinner.h +2 -0
  185. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertext.h +3 -0
  186. data/vendor/local/include/gtk-3.0/gtk/gtkcellrenderertoggle.h +8 -0
  187. data/vendor/local/include/gtk-3.0/gtk/gtkcellview.h +15 -0
  188. data/vendor/local/include/gtk-3.0/gtk/gtkcheckbutton.h +4 -0
  189. data/vendor/local/include/gtk-3.0/gtk/gtkcheckmenuitem.h +11 -0
  190. data/vendor/local/include/gtk-3.0/gtk/gtkclipboard.h +29 -0
  191. data/vendor/local/include/gtk-3.0/gtk/gtkcolorbutton.h +5 -0
  192. data/vendor/local/include/gtk-3.0/gtk/gtkcolorutils.h +3 -0
  193. data/vendor/local/include/gtk-3.0/gtk/gtkcombobox.h +42 -0
  194. data/vendor/local/include/gtk-3.0/gtk/gtkcomboboxtext.h +12 -0
  195. data/vendor/local/include/gtk-3.0/gtk/gtkcontainer.h +36 -0
  196. data/vendor/local/include/gtk-3.0/gtk/gtkcssprovider.h +8 -0
  197. data/vendor/local/include/gtk-3.0/gtk/gtkdebug.h +7 -1
  198. data/vendor/local/include/gtk-3.0/gtk/gtkdialog.h +17 -0
  199. data/vendor/local/include/gtk-3.0/gtk/gtkdnd.h +43 -0
  200. data/vendor/local/include/gtk-3.0/gtk/gtkdrawingarea.h +2 -0
  201. data/vendor/local/include/gtk-3.0/gtk/gtkeditable.h +14 -0
  202. data/vendor/local/include/gtk-3.0/gtk/gtkentry.h +69 -0
  203. data/vendor/local/include/gtk-3.0/gtk/gtkentrybuffer.h +13 -0
  204. data/vendor/local/include/gtk-3.0/gtk/gtkentrycompletion.h +28 -0
  205. data/vendor/local/include/gtk-3.0/gtk/gtkenums.h +29 -1
  206. data/vendor/local/include/gtk-3.0/gtk/gtkeventbox.h +6 -0
  207. data/vendor/local/include/gtk-3.0/gtk/gtkexpander.h +17 -0
  208. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooser.h +64 -2
  209. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserbutton.h +9 -0
  210. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserdialog.h +2 -0
  211. data/vendor/local/include/gtk-3.0/gtk/gtkfilechooserwidget.h +2 -0
  212. data/vendor/local/include/gtk-3.0/gtk/gtkfilefilter.h +11 -0
  213. data/vendor/local/include/gtk-3.0/gtk/gtkfixed.h +4 -0
  214. data/vendor/local/include/gtk-3.0/gtk/gtkfontbutton.h +15 -0
  215. data/vendor/local/include/gtk-3.0/gtk/gtkframe.h +10 -0
  216. data/vendor/local/include/gtk-3.0/gtk/gtkgrid.h +30 -0
  217. data/vendor/local/include/gtk-3.0/gtk/gtkheaderbar.h +95 -0
  218. data/vendor/local/include/gtk-3.0/gtk/gtkicontheme.h +76 -2
  219. data/vendor/local/include/gtk-3.0/gtk/gtkiconview.h +62 -0
  220. data/vendor/local/include/gtk-3.0/gtk/gtkimage.h +37 -1
  221. data/vendor/local/include/gtk-3.0/gtk/gtkimcontext.h +12 -0
  222. data/vendor/local/include/gtk-3.0/gtk/gtkimcontextsimple.h +3 -0
  223. data/vendor/local/include/gtk-3.0/gtk/gtkimmulticontext.h +5 -0
  224. data/vendor/local/include/gtk-3.0/gtk/gtkinfobar.h +19 -0
  225. data/vendor/local/include/gtk-3.0/gtk/gtkinvisible.h +5 -0
  226. data/vendor/local/include/gtk-3.0/gtk/gtklabel.h +50 -0
  227. data/vendor/local/include/gtk-3.0/gtk/gtklayout.h +7 -0
  228. data/vendor/local/include/gtk-3.0/gtk/gtklinkbutton.h +7 -0
  229. data/vendor/local/include/gtk-3.0/gtk/gtklistbox.h +232 -0
  230. data/vendor/local/include/gtk-3.0/gtk/gtkliststore.h +23 -0
  231. data/vendor/local/include/gtk-3.0/gtk/gtkmain.h +35 -0
  232. data/vendor/local/include/gtk-3.0/gtk/gtkmenu.h +28 -1
  233. data/vendor/local/include/gtk-3.0/gtk/gtkmenubar.h +6 -0
  234. data/vendor/local/include/gtk-3.0/gtk/gtkmenuitem.h +19 -0
  235. data/vendor/local/include/gtk-3.0/gtk/gtkmenushell.h +14 -0
  236. data/vendor/local/include/gtk-3.0/gtk/gtkmenutoolbutton.h +7 -0
  237. data/vendor/local/include/gtk-3.0/gtk/gtkmessagedialog.h +9 -0
  238. data/vendor/local/include/gtk-3.0/gtk/gtkmisc.h +5 -1
  239. data/vendor/local/include/gtk-3.0/gtk/gtkmountoperation.h +7 -0
  240. data/vendor/local/include/gtk-3.0/gtk/gtknotebook.h +45 -0
  241. data/vendor/local/include/gtk-3.0/gtk/gtknumerableicon.h +13 -0
  242. data/vendor/local/include/gtk-3.0/gtk/gtkoffscreenwindow.h +4 -0
  243. data/vendor/local/include/gtk-3.0/gtk/gtkorientable.h +3 -0
  244. data/vendor/local/include/gtk-3.0/gtk/gtkpagesetup.h +26 -0
  245. data/vendor/local/include/gtk-3.0/gtk/gtkpaned.h +11 -0
  246. data/vendor/local/include/gtk-3.0/gtk/gtkpapersize.h +24 -1
  247. data/vendor/local/include/gtk-3.0/gtk/gtkplacessidebar.h +125 -0
  248. data/vendor/local/include/gtk-3.0/gtk/gtkplug.h +8 -0
  249. data/vendor/local/include/gtk-3.0/gtk/gtkprintcontext.h +12 -0
  250. data/vendor/local/include/gtk-3.0/gtk/gtkprintoperation.h +34 -0
  251. data/vendor/local/include/gtk-3.0/gtk/gtkprintoperationpreview.h +4 -0
  252. data/vendor/local/include/gtk-3.0/gtk/gtkprintsettings.h +94 -0
  253. data/vendor/local/include/gtk-3.0/gtk/gtkprogressbar.h +15 -0
  254. data/vendor/local/include/gtk-3.0/gtk/gtkradiobutton.h +10 -0
  255. data/vendor/local/include/gtk-3.0/gtk/gtkradiomenuitem.h +9 -0
  256. data/vendor/local/include/gtk-3.0/gtk/gtkradiotoolbutton.h +7 -0
  257. data/vendor/local/include/gtk-3.0/gtk/gtkrange.h +29 -0
  258. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooser.h +33 -0
  259. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserdialog.h +3 -0
  260. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchoosermenu.h +5 -0
  261. data/vendor/local/include/gtk-3.0/gtk/gtkrecentchooserwidget.h +3 -0
  262. data/vendor/local/include/gtk-3.0/gtk/gtkrecentfilter.h +14 -0
  263. data/vendor/local/include/gtk-3.0/gtk/gtkrecentmanager.h +38 -0
  264. data/vendor/local/include/gtk-3.0/gtk/gtkrevealer.h +82 -0
  265. data/vendor/local/include/gtk-3.0/gtk/gtkscale.h +13 -0
  266. data/vendor/local/include/gtk-3.0/gtk/gtkscalebutton.h +10 -0
  267. data/vendor/local/include/gtk-3.0/gtk/gtkscrollable.h +10 -0
  268. data/vendor/local/include/gtk-3.0/gtk/gtkscrollbar.h +2 -0
  269. data/vendor/local/include/gtk-3.0/gtk/gtkscrolledwindow.h +19 -0
  270. data/vendor/local/include/gtk-3.0/gtk/gtksearchbar.h +95 -0
  271. data/vendor/local/include/gtk-3.0/gtk/gtksearchentry.h +2 -1
  272. data/vendor/local/include/gtk-3.0/gtk/gtkselection.h +52 -0
  273. data/vendor/local/include/gtk-3.0/gtk/gtkseparator.h +2 -0
  274. data/vendor/local/include/gtk-3.0/gtk/gtkseparatormenuitem.h +2 -0
  275. data/vendor/local/include/gtk-3.0/gtk/gtkseparatortoolitem.h +4 -0
  276. data/vendor/local/include/gtk-3.0/gtk/gtksettings.h +14 -0
  277. data/vendor/local/include/gtk-3.0/gtk/gtkshow.h +1 -0
  278. data/vendor/local/include/gtk-3.0/gtk/gtksizegroup.h +9 -0
  279. data/vendor/local/include/gtk-3.0/gtk/gtksizerequest.h +1 -0
  280. data/vendor/local/include/gtk-3.0/gtk/gtksocket.h +5 -0
  281. data/vendor/local/include/gtk-3.0/gtk/gtkspinbutton.h +25 -0
  282. data/vendor/local/include/gtk-3.0/gtk/gtkspinner.h +4 -0
  283. data/vendor/local/include/gtk-3.0/gtk/gtkstack.h +105 -0
  284. data/vendor/local/include/gtk-3.0/gtk/gtkstackswitcher.h +65 -0
  285. data/vendor/local/include/gtk-3.0/gtk/gtkstatusbar.h +8 -0
  286. data/vendor/local/include/gtk-3.0/gtk/gtkstatusicon.h +35 -0
  287. data/vendor/local/include/gtk-3.0/gtk/gtkstylecontext.h +122 -2
  288. data/vendor/local/include/gtk-3.0/gtk/gtkstyleproperties.h +11 -0
  289. data/vendor/local/include/gtk-3.0/gtk/gtkstyleprovider.h +3 -1
  290. data/vendor/local/include/gtk-3.0/gtk/gtkswitch.h +4 -0
  291. data/vendor/local/include/gtk-3.0/gtk/gtktestutils.h +18 -0
  292. data/vendor/local/include/gtk-3.0/gtk/gtktextattributes.h +16 -8
  293. data/vendor/local/include/gtk-3.0/gtk/gtktextbuffer.h +62 -0
  294. data/vendor/local/include/gtk-3.0/gtk/gtktextbufferrichtext.h +12 -0
  295. data/vendor/local/include/gtk-3.0/gtk/gtktextchild.h +4 -0
  296. data/vendor/local/include/gtk-3.0/gtk/gtktextdisplay.h +1 -0
  297. data/vendor/local/include/gtk-3.0/gtk/gtktextiter.h +106 -0
  298. data/vendor/local/include/gtk-3.0/gtk/gtktextlayout.h +48 -4
  299. data/vendor/local/include/gtk-3.0/gtk/gtktextmark.h +8 -0
  300. data/vendor/local/include/gtk-3.0/gtk/gtktexttag.h +5 -0
  301. data/vendor/local/include/gtk-3.0/gtk/gtktexttagtable.h +7 -0
  302. data/vendor/local/include/gtk-3.0/gtk/gtktextview.h +61 -0
  303. data/vendor/local/include/gtk-3.0/gtk/gtkthemingengine.h +28 -1
  304. data/vendor/local/include/gtk-3.0/gtk/gtktogglebutton.h +11 -0
  305. data/vendor/local/include/gtk-3.0/gtk/gtktoggletoolbutton.h +5 -0
  306. data/vendor/local/include/gtk-3.0/gtk/gtktoolbar.h +17 -0
  307. data/vendor/local/include/gtk-3.0/gtk/gtktoolbutton.h +15 -0
  308. data/vendor/local/include/gtk-3.0/gtk/gtktoolitem.h +30 -0
  309. data/vendor/local/include/gtk-3.0/gtk/gtktoolitemgroup.h +18 -0
  310. data/vendor/local/include/gtk-3.0/gtk/gtktoolpalette.h +21 -0
  311. data/vendor/local/include/gtk-3.0/gtk/gtktoolshell.h +10 -0
  312. data/vendor/local/include/gtk-3.0/gtk/gtktooltip.h +10 -0
  313. data/vendor/local/include/gtk-3.0/gtk/gtktreednd.h +9 -0
  314. data/vendor/local/include/gtk-3.0/gtk/gtktreemodel.h +68 -0
  315. data/vendor/local/include/gtk-3.0/gtk/gtktreemodelfilter.h +12 -0
  316. data/vendor/local/include/gtk-3.0/gtk/gtktreemodelsort.h +10 -0
  317. data/vendor/local/include/gtk-3.0/gtk/gtktreeselection.h +21 -0
  318. data/vendor/local/include/gtk-3.0/gtk/gtktreesortable.h +7 -0
  319. data/vendor/local/include/gtk-3.0/gtk/gtktreestore.h +24 -0
  320. data/vendor/local/include/gtk-3.0/gtk/gtktreeview.h +94 -0
  321. data/vendor/local/include/gtk-3.0/gtk/gtktreeviewcolumn.h +53 -0
  322. data/vendor/local/include/gtk-3.0/gtk/gtktypebuiltins.h +123 -108
  323. data/vendor/local/include/gtk-3.0/gtk/gtktypes.h +9 -0
  324. data/vendor/local/include/gtk-3.0/gtk/gtkversion.h +4 -4
  325. data/vendor/local/include/gtk-3.0/gtk/gtkviewport.h +6 -0
  326. data/vendor/local/include/gtk-3.0/gtk/gtkvolumebutton.h +2 -0
  327. data/vendor/local/include/gtk-3.0/gtk/gtkwidget.h +365 -4
  328. data/vendor/local/include/gtk-3.0/gtk/gtkwidgetpath.h +30 -0
  329. data/vendor/local/include/gtk-3.0/gtk/gtkwindow.h +119 -0
  330. data/vendor/local/lib/girepository-1.0/Gdk-3.0.typelib +0 -0
  331. data/vendor/local/lib/girepository-1.0/Gtk-3.0.typelib +0 -0
  332. data/vendor/local/lib/gtk-3.0/3.0.0/immodules.cache +1 -1
  333. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll +0 -0
  334. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.dll.a +0 -0
  335. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-am-et.la +2 -2
  336. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll +0 -0
  337. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.dll.a +0 -0
  338. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cedilla.la +2 -2
  339. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll +0 -0
  340. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.dll.a +0 -0
  341. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.la +2 -2
  342. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll +0 -0
  343. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.dll.a +0 -0
  344. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ime.la +2 -2
  345. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll +0 -0
  346. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.dll.a +0 -0
  347. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.la +2 -2
  348. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll +0 -0
  349. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.dll.a +0 -0
  350. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ipa.la +2 -2
  351. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll +0 -0
  352. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.dll.a +0 -0
  353. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-multipress.la +2 -2
  354. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll +0 -0
  355. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.dll.a +0 -0
  356. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-thai.la +2 -2
  357. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll +0 -0
  358. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.dll.a +0 -0
  359. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-er.la +2 -2
  360. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll +0 -0
  361. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.dll.a +0 -0
  362. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-ti-et.la +2 -2
  363. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll +0 -0
  364. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.dll.a +0 -0
  365. data/vendor/local/lib/gtk-3.0/3.0.0/immodules/im-viqr.la +2 -2
  366. data/vendor/local/lib/libgailutil-3.dll.a +0 -0
  367. data/vendor/local/lib/libgailutil-3.la +2 -2
  368. data/vendor/local/lib/libgdk-3.dll.a +0 -0
  369. data/vendor/local/lib/libgdk-3.la +5 -5
  370. data/vendor/local/lib/libgtk-3.dll.a +0 -0
  371. data/vendor/local/lib/libgtk-3.la +5 -5
  372. data/vendor/local/lib/pkgconfig/gail-3.0.pc +1 -1
  373. data/vendor/local/lib/pkgconfig/gdk-3.0.pc +1 -1
  374. data/vendor/local/lib/pkgconfig/gdk-win32-3.0.pc +1 -1
  375. data/vendor/local/lib/pkgconfig/gtk+-3.0.pc +1 -1
  376. data/vendor/local/lib/pkgconfig/gtk+-win32-3.0.pc +1 -1
  377. data/vendor/local/share/gir-1.0/Gdk-3.0.gir +2639 -2145
  378. data/vendor/local/share/gir-1.0/Gtk-3.0.gir +21620 -16038
  379. data/vendor/local/share/glib-2.0/schemas/gschemas.compiled +0 -0
  380. data/vendor/local/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml +8 -0
  381. data/vendor/local/share/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml +25 -0
  382. data/vendor/local/share/gtk-3.0/gtkbuilder.rng +19 -0
  383. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailMisc.html +43 -46
  384. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/gail-libgail-util3-GailTextUtil.html +17 -20
  385. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/home.png +0 -0
  386. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/index.html +4 -4
  387. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left-insensitive.png +0 -0
  388. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/left.png +0 -0
  389. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/libgail-util-main.html +9 -9
  390. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right-insensitive.png +0 -0
  391. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/right.png +0 -0
  392. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/style.css +71 -16
  393. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up-insensitive.png +0 -0
  394. data/vendor/local/share/gtk-doc/html/gail-libgail-util3/up.png +0 -0
  395. data/vendor/local/share/gtk-doc/html/gdk3/GdkDevice.html +114 -18
  396. data/vendor/local/share/gtk-doc/html/gdk3/GdkDeviceManager.html +14 -17
  397. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplay.html +26 -25
  398. data/vendor/local/share/gtk-doc/html/gdk3/GdkDisplayManager.html +14 -16
  399. data/vendor/local/share/gtk-doc/html/gdk3/GdkScreen.html +58 -22
  400. data/vendor/local/share/gtk-doc/html/gdk3/annotation-glossary.html +39 -51
  401. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-0.html +27 -26
  402. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-10.html +148 -0
  403. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-2.html +13 -16
  404. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-4.html +23 -26
  405. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-6.html +10 -13
  406. data/vendor/local/share/gtk-doc/html/gdk3/api-index-3-8.html +41 -17
  407. data/vendor/local/share/gtk-doc/html/gdk3/api-index-deprecated.html +36 -28
  408. data/vendor/local/share/gtk-doc/html/gdk3/api-index-full.html +187 -58
  409. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Application-launching.html +16 -19
  410. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cairo-Interaction.html +159 -54
  411. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Colors.html +12 -15
  412. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Cursors.html +119 -17
  413. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Drag-and-Drop.html +13 -16
  414. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Event-Structures.html +33 -26
  415. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Events.html +70 -17
  416. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameClock.html +12 -15
  417. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-GdkFrameTimings.html +12 -15
  418. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-General.html +93 -30
  419. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Keyboard-Handling.html +18 -21
  420. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pango-Interaction.html +59 -62
  421. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Pixbufs.html +15 -18
  422. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Points-Rectangles-and-Regions.html +15 -18
  423. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Properties-and-Atoms.html +13 -16
  424. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-RGBA-Colors.html +13 -16
  425. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Selections.html +13 -16
  426. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Testing.html +14 -17
  427. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Threads.html +40 -43
  428. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Visuals.html +12 -15
  429. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Wayland-Interaction.html +425 -0
  430. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-Windows.html +363 -106
  431. data/vendor/local/share/gtk-doc/html/gdk3/gdk3-X-Window-System-Interaction.html +264 -17
  432. data/vendor/local/share/gtk-doc/html/gdk3/gdk3.devhelp2 +38 -2
  433. data/vendor/local/share/gtk-doc/html/gdk3/home.png +0 -0
  434. data/vendor/local/share/gtk-doc/html/gdk3/index.html +8 -4
  435. data/vendor/local/share/gtk-doc/html/gdk3/index.sgml +44 -6
  436. data/vendor/local/share/gtk-doc/html/gdk3/left-insensitive.png +0 -0
  437. data/vendor/local/share/gtk-doc/html/gdk3/left.png +0 -0
  438. data/vendor/local/share/gtk-doc/html/gdk3/reference.html +12 -9
  439. data/vendor/local/share/gtk-doc/html/gdk3/right-insensitive.png +0 -0
  440. data/vendor/local/share/gtk-doc/html/gdk3/right.png +0 -0
  441. data/vendor/local/share/gtk-doc/html/gdk3/style.css +71 -16
  442. data/vendor/local/share/gtk-doc/html/gdk3/up-insensitive.png +0 -0
  443. data/vendor/local/share/gtk-doc/html/gdk3/up.png +0 -0
  444. data/vendor/local/share/gtk-doc/html/gtk3/AbstractObjects.html +10 -10
  445. data/vendor/local/share/gtk-doc/html/gtk3/Application.html +11 -11
  446. data/vendor/local/share/gtk-doc/html/gtk3/ApplicationChoosing.html +10 -10
  447. data/vendor/local/share/gtk-doc/html/gtk3/Builder.html +14 -14
  448. data/vendor/local/share/gtk-doc/html/gtk3/ButtonWidgets.html +16 -16
  449. data/vendor/local/share/gtk-doc/html/gtk3/DeprecatedObjects.html +38 -11
  450. data/vendor/local/share/gtk-doc/html/gtk3/DisplayWidgets.html +19 -19
  451. data/vendor/local/share/gtk-doc/html/gtk3/GtkAboutDialog.html +15 -22
  452. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccelLabel.html +15 -18
  453. data/vendor/local/share/gtk-doc/html/gtk3/GtkAccessible.html +14 -17
  454. data/vendor/local/share/gtk-doc/html/gtk3/GtkAction.html +347 -29
  455. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionGroup.html +158 -21
  456. data/vendor/local/share/gtk-doc/html/gtk3/GtkActionable.html +13 -16
  457. data/vendor/local/share/gtk-doc/html/gtk3/GtkActivatable.html +58 -25
  458. data/vendor/local/share/gtk-doc/html/gtk3/GtkAdjustment.html +12 -15
  459. data/vendor/local/share/gtk-doc/html/gtk3/GtkAlignment.html +15 -18
  460. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooser.html +12 -15
  461. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserButton.html +12 -15
  462. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserDialog.html +12 -15
  463. data/vendor/local/share/gtk-doc/html/gtk3/GtkAppChooserWidget.html +13 -16
  464. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplication.html +82 -23
  465. data/vendor/local/share/gtk-doc/html/gtk3/GtkApplicationWindow.html +14 -17
  466. data/vendor/local/share/gtk-doc/html/gtk3/GtkArrow.html +13 -16
  467. data/vendor/local/share/gtk-doc/html/gtk3/GtkAspectFrame.html +16 -18
  468. data/vendor/local/share/gtk-doc/html/gtk3/GtkAssistant.html +19 -22
  469. data/vendor/local/share/gtk-doc/html/gtk3/GtkBin.html +15 -15
  470. data/vendor/local/share/gtk-doc/html/gtk3/GtkBox.html +91 -19
  471. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuildable.html +16 -19
  472. data/vendor/local/share/gtk-doc/html/gtk3/GtkBuilder.html +341 -39
  473. data/vendor/local/share/gtk-doc/html/gtk3/GtkButton.html +82 -27
  474. data/vendor/local/share/gtk-doc/html/gtk3/GtkButtonBox.html +14 -17
  475. data/vendor/local/share/gtk-doc/html/gtk3/GtkCalendar.html +12 -15
  476. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellArea.html +22 -24
  477. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaBox.html +12 -15
  478. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellAreaContext.html +16 -19
  479. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellEditable.html +12 -15
  480. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellLayout.html +15 -18
  481. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRenderer.html +20 -23
  482. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererAccel.html +12 -15
  483. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererCombo.html +13 -16
  484. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererPixbuf.html +25 -17
  485. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererProgress.html +13 -16
  486. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpin.html +12 -15
  487. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererSpinner.html +12 -15
  488. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererText.html +36 -39
  489. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellRendererToggle.html +12 -15
  490. data/vendor/local/share/gtk-doc/html/gtk3/GtkCellView.html +15 -18
  491. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckButton.html +12 -15
  492. data/vendor/local/share/gtk-doc/html/gtk3/GtkCheckMenuItem.html +12 -15
  493. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorButton.html +22 -25
  494. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooser.html +12 -15
  495. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserDialog.html +12 -15
  496. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorChooserWidget.html +12 -15
  497. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelection.html +17 -20
  498. data/vendor/local/share/gtk-doc/html/gtk3/GtkColorSelectionDialog.html +13 -16
  499. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBox.html +43 -20
  500. data/vendor/local/share/gtk-doc/html/gtk3/GtkComboBoxText.html +14 -17
  501. data/vendor/local/share/gtk-doc/html/gtk3/GtkContainer.html +40 -21
  502. data/vendor/local/share/gtk-doc/html/gtk3/GtkCssProvider.html +42 -46
  503. data/vendor/local/share/gtk-doc/html/gtk3/GtkDialog.html +30 -34
  504. data/vendor/local/share/gtk-doc/html/gtk3/GtkDrawingArea.html +15 -18
  505. data/vendor/local/share/gtk-doc/html/gtk3/GtkEditable.html +14 -17
  506. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntry.html +121 -41
  507. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryBuffer.html +12 -15
  508. data/vendor/local/share/gtk-doc/html/gtk3/GtkEntryCompletion.html +13 -16
  509. data/vendor/local/share/gtk-doc/html/gtk3/GtkEventBox.html +13 -16
  510. data/vendor/local/share/gtk-doc/html/gtk3/GtkExpander.html +14 -17
  511. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooser.html +67 -34
  512. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserButton.html +16 -19
  513. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserDialog.html +21 -24
  514. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileChooserWidget.html +12 -15
  515. data/vendor/local/share/gtk-doc/html/gtk3/GtkFileFilter.html +13 -16
  516. data/vendor/local/share/gtk-doc/html/gtk3/GtkFixed.html +14 -17
  517. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontButton.html +14 -17
  518. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooser.html +37 -40
  519. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserDialog.html +13 -16
  520. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontChooserWidget.html +12 -15
  521. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelection.html +34 -37
  522. data/vendor/local/share/gtk-doc/html/gtk3/GtkFontSelectionDialog.html +22 -25
  523. data/vendor/local/share/gtk-doc/html/gtk3/GtkFrame.html +15 -17
  524. data/vendor/local/share/gtk-doc/html/gtk3/GtkGrid.html +229 -17
  525. data/vendor/local/share/gtk-doc/html/gtk3/GtkHBox.html +17 -20
  526. data/vendor/local/share/gtk-doc/html/gtk3/GtkHButtonBox.html +13 -16
  527. data/vendor/local/share/gtk-doc/html/gtk3/GtkHPaned.html +13 -16
  528. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSV.html +12 -15
  529. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScale.html +14 -17
  530. data/vendor/local/share/gtk-doc/html/gtk3/GtkHScrollbar.html +13 -16
  531. data/vendor/local/share/gtk-doc/html/gtk3/GtkHSeparator.html +14 -17
  532. data/vendor/local/share/gtk-doc/html/gtk3/GtkHandleBox.html +23 -26
  533. data/vendor/local/share/gtk-doc/html/gtk3/GtkHeaderBar.html +503 -0
  534. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContext.html +15 -20
  535. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMContextSimple.html +12 -15
  536. data/vendor/local/share/gtk-doc/html/gtk3/GtkIMMulticontext.html +19 -15
  537. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconTheme.html +451 -20
  538. data/vendor/local/share/gtk-doc/html/gtk3/GtkIconView.html +25 -27
  539. data/vendor/local/share/gtk-doc/html/gtk3/GtkImage.html +64 -21
  540. data/vendor/local/share/gtk-doc/html/gtk3/GtkImageMenuItem.html +80 -22
  541. data/vendor/local/share/gtk-doc/html/gtk3/GtkInfoBar.html +102 -46
  542. data/vendor/local/share/gtk-doc/html/gtk3/GtkInvisible.html +14 -17
  543. data/vendor/local/share/gtk-doc/html/gtk3/GtkLabel.html +146 -72
  544. data/vendor/local/share/gtk-doc/html/gtk3/GtkLayout.html +16 -19
  545. data/vendor/local/share/gtk-doc/html/gtk3/GtkLevelBar.html +15 -18
  546. data/vendor/local/share/gtk-doc/html/gtk3/GtkLinkButton.html +13 -16
  547. data/vendor/local/share/gtk-doc/html/gtk3/GtkListBox.html +1251 -0
  548. data/vendor/local/share/gtk-doc/html/gtk3/GtkListStore.html +17 -20
  549. data/vendor/local/share/gtk-doc/html/gtk3/GtkLockButton.html +15 -18
  550. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenu.html +60 -26
  551. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuBar.html +13 -16
  552. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuButton.html +14 -17
  553. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuItem.html +50 -25
  554. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuShell.html +51 -15
  555. data/vendor/local/share/gtk-doc/html/gtk3/GtkMenuToolButton.html +20 -22
  556. data/vendor/local/share/gtk-doc/html/gtk3/GtkMessageDialog.html +23 -26
  557. data/vendor/local/share/gtk-doc/html/gtk3/GtkMisc.html +13 -16
  558. data/vendor/local/share/gtk-doc/html/gtk3/GtkNotebook.html +17 -20
  559. data/vendor/local/share/gtk-doc/html/gtk3/GtkNumerableIcon.html +15 -18
  560. data/vendor/local/share/gtk-doc/html/gtk3/GtkOffscreenWindow.html +19 -22
  561. data/vendor/local/share/gtk-doc/html/gtk3/GtkOverlay.html +14 -17
  562. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetup.html +13 -16
  563. data/vendor/local/share/gtk-doc/html/gtk3/GtkPageSetupUnixDialog.html +12 -15
  564. data/vendor/local/share/gtk-doc/html/gtk3/GtkPaned.html +14 -17
  565. data/vendor/local/share/gtk-doc/html/gtk3/GtkPaperSize.html +13 -16
  566. data/vendor/local/share/gtk-doc/html/gtk3/GtkPlacesSidebar.html +983 -0
  567. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintContext.html +50 -53
  568. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintJob.html +14 -17
  569. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintSettings.html +12 -15
  570. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrintUnixDialog.html +14 -17
  571. data/vendor/local/share/gtk-doc/html/gtk3/GtkPrinter.html +12 -15
  572. data/vendor/local/share/gtk-doc/html/gtk3/GtkProgressBar.html +24 -27
  573. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioAction.html +53 -16
  574. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioButton.html +13 -16
  575. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioMenuItem.html +14 -17
  576. data/vendor/local/share/gtk-doc/html/gtk3/GtkRadioToolButton.html +22 -20
  577. data/vendor/local/share/gtk-doc/html/gtk3/GtkRange.html +13 -16
  578. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentAction.html +36 -17
  579. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooser.html +18 -23
  580. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserDialog.html +15 -18
  581. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserMenu.html +12 -15
  582. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentChooserWidget.html +12 -15
  583. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentFilter.html +13 -16
  584. data/vendor/local/share/gtk-doc/html/gtk3/GtkRecentManager.html +19 -22
  585. data/vendor/local/share/gtk-doc/html/gtk3/GtkRevealer.html +437 -0
  586. data/vendor/local/share/gtk-doc/html/gtk3/GtkScale.html +21 -24
  587. data/vendor/local/share/gtk-doc/html/gtk3/GtkScaleButton.html +13 -16
  588. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollable.html +13 -16
  589. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrollbar.html +13 -16
  590. data/vendor/local/share/gtk-doc/html/gtk3/GtkScrolledWindow.html +25 -24
  591. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchBar.html +514 -0
  592. data/vendor/local/share/gtk-doc/html/gtk3/GtkSearchEntry.html +57 -16
  593. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparator.html +12 -15
  594. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorMenuItem.html +12 -15
  595. data/vendor/local/share/gtk-doc/html/gtk3/GtkSeparatorToolItem.html +12 -15
  596. data/vendor/local/share/gtk-doc/html/gtk3/GtkSettings.html +191 -47
  597. data/vendor/local/share/gtk-doc/html/gtk3/GtkSizeGroup.html +13 -16
  598. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinButton.html +14 -17
  599. data/vendor/local/share/gtk-doc/html/gtk3/GtkSpinner.html +14 -17
  600. data/vendor/local/share/gtk-doc/html/gtk3/GtkStack.html +708 -0
  601. data/vendor/local/share/gtk-doc/html/gtk3/GtkStackSwitcher.html +195 -0
  602. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusIcon.html +32 -19
  603. data/vendor/local/share/gtk-doc/html/gtk3/GtkStatusbar.html +14 -17
  604. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyle.html +108 -111
  605. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleContext.html +230 -108
  606. data/vendor/local/share/gtk-doc/html/gtk3/GtkStyleProvider.html +15 -18
  607. data/vendor/local/share/gtk-doc/html/gtk3/GtkSwitch.html +14 -17
  608. data/vendor/local/share/gtk-doc/html/gtk3/GtkTable.html +28 -31
  609. data/vendor/local/share/gtk-doc/html/gtk3/GtkTearoffMenuItem.html +14 -17
  610. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextBuffer.html +42 -34
  611. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextIter.html +67 -45
  612. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextMark.html +14 -17
  613. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTag.html +84 -133
  614. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextTagTable.html +17 -19
  615. data/vendor/local/share/gtk-doc/html/gtk3/GtkTextView.html +76 -33
  616. data/vendor/local/share/gtk-doc/html/gtk3/GtkThemingEngine.html +32 -26
  617. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleAction.html +49 -16
  618. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleButton.html +13 -16
  619. data/vendor/local/share/gtk-doc/html/gtk3/GtkToggleToolButton.html +17 -17
  620. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolButton.html +29 -18
  621. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItem.html +15 -18
  622. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolItemGroup.html +20 -23
  623. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolPalette.html +20 -22
  624. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolShell.html +14 -17
  625. data/vendor/local/share/gtk-doc/html/gtk3/GtkToolbar.html +15 -18
  626. data/vendor/local/share/gtk-doc/html/gtk3/GtkTooltip.html +19 -18
  627. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModel.html +17 -20
  628. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelFilter.html +12 -15
  629. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeModelSort.html +15 -18
  630. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSelection.html +12 -15
  631. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeSortable.html +12 -15
  632. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeStore.html +13 -16
  633. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeView.html +23 -26
  634. data/vendor/local/share/gtk-doc/html/gtk3/GtkTreeViewColumn.html +16 -19
  635. data/vendor/local/share/gtk-doc/html/gtk3/GtkUIManager.html +114 -25
  636. data/vendor/local/share/gtk-doc/html/gtk3/GtkVBox.html +17 -20
  637. data/vendor/local/share/gtk-doc/html/gtk3/GtkVButtonBox.html +13 -16
  638. data/vendor/local/share/gtk-doc/html/gtk3/GtkVPaned.html +13 -16
  639. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScale.html +14 -17
  640. data/vendor/local/share/gtk-doc/html/gtk3/GtkVScrollbar.html +14 -17
  641. data/vendor/local/share/gtk-doc/html/gtk3/GtkVSeparator.html +13 -16
  642. data/vendor/local/share/gtk-doc/html/gtk3/GtkViewport.html +16 -19
  643. data/vendor/local/share/gtk-doc/html/gtk3/GtkVolumeButton.html +13 -16
  644. data/vendor/local/share/gtk-doc/html/gtk3/GtkWidget.html +1137 -138
  645. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindow.html +113 -30
  646. data/vendor/local/share/gtk-doc/html/gtk3/GtkWindowGroup.html +13 -16
  647. data/vendor/local/share/gtk-doc/html/gtk3/LayoutContainers.html +35 -20
  648. data/vendor/local/share/gtk-doc/html/gtk3/MenusAndCombos.html +10 -13
  649. data/vendor/local/share/gtk-doc/html/gtk3/MiscObjects.html +10 -10
  650. data/vendor/local/share/gtk-doc/html/gtk3/NumericEntry.html +14 -11
  651. data/vendor/local/share/gtk-doc/html/gtk3/Ornaments.html +11 -11
  652. data/vendor/local/share/gtk-doc/html/gtk3/PlugSocket.html +13 -13
  653. data/vendor/local/share/gtk-doc/html/gtk3/Printing.html +10 -10
  654. data/vendor/local/share/gtk-doc/html/gtk3/RecentDocuments.html +11 -11
  655. data/vendor/local/share/gtk-doc/html/gtk3/ScrollingWidgets.html +10 -10
  656. data/vendor/local/share/gtk-doc/html/gtk3/SelectorWidgets.html +14 -11
  657. data/vendor/local/share/gtk-doc/html/gtk3/TextWidget.html +17 -17
  658. data/vendor/local/share/gtk-doc/html/gtk3/TextWidgetObjects.html +10 -10
  659. data/vendor/local/share/gtk-doc/html/gtk3/TreeWidget.html +15 -15
  660. data/vendor/local/share/gtk-doc/html/gtk3/TreeWidgetObjects.html +10 -10
  661. data/vendor/local/share/gtk-doc/html/gtk3/WindowWidgets.html +17 -17
  662. data/vendor/local/share/gtk-doc/html/gtk3/aboutdialog.png +0 -0
  663. data/vendor/local/share/gtk-doc/html/gtk3/accel-label.png +0 -0
  664. data/vendor/local/share/gtk-doc/html/gtk3/annotation-glossary.html +41 -59
  665. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-0.html +41 -44
  666. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-10.html +666 -0
  667. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-2.html +39 -42
  668. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-4.html +31 -34
  669. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-6.html +27 -30
  670. data/vendor/local/share/gtk-doc/html/gtk3/api-index-3-8.html +24 -27
  671. data/vendor/local/share/gtk-doc/html/gtk3/api-index-deprecated.html +1825 -224
  672. data/vendor/local/share/gtk-doc/html/gtk3/api-index-full.html +917 -112
  673. data/vendor/local/share/gtk-doc/html/gtk3/appchooserbutton.png +0 -0
  674. data/vendor/local/share/gtk-doc/html/gtk3/appchooserdialog.png +0 -0
  675. data/vendor/local/share/gtk-doc/html/gtk3/assistant.png +0 -0
  676. data/vendor/local/share/gtk-doc/html/gtk3/broadwayd.html +10 -10
  677. data/vendor/local/share/gtk-doc/html/gtk3/button.png +0 -0
  678. data/vendor/local/share/gtk-doc/html/gtk3/ch01s02.html +130 -0
  679. data/vendor/local/share/gtk-doc/html/gtk3/ch01s03.html +248 -0
  680. data/vendor/local/share/gtk-doc/html/gtk3/ch01s04.html +157 -0
  681. data/vendor/local/share/gtk-doc/html/gtk3/ch01s05.html +1773 -0
  682. data/vendor/local/share/gtk-doc/html/gtk3/ch02.html +20 -14
  683. data/vendor/local/share/gtk-doc/html/gtk3/ch03.html +232 -156
  684. data/vendor/local/share/gtk-doc/html/gtk3/{ch25s02.html → ch24s02.html} +47 -47
  685. data/vendor/local/share/gtk-doc/html/gtk3/{ch27s02.html → ch26s02.html} +9 -9
  686. data/vendor/local/share/gtk-doc/html/gtk3/{ch29s02.html → ch28s02.html} +11 -11
  687. data/vendor/local/share/gtk-doc/html/gtk3/{ch29s03.html → ch28s03.html} +11 -11
  688. data/vendor/local/share/gtk-doc/html/gtk3/chap-drawing-model.html +10 -10
  689. data/vendor/local/share/gtk-doc/html/gtk3/check-button.png +0 -0
  690. data/vendor/local/share/gtk-doc/html/gtk3/checklist-gdkeventexpose-region.html +9 -9
  691. data/vendor/local/share/gtk-doc/html/gtk3/checklist-modifiers.html +9 -9
  692. data/vendor/local/share/gtk-doc/html/gtk3/checklist-named-icons.html +9 -9
  693. data/vendor/local/share/gtk-doc/html/gtk3/color-button.png +0 -0
  694. data/vendor/local/share/gtk-doc/html/gtk3/colorchooser.png +0 -0
  695. data/vendor/local/share/gtk-doc/html/gtk3/combo-box-entry.png +0 -0
  696. data/vendor/local/share/gtk-doc/html/gtk3/combo-box-text.png +0 -0
  697. data/vendor/local/share/gtk-doc/html/gtk3/combo-box.png +0 -0
  698. data/vendor/local/share/gtk-doc/html/gtk3/drawing.png +0 -0
  699. data/vendor/local/share/gtk-doc/html/gtk3/entry.png +0 -0
  700. data/vendor/local/share/gtk-doc/html/gtk3/exampleapp.png +0 -0
  701. data/vendor/local/share/gtk-doc/html/gtk3/file-button.png +0 -0
  702. data/vendor/local/share/gtk-doc/html/gtk3/filechooser.png +0 -0
  703. data/vendor/local/share/gtk-doc/html/gtk3/font-button.png +0 -0
  704. data/vendor/local/share/gtk-doc/html/gtk3/fontchooser.png +0 -0
  705. data/vendor/local/share/gtk-doc/html/gtk3/frame.png +0 -0
  706. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app1.png +0 -0
  707. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app2.png +0 -0
  708. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app3.png +0 -0
  709. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app4.png +0 -0
  710. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app6.png +0 -0
  711. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app7.png +0 -0
  712. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app8.png +0 -0
  713. data/vendor/local/share/gtk-doc/html/gtk3/getting-started-app9.png +0 -0
  714. data/vendor/local/share/gtk-doc/html/gtk3/glossary.html +10 -10
  715. data/vendor/local/share/gtk-doc/html/gtk3/grid-packing.png +0 -0
  716. data/vendor/local/share/gtk-doc/html/gtk3/gtk-broadway.html +11 -11
  717. data/vendor/local/share/gtk-doc/html/gtk3/gtk-building.html +20 -12
  718. data/vendor/local/share/gtk-doc/html/gtk3/gtk-compiling.html +15 -15
  719. data/vendor/local/share/gtk-doc/html/gtk3/gtk-getting-started.html +147 -965
  720. data/vendor/local/share/gtk-doc/html/gtk3/gtk-launch.html +9 -9
  721. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-2-to-3.html +67 -67
  722. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkGrid.html +13 -13
  723. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-bonus-points.html +11 -11
  724. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-checklist.html +12 -12
  725. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-css.html +11 -11
  726. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parser-extensions.html +9 -9
  727. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext-parsing.html +10 -10
  728. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-GtkStyleContext.html +10 -10
  729. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-checklist.html +12 -12
  730. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-smclient-GtkApplication.html +10 -10
  731. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-theme-GtkStyleContext-engines.html +10 -10
  732. data/vendor/local/share/gtk-doc/html/gtk3/gtk-migrating-unique-GtkApplication.html +12 -12
  733. data/vendor/local/share/gtk-doc/html/gtk3/gtk-osx.html +11 -11
  734. data/vendor/local/share/gtk-doc/html/gtk3/gtk-query-immodules-3.0.html +9 -9
  735. data/vendor/local/share/gtk-doc/html/gtk3/gtk-question-index.html +65 -65
  736. data/vendor/local/share/gtk-doc/html/gtk3/gtk-resources.html +13 -13
  737. data/vendor/local/share/gtk-doc/html/gtk3/gtk-running.html +19 -16
  738. data/vendor/local/share/gtk-doc/html/gtk3/gtk-update-icon-cache.html +9 -9
  739. data/vendor/local/share/gtk-doc/html/gtk3/gtk-wayland.html +12 -12
  740. data/vendor/local/share/gtk-doc/html/gtk3/gtk-windows.html +11 -11
  741. data/vendor/local/share/gtk-doc/html/gtk3/gtk-x11.html +27 -12
  742. data/vendor/local/share/gtk-doc/html/gtk3/gtk.html +26 -49
  743. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Accelerator-Maps.html +14 -17
  744. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Bindings.html +20 -23
  745. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Clipboards.html +17 -18
  746. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Drag-and-Drop.html +32 -56
  747. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Feature-Test-Macros.html +17 -20
  748. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Filesystem-utilities.html +14 -17
  749. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-General.html +26 -29
  750. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkGradient.html +24 -27
  751. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkPlug.html +303 -0
  752. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSocket.html +273 -0
  753. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkStyleProperties.html +17 -20
  754. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkSymbolicColor.html +22 -25
  755. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkTreeView-drag-and-drop.html +12 -15
  756. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-GtkWidgetPath.html +16 -19
  757. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-High-level-Printing-API.html +29 -32
  758. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html +18 -18
  759. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Orientable.html +15 -18
  760. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Resource-Files.html +45 -48
  761. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Selections.html +15 -18
  762. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Standard-Enumerations.html +13 -16
  763. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Stock-Items.html +568 -123
  764. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Testing.html +40 -16
  765. data/vendor/local/share/gtk-doc/html/gtk3/gtk3-Themeable-Stock-Images.html +248 -27
  766. data/vendor/local/share/gtk-doc/html/gtk3/gtk3.devhelp2 +6347 -6099
  767. data/vendor/local/share/gtk-doc/html/gtk3/gtkbase.html +11 -14
  768. data/vendor/local/share/gtk-doc/html/gtk3/gtkobjects.html +139 -118
  769. data/vendor/local/share/gtk-doc/html/gtk3/headerbar.png +0 -0
  770. data/vendor/local/share/gtk-doc/html/gtk3/hello-world.png +0 -0
  771. data/vendor/local/share/gtk-doc/html/gtk3/home.png +0 -0
  772. data/vendor/local/share/gtk-doc/html/gtk3/icon-view.png +0 -0
  773. data/vendor/local/share/gtk-doc/html/gtk3/image.png +0 -0
  774. data/vendor/local/share/gtk-doc/html/gtk3/index.html +248 -209
  775. data/vendor/local/share/gtk-doc/html/gtk3/index.sgml +5994 -5707
  776. data/vendor/local/share/gtk-doc/html/gtk3/info-bar.png +0 -0
  777. data/vendor/local/share/gtk-doc/html/gtk3/label.png +0 -0
  778. data/vendor/local/share/gtk-doc/html/gtk3/left-insensitive.png +0 -0
  779. data/vendor/local/share/gtk-doc/html/gtk3/left.png +0 -0
  780. data/vendor/local/share/gtk-doc/html/gtk3/levelbar.png +0 -0
  781. data/vendor/local/share/gtk-doc/html/gtk3/link-button.png +0 -0
  782. data/vendor/local/share/gtk-doc/html/gtk3/list-and-tree.png +0 -0
  783. data/vendor/local/share/gtk-doc/html/gtk3/list-box.png +0 -0
  784. data/vendor/local/share/gtk-doc/html/gtk3/lock-button.png +0 -0
  785. data/vendor/local/share/gtk-doc/html/gtk3/menu-button.png +0 -0
  786. data/vendor/local/share/gtk-doc/html/gtk3/menubar.png +0 -0
  787. data/vendor/local/share/gtk-doc/html/gtk3/messagedialog.png +0 -0
  788. data/vendor/local/share/gtk-doc/html/gtk3/migrating.html +31 -31
  789. data/vendor/local/share/gtk-doc/html/gtk3/multiline-text.png +0 -0
  790. data/vendor/local/share/gtk-doc/html/gtk3/notebook.png +0 -0
  791. data/vendor/local/share/gtk-doc/html/gtk3/pagesetupdialog.png +0 -0
  792. data/vendor/local/share/gtk-doc/html/gtk3/panes.png +0 -0
  793. data/vendor/local/share/gtk-doc/html/gtk3/placessidebar.png +0 -0
  794. data/vendor/local/share/gtk-doc/html/gtk3/platform-support.html +75 -0
  795. data/vendor/local/share/gtk-doc/html/gtk3/printdialog.png +0 -0
  796. data/vendor/local/share/gtk-doc/html/gtk3/progressbar.png +0 -0
  797. data/vendor/local/share/gtk-doc/html/gtk3/pt06.html +9 -9
  798. data/vendor/local/share/gtk-doc/html/gtk3/radio-group.png +0 -0
  799. data/vendor/local/share/gtk-doc/html/gtk3/recentchooserdialog.png +0 -0
  800. data/vendor/local/share/gtk-doc/html/gtk3/right-insensitive.png +0 -0
  801. data/vendor/local/share/gtk-doc/html/gtk3/right.png +0 -0
  802. data/vendor/local/share/gtk-doc/html/gtk3/scales.png +0 -0
  803. data/vendor/local/share/gtk-doc/html/gtk3/scrollbar.png +0 -0
  804. data/vendor/local/share/gtk-doc/html/gtk3/scrolledwindow.png +0 -0
  805. data/vendor/local/share/gtk-doc/html/gtk3/search-entry.png +0 -0
  806. data/vendor/local/share/gtk-doc/html/gtk3/separator.png +0 -0
  807. data/vendor/local/share/gtk-doc/html/gtk3/spinbutton.png +0 -0
  808. data/vendor/local/share/gtk-doc/html/gtk3/spinner.png +0 -0
  809. data/vendor/local/share/gtk-doc/html/gtk3/stack.png +0 -0
  810. data/vendor/local/share/gtk-doc/html/gtk3/stackswitcher.png +0 -0
  811. data/vendor/local/share/gtk-doc/html/gtk3/statusbar.png +0 -0
  812. data/vendor/local/share/gtk-doc/html/gtk3/style.css +71 -16
  813. data/vendor/local/share/gtk-doc/html/gtk3/switch.png +0 -0
  814. data/vendor/local/share/gtk-doc/html/gtk3/theming.html +10 -10
  815. data/vendor/local/share/gtk-doc/html/gtk3/toggle-button.png +0 -0
  816. data/vendor/local/share/gtk-doc/html/gtk3/toolbar.png +0 -0
  817. data/vendor/local/share/gtk-doc/html/gtk3/toolpalette.png +0 -0
  818. data/vendor/local/share/gtk-doc/html/gtk3/up-insensitive.png +0 -0
  819. data/vendor/local/share/gtk-doc/html/gtk3/up.png +0 -0
  820. data/vendor/local/share/gtk-doc/html/gtk3/volumebutton.png +0 -0
  821. data/vendor/local/share/gtk-doc/html/gtk3/window-default.png +0 -0
  822. data/vendor/local/share/gtk-doc/html/gtk3/window.png +0 -0
  823. data/vendor/local/share/locale/af/LC_MESSAGES/gtk30.mo +0 -0
  824. data/vendor/local/share/locale/an/LC_MESSAGES/gtk30.mo +0 -0
  825. data/vendor/local/share/locale/ar/LC_MESSAGES/gtk30.mo +0 -0
  826. data/vendor/local/share/locale/as/LC_MESSAGES/gtk30-properties.mo +0 -0
  827. data/vendor/local/share/locale/as/LC_MESSAGES/gtk30.mo +0 -0
  828. data/vendor/local/share/locale/be/LC_MESSAGES/gtk30.mo +0 -0
  829. data/vendor/local/share/locale/bg/LC_MESSAGES/gtk30.mo +0 -0
  830. data/vendor/local/share/locale/bn/LC_MESSAGES/gtk30.mo +0 -0
  831. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gtk30.mo +0 -0
  832. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30-properties.mo +0 -0
  833. data/vendor/local/share/locale/ca/LC_MESSAGES/gtk30.mo +0 -0
  834. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30-properties.mo +0 -0
  835. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gtk30.mo +0 -0
  836. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30-properties.mo +0 -0
  837. data/vendor/local/share/locale/cs/LC_MESSAGES/gtk30.mo +0 -0
  838. data/vendor/local/share/locale/da/LC_MESSAGES/gtk30-properties.mo +0 -0
  839. data/vendor/local/share/locale/da/LC_MESSAGES/gtk30.mo +0 -0
  840. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30-properties.mo +0 -0
  841. data/vendor/local/share/locale/de/LC_MESSAGES/gtk30.mo +0 -0
  842. data/vendor/local/share/locale/el/LC_MESSAGES/gtk30-properties.mo +0 -0
  843. data/vendor/local/share/locale/el/LC_MESSAGES/gtk30.mo +0 -0
  844. data/vendor/local/share/locale/en/LC_MESSAGES/gtk30.mo +0 -0
  845. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gtk30.mo +0 -0
  846. data/vendor/local/share/locale/eo/LC_MESSAGES/gtk30.mo +0 -0
  847. data/vendor/local/share/locale/es/LC_MESSAGES/gtk30-properties.mo +0 -0
  848. data/vendor/local/share/locale/es/LC_MESSAGES/gtk30.mo +0 -0
  849. data/vendor/local/share/locale/et/LC_MESSAGES/gtk30.mo +0 -0
  850. data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30-properties.mo +0 -0
  851. data/vendor/local/share/locale/eu/LC_MESSAGES/gtk30.mo +0 -0
  852. data/vendor/local/share/locale/fa/LC_MESSAGES/gtk30.mo +0 -0
  853. data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30-properties.mo +0 -0
  854. data/vendor/local/share/locale/fi/LC_MESSAGES/gtk30.mo +0 -0
  855. data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30-properties.mo +0 -0
  856. data/vendor/local/share/locale/fr/LC_MESSAGES/gtk30.mo +0 -0
  857. data/vendor/local/share/locale/ga/LC_MESSAGES/gtk30.mo +0 -0
  858. data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30-properties.mo +0 -0
  859. data/vendor/local/share/locale/gd/LC_MESSAGES/gtk30.mo +0 -0
  860. data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30-properties.mo +0 -0
  861. data/vendor/local/share/locale/gl/LC_MESSAGES/gtk30.mo +0 -0
  862. data/vendor/local/share/locale/gu/LC_MESSAGES/gtk30.mo +0 -0
  863. data/vendor/local/share/locale/he/LC_MESSAGES/gtk30-properties.mo +0 -0
  864. data/vendor/local/share/locale/he/LC_MESSAGES/gtk30.mo +0 -0
  865. data/vendor/local/share/locale/hi/LC_MESSAGES/gtk30.mo +0 -0
  866. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30-properties.mo +0 -0
  867. data/vendor/local/share/locale/hu/LC_MESSAGES/gtk30.mo +0 -0
  868. data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30-properties.mo +0 -0
  869. data/vendor/local/share/locale/ia/LC_MESSAGES/gtk30.mo +0 -0
  870. data/vendor/local/share/locale/id/LC_MESSAGES/gtk30-properties.mo +0 -0
  871. data/vendor/local/share/locale/id/LC_MESSAGES/gtk30.mo +0 -0
  872. data/vendor/local/share/locale/it/LC_MESSAGES/gtk30-properties.mo +0 -0
  873. data/vendor/local/share/locale/it/LC_MESSAGES/gtk30.mo +0 -0
  874. data/vendor/local/share/locale/ja/LC_MESSAGES/gtk30.mo +0 -0
  875. data/vendor/local/share/locale/kk/LC_MESSAGES/gtk30.mo +0 -0
  876. data/vendor/local/share/locale/km/LC_MESSAGES/gtk30.mo +0 -0
  877. data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30-properties.mo +0 -0
  878. data/vendor/local/share/locale/kn/LC_MESSAGES/gtk30.mo +0 -0
  879. data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30-properties.mo +0 -0
  880. data/vendor/local/share/locale/ko/LC_MESSAGES/gtk30.mo +0 -0
  881. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30-properties.mo +0 -0
  882. data/vendor/local/share/locale/lt/LC_MESSAGES/gtk30.mo +0 -0
  883. data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30-properties.mo +0 -0
  884. data/vendor/local/share/locale/lv/LC_MESSAGES/gtk30.mo +0 -0
  885. data/vendor/local/share/locale/ml/LC_MESSAGES/gtk30.mo +0 -0
  886. data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30-properties.mo +0 -0
  887. data/vendor/local/share/locale/mr/LC_MESSAGES/gtk30.mo +0 -0
  888. data/vendor/local/share/locale/nb/LC_MESSAGES/gtk30.mo +0 -0
  889. data/vendor/local/share/locale/nl/LC_MESSAGES/gtk30.mo +0 -0
  890. data/vendor/local/share/locale/nn/LC_MESSAGES/gtk30.mo +0 -0
  891. data/vendor/local/share/locale/or/LC_MESSAGES/gtk30.mo +0 -0
  892. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30-properties.mo +0 -0
  893. data/vendor/local/share/locale/pa/LC_MESSAGES/gtk30.mo +0 -0
  894. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30-properties.mo +0 -0
  895. data/vendor/local/share/locale/pl/LC_MESSAGES/gtk30.mo +0 -0
  896. data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30-properties.mo +0 -0
  897. data/vendor/local/share/locale/pt/LC_MESSAGES/gtk30.mo +0 -0
  898. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30-properties.mo +0 -0
  899. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gtk30.mo +0 -0
  900. data/vendor/local/share/locale/ro/LC_MESSAGES/gtk30.mo +0 -0
  901. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30-properties.mo +0 -0
  902. data/vendor/local/share/locale/ru/LC_MESSAGES/gtk30.mo +0 -0
  903. data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30-properties.mo +0 -0
  904. data/vendor/local/share/locale/sk/LC_MESSAGES/gtk30.mo +0 -0
  905. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30-properties.mo +0 -0
  906. data/vendor/local/share/locale/sl/LC_MESSAGES/gtk30.mo +0 -0
  907. data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30-properties.mo +0 -0
  908. data/vendor/local/share/locale/sr/LC_MESSAGES/gtk30.mo +0 -0
  909. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30-properties.mo +0 -0
  910. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gtk30.mo +0 -0
  911. data/vendor/local/share/locale/sv/LC_MESSAGES/gtk30.mo +0 -0
  912. data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30-properties.mo +0 -0
  913. data/vendor/local/share/locale/ta/LC_MESSAGES/gtk30.mo +0 -0
  914. data/vendor/local/share/locale/te/LC_MESSAGES/gtk30.mo +0 -0
  915. data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30-properties.mo +0 -0
  916. data/vendor/local/share/locale/tg/LC_MESSAGES/gtk30.mo +0 -0
  917. data/vendor/local/share/locale/th/LC_MESSAGES/gtk30.mo +0 -0
  918. data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30-properties.mo +0 -0
  919. data/vendor/local/share/locale/ug/LC_MESSAGES/gtk30.mo +0 -0
  920. data/vendor/local/share/locale/uk/LC_MESSAGES/gtk30.mo +0 -0
  921. data/vendor/local/share/locale/vi/LC_MESSAGES/gtk30.mo +0 -0
  922. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30-properties.mo +0 -0
  923. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gtk30.mo +0 -0
  924. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30-properties.mo +0 -0
  925. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gtk30.mo +0 -0
  926. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30-properties.mo +0 -0
  927. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gtk30.mo +0 -0
  928. data/vendor/local/share/man/man1/broadwayd.1 +1 -1
  929. data/vendor/local/share/man/man1/gtk-launch.1 +1 -1
  930. data/vendor/local/share/man/man1/gtk-query-immodules-3.0.1 +1 -1
  931. data/vendor/local/share/man/man1/gtk-update-icon-cache.1 +1 -1
  932. metadata +86 -39
  933. data/vendor/local/lib/gdk-win32-3.0.def +0 -539
  934. data/vendor/local/lib/gtk-win32-3.0.def +0 -3875
  935. data/vendor/local/share/gtk-doc/html/gtk3/Actions.html +0 -53
  936. data/vendor/local/share/gtk-doc/html/gtk3/GtkPlug.html +0 -388
  937. data/vendor/local/share/gtk-doc/html/gtk3/GtkSocket.html +0 -362
  938. data/vendor/local/share/gtk-doc/html/gtk3/colorsel.png +0 -0
  939. data/vendor/local/share/gtk-doc/html/gtk3/fontsel.png +0 -0
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Test for modifier keys correctly</title>
5
+ <title>GTK+ 3 Reference Manual: Test for modifier keys correctly</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
8
  <link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
9
9
  <link rel="prev" href="checklist-gdkeventexpose-region.html" title="Use GdkEventExpose.region">
10
10
  <link rel="next" href="checklist-named-icons.html" title="Use named icons">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="checklist-gdkeventexpose-region.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="checklist-named-icons.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="checklist-gdkeventexpose-region.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="checklist-named-icons.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="section">
23
23
  <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@@ -84,6 +84,6 @@ my_widget_key_press_event_handler (GtkWidget *widget, GdkEventKey *event)
84
84
  </div>
85
85
  <div class="footer">
86
86
  <hr>
87
- Generated by GTK-Doc V1.18.1</div>
87
+ Generated by GTK-Doc V1.19.1</div>
88
88
  </body>
89
89
  </html>
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Use named icons</title>
5
+ <title>GTK+ 3 Reference Manual: Use named icons</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
8
  <link rel="up" href="gtk-migrating-checklist.html" title="Migration Details Checklist">
9
9
  <link rel="prev" href="checklist-modifiers.html" title="Test for modifier keys correctly">
10
10
  <link rel="next" href="pt06.html" title="Part VI. GTK+ Tools">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="checklist-modifiers.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="pt06.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="gtk-migrating-checklist.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="checklist-modifiers.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="pt06.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="section">
23
23
  <div class="titlepage"><div><div><h2 class="title" style="clear: both">
@@ -35,6 +35,6 @@
35
35
  </div>
36
36
  <div class="footer">
37
37
  <hr>
38
- Generated by GTK-Doc V1.18.1</div>
38
+ Generated by GTK-Doc V1.19.1</div>
39
39
  </body>
40
40
  </html>
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Glossary</title>
5
+ <title>GTK+ 3 Reference Manual: Glossary</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
8
  <link rel="up" href="index.html" title="GTK+ 3 Reference Manual">
9
- <link rel="prev" href="broadwayd.html" title="broadwayd">
9
+ <link rel="prev" href="gtk-wayland.html" title="Using GTK+ with Wayland">
10
10
  <link rel="next" href="api-index-full.html" title="Index of all symbols">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="broadwayd.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td> </td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
19
+ <td><a accesskey="p" href="gtk-wayland.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="glossary">
23
23
  <div class="titlepage"><div><div><h1 class="title">
@@ -330,6 +330,6 @@
330
330
  </div>
331
331
  <div class="footer">
332
332
  <hr>
333
- Generated by GTK-Doc V1.18.1</div>
333
+ Generated by GTK-Doc V1.19.1</div>
334
334
  </body>
335
335
  </html>
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Using GTK+ with Broadway</title>
5
+ <title>GTK+ 3 Reference Manual: Using GTK+ with Broadway</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
- <link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
8
+ <link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
9
9
  <link rel="prev" href="gtk-osx.html" title="Using GTK+ on Mac OS X">
10
10
  <link rel="next" href="gtk-wayland.html" title="Using GTK+ with Wayland">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="gtk-osx.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="gtk-wayland.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="gtk-osx.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="gtk-wayland.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="refentry">
23
23
  <a name="gtk-broadway"></a><div class="titlepage"></div>
@@ -31,7 +31,7 @@ HTML-specific aspects of using GTK+
31
31
  <td valign="top" align="right"></td>
32
32
  </tr></table></div>
33
33
  <div class="refsect1">
34
- <a name="id-1.2.10.3"></a><h2>Using GTK+ with Broadway</h2>
34
+ <a name="id-1.8.8.3"></a><h2>Using GTK+ with Broadway</h2>
35
35
  <p>
36
36
  The GDK Broadway backend provides support for displaying GTK+
37
37
  applications in a web browser, using HTML5 and web sockets. To run
@@ -81,6 +81,6 @@ BROADWAY_DISPLAY=:5 gtk3-demo
81
81
  </div>
82
82
  <div class="footer">
83
83
  <hr>
84
- Generated by GTK-Doc V1.18.1</div>
84
+ Generated by GTK-Doc V1.19.1</div>
85
85
  </body>
86
86
  </html>
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Compiling the GTK+ libraries</title>
5
+ <title>GTK+ 3 Reference Manual: Compiling the GTK+ libraries</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
- <link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
9
- <link rel="prev" href="gtk-getting-started.html" title="Getting Started with GTK+">
8
+ <link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
9
+ <link rel="prev" href="platform-support.html" title="Part VII. GTK+ Platform Support">
10
10
  <link rel="next" href="gtk-compiling.html" title="Compiling GTK+ Applications">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="gtk-getting-started.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="gtk-compiling.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="platform-support.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="gtk-compiling.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="refentry">
23
23
  <a name="gtk-building"></a><div class="titlepage"></div>
@@ -302,7 +302,7 @@ How to compile GTK+ itself
302
302
  the documentation distributed with the those libraries.)
303
303
 
304
304
  </p>
305
- <div class="cmdsynopsis"><p><code class="command">configure</code> <br> [ --disable-modules | --enable-modules ]<br> [[--with-included-immodules=MODULE1,MODULE2,...]]<br> [ --enable-debug=[no/minimum/yes] ]<br> [ --disable-Bsymbolic | --enable-Bsymbolic ]<br> [ --disable-xkb | --enable-xkb ]<br> [ --disable-xinerama | --enable-xinerama ]<br> [ --disable-gtk-doc | --enable-gtk-doc ]<br> [ --disable-cups | --enable-cups ]<br> [ --disable-papi | --enable-papi ]<br> [ --enable-xinput | --disable-xinput ]<br> [ --enable-packagekit | --disable-packagekit ]<br> [ --enable-x11-backend | --disable-x11-backend ]<br> [ --enable-win32-backend | --disable-win32-backend ]<br> [ --enable-quartz-backend | --disable-quartz-backend ]<br> [ --enable-broadway-backend | --disable-broadway-backend ]<br> [ --enable-wayland-backend | --disable-wayland-backend ]<br> [ --enable-introspection=[no/auto/yes] ]<br> [ --enable-gtk2-dependency | --disable-gtk2-dependency ]</p></div>
305
+ <div class="cmdsynopsis"><p><code class="command">configure</code> <br> [ --disable-modules | --enable-modules ]<br> [[--with-included-immodules=MODULE1,MODULE2,...]]<br> [ --enable-debug=[no/minimum/yes] ]<br> [ --disable-Bsymbolic | --enable-Bsymbolic ]<br> [ --disable-xkb | --enable-xkb ]<br> [ --disable-xinerama | --enable-xinerama ]<br> [ --disable-gtk-doc | --enable-gtk-doc ]<br> [ --disable-cups | --enable-cups ]<br> [ --disable-papi | --enable-papi ]<br> [ --enable-xinput | --disable-xinput ]<br> [ --enable-packagekit | --disable-packagekit ]<br> [ --enable-x11-backend | --disable-x11-backend ]<br> [ --enable-win32-backend | --disable-win32-backend ]<br> [ --enable-quartz-backend | --disable-quartz-backend ]<br> [ --enable-broadway-backend | --disable-broadway-backend ]<br> [ --enable-wayland-backend | --disable-wayland-backend ]<br> [ --enable-introspection=[no/auto/yes] ]<br> [ --enable-gtk2-dependency | --disable-gtk2-dependency ]<br> [ --enable-installed-tests | --disable-installed-tests ]</p></div>
306
306
  <p>
307
307
  </p>
308
308
  <p><b><code class="systemitem">--disable-modules</code> and
@@ -454,10 +454,18 @@ How to compile GTK+ itself
454
454
  avoid file conflicts between these packages.
455
455
  The default is to build gtk-update-icon-cache.
456
456
  </p>
457
+ <p><b><code class="systemitem">--enable-installed-tests</code> or
458
+ <code class="systemitem">--disable-installed-tests</code>. </b>
459
+ Whether to install tests on the system. If enabled, tests
460
+ and their data are installed in <code class="filename">${libexecdir}/gtk+/installed-tests</code>.
461
+ Metadata for the tests is installed in <code class="filename">${prefix}/share/installed-tests/gtk+</code>.
462
+ To run the installed tests, gnome-desktop-testing-runner
463
+ can be used.
464
+ </p>
457
465
  </div>
458
466
  </div>
459
467
  <div class="footer">
460
468
  <hr>
461
- Generated by GTK-Doc V1.18.1</div>
469
+ Generated by GTK-Doc V1.19.1</div>
462
470
  </body>
463
471
  </html>
@@ -2,22 +2,22 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Compiling GTK+ Applications</title>
5
+ <title>GTK+ 3 Reference Manual: Compiling GTK+ Applications</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
- <link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
8
+ <link rel="up" href="platform-support.html" title="Part VII. GTK+ Platform Support">
9
9
  <link rel="prev" href="gtk-building.html" title="Compiling the GTK+ libraries">
10
10
  <link rel="next" href="gtk-running.html" title="Running GTK+ Applications">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="gtk-building.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="gtk-running.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="platform-support.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="gtk-building.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="gtk-running.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="refentry">
23
23
  <a name="gtk-compiling"></a><div class="titlepage"></div>
@@ -31,7 +31,7 @@ How to compile your GTK+ application
31
31
  <td valign="top" align="right"></td>
32
32
  </tr></table></div>
33
33
  <div class="refsect1">
34
- <a name="id-1.2.5.3"></a><h2>Compiling GTK+ Applications on UNIX</h2>
34
+ <a name="id-1.8.3.3"></a><h2>Compiling GTK+ Applications on UNIX</h2>
35
35
  <p>
36
36
  To compile a GTK+ application, you need to tell the compiler where to
37
37
  find the GTK+ header files and libraries. This is done with the
@@ -58,7 +58,7 @@ substituted into the command line before execution. So to compile
58
58
  a GTK+ Hello, World, you would type the following:
59
59
  </p>
60
60
  <pre class="programlisting">
61
- $ cc `pkg-config --cflags --libs gtk+-3.0` hello.c -o hello
61
+ $ cc `pkg-config --cflags gtk+-3.0` hello.c -o hello `pkg-config --libs gtk+-3.0`
62
62
  </pre>
63
63
  <p>
64
64
  </p>
@@ -82,7 +82,7 @@ Here is how you would compile hello.c if you want to allow it
82
82
  to use symbols that were not deprecated in 3.2:
83
83
  </p>
84
84
  <pre class="programlisting">
85
- $ cc -DGDK_VERSION_MIN_REQUIRED=GDK_VERSION_3_2 `pkg-config --cflags --libs gtk+-3.0` hello.c -o hello
85
+ $ cc `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MIN_REQIRED=GDK_VERSION_3_2 hello.c -o hello `pkg-config --libs gtk+-3.0`
86
86
  </pre>
87
87
  <p>
88
88
  </p>
@@ -91,7 +91,7 @@ And here is how you would compile hello.c if you don't want
91
91
  it to use any symbols that were introduced after 3.4:
92
92
  </p>
93
93
  <pre class="programlisting">
94
- $ cc -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 `pkg-config --cflags --libs gtk+-3.0` hello.c -o hello
94
+ $ cc `pkg-config --cflags gtk+-3.0` -DGDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4 hello.c -o hello `pkg-config --libs gtk+-3.0`
95
95
  </pre>
96
96
  <p>
97
97
  </p>
@@ -118,7 +118,7 @@ define the preprocessor symbol GDK_MULTIDEVICE_SAFE by using the command
118
118
  line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
119
119
  </p>
120
120
  <div class="refsect2">
121
- <a name="id-1.2.5.3.12"></a><h3>Useful autotools macros</h3>
121
+ <a name="id-1.8.3.3.12"></a><h3>Useful autotools macros</h3>
122
122
  <p>
123
123
  GTK+ provides various macros for easily checking version and backends
124
124
  supported. The macros are
@@ -156,6 +156,6 @@ line option <code class="literal">-DGTK_MULTIDEVICE_SAFE=1</code>.
156
156
  </div>
157
157
  <div class="footer">
158
158
  <hr>
159
- Generated by GTK-Doc V1.18.1</div>
159
+ Generated by GTK-Doc V1.19.1</div>
160
160
  </body>
161
161
  </html>
@@ -2,95 +2,90 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>Getting Started with GTK+</title>
5
+ <title>GTK+ 3 Reference Manual: Getting Started with GTK+</title>
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8
8
  <link rel="up" href="gtk.html" title="Part I. GTK+ Overview">
9
9
  <link rel="prev" href="gtk.html" title="Part I. GTK+ Overview">
10
- <link rel="next" href="gtk-building.html" title="Compiling the GTK+ libraries">
11
- <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
10
+ <link rel="next" href="ch01s02.html" title="Packing">
11
+ <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
16
- <td><a accesskey="p" href="gtk.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
- <td><a accesskey="u" href="gtk.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
18
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19
- <th width="100%" align="center">GTK+ 3 Reference Manual</th>
20
- <td><a accesskey="n" href="gtk-building.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left"></td>
17
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
18
+ <td><a accesskey="u" href="gtk.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="p" href="gtk.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
20
+ <td><a accesskey="n" href="ch01s02.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
21
21
  </tr></table>
22
22
  <div class="chapter">
23
23
  <div class="titlepage"><div><div><h2 class="title">
24
24
  <a name="gtk-getting-started"></a>Getting Started with GTK+</h2></div></div></div>
25
+ <div class="toc"><dl class="toc">
26
+ <dt><span class="section"><a href="gtk-getting-started.html#id-1.2.3.3">Basics</a></span></dt>
27
+ <dt><span class="section"><a href="ch01s02.html">Packing</a></span></dt>
28
+ <dt><span class="section"><a href="ch01s03.html">Drawing</a></span></dt>
29
+ <dt><span class="section"><a href="ch01s04.html">Building user interfaces</a></span></dt>
30
+ <dt><span class="section"><a href="ch01s05.html">Building applications</a></span></dt>
31
+ <dd><dl>
32
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.5">A trivial application</a></span></dt>
33
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.6">Populating the window</a></span></dt>
34
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.7">Opening files</a></span></dt>
35
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.8">An application menu</a></span></dt>
36
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.9">A preference dialog</a></span></dt>
37
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.10">Adding a search bar</a></span></dt>
38
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.11">Adding a side bar</a></span></dt>
39
+ <dt><span class="section"><a href="ch01s05.html#id-1.2.3.7.12">Properties</a></span></dt>
40
+ </dl></dd>
41
+ </dl></div>
25
42
  <p>This chapter contains some tutorial information to get you
26
43
  started with GTK+ programming. It assumes that you have GTK+, its
27
44
  dependencies and a C compiler installed and ready to use. If you
28
45
  need to build GTK+ itself first, refer to the
29
46
  <a class="link" href="gtk-compiling.html" title="Compiling GTK+ Applications">Compiling the GTK+ libraries</a>
30
47
  section in this reference.</p>
31
- <div class="simplesect">
48
+ <div class="section">
32
49
  <div class="titlepage"><div><div><h2 class="title" style="clear: both">
33
50
  <a name="id-1.2.3.3"></a>Basics</h2></div></div></div>
34
51
  <p>To begin our introduction to GTK, we'll start with the simplest
35
- program possible. This program will create an empty 200x200 pixel
36
- window:</p>
37
- <p>
38
- <img src="window-default.png">
39
- </p>
52
+ program possible. This program will create an empty 200 × 200 pixel
53
+ window.</p>
54
+ <div class="informalfigure"><div class="mediaobject"><img src="window-default.png"></div></div>
40
55
  <div class="informalexample">
41
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
42
- <tbody>
43
- <tr>
44
- <td class="listing_lines" align="right"><pre>1
45
- 2
46
- 3
47
- 4
48
- 5
49
- 6
50
- 7
51
- 8
52
- 9
53
- 10
54
- 11
55
- 12
56
- 13
57
- 14
58
- 15
59
- 16
60
- 17
61
- 18
62
- 19
63
- 20</pre></td>
64
- <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gtk/gtk.h&gt;</span>
56
+ <p>Create a new file with the following content named example-0.c.</p>
57
+ <pre class="programlisting">#include &lt;gtk/gtk.h&gt;
65
58
 
66
- <span class="type">int</span>
67
- <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
68
- <span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
69
- <span class="cbracket">{</span>
70
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
59
+ int
60
+ main (int argc,
61
+ char *argv[])
62
+ {
63
+ GtkWidget *window;
71
64
 
72
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
65
+ gtk_init (&amp;argc, &amp;argv);
73
66
 
74
- <span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
67
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
68
+ gtk_window_set_title (GTK_WINDOW (window), "Window");
75
69
 
76
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
70
+ g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
77
71
 
78
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
72
+ gtk_widget_show (window);
79
73
 
80
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
74
+ gtk_main ();
81
75
 
82
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
83
- <span class="cbracket">}</span></pre></td>
84
- </tr>
85
- </tbody>
86
- </table>
76
+ return 0;
77
+ }
78
+ </pre>
87
79
  </div>
88
-
89
- <p>You can compile the program above with GCC using:</p>
80
+ <p>
81
+ You can compile the program above with GCC using:
82
+ </p>
90
83
  <div class="literallayout"><p><br>
91
-       <code class="literal">gcc `pkg-config --cflags gtk+-3.0` -o window-default window-default.c `pkg-config --libs gtk+-3.0`</code><br>
92
-     </p></div>
93
- <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
84
+         <code class="literal">gcc `pkg-config --cflags gtk+-3.0` -o example-0 example-0.c `pkg-config --libs gtk+-3.0`</code><br>
85
+       </p></div>
86
+ <p>
87
+ </p>
88
+ <div class="note">
94
89
  <h3 class="title">Note</h3>
95
90
  <p>For more information on how to compile a GTK+ application, please
96
91
  refer to the <a class="link" href="gtk-compiling.html" title="Compiling GTK+ Applications">Compiling GTK+ Applications</a>
@@ -99,7 +94,7 @@
99
94
  <p>All GTK+ applications will, of course, include
100
95
  <code class="filename">gtk/gtk.h</code>, which declares functions, types and
101
96
  macros required by GTK+ applications.</p>
102
- <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
97
+ <div class="warning">
103
98
  <h3 class="title">Warning</h3>
104
99
  <p>Even if GTK+ installs multiple header files, only the
105
100
  top-level <code class="filename">gtk/gtk.h</code> header can be directly included
@@ -117,7 +112,7 @@
117
112
  arguments that control the behavior of GTK+ itself. The parsed arguments
118
113
  will be removed from the array, leaving the unrecognized ones for your
119
114
  application to parse.</p>
120
- <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
115
+ <div class="note">
121
116
  <h3 class="title">Note</h3>
122
117
  <p>For more information on which command line arguments GTK+
123
118
  recognizes, please refer to the <a class="link" href="gtk-running.html" title="Running GTK+ Applications">Running GTK+
@@ -153,829 +148,16 @@
153
148
  showcase some of the capabilities of GTK+.</p>
154
149
  <p>In the long tradition of programming languages and libraries,
155
150
  it is called <span class="emphasis"><em>Hello, World</em></span>.</p>
156
- <p>
157
- <img src="hello-world.png">
158
- </p>
151
+ <div class="informalfigure"><div class="mediaobject"><img src="hello-world.png"></div></div>
159
152
  <div class="example">
160
153
  <a name="gtk-getting-started-hello-world"></a><p class="title"><b>Example 1. Hello World in GTK+</b></p>
161
154
  <div class="example-contents">
162
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
163
- <tbody>
164
- <tr>
165
- <td class="listing_lines" align="right"><pre>1
166
- 2
167
- 3
168
- 4
169
- 5
170
- 6
171
- 7
172
- 8
173
- 9
174
- 10
175
- 11
176
- 12
177
- 13
178
- 14
179
- 15
180
- 16
181
- 17
182
- 18
183
- 19
184
- 20
185
- 21
186
- 22
187
- 23
188
- 24
189
- 25
190
- 26
191
- 27
192
- 28
193
- 29
194
- 30
195
- 31
196
- 32
197
- 33
198
- 34
199
- 35
200
- 36
201
- 37
202
- 38
203
- 39
204
- 40
205
- 41
206
- 42
207
- 43
208
- 44
209
- 45
210
- 46
211
- 47
212
- 48
213
- 49
214
- 50
215
- 51
216
- 52
217
- 53
218
- 54
219
- 55
220
- 56
221
- 57
222
- 58
223
- 59
224
- 60
225
- 61
226
- 62
227
- 63
228
- 64
229
- 65
230
- 66
231
- 67
232
- 68
233
- 69
234
- 70
235
- 71
236
- 72
237
- 73
238
- 74
239
- 75
240
- 76
241
- 77
242
- 78
243
- 79
244
- 80
245
- 81
246
- 82
247
- 83
248
- 84
249
- 85
250
- 86
251
- 87
252
- 88
253
- 89
254
- 90
255
- 91
256
- 92
257
- 93
258
- 94
259
- 95
260
- 96
261
- 97
262
- 98
263
- 99
264
- 100
265
- 101
266
- 102
267
- 103
268
- 104</pre></td>
269
- <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gtk/gtk.h&gt;</span>
270
-
271
- <span class="comment">/* This is a callback function. The data arguments are ignored</span>
272
- <span class="comment"> * in this example. More on callbacks below.</span>
273
- <span class="comment"> */</span>
274
- <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
275
- <span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
276
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
277
- <span class="cbracket">{</span>
278
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
279
- <span class="cbracket">}</span>
280
-
281
- <span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
282
- <span class="function">on_delete_event</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
283
- <span class="normal"> </span><span class="usertype">GdkEvent</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
284
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
285
- <span class="cbracket">{</span>
286
- <span class="normal"> </span><span class="comment">/* If you return FALSE in the "delete_event" signal handler,</span>
287
- <span class="comment"> * GTK will emit the "destroy" signal. Returning TRUE means</span>
288
- <span class="comment"> * you don't want the window to be destroyed.</span>
289
- <span class="comment"> *</span>
290
- <span class="comment"> * This is useful for popping up 'are you sure you want to quit?'</span>
291
- <span class="comment"> * type dialogs.</span>
292
- <span class="comment"> */</span>
293
-
294
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"delete event occurred</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
295
-
296
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
297
- <span class="cbracket">}</span>
298
-
299
- <span class="type">int</span>
300
- <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
301
- <span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
302
- <span class="cbracket">{</span>
303
- <span class="normal"> </span><span class="comment">/* GtkWidget is the storage type for widgets */</span>
304
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
305
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button</span><span class="symbol">;</span>
306
-
307
- <span class="normal"> </span><span class="comment">/* This is called in all GTK applications. Arguments are parsed</span>
308
- <span class="comment"> * from the command line and are returned to the application.</span>
309
- <span class="comment"> */</span>
310
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
311
-
312
- <span class="normal"> </span><span class="comment">/* create a new window, and set its title */</span>
313
- <span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
314
- <span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Hello"</span><span class="symbol">);</span>
315
-
316
- <span class="normal"> </span><span class="comment">/* When the window emits the "delete-event" signal (which is emitted</span>
317
- <span class="comment"> * by GTK+ in response to an event coming from the window manager,</span>
318
- <span class="comment"> * usually as a result of clicking the "close" window control), we</span>
319
- <span class="comment"> * ask it to call the on_delete_event() function as defined above.</span>
320
- <span class="comment"> *</span>
321
- <span class="comment"> * The data passed to the callback function is NULL and is ignored</span>
322
- <span class="comment"> * in the callback function.</span>
323
- <span class="comment"> */</span>
324
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"delete-event"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">on_delete_event</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
325
-
326
- <span class="normal"> </span><span class="comment">/* Here we connect the "destroy" event to the gtk_main_quit() function.</span>
327
- <span class="comment"> *</span>
328
- <span class="comment"> * This signal is emitted when we call gtk_widget_destroy() on the window,</span>
329
- <span class="comment"> * or if we return FALSE in the "delete_event" callback.</span>
330
- <span class="comment"> */</span>
331
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
332
-
333
- <span class="normal"> </span><span class="comment">/* Sets the border width of the window. */</span>
334
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
335
-
336
- <span class="normal"> </span><span class="comment">/* Creates a new button with the label "Hello World". */</span>
337
- <span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World"</span><span class="symbol">);</span>
338
-
339
- <span class="normal"> </span><span class="comment">/* When the button receives the "clicked" signal, it will call the</span>
340
- <span class="comment"> * function print_hello() passing it NULL as its argument.</span>
341
- <span class="comment"> *</span>
342
- <span class="comment"> * The print_hello() function is defined above.</span>
343
- <span class="comment"> */</span>
344
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
345
-
346
- <span class="normal"> </span><span class="comment">/* The g_signal_connect_swapped() function will connect the "clicked" signal</span>
347
- <span class="comment"> * of the button to the gtk_widget_destroy() function; instead of calling it</span>
348
- <span class="comment"> * using the button as its argument, it will swap it with the user data</span>
349
- <span class="comment"> * argument. This will cause the window to be destroyed by calling</span>
350
- <span class="comment"> * gtk_widget_destroy() on the window.</span>
351
- <span class="comment"> */</span>
352
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect-swapped">g_signal_connect_swapped</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a></span><span class="symbol">),</span><span class="normal"> window</span><span class="symbol">);</span>
353
-
354
- <span class="normal"> </span><span class="comment">/* This packs the button into the window. A GtkWindow inherits from GtkBin,</span>
355
- <span class="comment"> * which is a special container that can only have one child</span>
356
- <span class="comment"> */</span>
357
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">);</span>
358
-
359
- <span class="normal"> </span><span class="comment">/* The final step is to display this newly created widget... */</span>
360
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">);</span>
361
-
362
- <span class="normal"> </span><span class="comment">/* ... and the window */</span>
363
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
364
-
365
- <span class="normal"> </span><span class="comment">/* All GTK applications must have a gtk_main(). Control ends here</span>
366
- <span class="comment"> * and waits for an event to occur (like a key press or a mouse event),</span>
367
- <span class="comment"> * until gtk_main_quit() is called.</span>
368
- <span class="comment"> */</span>
369
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
370
-
371
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
372
- <span class="cbracket">}</span></pre></td>
373
- </tr>
374
- </tbody>
375
- </table>
376
- </div>
377
-
378
- </div>
379
- <br class="example-break">
380
- </div>
381
- <div class="simplesect">
382
- <div class="titlepage"><div><div><h2 class="title" style="clear: both">
383
- <a name="id-1.2.3.4"></a>Packing</h2></div></div></div>
384
- <p>When creating an application, you'll want to put more than one widget
385
- inside a window. Our first helloworld example only used one widget so we
386
- could simply use a <a class="link" href="GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a> call to "pack" the widget into the
387
- window. But when you want to put more than one widget into a window, it
388
- it becomes important to control how each widget is positioned and sized.
389
- This is where packing comes in.</p>
390
- <p>GTK+ comes with a large variety of <em class="firstterm">layout containers</em>
391
- whose purpose it is to control the layout of the child widgets that are
392
- added to them. See <a class="xref" href="LayoutContainers.html" title="Layout Containers"><i>Layout Containers</i></a> for an overview.</p>
393
- <p>The following example shows how the GtkGrid container lets you
394
- arrange several buttons:</p>
395
- <p>
396
- <img src="grid-packing.png">
397
- </p>
398
- <div class="example">
399
- <a name="gtk-getting-started-grid-packing"></a><p class="title"><b>Example 2. Packing buttons</b></p>
400
- <div class="example-contents">
401
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
402
- <tbody>
403
- <tr>
404
- <td class="listing_lines" align="right"><pre>1
405
- 2
406
- 3
407
- 4
408
- 5
409
- 6
410
- 7
411
- 8
412
- 9
413
- 10
414
- 11
415
- 12
416
- 13
417
- 14
418
- 15
419
- 16
420
- 17
421
- 18
422
- 19
423
- 20
424
- 21
425
- 22
426
- 23
427
- 24
428
- 25
429
- 26
430
- 27
431
- 28
432
- 29
433
- 30
434
- 31
435
- 32
436
- 33
437
- 34
438
- 35
439
- 36
440
- 37
441
- 38
442
- 39
443
- 40
444
- 41
445
- 42
446
- 43
447
- 44
448
- 45
449
- 46
450
- 47
451
- 48
452
- 49
453
- 50
454
- 51
455
- 52
456
- 53
457
- 54
458
- 55
459
- 56
460
- 57
461
- 58
462
- 59
463
- 60
464
- 61
465
- 62
466
- 63
467
- 64
468
- 65
469
- 66
470
- 67
471
- 68
472
- 69
473
- 70
474
- 71
475
- 72
476
- 73</pre></td>
477
- <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gtk/gtk.h&gt;</span>
478
-
479
- <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
480
- <span class="function">print_hello</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
481
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
482
- <span class="cbracket">{</span>
483
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html#g-print">g_print</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Hello World</span><span class="specialchar">\n</span><span class="string">"</span><span class="symbol">);</span>
484
- <span class="cbracket">}</span>
485
-
486
- <span class="type">int</span>
487
- <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
488
- <span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
489
- <span class="cbracket">{</span>
490
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
491
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">grid</span><span class="symbol">;</span>
492
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">button</span><span class="symbol">;</span>
493
-
494
- <span class="normal"> </span><span class="comment">/* This is called in all GTK applications. Arguments are parsed</span>
495
- <span class="comment"> * from the command line and are returned to the application.</span>
496
- <span class="comment"> */</span>
497
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
498
-
499
- <span class="normal"> </span><span class="comment">/* create a new window, and set its title */</span>
500
- <span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
501
- <span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Grid"</span><span class="symbol">);</span>
502
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
503
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">10</span><span class="symbol">);</span>
504
-
505
- <span class="normal"> </span><span class="comment">/* Here we construct the container that is going pack our buttons */</span>
506
- <span class="normal"> grid </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-new">gtk_grid_new</a></span><span class="normal"> </span><span class="symbol">();</span>
507
-
508
- <span class="normal"> </span><span class="comment">/* Pack the container in the window */</span>
509
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> grid</span><span class="symbol">);</span>
510
-
511
- <span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 1"</span><span class="symbol">);</span>
512
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
513
-
514
- <span class="normal"> </span><span class="comment">/* Place the first button in the grid cell (0, 0), and make it fill</span>
515
- <span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
516
- <span class="comment"> */</span>
517
- <span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
518
-
519
- <span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Button 2"</span><span class="symbol">);</span>
520
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">print_hello</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
521
-
522
- <span class="normal"> </span><span class="comment">/* Place the second button in the grid cell (1, 0), and make it fill</span>
523
- <span class="comment"> * just 1 cell horizontally and vertically (ie no spanning)</span>
524
- <span class="comment"> */</span>
525
- <span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
526
-
527
- <span class="normal"> button </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkButton.html#gtk-button-new-with-label">gtk_button_new_with_label</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"Quit"</span><span class="symbol">);</span>
528
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"clicked"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
529
-
530
- <span class="normal"> </span><span class="comment">/* Place the Quit button in the grid cell (0, 1), and make it</span>
531
- <span class="comment"> * span 2 columns.</span>
532
- <span class="comment"> */</span>
533
- <span class="normal"> </span><span class="function"><a href="GtkGrid.html#gtk-grid-attach">gtk_grid_attach</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_GRID</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">grid</span><span class="symbol">),</span><span class="normal"> button</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">2</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
534
-
535
- <span class="normal"> </span><span class="comment">/* Now that we are done packing our widgets, we show them all</span>
536
- <span class="comment"> * in one go, by calling gtk_widget_show_all() on the window.</span>
537
- <span class="comment"> * This call recursively calls gtk_widget_show() on all widgets</span>
538
- <span class="comment"> * that are contained in the window, directly or indirectly.</span>
539
- <span class="comment"> */</span>
540
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
541
-
542
- <span class="normal"> </span><span class="comment">/* All GTK applications must have a gtk_main(). Control ends here</span>
543
- <span class="comment"> * and waits for an event to occur (like a key press or a mouse event),</span>
544
- <span class="comment"> * until gtk_main_quit() is called.</span>
545
- <span class="comment"> */</span>
546
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
547
-
548
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
549
- <span class="cbracket">}</span></pre></td>
550
- </tr>
551
- </tbody>
552
- </table>
553
- </div>
554
-
555
- </div>
556
- <br class="example-break">
557
- </div>
558
- <div class="simplesect">
559
- <div class="titlepage"><div><div><h2 class="title" style="clear: both">
560
- <a name="id-1.2.3.5"></a>Drawing</h2></div></div></div>
561
- <p>Many widgets, like buttons, do all their drawing themselves. You
562
- just tell them the label you want to see, and they figure out what font
563
- to use, draw the button outline and focus rectangle, etc. Sometimes, it
564
- is necessary to do some custom drawing. In that case, a <a class="link" href="GtkDrawingArea.html" title="GtkDrawingArea"><span class="type">GtkDrawingArea</span></a>
565
- might be the right widget to use. It offers a canvas on which you can
566
- draw by connecting to the <a class="link" href="GtkWidget.html#GtkWidget-draw" title='The "draw" signal'><span class="type">"draw"</span></a> signal.
567
- </p>
568
- <p>The contents of a widget often need to be partially or fully redrawn,
569
- e.g. when another window is moved and uncovers part of the widget, or
570
- when tie window containing it is resized. It is also possible to explicitly
571
- cause part or all of the widget to be redrawn, by calling
572
- <a class="link" href="GtkWidget.html#gtk-widget-queue-draw" title="gtk_widget_queue_draw ()"><code class="function">gtk_widget_queue_draw()</code></a> or its variants. GTK+ takes care of most of the
573
- details by providing a ready-to-use cairo context to the ::draw signal
574
- handler.</p>
575
- <p>The following example shows a ::draw signal handler. It is a bit
576
- more complicated than the previous examples, since it also demonstrates
577
- input event handling by means of ::button-press and ::motion-notify
578
- handlers.</p>
579
- <p>
580
- <img src="drawing.png">
581
- </p>
582
- <div class="example">
583
- <a name="gtk-getting-started-drawing"></a><p class="title"><b>Example 3. Drawing in response to input</b></p>
584
- <div class="example-contents">
585
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
586
- <tbody>
587
- <tr>
588
- <td class="listing_lines" align="right"><pre>1
589
- 2
590
- 3
591
- 4
592
- 5
593
- 6
594
- 7
595
- 8
596
- 9
597
- 10
598
- 11
599
- 12
600
- 13
601
- 14
602
- 15
603
- 16
604
- 17
605
- 18
606
- 19
607
- 20
608
- 21
609
- 22
610
- 23
611
- 24
612
- 25
613
- 26
614
- 27
615
- 28
616
- 29
617
- 30
618
- 31
619
- 32
620
- 33
621
- 34
622
- 35
623
- 36
624
- 37
625
- 38
626
- 39
627
- 40
628
- 41
629
- 42
630
- 43
631
- 44
632
- 45
633
- 46
634
- 47
635
- 48
636
- 49
637
- 50
638
- 51
639
- 52
640
- 53
641
- 54
642
- 55
643
- 56
644
- 57
645
- 58
646
- 59
647
- 60
648
- 61
649
- 62
650
- 63
651
- 64
652
- 65
653
- 66
654
- 67
655
- 68
656
- 69
657
- 70
658
- 71
659
- 72
660
- 73
661
- 74
662
- 75
663
- 76
664
- 77
665
- 78
666
- 79
667
- 80
668
- 81
669
- 82
670
- 83
671
- 84
672
- 85
673
- 86
674
- 87
675
- 88
676
- 89
677
- 90
678
- 91
679
- 92
680
- 93
681
- 94
682
- 95
683
- 96
684
- 97
685
- 98
686
- 99
687
- 100
688
- 101
689
- 102
690
- 103
691
- 104
692
- 105
693
- 106
694
- 107
695
- 108
696
- 109
697
- 110
698
- 111
699
- 112
700
- 113
701
- 114
702
- 115
703
- 116
704
- 117
705
- 118
706
- 119
707
- 120
708
- 121
709
- 122
710
- 123
711
- 124
712
- 125
713
- 126
714
- 127
715
- 128
716
- 129
717
- 130
718
- 131
719
- 132
720
- 133
721
- 134
722
- 135
723
- 136
724
- 137
725
- 138
726
- 139
727
- 140
728
- 141
729
- 142
730
- 143
731
- 144
732
- 145
733
- 146
734
- 147
735
- 148
736
- 149
737
- 150
738
- 151
739
- 152
740
- 153
741
- 154
742
- 155
743
- 156
744
- 157
745
- 158
746
- 159
747
- 160
748
- 161
749
- 162
750
- 163
751
- 164
752
- 165
753
- 166
754
- 167
755
- 168
756
- 169
757
- 170
758
- 171
759
- 172
760
- 173
761
- 174
762
- 175
763
- 176
764
- 177
765
- 178
766
- 179
767
- 180
768
- 181
769
- 182
770
- 183
771
- 184</pre></td>
772
- <td class="listing_code"><pre class="programlisting"><span class="preproc">#include</span><span class="normal"> </span><span class="string">&lt;gtk/gtk.h&gt;</span>
773
-
774
- <span class="comment">/* Surface to store current scribbles */</span>
775
- <span class="keyword">static</span><span class="normal"> </span><span class="usertype">cairo_surface_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">surface </span><span class="symbol">=</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">;</span>
776
-
777
- <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
778
- <span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
779
- <span class="cbracket">{</span>
780
- <span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
781
-
782
- <span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
783
-
784
- <span class="normal"> </span><span class="function">cairo_set_source_rgb</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1</span><span class="symbol">);</span>
785
- <span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
786
-
787
- <span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
788
- <span class="cbracket">}</span>
789
-
790
- <span class="comment">/* Create a new surface of the appropriate size to store our scribbles */</span>
791
- <span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
792
- <span class="function">configure_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
793
- <span class="normal"> </span><span class="usertype">GdkEventConfigure</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
794
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
795
- <span class="cbracket">{</span>
796
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
797
- <span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
798
-
799
- <span class="normal"> surface </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="http://developer.gnome.org/gdk2/gdk3-Cairo-Interaction.html#gdk-window-create-similar-surface">gdk_window_create_similar_surface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkWidget.html#gtk-widget-get-window">gtk_widget_get_window</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
800
- <span class="normal"> CAIRO_CONTENT_COLOR</span><span class="symbol">,</span>
801
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-width">gtk_widget_get_allocated_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">),</span>
802
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-allocated-height">gtk_widget_get_allocated_height</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">));</span>
803
-
804
- <span class="normal"> </span><span class="comment">/* Initialize the surface to white */</span>
805
- <span class="normal"> </span><span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">();</span>
806
-
807
- <span class="normal"> </span><span class="comment">/* We've handled the configure event, no need for further processing. */</span>
808
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
809
- <span class="cbracket">}</span>
810
-
811
- <span class="comment">/* Redraw the screen from the surface. Note that the ::draw</span>
812
- <span class="comment"> * signal receives a ready-to-be-used cairo_t that is already</span>
813
- <span class="comment"> * clipped to only draw the exposed areas of the widget</span>
814
- <span class="comment"> */</span>
815
- <span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
816
- <span class="function">draw_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
817
- <span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">,</span>
818
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
819
- <span class="cbracket">{</span>
820
- <span class="normal"> </span><span class="function">cairo_set_source_surface</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> surface</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0</span><span class="symbol">);</span>
821
- <span class="normal"> </span><span class="function">cairo_paint</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
822
-
823
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
824
- <span class="cbracket">}</span>
825
-
826
- <span class="comment">/* Draw a rectangle on the surface at the given position */</span>
827
- <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
828
- <span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
829
- <span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> x</span><span class="symbol">,</span>
830
- <span class="normal"> </span><span class="usertype">gdouble</span><span class="normal"> y</span><span class="symbol">)</span>
831
- <span class="cbracket">{</span>
832
- <span class="normal"> </span><span class="usertype">cairo_t</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">cr</span><span class="symbol">;</span>
833
-
834
- <span class="normal"> </span><span class="comment">/* Paint to the surface, where we store our state */</span>
835
- <span class="normal"> cr </span><span class="symbol">=</span><span class="normal"> </span><span class="function">cairo_create</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
836
-
837
- <span class="normal"> </span><span class="function">cairo_rectangle</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
838
- <span class="normal"> </span><span class="function">cairo_fill</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
839
-
840
- <span class="normal"> </span><span class="function">cairo_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">);</span>
841
-
842
- <span class="normal"> </span><span class="comment">/* Now invalidate the affected region of the drawing area. */</span>
843
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-queue-draw-area">gtk_widget_queue_draw_area</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> x </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> y </span><span class="symbol">-</span><span class="normal"> </span><span class="number">3</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">,</span><span class="normal"> </span><span class="number">6</span><span class="symbol">);</span>
844
- <span class="cbracket">}</span>
845
-
846
- <span class="comment">/* Handle button press events by either drawing a rectangle</span>
847
- <span class="comment"> * or clearing the surface, depending on which button was pressed.</span>
848
- <span class="comment"> * The ::button-press signal handler receives a GdkEventButton</span>
849
- <span class="comment"> * struct which contains this information.</span>
850
- <span class="comment"> */</span>
851
- <span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
852
- <span class="function">button_press_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
853
- <span class="normal"> </span><span class="usertype">GdkEventButton</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
854
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
855
- <span class="cbracket">{</span>
856
- <span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
857
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
858
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
859
-
860
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-&gt;</span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-PRIMARY:CAPS">GDK_BUTTON_PRIMARY</a></span><span class="symbol">)</span>
861
- <span class="normal"> </span><span class="cbracket">{</span>
862
- <span class="normal"> </span><span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-&gt;</span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-&gt;</span><span class="normal">y</span><span class="symbol">);</span>
863
- <span class="normal"> </span><span class="cbracket">}</span>
864
- <span class="normal"> </span><span class="keyword">else</span><span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-&gt;</span><span class="normal">button </span><span class="symbol">==</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-SECONDARY:CAPS">GDK_BUTTON_SECONDARY</a></span><span class="symbol">)</span>
865
- <span class="normal"> </span><span class="cbracket">{</span>
866
- <span class="normal"> </span><span class="function">clear_surface</span><span class="normal"> </span><span class="symbol">();</span>
867
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-queue-draw">gtk_widget_queue_draw</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">);</span>
868
- <span class="normal"> </span><span class="cbracket">}</span>
869
-
870
- <span class="normal"> </span><span class="comment">/* We've handled the event, stop processing */</span>
871
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
872
- <span class="cbracket">}</span>
873
-
874
- <span class="comment">/* Handle motion events by continuing to draw if button 1 is</span>
875
- <span class="comment"> * still held down. The ::motion-notify signal handler receives</span>
876
- <span class="comment"> * a GdkEventMotion struct which contains this information.</span>
877
- <span class="comment"> */</span>
878
- <span class="keyword">static</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a></span>
879
- <span class="function">motion_notify_event_cb</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
880
- <span class="normal"> </span><span class="usertype">GdkEventMotion</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">,</span>
881
- <span class="normal"> </span><span class="usertype">gpointer</span><span class="normal"> data</span><span class="symbol">)</span>
882
- <span class="cbracket">{</span>
883
- <span class="normal"> </span><span class="comment">/* paranoia check, in case we haven't gotten a configure event */</span>
884
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface </span><span class="symbol">==</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">)</span>
885
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS">FALSE</a></span><span class="symbol">;</span>
886
-
887
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">event</span><span class="symbol">-&gt;</span><span class="normal">state </span><span class="symbol">&amp;</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Windows.html#GDK-BUTTON1-MASK:CAPS">GDK_BUTTON1_MASK</a></span><span class="symbol">)</span>
888
- <span class="normal"> </span><span class="function">draw_brush</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-&gt;</span><span class="normal">x</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">-&gt;</span><span class="normal">y</span><span class="symbol">);</span>
889
-
890
- <span class="normal"> </span><span class="comment">/* We've handled it, stop processing */</span>
891
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
892
- <span class="cbracket">}</span>
893
-
894
- <span class="keyword">static</span><span class="normal"> </span><span class="type">void</span>
895
- <span class="function">close_window</span><span class="normal"> </span><span class="symbol">(</span><span class="type">void</span><span class="symbol">)</span>
896
- <span class="cbracket">{</span>
897
- <span class="normal"> </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">)</span>
898
- <span class="normal"> </span><span class="function">cairo_surface_destroy</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">surface</span><span class="symbol">);</span>
899
-
900
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main-quit">gtk_main_quit</a></span><span class="normal"> </span><span class="symbol">();</span>
901
- <span class="cbracket">}</span>
902
-
903
- <span class="type">int</span>
904
- <span class="function">main</span><span class="normal"> </span><span class="symbol">(</span><span class="type">int</span><span class="normal"> argc</span><span class="symbol">,</span>
905
- <span class="normal"> </span><span class="type">char</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">argv</span><span class="symbol">[])</span>
906
- <span class="cbracket">{</span>
907
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">window</span><span class="symbol">;</span>
908
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">frame</span><span class="symbol">;</span>
909
- <span class="normal"> </span><span class="usertype">GtkWidget</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">da</span><span class="symbol">;</span>
910
-
911
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-init">gtk_init</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">argc</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">argv</span><span class="symbol">);</span>
912
-
913
- <span class="normal"> window </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-new">gtk_window_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="gtk3-Standard-Enumerations.html#GTK-WINDOW-TOPLEVEL:CAPS">GTK_WINDOW_TOPLEVEL</a></span><span class="symbol">);</span>
914
- <span class="normal"> </span><span class="function"><a href="GtkWindow.html#gtk-window-set-title">gtk_window_set_title</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_WINDOW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="string">"Drawing Area"</span><span class="symbol">);</span>
915
-
916
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"destroy"</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">close_window</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
917
-
918
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-set-border-width">gtk_container_set_border_width</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> </span><span class="number">8</span><span class="symbol">);</span>
919
-
920
- <span class="normal"> frame </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-new">gtk_frame_new</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
921
- <span class="normal"> </span><span class="function"><a href="GtkFrame.html#gtk-frame-set-shadow-type">gtk_frame_set_shadow_type</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_FRAME</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> <a href="gtk3-Standard-Enumerations.html#GTK-SHADOW-IN:CAPS">GTK_SHADOW_IN</a></span><span class="symbol">);</span>
922
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">),</span><span class="normal"> frame</span><span class="symbol">);</span>
923
-
924
- <span class="normal"> da </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="GtkDrawingArea.html#gtk-drawing-area-new">gtk_drawing_area_new</a></span><span class="normal"> </span><span class="symbol">();</span>
925
- <span class="normal"> </span><span class="comment">/* set a minimum size */</span>
926
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-size-request">gtk_widget_set_size_request</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">,</span><span class="normal"> </span><span class="number">100</span><span class="symbol">);</span>
927
-
928
- <span class="normal"> </span><span class="function"><a href="GtkContainer.html#gtk-container-add">gtk_container_add</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_CONTAINER</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">frame</span><span class="symbol">),</span><span class="normal"> da</span><span class="symbol">);</span>
929
-
930
- <span class="normal"> </span><span class="comment">/* Signals used to handle the backing surface */</span>
931
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"draw"</span><span class="symbol">,</span>
932
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">draw_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
933
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="string">"configure-event"</span><span class="symbol">,</span>
934
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">configure_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
935
-
936
- <span class="normal"> </span><span class="comment">/* Event signals */</span>
937
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"motion-notify-event"</span><span class="symbol">,</span>
938
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">motion_notify_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
939
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html#g-signal-connect">g_signal_connect</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="string">"button-press-event"</span><span class="symbol">,</span>
940
- <span class="normal"> </span><span class="function"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html#G-CALLBACK:CAPS">G_CALLBACK</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">button_press_event_cb</span><span class="symbol">),</span><span class="normal"> <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS">NULL</a></span><span class="symbol">);</span>
941
-
942
- <span class="normal"> </span><span class="comment">/* Ask to receive events the drawing area doesn't normally</span>
943
- <span class="comment"> * subscribe to. In particular, we need to ask for the</span>
944
- <span class="comment"> * button press and motion notify events that want to handle.</span>
945
- <span class="comment"> */</span>
946
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-set-events">gtk_widget_set_events</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">,</span><span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-get-events">gtk_widget_get_events</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">da</span><span class="symbol">)</span>
947
- <span class="normal"> </span><span class="symbol">|</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-BUTTON-PRESS-MASK:CAPS">GDK_BUTTON_PRESS_MASK</a></span>
948
- <span class="normal"> </span><span class="symbol">|</span><span class="normal"> <a href="http://developer.gnome.org/gdk2/gdk3-Events.html#GDK-POINTER-MOTION-MASK:CAPS">GDK_POINTER_MOTION_MASK</a></span><span class="symbol">);</span>
949
-
950
- <span class="normal"> </span><span class="function"><a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">window</span><span class="symbol">);</span>
951
-
952
- <span class="normal"> </span><span class="function"><a href="gtk3-General.html#gtk-main">gtk_main</a></span><span class="normal"> </span><span class="symbol">();</span>
953
-
954
- <span class="normal"> </span><span class="keyword">return</span><span class="normal"> </span><span class="number">0</span><span class="symbol">;</span>
955
- <span class="cbracket">}</span></pre></td>
956
- </tr>
957
- </tbody>
958
- </table>
959
- </div>
960
-
961
- </div>
962
- <br class="example-break">
963
- </div>
964
- <div class="simplesect">
965
- <div class="titlepage"><div><div><h2 class="title" style="clear: both">
966
- <a name="id-1.2.3.6"></a>Building interfaces</h2></div></div></div>
967
- <p>When construcing a more complicated user interface, with dozens
968
- or hundreds of widgets, doing all the setup work in C code is
969
- cumbersome, and making changes becomes next to impossible.</p>
970
- <p>Thankfully, GTK+ supports the separation of user interface
971
- layout from your business logic, by using UI descriptions in an
972
- XML format that can be parsed by the <a class="link" href="GtkBuilder.html" title="GtkBuilder"><span class="type">GtkBuilder</span></a> class.</p>
973
- <div class="example">
974
- <a name="id-1.2.3.6.4"></a><p class="title"><b>Example 4. Packing buttons with GtkBuilder</b></p>
975
- <div class="example-contents">
976
- <pre class="programlisting">
977
- #include &lt;gtk/gtk.h&gt;
155
+ <p>Create a new file with the following content named example-1.c.</p>
156
+ <pre class="programlisting">#include &lt;gtk/gtk.h&gt;
978
157
 
158
+ /* This is a callback function. The data arguments are ignored
159
+ * in this example. More on callbacks below.
160
+ */
979
161
  static void
980
162
  print_hello (GtkWidget *widget,
981
163
  gpointer data)
@@ -983,113 +165,113 @@ print_hello (GtkWidget *widget,
983
165
  g_print ("Hello World\n");
984
166
  }
985
167
 
168
+ static gboolean
169
+ on_delete_event (GtkWidget *widget,
170
+ GdkEvent *event,
171
+ gpointer data)
172
+ {
173
+ /* If you return FALSE in the "delete_event" signal handler,
174
+ * GTK will emit the "destroy" signal. Returning TRUE means
175
+ * you don't want the window to be destroyed.
176
+ *
177
+ * This is useful for popping up 'are you sure you want to quit?'
178
+ * type dialogs.
179
+ */
180
+
181
+ g_print ("delete event occurred\n");
182
+
183
+ return TRUE;
184
+ }
185
+
986
186
  int
987
187
  main (int argc,
988
188
  char *argv[])
989
189
  {
990
- GtkBuilder *builder;
991
- GObject *window;
992
- GObject *button;
190
+ /* GtkWidget is the storage type for widgets */
191
+ GtkWidget *window;
192
+ GtkWidget *button;
993
193
 
194
+ /* This is called in all GTK applications. Arguments are parsed
195
+ * from the command line and are returned to the application.
196
+ */
994
197
  gtk_init (&amp;argc, &amp;argv);
995
198
 
996
- /* Construct a GtkBuilder instance and load our UI description */
997
- builder = gtk_builder_new ();
998
- gtk_builder_add_from_file (builder, "builder.ui", NULL);
999
-
1000
- /* Connect signal handlers to the constructed widgets. */
1001
- window = gtk_builder_get_object (builder, "window");
199
+ /* create a new window, and set its title */
200
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
201
+ gtk_window_set_title (GTK_WINDOW (window), "Hello");
202
+
203
+ /* When the window emits the "delete-event" signal (which is emitted
204
+ * by GTK+ in response to an event coming from the window manager,
205
+ * usually as a result of clicking the "close" window control), we
206
+ * ask it to call the on_delete_event() function as defined above.
207
+ *
208
+ * The data passed to the callback function is NULL and is ignored
209
+ * in the callback function.
210
+ */
211
+ g_signal_connect (window, "delete-event", G_CALLBACK (on_delete_event), NULL);
212
+
213
+ /* Here we connect the "destroy" event to the gtk_main_quit() function.
214
+ *
215
+ * This signal is emitted when we call gtk_widget_destroy() on the window,
216
+ * or if we return FALSE in the "delete_event" callback.
217
+ */
1002
218
  g_signal_connect (window, "destroy", G_CALLBACK (gtk_main_quit), NULL);
1003
219
 
1004
- button = gtk_builder_get_object (builder, "button1");
1005
- g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
220
+ /* Sets the border width of the window. */
221
+ gtk_container_set_border_width (GTK_CONTAINER (window), 10);
1006
222
 
1007
- button = gtk_builder_get_object (builder, "button2");
1008
- g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
223
+ /* Creates a new button with the label "Hello World". */
224
+ button = gtk_button_new_with_label ("Hello World");
1009
225
 
1010
- button = gtk_builder_get_object (builder, "quit");
1011
- g_signal_connect (button, "clicked", G_CALLBACK (gtk_main_quit), NULL);
226
+ /* When the button receives the "clicked" signal, it will call the
227
+ * function print_hello() passing it NULL as its argument.
228
+ *
229
+ * The print_hello() function is defined above.
230
+ */
231
+ g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);
1012
232
 
233
+ /* The g_signal_connect_swapped() function will connect the "clicked" signal
234
+ * of the button to the gtk_widget_destroy() function; instead of calling it
235
+ * using the button as its argument, it will swap it with the user data
236
+ * argument. This will cause the window to be destroyed by calling
237
+ * gtk_widget_destroy() on the window.
238
+ */
239
+ g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_widget_destroy), window);
240
+
241
+ /* This packs the button into the window. A GtkWindow inherits from GtkBin,
242
+ * which is a special container that can only have one child
243
+ */
244
+ gtk_container_add (GTK_CONTAINER (window), button);
245
+
246
+ /* The final step is to display this newly created widget... */
247
+ gtk_widget_show (button);
248
+
249
+ /* ... and the window */
250
+ gtk_widget_show (window);
251
+
252
+ /* All GTK applications must have a gtk_main(). Control ends here
253
+ * and waits for an event to occur (like a key press or a mouse event),
254
+ * until gtk_main_quit() is called.
255
+ */
1013
256
  gtk_main ();
1014
257
 
1015
258
  return 0;
1016
259
  }
1017
-
1018
- </pre>
1019
- The builder.ui file looks like this:
1020
- <pre class="programlisting">
1021
- &lt;interface&gt;
1022
- &lt;object id="window" class="GtkWindow"&gt;
1023
- &lt;property name="visible"&gt;True&lt;/property&gt;
1024
- &lt;property name="title"&gt;Grid&lt;/property&gt;
1025
- &lt;property name="border-width"&gt;10&lt;/property&gt;
1026
- &lt;child&gt;
1027
- &lt;object id="grid" class="GtkGrid"&gt;
1028
- &lt;property name="visible"&gt;True&lt;/property&gt;
1029
- &lt;child&gt;
1030
- &lt;object id="button1" class="GtkButton"&gt;
1031
- &lt;property name="visible"&gt;True&lt;/property&gt;
1032
- &lt;property name="label"&gt;Button 1&lt;/property&gt;
1033
- &lt;/object&gt;
1034
- &lt;packing&gt;
1035
- &lt;property name="left-attach"&gt;0&lt;/property&gt;
1036
- &lt;property name="top-attach"&gt;0&lt;/property&gt;
1037
- &lt;/packing&gt;
1038
- &lt;/child&gt;
1039
- &lt;child&gt;
1040
- &lt;object id="button2" class="GtkButton"&gt;
1041
- &lt;property name="visible"&gt;True&lt;/property&gt;
1042
- &lt;property name="label"&gt;Button 2&lt;/property&gt;
1043
- &lt;/object&gt;
1044
- &lt;packing&gt;
1045
- &lt;property name="left-attach"&gt;1&lt;/property&gt;
1046
- &lt;property name="top-attach"&gt;0&lt;/property&gt;
1047
- &lt;/packing&gt;
1048
- &lt;/child&gt;
1049
- &lt;child&gt;
1050
- &lt;object id="quit" class="GtkButton"&gt;
1051
- &lt;property name="visible"&gt;True&lt;/property&gt;
1052
- &lt;property name="label"&gt;Quit&lt;/property&gt;
1053
- &lt;/object&gt;
1054
- &lt;packing&gt;
1055
- &lt;property name="left-attach"&gt;0&lt;/property&gt;
1056
- &lt;property name="top-attach"&gt;1&lt;/property&gt;
1057
- &lt;property name="width"&gt;2&lt;/property&gt;
1058
- &lt;/packing&gt;
1059
- &lt;/child&gt;
1060
- &lt;/object&gt;
1061
- &lt;packing&gt;
1062
- &lt;/packing&gt;
1063
- &lt;/child&gt;
1064
- &lt;/object&gt;
1065
- &lt;/interface&gt;
1066
-
1067
- </pre>
260
+ </pre>
1068
261
  </div>
1069
262
  </div>
1070
- <br class="example-break"><p>Note that GtkBuilder can also be used to construct objects
1071
- that are not widgets, such as tree models, adjustments, etc.
1072
- That is the reason the method we use here is called
1073
- <a class="link" href="GtkBuilder.html#gtk-builder-get-object" title="gtk_builder_get_object ()"><code class="function">gtk_builder_get_object()</code></a> and returns a GObject* instead of a
1074
- GtkWidget*.</p>
1075
- <p>Normally, you would pass a full path to
1076
- <a class="link" href="GtkBuilder.html#gtk-builder-add-from-file" title="gtk_builder_add_from_file ()"><code class="function">gtk_builder_add_from_file()</code></a> to make the execution of your program
1077
- independent of the current directory. A common location to install
1078
- UI descriptions and similar data is
1079
- <code class="filename">/usr/share/<em class="replaceable"><code>appname</code></em></code>.
263
+ <br class="example-break"><p>
264
+ You can compile the program above with GCC using:
265
+ </p>
266
+ <div class="literallayout"><p><br>
267
+         <code class="literal">gcc `pkg-config --cflags gtk+-3.0` -o example-1 example-1.c `pkg-config --libs gtk+-3.0`</code><br>
268
+       </p></div>
269
+ <p>
1080
270
  </p>
1081
- <p>It is also possible to embed the UI description in the source
1082
- code as a string and use <a class="link" href="GtkBuilder.html#gtk-builder-add-from-string" title="gtk_builder_add_from_string ()"><code class="function">gtk_builder_add_from_string()</code></a> to load it.
1083
- But keeping the UI description in a separate file has several
1084
- advantages: It is then possible to make minor adjustments to the UI
1085
- without recompiling your program, and, more importantly, graphical
1086
- UI editors such as <a class="ulink" href="http://glade.gnome.org" target="_top">glade</a>
1087
- can load the file and allow you to create and modify your UI by
1088
- point-and-click.</p>
1089
271
  </div>
1090
272
  </div>
1091
273
  <div class="footer">
1092
274
  <hr>
1093
- Generated by GTK-Doc V1.18.1</div>
275
+ Generated by GTK-Doc V1.19.1</div>
1094
276
  </body>
1095
277
  </html>