gtk2 0.90.7-x86-mingw32 → 0.90.8-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/ChangeLog +62 -0
- data/ext/gtk2/extconf.rb +2 -2
- data/ext/gtk2/rbgdk.c +30 -61
- data/ext/gtk2/rbgdkatom.c +6 -14
- data/ext/gtk2/rbgdkcairo.c +4 -8
- data/ext/gtk2/rbgdkcolor.c +11 -27
- data/ext/gtk2/rbgdkcolormap.c +8 -16
- data/ext/gtk2/rbgdkcursor.c +5 -12
- data/ext/gtk2/rbgdkdevice.c +16 -32
- data/ext/gtk2/rbgdkdisplay.c +49 -100
- data/ext/gtk2/rbgdkdisplaymanager.c +3 -6
- data/ext/gtk2/rbgdkdragcontext.c +21 -48
- data/ext/gtk2/rbgdkdraw.c +27 -60
- data/ext/gtk2/rbgdkevent.c +51 -113
- data/ext/gtk2/rbgdkgc.c +35 -70
- data/ext/gtk2/rbgdkgeometry.c +24 -50
- data/ext/gtk2/rbgdkimage.c +14 -28
- data/ext/gtk2/rbgdkinput.c +3 -8
- data/ext/gtk2/rbgdkkeymap.c +7 -14
- data/ext/gtk2/rbgdkkeyval.c +9 -18
- data/ext/gtk2/rbgdkpango.c +8 -18
- data/ext/gtk2/rbgdkpangorenderer.c +7 -18
- data/ext/gtk2/rbgdkpixbuf.c +5 -20
- data/ext/gtk2/rbgdkpixmap.c +9 -24
- data/ext/gtk2/rbgdkproperty.c +8 -28
- data/ext/gtk2/rbgdkrectangle.c +12 -24
- data/ext/gtk2/rbgdkregion.c +15 -33
- data/ext/gtk2/rbgdkrgb.c +11 -26
- data/ext/gtk2/rbgdkscreen.c +37 -78
- data/ext/gtk2/rbgdkselection.c +5 -16
- data/ext/gtk2/rbgdkthreads.c +4 -8
- data/ext/gtk2/rbgdktimecoord.c +5 -10
- data/ext/gtk2/rbgdkvisual.c +25 -50
- data/ext/gtk2/rbgdkwindow.c +102 -211
- data/ext/gtk2/rbgdkwindowattr.c +16 -32
- data/ext/gtk2/rbgdkx11.c +5 -12
- data/ext/gtk2/rbgtk.c +9 -10
- data/ext/gtk2/rbgtkaboutdialog.c +5 -12
- data/ext/gtk2/rbgtkaccelerator.c +6 -12
- data/ext/gtk2/rbgtkaccelgroup.c +14 -32
- data/ext/gtk2/rbgtkaccelgroupentry.c +4 -8
- data/ext/gtk2/rbgtkaccelkey.c +7 -14
- data/ext/gtk2/rbgtkaccellabel.c +3 -6
- data/ext/gtk2/rbgtkaccelmap.c +12 -28
- data/ext/gtk2/rbgtkaccessible.c +1 -2
- data/ext/gtk2/rbgtkaction.c +20 -42
- data/ext/gtk2/rbgtkactiongroup.c +15 -39
- data/ext/gtk2/rbgtkadjustment.c +14 -28
- data/ext/gtk2/rbgtkalignment.c +4 -8
- data/ext/gtk2/rbgtkallocation.c +13 -26
- data/ext/gtk2/rbgtkarrow.c +2 -4
- data/ext/gtk2/rbgtkaspectframe.c +2 -4
- data/ext/gtk2/rbgtkassistant.c +23 -47
- data/ext/gtk2/rbgtkbbox.c +2 -4
- data/ext/gtk2/rbgtkbin.c +1 -2
- data/ext/gtk2/rbgtkbindingset.c +8 -18
- data/ext/gtk2/rbgtkborder.c +4 -8
- data/ext/gtk2/rbgtkbox.c +8 -23
- data/ext/gtk2/rbgtkbutton.c +8 -18
- data/ext/gtk2/rbgtkcalendar.c +11 -24
- data/ext/gtk2/rbgtkcelleditable.c +3 -6
- data/ext/gtk2/rbgtkcelllayout.c +9 -22
- data/ext/gtk2/rbgtkcellrenderer.c +8 -19
- data/ext/gtk2/rbgtkcellrendereraccel.c +1 -2
- data/ext/gtk2/rbgtkcellrenderercombo.c +1 -2
- data/ext/gtk2/rbgtkcellrendererpixbuf.c +1 -2
- data/ext/gtk2/rbgtkcellrendererprogress.c +1 -2
- data/ext/gtk2/rbgtkcellrendererspin.c +1 -2
- data/ext/gtk2/rbgtkcellrendererspinner.c +35 -0
- data/ext/gtk2/rbgtkcellrenderertext.c +2 -4
- data/ext/gtk2/rbgtkcellrenderertoggle.c +1 -2
- data/ext/gtk2/rbgtkcellview.c +6 -14
- data/ext/gtk2/rbgtkcheckbutton.c +1 -4
- data/ext/gtk2/rbgtkcheckmenuitem.c +2 -6
- data/ext/gtk2/rbgtkclipboard.c +30 -75
- data/ext/gtk2/rbgtkcolorbutton.c +1 -4
- data/ext/gtk2/rbgtkcolorsel.c +10 -24
- data/ext/gtk2/rbgtkcolorselectiondialog.c +5 -12
- data/ext/gtk2/rbgtkcombo.c +7 -16
- data/ext/gtk2/rbgtkcombobox.c +14 -32
- data/ext/gtk2/rbgtkcomboboxentry.c +1 -4
- data/ext/gtk2/rbgtkcontainer.c +27 -70
- data/ext/gtk2/rbgtkcurve.c +6 -12
- data/ext/gtk2/rbgtkdialog.c +14 -32
- data/ext/gtk2/rbgtkdrag.c +31 -68
- data/ext/gtk2/rbgtkdrawingarea.c +1 -2
- data/ext/gtk2/rbgtkeditable.c +13 -26
- data/ext/gtk2/rbgtkentry.c +7 -14
- data/ext/gtk2/rbgtkentrycompletion.c +10 -23
- data/ext/gtk2/rbgtkeventbox.c +1 -2
- data/ext/gtk2/rbgtkexpander.c +1 -4
- data/ext/gtk2/rbgtkfilechooser.c +30 -60
- data/ext/gtk2/rbgtkfilechooserbutton.c +1 -4
- data/ext/gtk2/rbgtkfilechooserdialog.c +1 -4
- data/ext/gtk2/rbgtkfilechooserwidget.c +1 -4
- data/ext/gtk2/rbgtkfilefilter.c +10 -21
- data/ext/gtk2/rbgtkfilesel.c +14 -30
- data/ext/gtk2/rbgtkfixed.c +5 -10
- data/ext/gtk2/rbgtkfontbutton.c +1 -4
- data/ext/gtk2/rbgtkfontselection.c +1 -2
- data/ext/gtk2/rbgtkfontselectiondialog.c +9 -20
- data/ext/gtk2/rbgtkframe.c +3 -8
- data/ext/gtk2/rbgtkgamma.c +3 -6
- data/ext/gtk2/rbgtkhandlebox.c +2 -4
- data/ext/gtk2/rbgtkhbbox.c +1 -2
- data/ext/gtk2/rbgtkhbox.c +1 -4
- data/ext/gtk2/rbgtkhpaned.c +1 -2
- data/ext/gtk2/rbgtkhruler.c +1 -2
- data/ext/gtk2/rbgtkhscale.c +1 -4
- data/ext/gtk2/rbgtkhscrollbar.c +1 -4
- data/ext/gtk2/rbgtkhseparator.c +1 -2
- data/ext/gtk2/rbgtkiconfactory.c +6 -12
- data/ext/gtk2/rbgtkiconinfo.c +8 -16
- data/ext/gtk2/rbgtkiconset.c +4 -12
- data/ext/gtk2/rbgtkiconsize.c +6 -12
- data/ext/gtk2/rbgtkiconsource.c +17 -34
- data/ext/gtk2/rbgtkicontheme.c +16 -32
- data/ext/gtk2/rbgtkiconview.c +23 -50
- data/ext/gtk2/rbgtkimage.c +3 -10
- data/ext/gtk2/rbgtkimagemenuitem.c +1 -4
- data/ext/gtk2/rbgtkimcontext.c +11 -22
- data/ext/gtk2/rbgtkimcontextsimple.c +2 -4
- data/ext/gtk2/rbgtkimmulticontext.c +2 -4
- data/ext/gtk2/rbgtkinputdialog.c +1 -2
- data/ext/gtk2/rbgtkinvisible.c +3 -8
- data/ext/gtk2/rbgtkitem.c +3 -6
- data/ext/gtk2/rbgtkitemfactory.c +13 -34
- data/ext/gtk2/rbgtklabel.c +10 -26
- data/ext/gtk2/rbgtklayout.c +6 -14
- data/ext/gtk2/rbgtklinkbutton.c +3 -10
- data/ext/gtk2/rbgtkliststore.c +15 -36
- data/ext/gtk2/rbgtkmain.c +32 -68
- data/ext/gtk2/rbgtkmenu.c +21 -46
- data/ext/gtk2/rbgtkmenubar.c +1 -2
- data/ext/gtk2/rbgtkmenuitem.c +12 -26
- data/ext/gtk2/rbgtkmenushell.c +9 -18
- data/ext/gtk2/rbgtkmenutoolbutton.c +2 -8
- data/ext/gtk2/rbgtkmessagedialog.c +4 -10
- data/ext/gtk2/rbgtkmisc.c +4 -8
- data/ext/gtk2/rbgtknotebook.c +53 -79
- data/ext/gtk2/rbgtkobject.c +7 -14
- data/ext/gtk2/rbgtkoptionmenu.c +4 -8
- data/ext/gtk2/rbgtkpaned.c +10 -20
- data/ext/gtk2/rbgtkplug.c +3 -8
- data/ext/gtk2/rbgtkprintsettings.c +1 -4
- data/ext/gtk2/rbgtkprogressbar.c +2 -4
- data/ext/gtk2/rbgtkradioaction.c +4 -8
- data/ext/gtk2/rbgtkradiobutton.c +3 -8
- data/ext/gtk2/rbgtkradiomenuitem.c +4 -10
- data/ext/gtk2/rbgtkradiotoolbutton.c +3 -8
- data/ext/gtk2/rbgtkrange.c +4 -8
- data/ext/gtk2/rbgtkrc.c +16 -34
- data/ext/gtk2/rbgtkrcstyle.c +13 -26
- data/ext/gtk2/rbgtkrecentaction.c +1 -4
- data/ext/gtk2/rbgtkrecentchooser.c +18 -38
- data/ext/gtk2/rbgtkrecentchooserdialog.c +1 -4
- data/ext/gtk2/rbgtkrecentchoosermenu.c +1 -4
- data/ext/gtk2/rbgtkrecentchooserwidget.c +1 -4
- data/ext/gtk2/rbgtkrecentdata.c +7 -14
- data/ext/gtk2/rbgtkrecentfilter.c +14 -29
- data/ext/gtk2/rbgtkrecentfilterinfo.c +11 -22
- data/ext/gtk2/rbgtkrecentinfo.c +21 -42
- data/ext/gtk2/rbgtkrecentmanager.c +11 -24
- data/ext/gtk2/rbgtkruler.c +6 -12
- data/ext/gtk2/rbgtkscale.c +2 -4
- data/ext/gtk2/rbgtkscalebutton.c +6 -14
- data/ext/gtk2/rbgtkscrolledwindow.c +9 -20
- data/ext/gtk2/rbgtkselection.c +10 -22
- data/ext/gtk2/rbgtkselectiondata.c +19 -41
- data/ext/gtk2/rbgtkseparatormenuitem.c +1 -2
- data/ext/gtk2/rbgtkseparatortoolitem.c +1 -2
- data/ext/gtk2/rbgtksettings.c +10 -22
- data/ext/gtk2/rbgtksizegroup.c +4 -8
- data/ext/gtk2/rbgtksocket.c +4 -8
- data/ext/gtk2/rbgtkspinbutton.c +9 -20
- data/ext/gtk2/rbgtkspinner.c +51 -0
- data/ext/gtk2/rbgtkstatusbar.c +7 -14
- data/ext/gtk2/rbgtkstatusicon.c +5 -10
- data/ext/gtk2/rbgtkstock.c +5 -13
- data/ext/gtk2/rbgtkstyle.c +51 -139
- data/ext/gtk2/rbgtktable.c +14 -33
- data/ext/gtk2/rbgtktargetlist.c +9 -18
- data/ext/gtk2/rbgtktearoffmenuitem.c +1 -2
- data/ext/gtk2/rbgtktextappearance.c +11 -22
- data/ext/gtk2/rbgtktextattributes.c +16 -32
- data/ext/gtk2/rbgtktextbuffer.c +69 -162
- data/ext/gtk2/rbgtktextchild.c +3 -8
- data/ext/gtk2/rbgtktextiter.c +34 -81
- data/ext/gtk2/rbgtktextmark.c +7 -14
- data/ext/gtk2/rbgtktexttag.c +4 -10
- data/ext/gtk2/rbgtktexttagtable.c +7 -15
- data/ext/gtk2/rbgtktextview.c +30 -62
- data/ext/gtk2/rbgtktoggleaction.c +4 -8
- data/ext/gtk2/rbgtktogglebutton.c +4 -10
- data/ext/gtk2/rbgtktoggletoolbutton.c +3 -8
- data/ext/gtk2/rbgtktoolbar.c +20 -46
- data/ext/gtk2/rbgtktoolbutton.c +1 -4
- data/ext/gtk2/rbgtktoolitem.c +16 -34
- data/ext/gtk2/rbgtktooltip.c +5 -10
- data/ext/gtk2/rbgtktooltips.c +7 -14
- data/ext/gtk2/rbgtktreeiter.c +14 -29
- data/ext/gtk2/rbgtktreemodel.c +16 -37
- data/ext/gtk2/rbgtktreemodelfilter.c +13 -36
- data/ext/gtk2/rbgtktreemodelsort.c +8 -16
- data/ext/gtk2/rbgtktreepath.c +13 -28
- data/ext/gtk2/rbgtktreerowreference.c +9 -20
- data/ext/gtk2/rbgtktreeselection.c +20 -47
- data/ext/gtk2/rbgtktreesortable.c +7 -18
- data/ext/gtk2/rbgtktreestore.c +17 -40
- data/ext/gtk2/rbgtktreeview.c +58 -138
- data/ext/gtk2/rbgtktreeviewcolumn.c +20 -46
- data/ext/gtk2/rbgtkuimanager.c +12 -26
- data/ext/gtk2/rbgtkvbbox.c +1 -2
- data/ext/gtk2/rbgtkvbox.c +1 -4
- data/ext/gtk2/rbgtkviewport.c +1 -2
- data/ext/gtk2/rbgtkvolumebutton.c +1 -2
- data/ext/gtk2/rbgtkvpaned.c +1 -2
- data/ext/gtk2/rbgtkvruler.c +1 -2
- data/ext/gtk2/rbgtkvscale.c +1 -4
- data/ext/gtk2/rbgtkvscrollbar.c +1 -4
- data/ext/gtk2/rbgtkvseparator.c +1 -2
- data/ext/gtk2/rbgtkwidget.c +126 -264
- data/ext/gtk2/rbgtkwindow.c +69 -142
- data/ext/gtk2/rbgtkwindowgroup.c +3 -6
- data/lib/1.8/gtk2.so +0 -0
- data/lib/1.9/gtk2.so +0 -0
- data/lib/gtk2/base.rb +1 -2
- data/sample/gtk-demo/main.rb +2 -0
- data/sample/gtk-demo/textview.rb +1 -0
- metadata +15 -13
| @@ -18,10 +18,7 @@ static ID id_child_model; | |
| 18 18 | 
             
            static ID id_root;
         | 
| 19 19 |  | 
| 20 20 | 
             
            static VALUE
         | 
| 21 | 
            -
            treemodelfilter_initialize(argc, argv, self)
         | 
| 22 | 
            -
                int argc;
         | 
| 23 | 
            -
                VALUE* argv;
         | 
| 24 | 
            -
                VALUE self;
         | 
| 21 | 
            +
            treemodelfilter_initialize(int argc, VALUE *argv, VALUE self)
         | 
| 25 22 | 
             
            {
         | 
| 26 23 | 
             
                VALUE child_model, root;
         | 
| 27 24 | 
             
                GtkTreeModel* widget;
         | 
| @@ -43,10 +40,7 @@ treemodelfilter_initialize(argc, argv, self) | |
| 43 40 | 
             
            }
         | 
| 44 41 |  | 
| 45 42 | 
             
            static gboolean
         | 
| 46 | 
            -
            visible_func(model, iter, func)
         | 
| 47 | 
            -
                GtkTreeModel* model;
         | 
| 48 | 
            -
                GtkTreeIter* iter;
         | 
| 49 | 
            -
                gpointer func;
         | 
| 43 | 
            +
            visible_func(GtkTreeModel *model, GtkTreeIter *iter, gpointer func)
         | 
| 50 44 | 
             
            {
         | 
| 51 45 | 
             
                VALUE ret;
         | 
| 52 46 |  | 
| @@ -56,8 +50,7 @@ visible_func(model, iter, func) | |
| 56 50 | 
             
            }
         | 
| 57 51 |  | 
| 58 52 | 
             
            static VALUE
         | 
| 59 | 
            -
            treemodelfilter_set_visible_func(self)
         | 
| 60 | 
            -
                VALUE self;
         | 
| 53 | 
            +
            treemodelfilter_set_visible_func(VALUE self)
         | 
| 61 54 | 
             
            {
         | 
| 62 55 | 
             
                VALUE func = rb_block_proc();
         | 
| 63 56 | 
             
                G_RELATIVE(self, func);
         | 
| @@ -68,12 +61,7 @@ treemodelfilter_set_visible_func(self) | |
| 68 61 | 
             
            }
         | 
| 69 62 |  | 
| 70 63 | 
             
            static void
         | 
| 71 | 
            -
            modify_func(model, iter, value, column, func)
         | 
| 72 | 
            -
                GtkTreeModel* model;
         | 
| 73 | 
            -
                GtkTreeIter* iter;
         | 
| 74 | 
            -
                GValue* value;
         | 
| 75 | 
            -
                gint column;
         | 
| 76 | 
            -
                gpointer func;
         | 
| 64 | 
            +
            modify_func(GtkTreeModel *model, GtkTreeIter *iter, GValue *value, gint column, gpointer func)
         | 
| 77 65 | 
             
            {
         | 
| 78 66 | 
             
                VALUE ret;
         | 
| 79 67 | 
             
                iter->user_data3 = model;
         | 
| @@ -91,10 +79,7 @@ modify_func(model, iter, value, column, func) | |
| 91 79 | 
             
             * end
         | 
| 92 80 | 
             
             */
         | 
| 93 81 | 
             
            static VALUE
         | 
| 94 | 
            -
            treemodelfilter_set_modify_func(argc, argv, self)
         | 
| 95 | 
            -
                int argc;
         | 
| 96 | 
            -
                VALUE* argv;
         | 
| 97 | 
            -
                VALUE  self;
         | 
| 82 | 
            +
            treemodelfilter_set_modify_func(int argc, VALUE *argv, VALUE self)
         | 
| 98 83 | 
             
            {
         | 
| 99 84 | 
             
                VALUE func = rb_block_proc();
         | 
| 100 85 | 
             
                gint i;
         | 
| @@ -117,23 +102,20 @@ treemodelfilter_set_modify_func(argc, argv, self) | |
| 117 102 | 
             
            }
         | 
| 118 103 |  | 
| 119 104 | 
             
            static VALUE
         | 
| 120 | 
            -
            treemodelfilter_set_visible_column(self, column)
         | 
| 121 | 
            -
                VALUE self, column;
         | 
| 105 | 
            +
            treemodelfilter_set_visible_column(VALUE self, VALUE column)
         | 
| 122 106 | 
             
            {
         | 
| 123 107 | 
             
                gtk_tree_model_filter_set_visible_column(_SELF(self), NUM2INT(column));
         | 
| 124 108 | 
             
                return self;
         | 
| 125 109 | 
             
            }
         | 
| 126 110 |  | 
| 127 111 | 
             
            static VALUE
         | 
| 128 | 
            -
            treemodelfilter_get_model(self)
         | 
| 129 | 
            -
                VALUE self;
         | 
| 112 | 
            +
            treemodelfilter_get_model(VALUE self)
         | 
| 130 113 | 
             
            {
         | 
| 131 114 | 
             
                return GOBJ2RVAL(gtk_tree_model_filter_get_model(_SELF(self)));
         | 
| 132 115 | 
             
            }
         | 
| 133 116 |  | 
| 134 117 | 
             
            static VALUE
         | 
| 135 | 
            -
            treemodelfilter_convert_child_iter_to_iter(self, child_iter)
         | 
| 136 | 
            -
                VALUE self, child_iter;
         | 
| 118 | 
            +
            treemodelfilter_convert_child_iter_to_iter(VALUE self, VALUE child_iter)
         | 
| 137 119 | 
             
            {
         | 
| 138 120 | 
             
                GtkTreeIter filter_iter;
         | 
| 139 121 | 
             
                GtkTreeModelFilter* modelfilter = _SELF(self);
         | 
| @@ -144,8 +126,7 @@ treemodelfilter_convert_child_iter_to_iter(self, child_iter) | |
| 144 126 | 
             
            }
         | 
| 145 127 |  | 
| 146 128 | 
             
            static VALUE
         | 
| 147 | 
            -
            treemodelfilter_convert_iter_to_child_iter(self, filtered_iter)
         | 
| 148 | 
            -
                VALUE self, filtered_iter;
         | 
| 129 | 
            +
            treemodelfilter_convert_iter_to_child_iter(VALUE self, VALUE filtered_iter)
         | 
| 149 130 | 
             
            {
         | 
| 150 131 | 
             
                GtkTreeIter child_iter;
         | 
| 151 132 | 
             
                GtkTreeModelFilter* modelfilter = _SELF(self);
         | 
| @@ -156,16 +137,14 @@ treemodelfilter_convert_iter_to_child_iter(self, filtered_iter) | |
| 156 137 | 
             
            } 
         | 
| 157 138 |  | 
| 158 139 | 
             
            static VALUE
         | 
| 159 | 
            -
            treemodelfilter_convert_child_path_to_path(self, child_path)
         | 
| 160 | 
            -
                VALUE self, child_path;
         | 
| 140 | 
            +
            treemodelfilter_convert_child_path_to_path(VALUE self, VALUE child_path)
         | 
| 161 141 | 
             
            {
         | 
| 162 142 | 
             
                return GTKTREEPATH2RVAL(gtk_tree_model_filter_convert_child_path_to_path(
         | 
| 163 143 | 
             
                                         _SELF(self),
         | 
| 164 144 | 
             
                                         RVAL2GTKTREEPATH(child_path)));
         | 
| 165 145 | 
             
            }
         | 
| 166 146 | 
             
            static VALUE
         | 
| 167 | 
            -
            treemodelfilter_convert_path_to_child_path(self, filter_path)
         | 
| 168 | 
            -
                VALUE self, filter_path;
         | 
| 147 | 
            +
            treemodelfilter_convert_path_to_child_path(VALUE self, VALUE filter_path)
         | 
| 169 148 | 
             
            {
         | 
| 170 149 | 
             
                return GTKTREEPATH2RVAL(gtk_tree_model_filter_convert_path_to_child_path(
         | 
| 171 150 | 
             
                                         _SELF(self),
         | 
| @@ -173,16 +152,14 @@ treemodelfilter_convert_path_to_child_path(self, filter_path) | |
| 173 152 | 
             
            }
         | 
| 174 153 |  | 
| 175 154 | 
             
            static VALUE
         | 
| 176 | 
            -
            treemodelfilter_refilter(self)
         | 
| 177 | 
            -
                VALUE self;
         | 
| 155 | 
            +
            treemodelfilter_refilter(VALUE self)
         | 
| 178 156 | 
             
            {
         | 
| 179 157 | 
             
                gtk_tree_model_filter_refilter(_SELF(self));
         | 
| 180 158 | 
             
                return self;
         | 
| 181 159 | 
             
            }
         | 
| 182 160 |  | 
| 183 161 | 
             
            static VALUE
         | 
| 184 | 
            -
            treemodelfilter_clear_cache(self)
         | 
| 185 | 
            -
                VALUE self;
         | 
| 162 | 
            +
            treemodelfilter_clear_cache(VALUE self)
         | 
| 186 163 | 
             
            {
         | 
| 187 164 | 
             
                gtk_tree_model_filter_clear_cache(_SELF(self));
         | 
| 188 165 | 
             
                return self;
         | 
| @@ -16,8 +16,7 @@ | |
| 16 16 | 
             
            static ID id_model;
         | 
| 17 17 |  | 
| 18 18 | 
             
            static VALUE
         | 
| 19 | 
            -
            tmodelsort_initialize(self, model)
         | 
| 20 | 
            -
                VALUE self, model;
         | 
| 19 | 
            +
            tmodelsort_initialize(VALUE self, VALUE model)
         | 
| 21 20 | 
             
            {
         | 
| 22 21 | 
             
                G_CHILD_SET(self, id_model, model);
         | 
| 23 22 | 
             
                G_INITIALIZE(self, 
         | 
| @@ -26,8 +25,7 @@ tmodelsort_initialize(self, model) | |
| 26 25 | 
             
            }
         | 
| 27 26 |  | 
| 28 27 | 
             
            static VALUE
         | 
| 29 | 
            -
            tmodelsort_convert_child_path_to_path(self, child_path)
         | 
| 30 | 
            -
                VALUE self, child_path;
         | 
| 28 | 
            +
            tmodelsort_convert_child_path_to_path(VALUE self, VALUE child_path)
         | 
| 31 29 | 
             
            {
         | 
| 32 30 | 
             
                return GTKTREEPATH2RVAL(gtk_tree_model_sort_convert_child_path_to_path(
         | 
| 33 31 | 
             
                                         _SELF(self),
         | 
| @@ -35,8 +33,7 @@ tmodelsort_convert_child_path_to_path(self, child_path) | |
| 35 33 | 
             
            }
         | 
| 36 34 |  | 
| 37 35 | 
             
            static VALUE
         | 
| 38 | 
            -
            tmodelsort_convert_child_iter_to_iter(self, child_iter)
         | 
| 39 | 
            -
                VALUE self, child_iter;
         | 
| 36 | 
            +
            tmodelsort_convert_child_iter_to_iter(VALUE self, VALUE child_iter)
         | 
| 40 37 | 
             
            {
         | 
| 41 38 | 
             
                GtkTreeIter sort_iter;
         | 
| 42 39 | 
             
                GtkTreeModelSort* modelsort = _SELF(self);
         | 
| @@ -47,8 +44,7 @@ tmodelsort_convert_child_iter_to_iter(self, child_iter) | |
| 47 44 | 
             
            }
         | 
| 48 45 |  | 
| 49 46 | 
             
            static VALUE
         | 
| 50 | 
            -
            tmodelsort_convert_path_to_child_path(self, sorted_path)
         | 
| 51 | 
            -
                VALUE self, sorted_path;
         | 
| 47 | 
            +
            tmodelsort_convert_path_to_child_path(VALUE self, VALUE sorted_path)
         | 
| 52 48 | 
             
            {
         | 
| 53 49 | 
             
                return GTKTREEPATH2RVAL(gtk_tree_model_sort_convert_path_to_child_path(
         | 
| 54 50 | 
             
                                         _SELF(self),
         | 
| @@ -56,8 +52,7 @@ tmodelsort_convert_path_to_child_path(self, sorted_path) | |
| 56 52 | 
             
            }
         | 
| 57 53 |  | 
| 58 54 | 
             
            static VALUE
         | 
| 59 | 
            -
            tmodelsort_convert_iter_to_child_iter(self, sorted_iter)
         | 
| 60 | 
            -
                VALUE self, sorted_iter;
         | 
| 55 | 
            +
            tmodelsort_convert_iter_to_child_iter(VALUE self, VALUE sorted_iter)
         | 
| 61 56 | 
             
            {
         | 
| 62 57 | 
             
                GtkTreeIter child_iter;
         | 
| 63 58 | 
             
                GtkTreeModelSort* modelsort = _SELF(self);
         | 
| @@ -68,16 +63,14 @@ tmodelsort_convert_iter_to_child_iter(self, sorted_iter) | |
| 68 63 | 
             
            } 
         | 
| 69 64 |  | 
| 70 65 | 
             
            static VALUE
         | 
| 71 | 
            -
            tmodelsort_reset_default_sort_func(self)
         | 
| 72 | 
            -
                VALUE self;
         | 
| 66 | 
            +
            tmodelsort_reset_default_sort_func(VALUE self)
         | 
| 73 67 | 
             
            {
         | 
| 74 68 | 
             
                gtk_tree_model_sort_reset_default_sort_func(_SELF(self));
         | 
| 75 69 | 
             
                return self;
         | 
| 76 70 | 
             
            }
         | 
| 77 71 |  | 
| 78 72 | 
             
            static VALUE
         | 
| 79 | 
            -
            tmodelsort_clear_cache(self)
         | 
| 80 | 
            -
                VALUE self;
         | 
| 73 | 
            +
            tmodelsort_clear_cache(VALUE self)
         | 
| 81 74 | 
             
            {
         | 
| 82 75 | 
             
                gtk_tree_model_sort_clear_cache(_SELF(self));
         | 
| 83 76 | 
             
                return self;
         | 
| @@ -85,8 +78,7 @@ tmodelsort_clear_cache(self) | |
| 85 78 |  | 
| 86 79 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 87 80 | 
             
            static VALUE
         | 
| 88 | 
            -
            tmodelsort_iter_is_valid(self, iter)
         | 
| 89 | 
            -
                VALUE self, iter;
         | 
| 81 | 
            +
            tmodelsort_iter_is_valid(VALUE self, VALUE iter)
         | 
| 90 82 | 
             
            {
         | 
| 91 83 | 
             
                return CBOOL2RVAL(gtk_tree_model_sort_iter_is_valid(_SELF(self), RVAL2GTKTREEITER(iter)));
         | 
| 92 84 | 
             
            }
         | 
    
        data/ext/gtk2/rbgtktreepath.c
    CHANGED
    
    | @@ -17,10 +17,7 @@ | |
| 17 17 | 
             
            static ID id_equal;
         | 
| 18 18 |  | 
| 19 19 | 
             
            static VALUE
         | 
| 20 | 
            -
            treepath_initialize(argc, argv, self)
         | 
| 21 | 
            -
                int argc;
         | 
| 22 | 
            -
                VALUE* argv;
         | 
| 23 | 
            -
                VALUE self;
         | 
| 20 | 
            +
            treepath_initialize(int argc, VALUE *argv, VALUE self)
         | 
| 24 21 | 
             
            {
         | 
| 25 22 | 
             
                VALUE path;
         | 
| 26 23 | 
             
                GtkTreePath* widget;
         | 
| @@ -47,8 +44,7 @@ treepath_initialize(argc, argv, self) | |
| 47 44 | 
             
            }
         | 
| 48 45 |  | 
| 49 46 | 
             
            static VALUE
         | 
| 50 | 
            -
            treepath_to_string(self)
         | 
| 51 | 
            -
                VALUE self;
         | 
| 47 | 
            +
            treepath_to_string(VALUE self)
         | 
| 52 48 | 
             
            {
         | 
| 53 49 | 
             
                gchar* s = gtk_tree_path_to_string(_SELF(self));
         | 
| 54 50 | 
             
                VALUE result = CSTR2RVAL(s);
         | 
| @@ -64,31 +60,27 @@ Deprecated | |
| 64 60 | 
             
            */
         | 
| 65 61 |  | 
| 66 62 | 
             
            static VALUE
         | 
| 67 | 
            -
            treepath_append_index(self, index)
         | 
| 68 | 
            -
                VALUE self, index;
         | 
| 63 | 
            +
            treepath_append_index(VALUE self, VALUE index)
         | 
| 69 64 | 
             
            {
         | 
| 70 65 | 
             
                gtk_tree_path_append_index(_SELF(self), NUM2INT(index));
         | 
| 71 66 | 
             
                return self;
         | 
| 72 67 | 
             
            }
         | 
| 73 68 |  | 
| 74 69 | 
             
            static VALUE
         | 
| 75 | 
            -
            treepath_prepend_index(self, index)
         | 
| 76 | 
            -
                VALUE self, index;
         | 
| 70 | 
            +
            treepath_prepend_index(VALUE self, VALUE index)
         | 
| 77 71 | 
             
            {
         | 
| 78 72 | 
             
                gtk_tree_path_prepend_index(_SELF(self), NUM2INT(index));
         | 
| 79 73 | 
             
                return self;
         | 
| 80 74 | 
             
            }
         | 
| 81 75 |  | 
| 82 76 | 
             
            static VALUE
         | 
| 83 | 
            -
            treepath_get_depth(self)
         | 
| 84 | 
            -
                VALUE self;
         | 
| 77 | 
            +
            treepath_get_depth(VALUE self)
         | 
| 85 78 | 
             
            {
         | 
| 86 79 | 
             
                return INT2NUM(gtk_tree_path_get_depth(_SELF(self)));
         | 
| 87 80 | 
             
            }
         | 
| 88 81 |  | 
| 89 82 | 
             
            static VALUE
         | 
| 90 | 
            -
            treepath_get_indices(self)
         | 
| 91 | 
            -
                VALUE self;
         | 
| 83 | 
            +
            treepath_get_indices(VALUE self)
         | 
| 92 84 | 
             
            {
         | 
| 93 85 | 
             
                VALUE ary;
         | 
| 94 86 | 
             
                gint i, length;
         | 
| @@ -110,8 +102,7 @@ treepath_get_indices(self) | |
| 110 102 | 
             
            }
         | 
| 111 103 |  | 
| 112 104 | 
             
            static VALUE
         | 
| 113 | 
            -
            treepath_compare(self, other)
         | 
| 114 | 
            -
                VALUE self, other;
         | 
| 105 | 
            +
            treepath_compare(VALUE self, VALUE other)
         | 
| 115 106 | 
             
            {
         | 
| 116 107 | 
             
                return INT2NUM(gtk_tree_path_compare(_SELF(self), _SELF(other)));
         | 
| 117 108 | 
             
            }
         | 
| @@ -127,45 +118,39 @@ treepath_equal(VALUE self, VALUE other) | |
| 127 118 | 
             
            }
         | 
| 128 119 |  | 
| 129 120 | 
             
            static VALUE
         | 
| 130 | 
            -
            treepath_next(self)
         | 
| 131 | 
            -
                VALUE self;
         | 
| 121 | 
            +
            treepath_next(VALUE self)
         | 
| 132 122 | 
             
            {
         | 
| 133 123 | 
             
                gtk_tree_path_next(_SELF(self));
         | 
| 134 124 | 
             
                return self;
         | 
| 135 125 | 
             
            }
         | 
| 136 126 |  | 
| 137 127 | 
             
            static VALUE
         | 
| 138 | 
            -
            treepath_prev(self)
         | 
| 139 | 
            -
                VALUE self;
         | 
| 128 | 
            +
            treepath_prev(VALUE self)
         | 
| 140 129 | 
             
            {
         | 
| 141 130 | 
             
                return CBOOL2RVAL(gtk_tree_path_prev(_SELF(self)));
         | 
| 142 131 | 
             
            }
         | 
| 143 132 |  | 
| 144 133 | 
             
            static VALUE
         | 
| 145 | 
            -
            treepath_up(self)
         | 
| 146 | 
            -
                VALUE self;
         | 
| 134 | 
            +
            treepath_up(VALUE self)
         | 
| 147 135 | 
             
            {
         | 
| 148 136 | 
             
                return CBOOL2RVAL(gtk_tree_path_up(_SELF(self)));
         | 
| 149 137 | 
             
            }
         | 
| 150 138 |  | 
| 151 139 | 
             
            static VALUE
         | 
| 152 | 
            -
            treepath_down(self)
         | 
| 153 | 
            -
                VALUE self;
         | 
| 140 | 
            +
            treepath_down(VALUE self)
         | 
| 154 141 | 
             
            {
         | 
| 155 142 | 
             
                gtk_tree_path_down(_SELF(self));
         | 
| 156 143 | 
             
                return Qtrue;
         | 
| 157 144 | 
             
            }
         | 
| 158 145 |  | 
| 159 146 | 
             
            static VALUE
         | 
| 160 | 
            -
            treepath_is_ancestor(self, descendant)
         | 
| 161 | 
            -
                VALUE self, descendant;
         | 
| 147 | 
            +
            treepath_is_ancestor(VALUE self, VALUE descendant)
         | 
| 162 148 | 
             
            {
         | 
| 163 149 | 
             
                return CBOOL2RVAL(gtk_tree_path_is_ancestor(_SELF(self), _SELF(descendant)));
         | 
| 164 150 | 
             
            }
         | 
| 165 151 |  | 
| 166 152 | 
             
            static VALUE
         | 
| 167 | 
            -
            treepath_is_descendant(self, ancestor)
         | 
| 168 | 
            -
                VALUE self, ancestor;
         | 
| 153 | 
            +
            treepath_is_descendant(VALUE self, VALUE ancestor)
         | 
| 169 154 | 
             
            {
         | 
| 170 155 | 
             
                return CBOOL2RVAL(gtk_tree_path_is_descendant(_SELF(self), _SELF(ancestor)));
         | 
| 171 156 | 
             
            }
         | 
| @@ -15,8 +15,7 @@ | |
| 15 15 |  | 
| 16 16 | 
             
            #ifndef GTK_TYPE_TREE_ROW_REFERENCE
         | 
| 17 17 | 
             
            static GtkTreeRowReference*
         | 
| 18 | 
            -
            treerowref_copy(ref)
         | 
| 19 | 
            -
                const GtkTreeRowReference* ref;
         | 
| 18 | 
            +
            treerowref_copy(const GtkTreeRowReference *ref)
         | 
| 20 19 | 
             
            {
         | 
| 21 20 | 
             
                return (GtkTreeRowReference*)ref;
         | 
| 22 21 | 
             
            }
         | 
| @@ -33,8 +32,7 @@ rbgtk_tree_row_reference_get_type() | |
| 33 32 | 
             
            }
         | 
| 34 33 |  | 
| 35 34 | 
             
            GtkTreeRowReference *
         | 
| 36 | 
            -
            rbgtk_get_tree_row_reference(obj)
         | 
| 37 | 
            -
                VALUE obj;
         | 
| 35 | 
            +
            rbgtk_get_tree_row_reference(VALUE obj)
         | 
| 38 36 | 
             
            {
         | 
| 39 37 | 
             
                return (GtkTreeRowReference*)RVAL2BOXED(obj, GTK_TYPE_TREE_ROW_REFERENCE);
         | 
| 40 38 | 
             
            }
         | 
| @@ -51,10 +49,7 @@ static ID id_model; | |
| 51 49 | 
             
            static ID id_path;
         | 
| 52 50 |  | 
| 53 51 | 
             
            static VALUE
         | 
| 54 | 
            -
            treerowref_initialize(argc, argv, self)
         | 
| 55 | 
            -
                int argc;
         | 
| 56 | 
            -
                VALUE* argv;
         | 
| 57 | 
            -
                VALUE self;
         | 
| 52 | 
            +
            treerowref_initialize(int argc, VALUE *argv, VALUE self)
         | 
| 58 53 | 
             
            {
         | 
| 59 54 | 
             
              VALUE proxy, model, path;
         | 
| 60 55 | 
             
              GtkTreeRowReference* ref;
         | 
| @@ -82,8 +77,7 @@ treerowref_initialize(argc, argv, self) | |
| 82 77 |  | 
| 83 78 |  | 
| 84 79 | 
             
            static VALUE
         | 
| 85 | 
            -
            treerowref_get_path(self)
         | 
| 86 | 
            -
                VALUE self;
         | 
| 80 | 
            +
            treerowref_get_path(VALUE self)
         | 
| 87 81 | 
             
            {
         | 
| 88 82 | 
             
                VALUE ret = GTKTREEPATH2RVAL(gtk_tree_row_reference_get_path(_SELF(self)));
         | 
| 89 83 | 
             
                G_CHILD_SET(self, id_path, ret);
         | 
| @@ -92,8 +86,7 @@ treerowref_get_path(self) | |
| 92 86 |  | 
| 93 87 | 
             
            #if GTK_CHECK_VERSION(2,8,0)
         | 
| 94 88 | 
             
            static VALUE
         | 
| 95 | 
            -
            treerowref_get_model(self)
         | 
| 96 | 
            -
                VALUE self;
         | 
| 89 | 
            +
            treerowref_get_model(VALUE self)
         | 
| 97 90 | 
             
            {
         | 
| 98 91 | 
             
                VALUE ret = GOBJ2RVAL(gtk_tree_row_reference_get_model(_SELF(self)));
         | 
| 99 92 | 
             
                G_CHILD_SET(self, id_model, ret);
         | 
| @@ -102,31 +95,27 @@ treerowref_get_model(self) | |
| 102 95 | 
             
            #endif
         | 
| 103 96 |  | 
| 104 97 | 
             
            static VALUE
         | 
| 105 | 
            -
            treerowref_valid(self)
         | 
| 106 | 
            -
                VALUE self;
         | 
| 98 | 
            +
            treerowref_valid(VALUE self)
         | 
| 107 99 | 
             
            {
         | 
| 108 100 | 
             
                return CBOOL2RVAL(gtk_tree_row_reference_valid(_SELF(self)));
         | 
| 109 101 | 
             
            }
         | 
| 110 102 |  | 
| 111 103 | 
             
            static VALUE
         | 
| 112 | 
            -
            treerowref_s_inserted(self, proxy, path)
         | 
| 113 | 
            -
                VALUE self, proxy, path;
         | 
| 104 | 
            +
            treerowref_s_inserted(VALUE self, VALUE proxy, VALUE path)
         | 
| 114 105 | 
             
            {
         | 
| 115 106 | 
             
                gtk_tree_row_reference_inserted(RVAL2GOBJ(proxy), RVAL2GTKTREEPATH(path));
         | 
| 116 107 | 
             
                return self;
         | 
| 117 108 | 
             
            }
         | 
| 118 109 |  | 
| 119 110 | 
             
            static VALUE
         | 
| 120 | 
            -
            treerowref_s_deleted(self, proxy, path)
         | 
| 121 | 
            -
                VALUE self, proxy, path;
         | 
| 111 | 
            +
            treerowref_s_deleted(VALUE self, VALUE proxy, VALUE path)
         | 
| 122 112 | 
             
            {
         | 
| 123 113 | 
             
                gtk_tree_row_reference_deleted(RVAL2GOBJ(proxy), RVAL2GTKTREEPATH(path));
         | 
| 124 114 | 
             
                return self;
         | 
| 125 115 | 
             
            }
         | 
| 126 116 |  | 
| 127 117 | 
             
            static VALUE
         | 
| 128 | 
            -
            treerowref_s_reordered(self, proxy, path, iter, new_orders)
         | 
| 129 | 
            -
                VALUE self, proxy, path, iter, new_orders;
         | 
| 118 | 
            +
            treerowref_s_reordered(VALUE self, VALUE proxy, VALUE path, VALUE iter, VALUE new_orders)
         | 
| 130 119 | 
             
            {
         | 
| 131 120 | 
             
                gint i, len;
         | 
| 132 121 | 
             
                gint* orders;
         | 
| @@ -15,27 +15,20 @@ | |
| 15 15 | 
             
            #define RVAL2TREEMODEL(s) (GTK_TREE_MODEL(RVAL2GOBJ(s)))
         | 
| 16 16 |  | 
| 17 17 | 
             
            static VALUE
         | 
| 18 | 
            -
            treeselection_set_mode(self, type)
         | 
| 19 | 
            -
                VALUE self, type;
         | 
| 18 | 
            +
            treeselection_set_mode(VALUE self, VALUE type)
         | 
| 20 19 | 
             
            {
         | 
| 21 20 | 
             
                gtk_tree_selection_set_mode(_SELF(self), RVAL2GENUM(type, GTK_TYPE_SELECTION_MODE));
         | 
| 22 21 | 
             
                return self;
         | 
| 23 22 | 
             
            }
         | 
| 24 23 |  | 
| 25 24 | 
             
            static VALUE
         | 
| 26 | 
            -
            treeselection_get_mode(self)
         | 
| 27 | 
            -
                VALUE self;
         | 
| 25 | 
            +
            treeselection_get_mode(VALUE self)
         | 
| 28 26 | 
             
            {
         | 
| 29 27 | 
             
                return GENUM2RVAL(gtk_tree_selection_get_mode(_SELF(self)), GTK_TYPE_SELECTION_MODE);
         | 
| 30 28 | 
             
            }
         | 
| 31 29 |  | 
| 32 30 | 
             
            static gboolean
         | 
| 33 | 
            -
            selection_func(selection, model, path, path_currently_selected, func)
         | 
| 34 | 
            -
                GtkTreeSelection* selection;
         | 
| 35 | 
            -
                GtkTreeModel* model;
         | 
| 36 | 
            -
                GtkTreePath* path;
         | 
| 37 | 
            -
                gboolean path_currently_selected;
         | 
| 38 | 
            -
                gpointer func;
         | 
| 31 | 
            +
            selection_func(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, gboolean path_currently_selected, gpointer func)
         | 
| 39 32 | 
             
            {
         | 
| 40 33 | 
             
                return RVAL2CBOOL(rb_funcall((VALUE)func, id_call, 4, 
         | 
| 41 34 | 
             
                                        GOBJ2RVAL(selection),
         | 
| @@ -45,8 +38,7 @@ selection_func(selection, model, path, path_currently_selected, func) | |
| 45 38 | 
             
            }
         | 
| 46 39 |  | 
| 47 40 | 
             
            static VALUE
         | 
| 48 | 
            -
            treeselection_set_select_function(self)
         | 
| 49 | 
            -
                VALUE self;
         | 
| 41 | 
            +
            treeselection_set_select_function(VALUE self)
         | 
| 50 42 | 
             
            {
         | 
| 51 43 | 
             
                volatile VALUE func = rb_block_proc();
         | 
| 52 44 | 
             
                G_RELATIVE(self, func);
         | 
| @@ -62,15 +54,13 @@ gpointer    gtk_tree_selection_get_user_data | |
| 62 54 | 
             
            */
         | 
| 63 55 |  | 
| 64 56 | 
             
            static VALUE
         | 
| 65 | 
            -
            treeselection_get_tree_view(self)
         | 
| 66 | 
            -
                VALUE self;
         | 
| 57 | 
            +
            treeselection_get_tree_view(VALUE self)
         | 
| 67 58 | 
             
            {
         | 
| 68 59 | 
             
                return GOBJ2RVAL(gtk_tree_selection_get_tree_view(_SELF(self)));
         | 
| 69 60 | 
             
            }
         | 
| 70 61 |  | 
| 71 62 | 
             
            static VALUE
         | 
| 72 | 
            -
            treeselection_get_selected(self)
         | 
| 73 | 
            -
                VALUE self;
         | 
| 63 | 
            +
            treeselection_get_selected(VALUE self)
         | 
| 74 64 | 
             
            {
         | 
| 75 65 | 
             
                GtkTreeIter iter;
         | 
| 76 66 | 
             
                GtkTreeModel* model;
         | 
| @@ -80,11 +70,7 @@ treeselection_get_selected(self) | |
| 80 70 | 
             
            }
         | 
| 81 71 |  | 
| 82 72 | 
             
            static void
         | 
| 83 | 
            -
            foreach_func(model, path, iter, data)
         | 
| 84 | 
            -
                GtkTreeModel* model;
         | 
| 85 | 
            -
                GtkTreePath* path;
         | 
| 86 | 
            -
                GtkTreeIter* iter;
         | 
| 87 | 
            -
                gpointer data;
         | 
| 73 | 
            +
            foreach_func(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data)
         | 
| 88 74 | 
             
            {
         | 
| 89 75 | 
             
                iter->user_data3 = model;
         | 
| 90 76 | 
             
                rb_funcall((VALUE)data, id_call, 3, GOBJ2RVAL(model), 
         | 
| @@ -92,8 +78,7 @@ foreach_func(model, path, iter, data) | |
| 92 78 | 
             
            }
         | 
| 93 79 |  | 
| 94 80 | 
             
            static VALUE
         | 
| 95 | 
            -
            treeselection_selected_foreach(self)
         | 
| 96 | 
            -
                VALUE self;
         | 
| 81 | 
            +
            treeselection_selected_foreach(VALUE self)
         | 
| 97 82 | 
             
            {
         | 
| 98 83 | 
             
                volatile VALUE func = rb_block_proc();
         | 
| 99 84 | 
             
                gtk_tree_selection_selected_foreach(_SELF(self), 
         | 
| @@ -103,70 +88,61 @@ treeselection_selected_foreach(self) | |
| 103 88 | 
             
            }
         | 
| 104 89 |  | 
| 105 90 | 
             
            static VALUE
         | 
| 106 | 
            -
            treeselection_select_path(self, path)
         | 
| 107 | 
            -
                VALUE self, path;
         | 
| 91 | 
            +
            treeselection_select_path(VALUE self, VALUE path)
         | 
| 108 92 | 
             
            {
         | 
| 109 93 | 
             
                gtk_tree_selection_select_path(_SELF(self), RVAL2GTKTREEPATH(path));
         | 
| 110 94 | 
             
                return self;
         | 
| 111 95 | 
             
            }
         | 
| 112 96 |  | 
| 113 97 | 
             
            static VALUE
         | 
| 114 | 
            -
            treeselection_unselect_path(self, path)
         | 
| 115 | 
            -
                VALUE self, path;
         | 
| 98 | 
            +
            treeselection_unselect_path(VALUE self, VALUE path)
         | 
| 116 99 | 
             
            {
         | 
| 117 100 | 
             
                gtk_tree_selection_unselect_path(_SELF(self), RVAL2GTKTREEPATH(path));
         | 
| 118 101 | 
             
                return self;
         | 
| 119 102 | 
             
            }
         | 
| 120 103 |  | 
| 121 104 | 
             
            static VALUE
         | 
| 122 | 
            -
            treeselection_path_is_selected(self, path)
         | 
| 123 | 
            -
                VALUE self, path;
         | 
| 105 | 
            +
            treeselection_path_is_selected(VALUE self, VALUE path)
         | 
| 124 106 | 
             
            {
         | 
| 125 107 | 
             
                return CBOOL2RVAL(gtk_tree_selection_path_is_selected(_SELF(self), RVAL2GTKTREEPATH(path)));
         | 
| 126 108 | 
             
            }
         | 
| 127 109 |  | 
| 128 110 | 
             
            static VALUE
         | 
| 129 | 
            -
            treeselection_select_iter(self, iter)
         | 
| 130 | 
            -
                VALUE self, iter;
         | 
| 111 | 
            +
            treeselection_select_iter(VALUE self, VALUE iter)
         | 
| 131 112 | 
             
            {
         | 
| 132 113 | 
             
                gtk_tree_selection_select_iter(_SELF(self), RVAL2GTKTREEITER(iter));
         | 
| 133 114 | 
             
                return self;
         | 
| 134 115 | 
             
            }
         | 
| 135 116 |  | 
| 136 117 | 
             
            static VALUE
         | 
| 137 | 
            -
            treeselection_unselect_iter(self, iter)
         | 
| 138 | 
            -
                VALUE self, iter;
         | 
| 118 | 
            +
            treeselection_unselect_iter(VALUE self, VALUE iter)
         | 
| 139 119 | 
             
            {
         | 
| 140 120 | 
             
                gtk_tree_selection_unselect_iter(_SELF(self), RVAL2GTKTREEITER(iter));
         | 
| 141 121 | 
             
                return self;
         | 
| 142 122 | 
             
            }
         | 
| 143 123 |  | 
| 144 124 | 
             
            static VALUE
         | 
| 145 | 
            -
            treeselection_iter_is_selected(self, iter)
         | 
| 146 | 
            -
                VALUE self, iter;
         | 
| 125 | 
            +
            treeselection_iter_is_selected(VALUE self, VALUE iter)
         | 
| 147 126 | 
             
            {
         | 
| 148 127 | 
             
                return CBOOL2RVAL(gtk_tree_selection_iter_is_selected(_SELF(self), RVAL2GTKTREEITER(iter)));
         | 
| 149 128 | 
             
            }
         | 
| 150 129 |  | 
| 151 130 | 
             
            static VALUE
         | 
| 152 | 
            -
            treeselection_select_all(self)
         | 
| 153 | 
            -
                VALUE self;
         | 
| 131 | 
            +
            treeselection_select_all(VALUE self)
         | 
| 154 132 | 
             
            {
         | 
| 155 133 | 
             
                gtk_tree_selection_select_all(_SELF(self));
         | 
| 156 134 | 
             
                return self;
         | 
| 157 135 | 
             
            }
         | 
| 158 136 |  | 
| 159 137 | 
             
            static VALUE
         | 
| 160 | 
            -
            treeselection_unselect_all(self)
         | 
| 161 | 
            -
                VALUE self;
         | 
| 138 | 
            +
            treeselection_unselect_all(VALUE self)
         | 
| 162 139 | 
             
            {
         | 
| 163 140 | 
             
                gtk_tree_selection_unselect_all(_SELF(self));
         | 
| 164 141 | 
             
                return self;
         | 
| 165 142 | 
             
            }
         | 
| 166 143 |  | 
| 167 144 | 
             
            static VALUE
         | 
| 168 | 
            -
            treeselection_select_range(self, start_path, end_path)
         | 
| 169 | 
            -
                VALUE self, start_path, end_path;
         | 
| 145 | 
            +
            treeselection_select_range(VALUE self, VALUE start_path, VALUE end_path)
         | 
| 170 146 | 
             
            {
         | 
| 171 147 | 
             
                gtk_tree_selection_select_range(_SELF(self), RVAL2GTKTREEPATH(start_path), 
         | 
| 172 148 | 
             
                                                RVAL2GTKTREEPATH(end_path));
         | 
| @@ -175,8 +151,7 @@ treeselection_select_range(self, start_path, end_path) | |
| 175 151 |  | 
| 176 152 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 177 153 | 
             
            static VALUE
         | 
| 178 | 
            -
            treeselection_get_selected_rows(self)
         | 
| 179 | 
            -
                VALUE self;
         | 
| 154 | 
            +
            treeselection_get_selected_rows(VALUE self)
         | 
| 180 155 | 
             
            {
         | 
| 181 156 | 
             
                GtkTreeModel* model;
         | 
| 182 157 | 
             
                GList* list = gtk_tree_selection_get_selected_rows(_SELF(self), &model);
         | 
| @@ -187,15 +162,13 @@ treeselection_get_selected_rows(self) | |
| 187 162 | 
             
            }
         | 
| 188 163 |  | 
| 189 164 | 
             
            static VALUE
         | 
| 190 | 
            -
            treeselection_count_selected_rows(self)
         | 
| 191 | 
            -
                VALUE self;
         | 
| 165 | 
            +
            treeselection_count_selected_rows(VALUE self)
         | 
| 192 166 | 
             
            {
         | 
| 193 167 | 
             
                return INT2NUM(gtk_tree_selection_count_selected_rows(_SELF(self)));
         | 
| 194 168 | 
             
            }
         | 
| 195 169 |  | 
| 196 170 | 
             
            static VALUE
         | 
| 197 | 
            -
            treeselection_unselect_range(self, start_path, end_path)
         | 
| 198 | 
            -
                VALUE self, start_path, end_path;
         | 
| 171 | 
            +
            treeselection_unselect_range(VALUE self, VALUE start_path, VALUE end_path)
         | 
| 199 172 | 
             
            {
         | 
| 200 173 | 
             
                gtk_tree_selection_unselect_range(_SELF(self), RVAL2GTKTREEPATH(start_path), 
         | 
| 201 174 | 
             
                                                  RVAL2GTKTREEPATH(end_path));
         |