gtk3 1.2.0-x86-mingw32 → 1.2.1-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +0 -12
- data/ext/gtk3/init.c +0 -4
- data/ext/gtk3/{rbgtkaboutdialog.c → rbgtk-about-dialog.c} +1 -1
- data/ext/gtk3/{rbgtkaccelgroupentry.c → rbgtk-accel-group-entry.c} +0 -0
- data/ext/gtk3/{rbgtkaccelgroup.c → rbgtk-accel-group.c} +1 -1
- data/ext/gtk3/{rbgtkaccelkey.c → rbgtk-accel-key.c} +0 -0
- data/ext/gtk3/{rbgtkaccellabel.c → rbgtk-accel-label.c} +0 -0
- data/ext/gtk3/{rbgtkaccelmap.c → rbgtk-accel-map.c} +0 -0
- data/ext/gtk3/{rbgtkaccelerator.c → rbgtk-accelerator.c} +0 -0
- data/ext/gtk3/{rbgtkaccessible.c → rbgtk-accessible.c} +0 -0
- data/ext/gtk3/{rbgtkactiongroup.c → rbgtk-action-group.c} +1 -1
- data/ext/gtk3/{rbgtkaction.c → rbgtk-action.c} +0 -0
- data/ext/gtk3/{rbgtkactivatable.c → rbgtk-activatable.c} +0 -0
- data/ext/gtk3/{rbgtkadjustment.c → rbgtk-adjustment.c} +1 -1
- data/ext/gtk3/{rbgtkalignment.c → rbgtk-alignment.c} +1 -1
- data/ext/gtk3/{rbgtkallocation.c → rbgtk-allocation.c} +1 -1
- data/ext/gtk3/{rbgtkappchooserbutton.c → rbgtk-app-chooser-button.c} +0 -0
- data/ext/gtk3/{rbgtkappchooserdialog.c → rbgtk-app-chooser-dialog.c} +0 -0
- data/ext/gtk3/{rbgtkappchooserwidget.c → rbgtk-app-chooser-widget.c} +0 -0
- data/ext/gtk3/{rbgtkappchooser.c → rbgtk-app-chooser.c} +0 -0
- data/ext/gtk3/{rbgtkapplication.c → rbgtk-application.c} +0 -0
- data/ext/gtk3/{rbgtkarrow.c → rbgtk-arrow.c} +1 -1
- data/ext/gtk3/{rbgtkaspectframe.c → rbgtk-aspect-frame.c} +1 -1
- data/ext/gtk3/{rbgtkassistant.c → rbgtk-assistant.c} +0 -0
- data/ext/gtk3/{rbgtkbin.c → rbgtk-bin.c} +1 -1
- data/ext/gtk3/{rbgtkbindingset.c → rbgtk-binding-set.c} +1 -1
- data/ext/gtk3/{rbgtkborder.c → rbgtk-border.c} +1 -1
- data/ext/gtk3/{rbgtkbox.c → rbgtk-box.c} +1 -1
- data/ext/gtk3/{rbgtkbuildable.c → rbgtk-buildable.c} +0 -0
- data/ext/gtk3/{rbgtkbuilder.c → rbgtk-builder.c} +0 -0
- data/ext/gtk3/{rbgtkbuttonbox.c → rbgtk-button-box.c} +1 -1
- data/ext/gtk3/{rbgtkbutton.c → rbgtk-button.c} +1 -1
- data/ext/gtk3/{rbgtkcalendar.c → rbgtk-calendar.c} +1 -1
- data/ext/gtk3/{rbgtkcelleditable.c → rbgtk-cell-editable.c} +0 -0
- data/ext/gtk3/{rbgtkcelllayout.c → rbgtk-cell-layout.c} +0 -0
- data/ext/gtk3/{rbgtkcellrendereraccel.c → rbgtk-cell-renderer-accel.c} +0 -0
- data/ext/gtk3/{rbgtkcellrenderercombo.c → rbgtk-cell-renderer-combo.c} +0 -0
- data/ext/gtk3/{rbgtkcellrendererpixbuf.c → rbgtk-cell-renderer-pixbuf.c} +0 -0
- data/ext/gtk3/{rbgtkcellrendererprogress.c → rbgtk-cell-renderer-progress.c} +0 -0
- data/ext/gtk3/{rbgtkcellrendererspin.c → rbgtk-cell-renderer-spin.c} +0 -0
- data/ext/gtk3/{rbgtkcellrendererspinner.c → rbgtk-cell-renderer-spinner.c} +0 -0
- data/ext/gtk3/{rbgtkcellrenderertext.c → rbgtk-cell-renderer-text.c} +0 -0
- data/ext/gtk3/{rbgtkcellrenderertoggle.c → rbgtk-cell-renderer-toggle.c} +0 -0
- data/ext/gtk3/{rbgtkcellrenderer.c → rbgtk-cell-renderer.c} +0 -0
- data/ext/gtk3/{rbgtkcellview.c → rbgtk-cell-view.c} +0 -0
- data/ext/gtk3/{rbgtkcheckbutton.c → rbgtk-check-button.c} +1 -1
- data/ext/gtk3/{rbgtkcheckmenuitem.c → rbgtk-check-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtkclipboard.c → rbgtk-clip-board.c} +1 -1
- data/ext/gtk3/{rbgtkcolorbutton.c → rbgtk-color-button.c} +1 -1
- data/ext/gtk3/{rbgtkcolorselectiondialog.c → rbgtk-color-selection-dialog.c} +1 -1
- data/ext/gtk3/{rbgtkcolorselection.c → rbgtk-color-selection.c} +1 -1
- data/ext/gtk3/{rbgtkcomboboxtext.c → rbgtk-combo-box-text.c} +0 -0
- data/ext/gtk3/{rbgtkcombobox.c → rbgtk-combo-box.c} +1 -1
- data/ext/gtk3/{rbgtkconst.c → rbgtk-const.c} +1 -1
- data/ext/gtk3/{rbgtkcontainer.c → rbgtk-container.c} +1 -1
- data/ext/gtk3/{rbgtkcssprovider.c → rbgtk-css-provider.c} +0 -0
- data/ext/gtk3/{rbgtkdialog.c → rbgtk-dialog.c} +1 -1
- data/ext/gtk3/{rbgdkdragcontext.c → rbgtk-drag-gdk-drag-context.c} +2 -2
- data/ext/gtk3/{rbgtkdrag.c → rbgtk-drag.c} +0 -0
- data/ext/gtk3/{rbgtkdrawingarea.c → rbgtk-drawing-area.c} +1 -1
- data/ext/gtk3/{rbgtkeditable.c → rbgtk-editable.c} +1 -1
- data/ext/gtk3/{rbgtkentrybuffer.c → rbgtk-entry-buffer.c} +0 -0
- data/ext/gtk3/{rbgtkentrycompletion.c → rbgtk-entry-completion.c} +1 -1
- data/ext/gtk3/{rbgtkentry.c → rbgtk-entry.c} +0 -0
- data/ext/gtk3/{rbgtkeventbox.c → rbgtk-event-box.c} +1 -1
- data/ext/gtk3/{rbgtkexpander.c → rbgtk-expander.c} +1 -1
- data/ext/gtk3/{rbgtkfilechooserbutton.c → rbgtk-file-chooser-button.c} +1 -1
- data/ext/gtk3/{rbgtkfilechooserdialog.c → rbgtk-file-chooser-dialog.c} +1 -1
- data/ext/gtk3/{rbgtkfilechooserwidget.c → rbgtk-file-chooser-widget.c} +1 -1
- data/ext/gtk3/{rbgtkfilechooser.c → rbgtk-file-chooser.c} +1 -1
- data/ext/gtk3/{rbgtkfilefilter.c → rbgtk-file-filter.c} +1 -1
- data/ext/gtk3/{rbgtkfilesystemerror.c → rbgtk-file-system-error.c} +1 -1
- data/ext/gtk3/{rbgtkfixed.c → rbgtk-fixed.c} +1 -1
- data/ext/gtk3/{rbgtkfontbutton.c → rbgtk-font-button.c} +1 -1
- data/ext/gtk3/{rbgtkfontchooserdialog.c → rbgtk-font-chooser-dialog.c} +0 -0
- data/ext/gtk3/{rbgtkfontchooserwidget.c → rbgtk-font-chooser-widget.c} +0 -0
- data/ext/gtk3/{rbgtkfontchooser.c → rbgtk-font-chooser.c} +0 -0
- data/ext/gtk3/{rbgtkframe.c → rbgtk-frame.c} +1 -1
- data/ext/gtk3/{rbgdkevent.c → rbgtk-gdk-event.c} +3 -3
- data/ext/gtk3/{rbgtkgrid.c → rbgtk-grid.c} +0 -0
- data/ext/gtk3/{rbgtkhandlebox.c → rbgtk-handle-box.c} +1 -1
- data/ext/gtk3/{rbgtkhsv.c → rbgtk-hsv.c} +0 -0
- data/ext/gtk3/{rbgtkiconfactory.c → rbgtk-icon-factory.c} +0 -0
- data/ext/gtk3/{rbgtkiconinfo.c → rbgtk-icon-info.c} +1 -1
- data/ext/gtk3/{rbgtkiconset.c → rbgtk-icon-set.c} +0 -0
- data/ext/gtk3/{rbgtkiconsize.c → rbgtk-icon-size.c} +0 -0
- data/ext/gtk3/{rbgtkiconsource.c → rbgtk-icon-source.c} +0 -0
- data/ext/gtk3/{rbgtkicontheme.c → rbgtk-icon-theme.c} +0 -0
- data/ext/gtk3/{rbgtkiconview.c → rbgtk-icon-view.c} +0 -0
- data/ext/gtk3/{rbgtkimmulticontext.c → rbgtk-im-multicontext.c} +1 -1
- data/ext/gtk3/{rbgtkimagemenuitem.c → rbgtk-image-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtkimage.c → rbgtk-image.c} +1 -1
- data/ext/gtk3/{rbgtkimcontextsimple.c → rbgtk-imcon-text-simple.c} +1 -1
- data/ext/gtk3/{rbgtkimcontext.c → rbgtk-imcon-text.c} +1 -1
- data/ext/gtk3/{rbgtkinfobar.c → rbgtk-infobar.c} +0 -0
- data/ext/gtk3/{rbgtkinvisible.c → rbgtk-invisible.c} +0 -0
- data/ext/gtk3/{rbgtklabel.c → rbgtk-label.c} +1 -1
- data/ext/gtk3/{rbgtklayout.c → rbgtk-layout.c} +0 -0
- data/ext/gtk3/{rbgtklinkbutton.c → rbgtk-link-button.c} +1 -1
- data/ext/gtk3/{rbgtkliststore.c → rbgtk-list-store.c} +2 -11
- data/ext/gtk3/{rbgtklockbutton.c → rbgtk-lock-button.c} +0 -0
- data/ext/gtk3/{rbgtkmenuitem.c → rbgtk-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtkmenushell.c → rbgtk-menu-shell.c} +1 -1
- data/ext/gtk3/{rbgtkmenutoolbutton.c → rbgtk-menu-tool-button.c} +1 -1
- data/ext/gtk3/{rbgtkmenu.c → rbgtk-menu.c} +1 -1
- data/ext/gtk3/{rbgtkmenubar.c → rbgtk-menubar.c} +1 -1
- data/ext/gtk3/{rbgtkmessagedialog.c → rbgtk-message-dialog.c} +1 -1
- data/ext/gtk3/{rbgtkmisc.c → rbgtk-misc.c} +1 -1
- data/ext/gtk3/{rbgtknotebook.c → rbgtk-notebook.c} +1 -1
- data/ext/gtk3/{rbgtknumerableicon.c → rbgtk-numerable-icon.c} +0 -0
- data/ext/gtk3/{rbgtkorientable.c → rbgtk-orientable.c} +0 -0
- data/ext/gtk3/{rbgtkoverlay.c → rbgtk-overlay.c} +0 -0
- data/ext/gtk3/{rbgtkpagesetupunixdialog.c → rbgtk-page-setup-unix-dialog.c} +0 -0
- data/ext/gtk3/{rbgtkpagesetup.c → rbgtk-page-setup.c} +0 -0
- data/ext/gtk3/{rbgtkpaned.c → rbgtk-paned.c} +1 -1
- data/ext/gtk3/{rbgtkpapersize.c → rbgtk-paper-size.c} +0 -0
- data/ext/gtk3/{rbgtkplug.c → rbgtk-plug.c} +1 -1
- data/ext/gtk3/{rbgtkprintcontext.c → rbgtk-print-context.c} +0 -0
- data/ext/gtk3/{rbgtkprintjob.c → rbgtk-print-job.c} +0 -0
- data/ext/gtk3/{rbgtkprintoperationpreview.c → rbgtk-print-operation-preview.c} +0 -0
- data/ext/gtk3/{rbgtkprintoperation.c → rbgtk-print-operation.c} +0 -0
- data/ext/gtk3/{rbgtkprintsettings.c → rbgtk-print-settings.c} +0 -0
- data/ext/gtk3/{rbgtkprintunixdialog.c → rbgtk-print-unix-dialog.c} +0 -0
- data/ext/gtk3/{rbgtkprinter.c → rbgtk-printer.c} +0 -0
- data/ext/gtk3/{rbgtkprogressbar.c → rbgtk-progress-bar.c} +1 -1
- data/ext/gtk3/{rbgtkradioaction.c → rbgtk-radio-action.c} +1 -1
- data/ext/gtk3/{rbgtkradiobutton.c → rbgtk-radio-button.c} +1 -1
- data/ext/gtk3/{rbgtkradiomenuitem.c → rbgtk-radio-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtkradiotoolbutton.c → rbgtk-radio-tool-button.c} +1 -1
- data/ext/gtk3/{rbgtkrange.c → rbgtk-range.c} +1 -1
- data/ext/gtk3/{rbgtkrecentaction.c → rbgtk-recent-action.c} +1 -1
- data/ext/gtk3/{rbgtkrecentchooserdialog.c → rbgtk-recent-chooser-dialog.c} +1 -1
- data/ext/gtk3/{rbgtkrecentchoosermenu.c → rbgtk-recent-chooser-menu.c} +1 -1
- data/ext/gtk3/{rbgtkrecentchooserwidget.c → rbgtk-recent-chooser-widget.c} +1 -1
- data/ext/gtk3/{rbgtkrecentchooser.c → rbgtk-recent-chooser.c} +1 -1
- data/ext/gtk3/{rbgtkrecentdata.c → rbgtk-recent-data.c} +0 -0
- data/ext/gtk3/{rbgtkrecentfilterinfo.c → rbgtk-recent-filter-info.c} +1 -1
- data/ext/gtk3/{rbgtkrecentfilter.c → rbgtk-recent-filter.c} +1 -1
- data/ext/gtk3/{rbgtkrecentinfo.c → rbgtk-recent-info.c} +1 -1
- data/ext/gtk3/{rbgtkrecentmanager.c → rbgtk-recent-manager.c} +1 -1
- data/ext/gtk3/{rbgtkscalebutton.c → rbgtk-scale-button.c} +1 -1
- data/ext/gtk3/{rbgtkscale.c → rbgtk-scale.c} +1 -1
- data/ext/gtk3/{rbgtkscrollable.c → rbgtk-scrollable.c} +0 -0
- data/ext/gtk3/{rbgtkscrollbar.c → rbgtk-scrollbar.c} +0 -0
- data/ext/gtk3/{rbgtkscrolledwindow.c → rbgtk-scrolled-window.c} +1 -1
- data/ext/gtk3/{rbgtkselectiondata.c → rbgtk-selection-data.c} +0 -0
- data/ext/gtk3/{rbgtkselection.c → rbgtk-selection.c} +0 -0
- data/ext/gtk3/{rbgtkseparatormenuitem.c → rbgtk-separator-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtkseparatortoolitem.c → rbgtk-separator-tool-item.c} +1 -1
- data/ext/gtk3/{rbgtkseparator.c → rbgtk-separator.c} +0 -0
- data/ext/gtk3/{rbgtksettings.c → rbgtk-settings.c} +1 -1
- data/ext/gtk3/{rbgtksizegroup.c → rbgtk-size-group.c} +0 -0
- data/ext/gtk3/{rbgtksocket.c → rbgtk-socket.c} +1 -1
- data/ext/gtk3/{rbgtkspinbutton.c → rbgtk-spin-button.c} +1 -1
- data/ext/gtk3/{rbgtkspinner.c → rbgtk-spinner.c} +1 -1
- data/ext/gtk3/{rbgtkstatusbar.c → rbgtk-status-bar.c} +1 -1
- data/ext/gtk3/{rbgtkstatusicon.c → rbgtk-status-icon.c} +1 -1
- data/ext/gtk3/{rbgtkstock.c → rbgtk-stock.c} +0 -0
- data/ext/gtk3/{rbgdkscreen.c → rbgtk-style-context-gdk-screen.c} +3 -3
- data/ext/gtk3/{rbgtkstylecontext.c → rbgtk-style-context.c} +0 -0
- data/ext/gtk3/{rbgtkstyleproperties.c → rbgtk-style-properties.c} +0 -0
- data/ext/gtk3/{rbgtkstyleprovider.c → rbgtk-style-provider.c} +0 -0
- data/ext/gtk3/{rbgtkswitch.c → rbgtk-switch.c} +0 -0
- data/ext/gtk3/{rbgtktable.c → rbgtk-table.c} +1 -1
- data/ext/gtk3/{rbgtktargetlist.c → rbgtk-target-list.c} +0 -0
- data/ext/gtk3/{rbgtktearoffmenuitem.c → rbgtk-tearoff-menu-item.c} +1 -1
- data/ext/gtk3/{rbgtktextappearance.c → rbgtk-text-appearance.c} +0 -0
- data/ext/gtk3/{rbgtktextattributes.c → rbgtk-text-attributes.c} +0 -0
- data/ext/gtk3/{rbgtktextbuffer.c → rbgtk-text-buffer.c} +1 -1
- data/ext/gtk3/{rbgtktextchildanchor.c → rbgtk-text-child-anchor.c} +0 -0
- data/ext/gtk3/{rbgtktextiter.c → rbgtk-text-iter.c} +0 -0
- data/ext/gtk3/{rbgtktextmark.c → rbgtk-text-mark.c} +1 -1
- data/ext/gtk3/{rbgtktexttagtable.c → rbgtk-text-tag-table.c} +0 -0
- data/ext/gtk3/{rbgtktexttag.c → rbgtk-text-tag.c} +0 -0
- data/ext/gtk3/{rbgtktextview.c → rbgtk-text-view.c} +0 -0
- data/ext/gtk3/{rbgtkthemingengine.c → rbgtk-theming-engine.c} +0 -0
- data/ext/gtk3/{rbgtktoggleaction.c → rbgtk-toggle-action.c} +1 -1
- data/ext/gtk3/{rbgtktogglebutton.c → rbgtk-toggle-button.c} +1 -1
- data/ext/gtk3/{rbgtktoggletoolbutton.c → rbgtk-toggle-tool-button.c} +1 -1
- data/ext/gtk3/{rbgtktoolbutton.c → rbgtk-tool-button.c} +1 -1
- data/ext/gtk3/{rbgtktoolitem.c → rbgtk-tool-item.c} +1 -1
- data/ext/gtk3/{rbgtktoolitemgroup.c → rbgtk-tool-itemgroup.c} +0 -0
- data/ext/gtk3/{rbgtktoolshell.c → rbgtk-tool-shell.c} +0 -0
- data/ext/gtk3/{rbgtktoolbar.c → rbgtk-toolbar.c} +0 -0
- data/ext/gtk3/{rbgdkdisplay.c → rbgtk-tooltip-gdk-display.c} +3 -3
- data/ext/gtk3/{rbgtktooltip.c → rbgtk-tooltip.c} +1 -1
- data/ext/gtk3/{rbgtktreedragdest.c → rbgtk-tree-dragdest.c} +0 -0
- data/ext/gtk3/{rbgtktreedragsource.c → rbgtk-tree-dragsource.c} +0 -0
- data/ext/gtk3/{rbgtktreeiter.c → rbgtk-tree-iter.c} +1 -1
- data/ext/gtk3/{rbgtktreemodel.c → rbgtk-tree-model.c} +8 -10
- data/ext/gtk3/{rbgtktreemodelfilter.c → rbgtk-tree-modelfilter.c} +1 -1
- data/ext/gtk3/{rbgtktreemodelsort.c → rbgtk-tree-modelsort.c} +1 -1
- data/ext/gtk3/{rbgtktreepath.c → rbgtk-tree-path.c} +1 -1
- data/ext/gtk3/{rbgtktreerowreference.c → rbgtk-tree-rowreference.c} +1 -1
- data/ext/gtk3/{rbgtktreeselection.c → rbgtk-tree-selection.c} +0 -0
- data/ext/gtk3/{rbgtktreesortable.c → rbgtk-tree-sortable.c} +0 -0
- data/ext/gtk3/{rbgtktreestore.c → rbgtk-tree-store.c} +0 -0
- data/ext/gtk3/{rbgtktreeviewcolumn.c → rbgtk-tree-view-column.c} +0 -0
- data/ext/gtk3/{rbgtktreeview.c → rbgtk-tree-view.c} +1 -1
- data/ext/gtk3/{rbgtkuimanager.c → rbgtk-ui-manager.c} +0 -0
- data/ext/gtk3/{rbgtkviewport.c → rbgtk-viewport.c} +1 -1
- data/ext/gtk3/{rbgtkvolumebutton.c → rbgtk-volume-button.c} +1 -1
- data/ext/gtk3/{rbgtkwidgetpath.c → rbgtk-widget-path.c} +0 -0
- data/ext/gtk3/{rbgtkwidget.c → rbgtk-widget.c} +1 -1
- data/ext/gtk3/{rbgtkwindowgroup.c → rbgtk-window-group.c} +1 -1
- data/ext/gtk3/{rbgtkwindow.c → rbgtk-window.c} +1 -1
- data/ext/gtk3/rbgtk.c +7 -32
- data/ext/gtk3/rbgtk3private.h +5 -4
- data/lib/1.8/gtk3.so +0 -0
- data/lib/1.9/gtk3.so +0 -0
- data/test/test_gtk_list_store.rb +43 -0
- metadata +226 -227
- data/vendor/local/etc/gtk-2.0/gtkrc +0 -1
File without changes
|
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
|
-
|
33
|
+
void
|
34
|
+
Init_gtk_tooltip_gdk_display(void)
|
35
35
|
{
|
36
36
|
VALUE RG_TARGET_NAMESPACE = GTYPE2CLASS(GDK_TYPE_DISPLAY);
|
37
37
|
|
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
|
* 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);
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
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);
|
data/ext/gtk3/rbgtk3private.h
CHANGED
@@ -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
|
76
|
-
G_GNUC_INTERNAL void
|
77
|
-
G_GNUC_INTERNAL void
|
78
|
-
G_GNUC_INTERNAL 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
|
data/test/test_gtk_list_store.rb
CHANGED
@@ -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
|