gtk3 1.2.0-x86-mingw32 → 1.2.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. data/Rakefile +0 -12
  2. data/ext/gtk3/init.c +0 -4
  3. data/ext/gtk3/{rbgtkaboutdialog.c → rbgtk-about-dialog.c} +1 -1
  4. data/ext/gtk3/{rbgtkaccelgroupentry.c → rbgtk-accel-group-entry.c} +0 -0
  5. data/ext/gtk3/{rbgtkaccelgroup.c → rbgtk-accel-group.c} +1 -1
  6. data/ext/gtk3/{rbgtkaccelkey.c → rbgtk-accel-key.c} +0 -0
  7. data/ext/gtk3/{rbgtkaccellabel.c → rbgtk-accel-label.c} +0 -0
  8. data/ext/gtk3/{rbgtkaccelmap.c → rbgtk-accel-map.c} +0 -0
  9. data/ext/gtk3/{rbgtkaccelerator.c → rbgtk-accelerator.c} +0 -0
  10. data/ext/gtk3/{rbgtkaccessible.c → rbgtk-accessible.c} +0 -0
  11. data/ext/gtk3/{rbgtkactiongroup.c → rbgtk-action-group.c} +1 -1
  12. data/ext/gtk3/{rbgtkaction.c → rbgtk-action.c} +0 -0
  13. data/ext/gtk3/{rbgtkactivatable.c → rbgtk-activatable.c} +0 -0
  14. data/ext/gtk3/{rbgtkadjustment.c → rbgtk-adjustment.c} +1 -1
  15. data/ext/gtk3/{rbgtkalignment.c → rbgtk-alignment.c} +1 -1
  16. data/ext/gtk3/{rbgtkallocation.c → rbgtk-allocation.c} +1 -1
  17. data/ext/gtk3/{rbgtkappchooserbutton.c → rbgtk-app-chooser-button.c} +0 -0
  18. data/ext/gtk3/{rbgtkappchooserdialog.c → rbgtk-app-chooser-dialog.c} +0 -0
  19. data/ext/gtk3/{rbgtkappchooserwidget.c → rbgtk-app-chooser-widget.c} +0 -0
  20. data/ext/gtk3/{rbgtkappchooser.c → rbgtk-app-chooser.c} +0 -0
  21. data/ext/gtk3/{rbgtkapplication.c → rbgtk-application.c} +0 -0
  22. data/ext/gtk3/{rbgtkarrow.c → rbgtk-arrow.c} +1 -1
  23. data/ext/gtk3/{rbgtkaspectframe.c → rbgtk-aspect-frame.c} +1 -1
  24. data/ext/gtk3/{rbgtkassistant.c → rbgtk-assistant.c} +0 -0
  25. data/ext/gtk3/{rbgtkbin.c → rbgtk-bin.c} +1 -1
  26. data/ext/gtk3/{rbgtkbindingset.c → rbgtk-binding-set.c} +1 -1
  27. data/ext/gtk3/{rbgtkborder.c → rbgtk-border.c} +1 -1
  28. data/ext/gtk3/{rbgtkbox.c → rbgtk-box.c} +1 -1
  29. data/ext/gtk3/{rbgtkbuildable.c → rbgtk-buildable.c} +0 -0
  30. data/ext/gtk3/{rbgtkbuilder.c → rbgtk-builder.c} +0 -0
  31. data/ext/gtk3/{rbgtkbuttonbox.c → rbgtk-button-box.c} +1 -1
  32. data/ext/gtk3/{rbgtkbutton.c → rbgtk-button.c} +1 -1
  33. data/ext/gtk3/{rbgtkcalendar.c → rbgtk-calendar.c} +1 -1
  34. data/ext/gtk3/{rbgtkcelleditable.c → rbgtk-cell-editable.c} +0 -0
  35. data/ext/gtk3/{rbgtkcelllayout.c → rbgtk-cell-layout.c} +0 -0
  36. data/ext/gtk3/{rbgtkcellrendereraccel.c → rbgtk-cell-renderer-accel.c} +0 -0
  37. data/ext/gtk3/{rbgtkcellrenderercombo.c → rbgtk-cell-renderer-combo.c} +0 -0
  38. data/ext/gtk3/{rbgtkcellrendererpixbuf.c → rbgtk-cell-renderer-pixbuf.c} +0 -0
  39. data/ext/gtk3/{rbgtkcellrendererprogress.c → rbgtk-cell-renderer-progress.c} +0 -0
  40. data/ext/gtk3/{rbgtkcellrendererspin.c → rbgtk-cell-renderer-spin.c} +0 -0
  41. data/ext/gtk3/{rbgtkcellrendererspinner.c → rbgtk-cell-renderer-spinner.c} +0 -0
  42. data/ext/gtk3/{rbgtkcellrenderertext.c → rbgtk-cell-renderer-text.c} +0 -0
  43. data/ext/gtk3/{rbgtkcellrenderertoggle.c → rbgtk-cell-renderer-toggle.c} +0 -0
  44. data/ext/gtk3/{rbgtkcellrenderer.c → rbgtk-cell-renderer.c} +0 -0
  45. data/ext/gtk3/{rbgtkcellview.c → rbgtk-cell-view.c} +0 -0
  46. data/ext/gtk3/{rbgtkcheckbutton.c → rbgtk-check-button.c} +1 -1
  47. data/ext/gtk3/{rbgtkcheckmenuitem.c → rbgtk-check-menu-item.c} +1 -1
  48. data/ext/gtk3/{rbgtkclipboard.c → rbgtk-clip-board.c} +1 -1
  49. data/ext/gtk3/{rbgtkcolorbutton.c → rbgtk-color-button.c} +1 -1
  50. data/ext/gtk3/{rbgtkcolorselectiondialog.c → rbgtk-color-selection-dialog.c} +1 -1
  51. data/ext/gtk3/{rbgtkcolorselection.c → rbgtk-color-selection.c} +1 -1
  52. data/ext/gtk3/{rbgtkcomboboxtext.c → rbgtk-combo-box-text.c} +0 -0
  53. data/ext/gtk3/{rbgtkcombobox.c → rbgtk-combo-box.c} +1 -1
  54. data/ext/gtk3/{rbgtkconst.c → rbgtk-const.c} +1 -1
  55. data/ext/gtk3/{rbgtkcontainer.c → rbgtk-container.c} +1 -1
  56. data/ext/gtk3/{rbgtkcssprovider.c → rbgtk-css-provider.c} +0 -0
  57. data/ext/gtk3/{rbgtkdialog.c → rbgtk-dialog.c} +1 -1
  58. data/ext/gtk3/{rbgdkdragcontext.c → rbgtk-drag-gdk-drag-context.c} +2 -2
  59. data/ext/gtk3/{rbgtkdrag.c → rbgtk-drag.c} +0 -0
  60. data/ext/gtk3/{rbgtkdrawingarea.c → rbgtk-drawing-area.c} +1 -1
  61. data/ext/gtk3/{rbgtkeditable.c → rbgtk-editable.c} +1 -1
  62. data/ext/gtk3/{rbgtkentrybuffer.c → rbgtk-entry-buffer.c} +0 -0
  63. data/ext/gtk3/{rbgtkentrycompletion.c → rbgtk-entry-completion.c} +1 -1
  64. data/ext/gtk3/{rbgtkentry.c → rbgtk-entry.c} +0 -0
  65. data/ext/gtk3/{rbgtkeventbox.c → rbgtk-event-box.c} +1 -1
  66. data/ext/gtk3/{rbgtkexpander.c → rbgtk-expander.c} +1 -1
  67. data/ext/gtk3/{rbgtkfilechooserbutton.c → rbgtk-file-chooser-button.c} +1 -1
  68. data/ext/gtk3/{rbgtkfilechooserdialog.c → rbgtk-file-chooser-dialog.c} +1 -1
  69. data/ext/gtk3/{rbgtkfilechooserwidget.c → rbgtk-file-chooser-widget.c} +1 -1
  70. data/ext/gtk3/{rbgtkfilechooser.c → rbgtk-file-chooser.c} +1 -1
  71. data/ext/gtk3/{rbgtkfilefilter.c → rbgtk-file-filter.c} +1 -1
  72. data/ext/gtk3/{rbgtkfilesystemerror.c → rbgtk-file-system-error.c} +1 -1
  73. data/ext/gtk3/{rbgtkfixed.c → rbgtk-fixed.c} +1 -1
  74. data/ext/gtk3/{rbgtkfontbutton.c → rbgtk-font-button.c} +1 -1
  75. data/ext/gtk3/{rbgtkfontchooserdialog.c → rbgtk-font-chooser-dialog.c} +0 -0
  76. data/ext/gtk3/{rbgtkfontchooserwidget.c → rbgtk-font-chooser-widget.c} +0 -0
  77. data/ext/gtk3/{rbgtkfontchooser.c → rbgtk-font-chooser.c} +0 -0
  78. data/ext/gtk3/{rbgtkframe.c → rbgtk-frame.c} +1 -1
  79. data/ext/gtk3/{rbgdkevent.c → rbgtk-gdk-event.c} +3 -3
  80. data/ext/gtk3/{rbgtkgrid.c → rbgtk-grid.c} +0 -0
  81. data/ext/gtk3/{rbgtkhandlebox.c → rbgtk-handle-box.c} +1 -1
  82. data/ext/gtk3/{rbgtkhsv.c → rbgtk-hsv.c} +0 -0
  83. data/ext/gtk3/{rbgtkiconfactory.c → rbgtk-icon-factory.c} +0 -0
  84. data/ext/gtk3/{rbgtkiconinfo.c → rbgtk-icon-info.c} +1 -1
  85. data/ext/gtk3/{rbgtkiconset.c → rbgtk-icon-set.c} +0 -0
  86. data/ext/gtk3/{rbgtkiconsize.c → rbgtk-icon-size.c} +0 -0
  87. data/ext/gtk3/{rbgtkiconsource.c → rbgtk-icon-source.c} +0 -0
  88. data/ext/gtk3/{rbgtkicontheme.c → rbgtk-icon-theme.c} +0 -0
  89. data/ext/gtk3/{rbgtkiconview.c → rbgtk-icon-view.c} +0 -0
  90. data/ext/gtk3/{rbgtkimmulticontext.c → rbgtk-im-multicontext.c} +1 -1
  91. data/ext/gtk3/{rbgtkimagemenuitem.c → rbgtk-image-menu-item.c} +1 -1
  92. data/ext/gtk3/{rbgtkimage.c → rbgtk-image.c} +1 -1
  93. data/ext/gtk3/{rbgtkimcontextsimple.c → rbgtk-imcon-text-simple.c} +1 -1
  94. data/ext/gtk3/{rbgtkimcontext.c → rbgtk-imcon-text.c} +1 -1
  95. data/ext/gtk3/{rbgtkinfobar.c → rbgtk-infobar.c} +0 -0
  96. data/ext/gtk3/{rbgtkinvisible.c → rbgtk-invisible.c} +0 -0
  97. data/ext/gtk3/{rbgtklabel.c → rbgtk-label.c} +1 -1
  98. data/ext/gtk3/{rbgtklayout.c → rbgtk-layout.c} +0 -0
  99. data/ext/gtk3/{rbgtklinkbutton.c → rbgtk-link-button.c} +1 -1
  100. data/ext/gtk3/{rbgtkliststore.c → rbgtk-list-store.c} +2 -11
  101. data/ext/gtk3/{rbgtklockbutton.c → rbgtk-lock-button.c} +0 -0
  102. data/ext/gtk3/{rbgtkmenuitem.c → rbgtk-menu-item.c} +1 -1
  103. data/ext/gtk3/{rbgtkmenushell.c → rbgtk-menu-shell.c} +1 -1
  104. data/ext/gtk3/{rbgtkmenutoolbutton.c → rbgtk-menu-tool-button.c} +1 -1
  105. data/ext/gtk3/{rbgtkmenu.c → rbgtk-menu.c} +1 -1
  106. data/ext/gtk3/{rbgtkmenubar.c → rbgtk-menubar.c} +1 -1
  107. data/ext/gtk3/{rbgtkmessagedialog.c → rbgtk-message-dialog.c} +1 -1
  108. data/ext/gtk3/{rbgtkmisc.c → rbgtk-misc.c} +1 -1
  109. data/ext/gtk3/{rbgtknotebook.c → rbgtk-notebook.c} +1 -1
  110. data/ext/gtk3/{rbgtknumerableicon.c → rbgtk-numerable-icon.c} +0 -0
  111. data/ext/gtk3/{rbgtkorientable.c → rbgtk-orientable.c} +0 -0
  112. data/ext/gtk3/{rbgtkoverlay.c → rbgtk-overlay.c} +0 -0
  113. data/ext/gtk3/{rbgtkpagesetupunixdialog.c → rbgtk-page-setup-unix-dialog.c} +0 -0
  114. data/ext/gtk3/{rbgtkpagesetup.c → rbgtk-page-setup.c} +0 -0
  115. data/ext/gtk3/{rbgtkpaned.c → rbgtk-paned.c} +1 -1
  116. data/ext/gtk3/{rbgtkpapersize.c → rbgtk-paper-size.c} +0 -0
  117. data/ext/gtk3/{rbgtkplug.c → rbgtk-plug.c} +1 -1
  118. data/ext/gtk3/{rbgtkprintcontext.c → rbgtk-print-context.c} +0 -0
  119. data/ext/gtk3/{rbgtkprintjob.c → rbgtk-print-job.c} +0 -0
  120. data/ext/gtk3/{rbgtkprintoperationpreview.c → rbgtk-print-operation-preview.c} +0 -0
  121. data/ext/gtk3/{rbgtkprintoperation.c → rbgtk-print-operation.c} +0 -0
  122. data/ext/gtk3/{rbgtkprintsettings.c → rbgtk-print-settings.c} +0 -0
  123. data/ext/gtk3/{rbgtkprintunixdialog.c → rbgtk-print-unix-dialog.c} +0 -0
  124. data/ext/gtk3/{rbgtkprinter.c → rbgtk-printer.c} +0 -0
  125. data/ext/gtk3/{rbgtkprogressbar.c → rbgtk-progress-bar.c} +1 -1
  126. data/ext/gtk3/{rbgtkradioaction.c → rbgtk-radio-action.c} +1 -1
  127. data/ext/gtk3/{rbgtkradiobutton.c → rbgtk-radio-button.c} +1 -1
  128. data/ext/gtk3/{rbgtkradiomenuitem.c → rbgtk-radio-menu-item.c} +1 -1
  129. data/ext/gtk3/{rbgtkradiotoolbutton.c → rbgtk-radio-tool-button.c} +1 -1
  130. data/ext/gtk3/{rbgtkrange.c → rbgtk-range.c} +1 -1
  131. data/ext/gtk3/{rbgtkrecentaction.c → rbgtk-recent-action.c} +1 -1
  132. data/ext/gtk3/{rbgtkrecentchooserdialog.c → rbgtk-recent-chooser-dialog.c} +1 -1
  133. data/ext/gtk3/{rbgtkrecentchoosermenu.c → rbgtk-recent-chooser-menu.c} +1 -1
  134. data/ext/gtk3/{rbgtkrecentchooserwidget.c → rbgtk-recent-chooser-widget.c} +1 -1
  135. data/ext/gtk3/{rbgtkrecentchooser.c → rbgtk-recent-chooser.c} +1 -1
  136. data/ext/gtk3/{rbgtkrecentdata.c → rbgtk-recent-data.c} +0 -0
  137. data/ext/gtk3/{rbgtkrecentfilterinfo.c → rbgtk-recent-filter-info.c} +1 -1
  138. data/ext/gtk3/{rbgtkrecentfilter.c → rbgtk-recent-filter.c} +1 -1
  139. data/ext/gtk3/{rbgtkrecentinfo.c → rbgtk-recent-info.c} +1 -1
  140. data/ext/gtk3/{rbgtkrecentmanager.c → rbgtk-recent-manager.c} +1 -1
  141. data/ext/gtk3/{rbgtkscalebutton.c → rbgtk-scale-button.c} +1 -1
  142. data/ext/gtk3/{rbgtkscale.c → rbgtk-scale.c} +1 -1
  143. data/ext/gtk3/{rbgtkscrollable.c → rbgtk-scrollable.c} +0 -0
  144. data/ext/gtk3/{rbgtkscrollbar.c → rbgtk-scrollbar.c} +0 -0
  145. data/ext/gtk3/{rbgtkscrolledwindow.c → rbgtk-scrolled-window.c} +1 -1
  146. data/ext/gtk3/{rbgtkselectiondata.c → rbgtk-selection-data.c} +0 -0
  147. data/ext/gtk3/{rbgtkselection.c → rbgtk-selection.c} +0 -0
  148. data/ext/gtk3/{rbgtkseparatormenuitem.c → rbgtk-separator-menu-item.c} +1 -1
  149. data/ext/gtk3/{rbgtkseparatortoolitem.c → rbgtk-separator-tool-item.c} +1 -1
  150. data/ext/gtk3/{rbgtkseparator.c → rbgtk-separator.c} +0 -0
  151. data/ext/gtk3/{rbgtksettings.c → rbgtk-settings.c} +1 -1
  152. data/ext/gtk3/{rbgtksizegroup.c → rbgtk-size-group.c} +0 -0
  153. data/ext/gtk3/{rbgtksocket.c → rbgtk-socket.c} +1 -1
  154. data/ext/gtk3/{rbgtkspinbutton.c → rbgtk-spin-button.c} +1 -1
  155. data/ext/gtk3/{rbgtkspinner.c → rbgtk-spinner.c} +1 -1
  156. data/ext/gtk3/{rbgtkstatusbar.c → rbgtk-status-bar.c} +1 -1
  157. data/ext/gtk3/{rbgtkstatusicon.c → rbgtk-status-icon.c} +1 -1
  158. data/ext/gtk3/{rbgtkstock.c → rbgtk-stock.c} +0 -0
  159. data/ext/gtk3/{rbgdkscreen.c → rbgtk-style-context-gdk-screen.c} +3 -3
  160. data/ext/gtk3/{rbgtkstylecontext.c → rbgtk-style-context.c} +0 -0
  161. data/ext/gtk3/{rbgtkstyleproperties.c → rbgtk-style-properties.c} +0 -0
  162. data/ext/gtk3/{rbgtkstyleprovider.c → rbgtk-style-provider.c} +0 -0
  163. data/ext/gtk3/{rbgtkswitch.c → rbgtk-switch.c} +0 -0
  164. data/ext/gtk3/{rbgtktable.c → rbgtk-table.c} +1 -1
  165. data/ext/gtk3/{rbgtktargetlist.c → rbgtk-target-list.c} +0 -0
  166. data/ext/gtk3/{rbgtktearoffmenuitem.c → rbgtk-tearoff-menu-item.c} +1 -1
  167. data/ext/gtk3/{rbgtktextappearance.c → rbgtk-text-appearance.c} +0 -0
  168. data/ext/gtk3/{rbgtktextattributes.c → rbgtk-text-attributes.c} +0 -0
  169. data/ext/gtk3/{rbgtktextbuffer.c → rbgtk-text-buffer.c} +1 -1
  170. data/ext/gtk3/{rbgtktextchildanchor.c → rbgtk-text-child-anchor.c} +0 -0
  171. data/ext/gtk3/{rbgtktextiter.c → rbgtk-text-iter.c} +0 -0
  172. data/ext/gtk3/{rbgtktextmark.c → rbgtk-text-mark.c} +1 -1
  173. data/ext/gtk3/{rbgtktexttagtable.c → rbgtk-text-tag-table.c} +0 -0
  174. data/ext/gtk3/{rbgtktexttag.c → rbgtk-text-tag.c} +0 -0
  175. data/ext/gtk3/{rbgtktextview.c → rbgtk-text-view.c} +0 -0
  176. data/ext/gtk3/{rbgtkthemingengine.c → rbgtk-theming-engine.c} +0 -0
  177. data/ext/gtk3/{rbgtktoggleaction.c → rbgtk-toggle-action.c} +1 -1
  178. data/ext/gtk3/{rbgtktogglebutton.c → rbgtk-toggle-button.c} +1 -1
  179. data/ext/gtk3/{rbgtktoggletoolbutton.c → rbgtk-toggle-tool-button.c} +1 -1
  180. data/ext/gtk3/{rbgtktoolbutton.c → rbgtk-tool-button.c} +1 -1
  181. data/ext/gtk3/{rbgtktoolitem.c → rbgtk-tool-item.c} +1 -1
  182. data/ext/gtk3/{rbgtktoolitemgroup.c → rbgtk-tool-itemgroup.c} +0 -0
  183. data/ext/gtk3/{rbgtktoolshell.c → rbgtk-tool-shell.c} +0 -0
  184. data/ext/gtk3/{rbgtktoolbar.c → rbgtk-toolbar.c} +0 -0
  185. data/ext/gtk3/{rbgdkdisplay.c → rbgtk-tooltip-gdk-display.c} +3 -3
  186. data/ext/gtk3/{rbgtktooltip.c → rbgtk-tooltip.c} +1 -1
  187. data/ext/gtk3/{rbgtktreedragdest.c → rbgtk-tree-dragdest.c} +0 -0
  188. data/ext/gtk3/{rbgtktreedragsource.c → rbgtk-tree-dragsource.c} +0 -0
  189. data/ext/gtk3/{rbgtktreeiter.c → rbgtk-tree-iter.c} +1 -1
  190. data/ext/gtk3/{rbgtktreemodel.c → rbgtk-tree-model.c} +8 -10
  191. data/ext/gtk3/{rbgtktreemodelfilter.c → rbgtk-tree-modelfilter.c} +1 -1
  192. data/ext/gtk3/{rbgtktreemodelsort.c → rbgtk-tree-modelsort.c} +1 -1
  193. data/ext/gtk3/{rbgtktreepath.c → rbgtk-tree-path.c} +1 -1
  194. data/ext/gtk3/{rbgtktreerowreference.c → rbgtk-tree-rowreference.c} +1 -1
  195. data/ext/gtk3/{rbgtktreeselection.c → rbgtk-tree-selection.c} +0 -0
  196. data/ext/gtk3/{rbgtktreesortable.c → rbgtk-tree-sortable.c} +0 -0
  197. data/ext/gtk3/{rbgtktreestore.c → rbgtk-tree-store.c} +0 -0
  198. data/ext/gtk3/{rbgtktreeviewcolumn.c → rbgtk-tree-view-column.c} +0 -0
  199. data/ext/gtk3/{rbgtktreeview.c → rbgtk-tree-view.c} +1 -1
  200. data/ext/gtk3/{rbgtkuimanager.c → rbgtk-ui-manager.c} +0 -0
  201. data/ext/gtk3/{rbgtkviewport.c → rbgtk-viewport.c} +1 -1
  202. data/ext/gtk3/{rbgtkvolumebutton.c → rbgtk-volume-button.c} +1 -1
  203. data/ext/gtk3/{rbgtkwidgetpath.c → rbgtk-widget-path.c} +0 -0
  204. data/ext/gtk3/{rbgtkwidget.c → rbgtk-widget.c} +1 -1
  205. data/ext/gtk3/{rbgtkwindowgroup.c → rbgtk-window-group.c} +1 -1
  206. data/ext/gtk3/{rbgtkwindow.c → rbgtk-window.c} +1 -1
  207. data/ext/gtk3/rbgtk.c +7 -32
  208. data/ext/gtk3/rbgtk3private.h +5 -4
  209. data/lib/1.8/gtk3.so +0 -0
  210. data/lib/1.9/gtk3.so +0 -0
  211. data/test/test_gtk_list_store.rb +43 -0
  212. metadata +226 -227
  213. data/vendor/local/etc/gtk-2.0/gtkrc +0 -1
@@ -75,7 +75,7 @@ rg_toggled(VALUE self)
75
75
  return self;
76
76
  }
77
77
 
78
- void
78
+ void
79
79
  Init_gtk_toggle_button(VALUE mGtk)
80
80
  {
81
81
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TOGGLE_BUTTON, "ToggleButton", mGtk);
@@ -52,7 +52,7 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
52
52
  return Qnil;
53
53
  }
54
54
 
55
- void
55
+ void
56
56
  Init_gtk_toggletoolbutton(VALUE mGtk)
57
57
  {
58
58
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TOGGLE_TOOL_BUTTON, "ToggleToolButton", mGtk);
@@ -55,7 +55,7 @@ rg_initialize(int argc, VALUE *argv, VALUE self)
55
55
  return Qnil;
56
56
  }
57
57
 
58
- void
58
+ void
59
59
  Init_gtk_toolbutton(VALUE mGtk)
60
60
  {
61
61
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TOOL_BUTTON, "ToolButton", mGtk);
@@ -172,7 +172,7 @@ rg_toolbar_reconfigured(VALUE self)
172
172
  return self;
173
173
  }
174
174
 
175
- void
175
+ void
176
176
  Init_gtk_toolitem(VALUE mGtk)
177
177
  {
178
178
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TOOL_ITEM, "ToolItem", mGtk);
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
6
6
  * modify it under the terms of the GNU Lesser General Public
@@ -30,8 +30,8 @@ rg_trigger_tooltip_query(VALUE self)
30
30
  return self;
31
31
  }
32
32
 
33
- void
34
- Init_gdk_display(void)
33
+ void
34
+ Init_gtk_tooltip_gdk_display(void)
35
35
  {
36
36
  VALUE RG_TARGET_NAMESPACE = GTYPE2CLASS(GDK_TYPE_DISPLAY);
37
37
 
@@ -89,7 +89,7 @@ rg_set_custom(VALUE self, VALUE custom_widget)
89
89
  return self;
90
90
  }
91
91
 
92
- void
92
+ void
93
93
  Init_gtk_tooltip(VALUE mGtk)
94
94
  {
95
95
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TOOLTIP, "Tooltip", mGtk);
@@ -235,7 +235,7 @@ rg_to_str(VALUE self)
235
235
  return result;
236
236
  }
237
237
 
238
- void
238
+ void
239
239
  Init_gtk_treeiter(VALUE mGtk)
240
240
  {
241
241
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TREE_ITER, "TreeIter", mGtk);
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002,2003 Masao Mutoh
5
5
  *
6
6
  * This library is free software; you can redistribute it and/or
@@ -54,7 +54,6 @@ rg_iter_first(VALUE self)
54
54
 
55
55
  if (ret) {
56
56
  val = GTKTREEITER2RVAL(&iter);
57
- G_CHILD_ADD(self, val);
58
57
  }
59
58
 
60
59
  return val;
@@ -69,17 +68,16 @@ rg_get_iter(VALUE self, VALUE path)
69
68
  GtkTreeModel* model = _SELF(self);
70
69
 
71
70
  if (TYPE(path) == T_STRING){
72
- ret = gtk_tree_model_get_iter_from_string(model, &iter,
71
+ ret = gtk_tree_model_get_iter_from_string(model, &iter,
73
72
  RVAL2CSTR(path));
74
73
  } else {
75
- ret = gtk_tree_model_get_iter(model, &iter,
74
+ ret = gtk_tree_model_get_iter(model, &iter,
76
75
  RVAL2GTKTREEPATH(path));
77
- }
76
+ }
78
77
  iter.user_data3 = model;
79
78
 
80
79
  if (ret) {
81
80
  val = GTKTREEITER2RVAL(&iter);
82
- G_CHILD_ADD(self, val);
83
81
  }
84
82
 
85
83
  return val;
@@ -94,7 +92,7 @@ rg_get_value(VALUE self, VALUE iter, VALUE column)
94
92
  if (G_VALUE_TYPE(&value) != G_TYPE_INVALID){
95
93
  ret = GVAL2RVAL(&value);
96
94
  g_value_unset(&value);
97
- }
95
+ }
98
96
  return ret;
99
97
  }
100
98
 
@@ -112,8 +110,8 @@ treemodel_foreach_func(GtkTreeModel *model,
112
110
  static VALUE
113
111
  rg_each(VALUE self)
114
112
  {
115
- gtk_tree_model_foreach(_SELF(self),
116
- (GtkTreeModelForeachFunc)treemodel_foreach_func,
113
+ gtk_tree_model_foreach(_SELF(self),
114
+ (GtkTreeModelForeachFunc)treemodel_foreach_func,
117
115
  (gpointer)NULL);
118
116
  return self;
119
117
  }
@@ -208,7 +206,7 @@ signal_rows_reordered_func(G_GNUC_UNUSED guint num, const GValue *values)
208
206
  return rb_ary_new3(4, GOBJ2RVAL(model), GTKTREEPATH2RVAL(path), GTKTREEITER2RVAL(iter), orders);
209
207
  }
210
208
 
211
- void
209
+ void
212
210
  Init_gtk_treemodel(VALUE mGtk)
213
211
  {
214
212
  VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(GTK_TYPE_TREE_MODEL, "TreeModel", mGtk);
@@ -175,7 +175,7 @@ rg_clear_cache(VALUE self)
175
175
  return self;
176
176
  }
177
177
 
178
- void
178
+ void
179
179
  Init_gtk_treemodelfilter(VALUE mGtk)
180
180
  {
181
181
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TREE_MODEL_FILTER, "TreeModelFilter", mGtk);
@@ -93,7 +93,7 @@ rg_iter_is_valid_p(VALUE self, VALUE iter)
93
93
  return CBOOL2RVAL(gtk_tree_model_sort_iter_is_valid(_SELF(self), RVAL2GTKTREEITER(iter)));
94
94
  }
95
95
 
96
- void
96
+ void
97
97
  Init_gtk_tmodelsort(VALUE mGtk)
98
98
  {
99
99
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TREE_MODEL_SORT, "TreeModelSort", mGtk);
@@ -166,7 +166,7 @@ rg_descendant_p(VALUE self, VALUE ancestor)
166
166
  return CBOOL2RVAL(gtk_tree_path_is_descendant(_SELF(self), _SELF(ancestor)));
167
167
  }
168
168
 
169
- void
169
+ void
170
170
  Init_gtk_treepath(VALUE mGtk)
171
171
  {
172
172
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TREE_PATH, "TreePath", mGtk);
@@ -120,7 +120,7 @@ rg_s_reordered(VALUE self, VALUE rbproxy, VALUE rbpath, VALUE rbiter, VALUE rbne
120
120
  return self;
121
121
  }
122
122
 
123
- void
123
+ void
124
124
  Init_gtk_treerowreference(VALUE mGtk)
125
125
  {
126
126
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_TREE_ROW_REFERENCE, "TreeRowReference", mGtk);
File without changes
@@ -645,7 +645,7 @@ rg_set_search_position_func(VALUE self)
645
645
  return self;
646
646
  }
647
647
 
648
- void
648
+ void
649
649
  Init_gtk_treeview(VALUE mGtk)
650
650
  {
651
651
  rb_mGtk = mGtk;
File without changes
@@ -36,7 +36,7 @@ rg_initialize(VALUE self, VALUE hadj, VALUE vadj)
36
36
  return Qnil;
37
37
  }
38
38
 
39
- void
39
+ void
40
40
  Init_gtk_viewport(VALUE mGtk)
41
41
  {
42
42
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_VIEWPORT, "Viewport", mGtk);
@@ -33,7 +33,7 @@ rg_initialize(VALUE self)
33
33
  return Qnil;
34
34
  }
35
35
 
36
- void
36
+ void
37
37
  Init_gtk_volumebutton(VALUE mGtk)
38
38
  {
39
39
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_VOLUME_BUTTON, "VolumeButton", mGtk);
File without changes
@@ -1382,7 +1382,7 @@ rg_drag_source_add_uri_targets(VALUE self)
1382
1382
  return self;
1383
1383
  }
1384
1384
 
1385
- void
1385
+ void
1386
1386
  Init_gtk_widget(VALUE mGtk)
1387
1387
  {
1388
1388
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_WIDGET, "Widget", mGtk);
@@ -67,7 +67,7 @@ rg_windows(VALUE self)
67
67
  return GOBJGLIST2RVAL(gtk_window_group_list_windows(_SELF(self)));
68
68
  }
69
69
 
70
- void
70
+ void
71
71
  Init_gtk_windowgroup(VALUE mGtk)
72
72
  {
73
73
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_WINDOW_GROUP, "WindowGroup", mGtk);
@@ -485,7 +485,7 @@ rg_set_default_geometry(VALUE self, VALUE width, VALUE height)
485
485
  return self;
486
486
  }
487
487
 
488
- void
488
+ void
489
489
  Init_gtk_window(VALUE mGtk)
490
490
  {
491
491
  VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GTK_TYPE_WINDOW, "Window", mGtk);
data/ext/gtk3/rbgtk.c CHANGED
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Copyright (C) 2011 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011-2013 Ruby-GNOME2 Project Team
4
4
  * Copyright (C) 2002-2006 Ruby-GNOME2 Project Team
5
5
  * Copyright (C) 1998-2001 Yukihiro Matsumoto,
6
6
  * Daisuke Kanda,
@@ -99,36 +99,6 @@ rg_s_events_pending_p(G_GNUC_UNUSED VALUE self)
99
99
  return CBOOL2RVAL(gtk_events_pending());
100
100
  }
101
101
 
102
- static VALUE
103
- gtk_m_function_body(VALUE data)
104
- {
105
- callback_info_t *info = (callback_info_t *)data;
106
- VALUE ret = rb_funcall(info->callback, id_call, 0);
107
-
108
- if (info->key && !ret)
109
- G_REMOVE_RELATIVE(RG_TARGET_NAMESPACE, info->key, UINT2NUM(info->id));
110
- return ret;
111
- }
112
-
113
- static gboolean
114
- gtk_m_function(gpointer data)
115
- {
116
- return RVAL2CBOOL(G_PROTECT_CALLBACK(gtk_m_function_body, data));
117
- }
118
-
119
- static VALUE
120
- gtk_m_function2_body(gpointer proc)
121
- {
122
- rb_funcall((VALUE)proc, id_call, 0);
123
- return Qnil;
124
- }
125
-
126
- static void
127
- gtk_m_function2(gpointer proc)
128
- {
129
- G_PROTECT_CALLBACK(gtk_m_function2_body, proc);
130
- }
131
-
132
102
  /* deprecated
133
103
  static VALUE
134
104
  rg_s_set_locale(G_GNUC_UNUSED VALUE self)
@@ -378,7 +348,7 @@ rg_s_check_version_p(G_GNUC_UNUSED VALUE self, VALUE major, VALUE minor, VALUE m
378
348
  return CBOOL2RVAL(ret == NULL);
379
349
  }
380
350
 
381
- void
351
+ void
382
352
  Init_gtk(void)
383
353
  {
384
354
  id_call = rb_intern("call");
@@ -422,6 +392,11 @@ Init_gtk(void)
422
392
 
423
393
  rb_define_const(RG_TARGET_NAMESPACE, "PRIORITY_RESIZE", INT2FIX(GTK_PRIORITY_RESIZE));
424
394
 
395
+ Init_gtk_gdk_event();
396
+ Init_gtk_drag_gdk_drag_context();
397
+ Init_gtk_style_context_gdk_screen();
398
+ Init_gtk_tooltip_gdk_display();
399
+
425
400
  Init_gtk_aboutdialog(RG_TARGET_NAMESPACE);
426
401
  Init_gtk_accelerator(RG_TARGET_NAMESPACE);
427
402
  Init_gtk_accel_group(RG_TARGET_NAMESPACE);
@@ -72,10 +72,11 @@ G_GNUC_INTERNAL GtkTargetEntry *rbgtk_rval2gtktargetentries(VALUE value, long *n
72
72
  #define RVAL2GTKTARGETENTRIES_ACCEPT_NIL(value, n) rbgtk_rval2gtktargetentries_accept_nil(value, n)
73
73
  G_GNUC_INTERNAL GtkTargetEntry *rbgtk_rval2gtktargetentries_accept_nil(VALUE value, long *n);
74
74
 
75
- G_GNUC_INTERNAL void Init_gdk_display(void);
76
- G_GNUC_INTERNAL void Init_gdk_dragcontext(void);
77
- G_GNUC_INTERNAL void Init_gdk_event(void);
78
- G_GNUC_INTERNAL void Init_gdk_screen(void);
75
+ G_GNUC_INTERNAL void Init_gtk_gdk_event(void);
76
+ G_GNUC_INTERNAL void Init_gtk_drag_gdk_drag_context(void);
77
+ G_GNUC_INTERNAL void Init_gtk_style_context_gdk_screen(void);
78
+ G_GNUC_INTERNAL void Init_gtk_tooltip_gdk_display(void);
79
+
79
80
  G_GNUC_INTERNAL void Init_gtk(void);
80
81
  G_GNUC_INTERNAL void Init_gtk_aboutdialog(VALUE mGtk);
81
82
  G_GNUC_INTERNAL void Init_gtk_accelerator(VALUE mGtk);
data/lib/1.8/gtk3.so CHANGED
Binary file
data/lib/1.9/gtk3.so CHANGED
Binary file
@@ -1,3 +1,20 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
16
+ # MA 02110-1301 USA
17
+
1
18
  class TestGtkListStore < Test::Unit::TestCase
2
19
  include GtkTestUtils
3
20
 
@@ -62,4 +79,30 @@ class TestGtkListStore < Test::Unit::TestCase
62
79
  end
63
80
  assert_equal([2, 'she'], [iter[ID], iter[NAME]])
64
81
  end
82
+
83
+ def test_iter_gc
84
+ n_iterators = count_objects(Gtk::TreeIter)
85
+ 50.times do |i|
86
+ iter = @store.append
87
+ iter[ID] = i
88
+ iter[NAME] = i.to_s
89
+ end
90
+ 100.times do
91
+ @store.iter_first
92
+ end
93
+ iter = @store.iter_first
94
+ while @store.remove(iter); end
95
+ iter = nil
96
+ assert_equal(0, @store.to_enum(:each).to_a.size)
97
+ GC.start
98
+ assert_equal(n_iterators, count_objects(Gtk::TreeIter))
99
+ end
100
+
101
+ private
102
+ def count_objects(klass)
103
+ n_objects = ObjectSpace.each_object(Gtk::TreeIter) do
104
+ # do nothing
105
+ end
106
+ n_objects
107
+ end
65
108
  end