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
| @@ -15,10 +15,7 @@ | |
| 15 15 | 
             
            #define RVAL2CELLRENDERER(c) (GTK_CELL_RENDERER(RVAL2GOBJ(c)))
         | 
| 16 16 |  | 
| 17 17 | 
             
            static VALUE
         | 
| 18 | 
            -
            tvc_initialize(argc, argv, self)
         | 
| 19 | 
            -
                int argc;
         | 
| 20 | 
            -
                VALUE *argv;
         | 
| 21 | 
            -
                VALUE self;
         | 
| 18 | 
            +
            tvc_initialize(int argc, VALUE *argv, VALUE self)
         | 
| 22 19 | 
             
            {
         | 
| 23 20 | 
             
                int i;
         | 
| 24 21 | 
             
                int col;
         | 
| @@ -57,8 +54,7 @@ tvc_initialize(argc, argv, self) | |
| 57 54 | 
             
            }
         | 
| 58 55 |  | 
| 59 56 | 
             
            static VALUE
         | 
| 60 | 
            -
            tvc_pack_start(self, cell, expand)
         | 
| 61 | 
            -
                VALUE self, cell, expand;
         | 
| 57 | 
            +
            tvc_pack_start(VALUE self, VALUE cell, VALUE expand)
         | 
| 62 58 | 
             
            {
         | 
| 63 59 | 
             
                G_CHILD_ADD(self, cell);
         | 
| 64 60 | 
             
                gtk_tree_view_column_pack_start(_SELF(self), RVAL2CELLRENDERER(cell), RVAL2CBOOL(expand));
         | 
| @@ -66,8 +62,7 @@ tvc_pack_start(self, cell, expand) | |
| 66 62 | 
             
            }
         | 
| 67 63 |  | 
| 68 64 | 
             
            static VALUE
         | 
| 69 | 
            -
            tvc_pack_end(self, cell, expand)
         | 
| 70 | 
            -
                VALUE self, cell, expand;
         | 
| 65 | 
            +
            tvc_pack_end(VALUE self, VALUE cell, VALUE expand)
         | 
| 71 66 | 
             
            {
         | 
| 72 67 | 
             
                G_CHILD_ADD(self, cell);
         | 
| 73 68 | 
             
                gtk_tree_view_column_pack_end(_SELF(self), RVAL2CELLRENDERER(cell), RVAL2CBOOL(expand));
         | 
| @@ -75,8 +70,7 @@ tvc_pack_end(self, cell, expand) | |
| 75 70 | 
             
            }
         | 
| 76 71 |  | 
| 77 72 | 
             
            static VALUE
         | 
| 78 | 
            -
            tvc_clear(self)
         | 
| 79 | 
            -
                VALUE self;
         | 
| 73 | 
            +
            tvc_clear(VALUE self)
         | 
| 80 74 | 
             
            {
         | 
| 81 75 | 
             
                G_CHILD_REMOVE_ALL(self);
         | 
| 82 76 | 
             
                gtk_tree_view_column_clear(_SELF(self));
         | 
| @@ -84,15 +78,13 @@ tvc_clear(self) | |
| 84 78 | 
             
            }
         | 
| 85 79 |  | 
| 86 80 | 
             
            static VALUE
         | 
| 87 | 
            -
            tvc_get_cell_renderers(self)
         | 
| 88 | 
            -
                VALUE self;
         | 
| 81 | 
            +
            tvc_get_cell_renderers(VALUE self)
         | 
| 89 82 | 
             
            {
         | 
| 90 83 | 
             
                return GLIST2ARYF(gtk_tree_view_column_get_cell_renderers(_SELF(self)));
         | 
| 91 84 | 
             
            }
         | 
| 92 85 |  | 
| 93 86 | 
             
            static VALUE
         | 
| 94 | 
            -
            tvc_add_attribute(self, cell, attribute, column)
         | 
| 95 | 
            -
                VALUE self, cell, attribute, column;
         | 
| 87 | 
            +
            tvc_add_attribute(VALUE self, VALUE cell, VALUE attribute, VALUE column)
         | 
| 96 88 | 
             
            {
         | 
| 97 89 | 
             
                const gchar *name;
         | 
| 98 90 | 
             
                if (SYMBOL_P(attribute)) {
         | 
| @@ -106,8 +98,7 @@ tvc_add_attribute(self, cell, attribute, column) | |
| 106 98 | 
             
            }
         | 
| 107 99 |  | 
| 108 100 | 
             
            static VALUE
         | 
| 109 | 
            -
            tvc_set_attributes(self, renderer, attributes)
         | 
| 110 | 
            -
                VALUE self, renderer, attributes;
         | 
| 101 | 
            +
            tvc_set_attributes(VALUE self, VALUE renderer, VALUE attributes)
         | 
| 111 102 | 
             
            {
         | 
| 112 103 | 
             
                GtkTreeViewColumn *tvc;
         | 
| 113 104 | 
             
                GtkCellRenderer *grenderer;
         | 
| @@ -136,12 +127,7 @@ tvc_set_attributes(self, renderer, attributes) | |
| 136 127 | 
             
            }
         | 
| 137 128 |  | 
| 138 129 | 
             
            static void
         | 
| 139 | 
            -
            cell_data_func(tree_column, cell, model, iter, func)
         | 
| 140 | 
            -
                GtkTreeViewColumn* tree_column;
         | 
| 141 | 
            -
                GtkCellRenderer*   cell;
         | 
| 142 | 
            -
                GtkTreeModel*      model;
         | 
| 143 | 
            -
                GtkTreeIter*       iter;
         | 
| 144 | 
            -
                gpointer           func;
         | 
| 130 | 
            +
            cell_data_func(GtkTreeViewColumn *tree_column, GtkCellRenderer *cell, GtkTreeModel *model, GtkTreeIter *iter, gpointer func)
         | 
| 145 131 | 
             
            {
         | 
| 146 132 | 
             
                iter->user_data3 = model;
         | 
| 147 133 | 
             
                rb_funcall((VALUE)func, id_call, 4, GOBJ2RVAL(tree_column),
         | 
| @@ -151,8 +137,7 @@ cell_data_func(tree_column, cell, model, iter, func) | |
| 151 137 |  | 
| 152 138 |  | 
| 153 139 | 
             
            static VALUE
         | 
| 154 | 
            -
            tvc_set_cell_data_func(self, renderer)
         | 
| 155 | 
            -
                VALUE self, renderer;
         | 
| 140 | 
            +
            tvc_set_cell_data_func(VALUE self, VALUE renderer)
         | 
| 156 141 | 
             
            {
         | 
| 157 142 | 
             
                volatile VALUE func = rb_block_proc();
         | 
| 158 143 | 
             
                G_RELATIVE(self, func);
         | 
| @@ -163,39 +148,34 @@ tvc_set_cell_data_func(self, renderer) | |
| 163 148 | 
             
            }
         | 
| 164 149 |  | 
| 165 150 | 
             
            static VALUE
         | 
| 166 | 
            -
            tvc_clear_attributes(self, cell)
         | 
| 167 | 
            -
                VALUE self, cell;
         | 
| 151 | 
            +
            tvc_clear_attributes(VALUE self, VALUE cell)
         | 
| 168 152 | 
             
            {
         | 
| 169 153 | 
             
                gtk_tree_view_column_clear_attributes(_SELF(self), RVAL2CELLRENDERER(cell));
         | 
| 170 154 | 
             
                return self;
         | 
| 171 155 | 
             
            }
         | 
| 172 156 |  | 
| 173 157 | 
             
            static VALUE
         | 
| 174 | 
            -
            tvc_set_spacing(self, spacing)
         | 
| 175 | 
            -
                VALUE self, spacing;
         | 
| 158 | 
            +
            tvc_set_spacing(VALUE self, VALUE spacing)
         | 
| 176 159 | 
             
            {
         | 
| 177 160 | 
             
                gtk_tree_view_column_set_spacing(_SELF(self), NUM2INT(spacing));
         | 
| 178 161 | 
             
                return self;
         | 
| 179 162 | 
             
            }
         | 
| 180 163 |  | 
| 181 164 | 
             
            static VALUE
         | 
| 182 | 
            -
            tvc_get_spacing(self)
         | 
| 183 | 
            -
                VALUE self;
         | 
| 165 | 
            +
            tvc_get_spacing(VALUE self)
         | 
| 184 166 | 
             
            {
         | 
| 185 167 | 
             
                return INT2NUM(gtk_tree_view_column_get_spacing(_SELF(self)));
         | 
| 186 168 | 
             
            }
         | 
| 187 169 |  | 
| 188 170 | 
             
            static VALUE
         | 
| 189 | 
            -
            tvc_clicked(self)
         | 
| 190 | 
            -
                VALUE self;
         | 
| 171 | 
            +
            tvc_clicked(VALUE self)
         | 
| 191 172 | 
             
            {
         | 
| 192 173 | 
             
                gtk_tree_view_column_clicked(_SELF(self));
         | 
| 193 174 | 
             
                return self;
         | 
| 194 175 | 
             
            }
         | 
| 195 176 |  | 
| 196 177 | 
             
            static VALUE
         | 
| 197 | 
            -
            tvc_set_sort_column_id(self, sort_column_id)
         | 
| 198 | 
            -
                VALUE self, sort_column_id;
         | 
| 178 | 
            +
            tvc_set_sort_column_id(VALUE self, VALUE sort_column_id)
         | 
| 199 179 | 
             
            {
         | 
| 200 180 | 
             
                gtk_tree_view_column_set_sort_column_id(_SELF(self), 
         | 
| 201 181 | 
             
                                                        NUM2INT(sort_column_id));
         | 
| @@ -203,15 +183,13 @@ tvc_set_sort_column_id(self, sort_column_id) | |
| 203 183 | 
             
            }
         | 
| 204 184 |  | 
| 205 185 | 
             
            static VALUE
         | 
| 206 | 
            -
            tvc_get_sort_column_id(self)
         | 
| 207 | 
            -
                VALUE self;
         | 
| 186 | 
            +
            tvc_get_sort_column_id(VALUE self)
         | 
| 208 187 | 
             
            {
         | 
| 209 188 | 
             
                return INT2NUM(gtk_tree_view_column_get_sort_column_id(_SELF(self)));
         | 
| 210 189 | 
             
            }
         | 
| 211 190 |  | 
| 212 191 | 
             
            static VALUE
         | 
| 213 | 
            -
            tvc_cell_set_cell_data(self, model, iter, is_expander, is_expanded)
         | 
| 214 | 
            -
                VALUE self, model, iter, is_expander, is_expanded;
         | 
| 192 | 
            +
            tvc_cell_set_cell_data(VALUE self, VALUE model, VALUE iter, VALUE is_expander, VALUE is_expanded)
         | 
| 215 193 | 
             
            {
         | 
| 216 194 | 
             
                gtk_tree_view_column_cell_set_cell_data(_SELF(self), 
         | 
| 217 195 | 
             
                                                        GTK_TREE_MODEL(RVAL2GOBJ(model)),
         | 
| @@ -222,8 +200,7 @@ tvc_cell_set_cell_data(self, model, iter, is_expander, is_expanded) | |
| 222 200 | 
             
            }
         | 
| 223 201 |  | 
| 224 202 | 
             
            static VALUE
         | 
| 225 | 
            -
            tvc_cell_get_size(self)
         | 
| 226 | 
            -
                VALUE self;
         | 
| 203 | 
            +
            tvc_cell_get_size(VALUE self)
         | 
| 227 204 | 
             
            {
         | 
| 228 205 | 
             
                GdkRectangle cell_area;
         | 
| 229 206 | 
             
                gint x_offset, y_offset, width, height;
         | 
| @@ -260,8 +237,7 @@ tvc_cell_is_visible(self) | |
| 260 237 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 261 238 |  | 
| 262 239 | 
             
            static VALUE
         | 
| 263 | 
            -
            tvc_focus_cell(self, renderer)
         | 
| 264 | 
            -
                VALUE self, renderer;
         | 
| 240 | 
            +
            tvc_focus_cell(VALUE self, VALUE renderer)
         | 
| 265 241 | 
             
            {
         | 
| 266 242 | 
             
                gtk_tree_view_column_focus_cell(_SELF(self), RVAL2CELLRENDERER(renderer));
         | 
| 267 243 |  | 
| @@ -272,8 +248,7 @@ tvc_focus_cell(self, renderer) | |
| 272 248 |  | 
| 273 249 | 
             
            #if GTK_CHECK_VERSION(2,8,0)
         | 
| 274 250 | 
             
            static VALUE
         | 
| 275 | 
            -
            tvc_queue_resize(self)
         | 
| 276 | 
            -
                VALUE self;
         | 
| 251 | 
            +
            tvc_queue_resize(VALUE self)
         | 
| 277 252 | 
             
            {
         | 
| 278 253 | 
             
                gtk_tree_view_column_queue_resize(_SELF(self));
         | 
| 279 254 | 
             
                return self;
         | 
| @@ -282,8 +257,7 @@ tvc_queue_resize(self) | |
| 282 257 |  | 
| 283 258 | 
             
            #if GTK_CHECK_VERSION(2,12,0)
         | 
| 284 259 | 
             
            static VALUE
         | 
| 285 | 
            -
            tvc_get_tree_view(self)
         | 
| 286 | 
            -
                VALUE self;
         | 
| 260 | 
            +
            tvc_get_tree_view(VALUE self)
         | 
| 287 261 | 
             
            {
         | 
| 288 262 | 
             
                return GOBJ2RVAL(gtk_tree_view_column_get_tree_view(_SELF(self)));
         | 
| 289 263 | 
             
            }
         | 
    
        data/ext/gtk2/rbgtkuimanager.c
    CHANGED
    
    | @@ -17,8 +17,7 @@ | |
| 17 17 | 
             
            #define _SELF(self) (GTK_UI_MANAGER(RVAL2GOBJ(self)))
         | 
| 18 18 |  | 
| 19 19 | 
             
            static VALUE
         | 
| 20 | 
            -
            rbuimanager_initialize(self)
         | 
| 21 | 
            -
                VALUE self;
         | 
| 20 | 
            +
            rbuimanager_initialize(VALUE self)
         | 
| 22 21 | 
             
            {
         | 
| 23 22 | 
             
                G_INITIALIZE(self, gtk_ui_manager_new());
         | 
| 24 23 | 
             
                return Qnil;
         | 
| @@ -31,8 +30,7 @@ gboolean    gtk_ui_manager_get_add_tearoffs (GtkUIManager *self); | |
| 31 30 | 
             
            */
         | 
| 32 31 |  | 
| 33 32 | 
             
            static VALUE
         | 
| 34 | 
            -
            rbuimanager_insert_action_group(self, action_group, pos)
         | 
| 35 | 
            -
                VALUE self, action_group, pos;
         | 
| 33 | 
            +
            rbuimanager_insert_action_group(VALUE self, VALUE action_group, VALUE pos)
         | 
| 36 34 | 
             
            {
         | 
| 37 35 | 
             
                gtk_ui_manager_insert_action_group(_SELF(self), RVAL2GOBJ(action_group), NUM2INT(pos));
         | 
| 38 36 | 
             
                G_CHILD_ADD(self, action_group);
         | 
| @@ -40,8 +38,7 @@ rbuimanager_insert_action_group(self, action_group, pos) | |
| 40 38 | 
             
            }
         | 
| 41 39 |  | 
| 42 40 | 
             
            static VALUE
         | 
| 43 | 
            -
            rbuimanager_remove_action_group(self, action_group)
         | 
| 44 | 
            -
                VALUE self, action_group;
         | 
| 41 | 
            +
            rbuimanager_remove_action_group(VALUE self, VALUE action_group)
         | 
| 45 42 | 
             
            {
         | 
| 46 43 | 
             
                gtk_ui_manager_remove_action_group(_SELF(self), RVAL2GOBJ(action_group));
         | 
| 47 44 | 
             
                G_CHILD_REMOVE(self, action_group);
         | 
| @@ -49,23 +46,20 @@ rbuimanager_remove_action_group(self, action_group) | |
| 49 46 | 
             
            }
         | 
| 50 47 |  | 
| 51 48 | 
             
            static VALUE
         | 
| 52 | 
            -
            rbuimanager_get_action_groups(self)
         | 
| 53 | 
            -
                VALUE self;
         | 
| 49 | 
            +
            rbuimanager_get_action_groups(VALUE self)
         | 
| 54 50 | 
             
            {
         | 
| 55 51 | 
             
                /* Owned by GTK+ */
         | 
| 56 52 | 
             
                return GLIST2ARY(gtk_ui_manager_get_action_groups(_SELF(self)));
         | 
| 57 53 | 
             
            }
         | 
| 58 54 |  | 
| 59 55 | 
             
            static VALUE
         | 
| 60 | 
            -
            rbuimanager_get_accel_group(self)
         | 
| 61 | 
            -
                VALUE self;
         | 
| 56 | 
            +
            rbuimanager_get_accel_group(VALUE self)
         | 
| 62 57 | 
             
            {
         | 
| 63 58 | 
             
                return GOBJ2RVAL(gtk_ui_manager_get_accel_group(_SELF(self)));
         | 
| 64 59 | 
             
            }
         | 
| 65 60 |  | 
| 66 61 | 
             
            static VALUE
         | 
| 67 | 
            -
            rbuimanager_get_widget(self, path)
         | 
| 68 | 
            -
                VALUE self, path;
         | 
| 62 | 
            +
            rbuimanager_get_widget(VALUE self, VALUE path)
         | 
| 69 63 | 
             
            {
         | 
| 70 64 | 
             
                GtkWidget* widget = gtk_ui_manager_get_widget(_SELF(self), RVAL2CSTR(path));
         | 
| 71 65 | 
             
                if (! widget)
         | 
| @@ -75,25 +69,20 @@ rbuimanager_get_widget(self, path) | |
| 75 69 | 
             
            }
         | 
| 76 70 |  | 
| 77 71 | 
             
            static VALUE
         | 
| 78 | 
            -
            rbuimanager_get_toplevels(self, types)
         | 
| 79 | 
            -
                VALUE self, types;
         | 
| 72 | 
            +
            rbuimanager_get_toplevels(VALUE self, VALUE types)
         | 
| 80 73 | 
             
            {
         | 
| 81 74 | 
             
                return GSLIST2ARYF(gtk_ui_manager_get_toplevels(_SELF(self), 
         | 
| 82 75 | 
             
                                                                RVAL2GFLAGS(types, GTK_TYPE_UI_MANAGER_ITEM_TYPE)));
         | 
| 83 76 | 
             
            }
         | 
| 84 77 |  | 
| 85 78 | 
             
            static VALUE
         | 
| 86 | 
            -
            rbuimanager_get_action(self, path)
         | 
| 87 | 
            -
                VALUE self, path;
         | 
| 79 | 
            +
            rbuimanager_get_action(VALUE self, VALUE path)
         | 
| 88 80 | 
             
            {
         | 
| 89 81 | 
             
                return GOBJ2RVAL(gtk_ui_manager_get_action(_SELF(self), RVAL2CSTR(path)));
         | 
| 90 82 | 
             
            }
         | 
| 91 83 |  | 
| 92 84 | 
             
            static VALUE
         | 
| 93 | 
            -
            rbuimanager_add_ui(argc, argv, self)
         | 
| 94 | 
            -
                int argc;
         | 
| 95 | 
            -
                VALUE *argv;
         | 
| 96 | 
            -
                VALUE self;
         | 
| 85 | 
            +
            rbuimanager_add_ui(int argc, VALUE *argv, VALUE self)
         | 
| 97 86 | 
             
            {
         | 
| 98 87 | 
             
                GError* error = NULL;
         | 
| 99 88 | 
             
                guint ret;
         | 
| @@ -133,15 +122,13 @@ rbuimanager_add_ui(argc, argv, self) | |
| 133 122 | 
             
            }
         | 
| 134 123 |  | 
| 135 124 | 
             
            static VALUE
         | 
| 136 | 
            -
            rbuimanager_new_merge_id(self)
         | 
| 137 | 
            -
                VALUE self;
         | 
| 125 | 
            +
            rbuimanager_new_merge_id(VALUE self)
         | 
| 138 126 | 
             
            {
         | 
| 139 127 | 
             
                return UINT2NUM(gtk_ui_manager_new_merge_id(_SELF(self)));
         | 
| 140 128 | 
             
            }
         | 
| 141 129 |  | 
| 142 130 | 
             
            static VALUE
         | 
| 143 | 
            -
            rbuimanager_remove_ui(self, merge_id)
         | 
| 144 | 
            -
                VALUE self, merge_id;
         | 
| 131 | 
            +
            rbuimanager_remove_ui(VALUE self, VALUE merge_id)
         | 
| 145 132 | 
             
            {
         | 
| 146 133 | 
             
                gtk_ui_manager_remove_ui(_SELF(self), NUM2UINT(merge_id));
         | 
| 147 134 | 
             
                return self;
         | 
| @@ -152,8 +139,7 @@ gchar*      gtk_ui_manager_get_ui           (GtkUIManager *self); | |
| 152 139 | 
             
            */
         | 
| 153 140 |  | 
| 154 141 | 
             
            static VALUE
         | 
| 155 | 
            -
            rbuimanager_ensure_update(self)
         | 
| 156 | 
            -
                VALUE self;
         | 
| 142 | 
            +
            rbuimanager_ensure_update(VALUE self)
         | 
| 157 143 | 
             
            {
         | 
| 158 144 | 
             
                gtk_ui_manager_ensure_update(_SELF(self));
         | 
| 159 145 | 
             
                return self;
         | 
    
        data/ext/gtk2/rbgtkvbbox.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkvbox.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkviewport.c
    CHANGED
    
    | @@ -15,8 +15,7 @@ | |
| 15 15 | 
             
            #include "global.h"
         | 
| 16 16 |  | 
| 17 17 | 
             
            static VALUE
         | 
| 18 | 
            -
            vport_initialize(self, hadj, vadj)
         | 
| 19 | 
            -
                VALUE self, hadj, vadj;
         | 
| 18 | 
            +
            vport_initialize(VALUE self, VALUE hadj, VALUE vadj)
         | 
| 20 19 | 
             
            {
         | 
| 21 20 | 
             
                GtkAdjustment *h_adj = GTK_ADJUSTMENT(RVAL2GOBJ(hadj));
         | 
| 22 21 | 
             
                GtkAdjustment *v_adj = GTK_ADJUSTMENT(RVAL2GOBJ(vadj));
         | 
    
        data/ext/gtk2/rbgtkvpaned.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkvruler.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkvscale.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkvscrollbar.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkvseparator.c
    CHANGED
    
    
    
        data/ext/gtk2/rbgtkwidget.c
    CHANGED
    
    | @@ -19,25 +19,20 @@ | |
| 19 19 | 
             
            static VALUE style_prop_func_table;
         | 
| 20 20 |  | 
| 21 21 | 
             
            static VALUE
         | 
| 22 | 
            -
            widget_get_flags(self)
         | 
| 23 | 
            -
                VALUE self;
         | 
| 22 | 
            +
            widget_get_flags(VALUE self)
         | 
| 24 23 | 
             
            {
         | 
| 25 24 | 
             
                return GFLAGS2RVAL(GTK_WIDGET_FLAGS(_SELF(self)), GTK_TYPE_WIDGET_FLAGS);
         | 
| 26 25 | 
             
            }
         | 
| 27 26 |  | 
| 28 27 | 
             
            static VALUE
         | 
| 29 | 
            -
            widget_set_flags(self, flag)
         | 
| 30 | 
            -
                VALUE self;
         | 
| 31 | 
            -
                VALUE flag;
         | 
| 28 | 
            +
            widget_set_flags(VALUE self, VALUE flag)
         | 
| 32 29 | 
             
            {
         | 
| 33 30 | 
             
                GTK_WIDGET_SET_FLAGS(_SELF(self), RVAL2GFLAGS(flag, GTK_TYPE_WIDGET_FLAGS));
         | 
| 34 31 | 
             
                return self;
         | 
| 35 32 | 
             
            }
         | 
| 36 33 |  | 
| 37 34 | 
             
            static VALUE
         | 
| 38 | 
            -
            widget_unset_flags(self, flag)
         | 
| 39 | 
            -
                VALUE self;
         | 
| 40 | 
            -
                VALUE flag;
         | 
| 35 | 
            +
            widget_unset_flags(VALUE self, VALUE flag)
         | 
| 41 36 | 
             
            {
         | 
| 42 37 | 
             
                GTK_WIDGET_UNSET_FLAGS(_SELF(self), RVAL2GFLAGS(flag, GTK_TYPE_WIDGET_FLAGS));
         | 
| 43 38 | 
             
                return self;
         | 
| @@ -45,96 +40,84 @@ widget_unset_flags(self, flag) | |
| 45 40 |  | 
| 46 41 |  | 
| 47 42 | 
             
            static VALUE
         | 
| 48 | 
            -
            widget_unparent(self)
         | 
| 49 | 
            -
                VALUE self;
         | 
| 43 | 
            +
            widget_unparent(VALUE self)
         | 
| 50 44 | 
             
            {
         | 
| 51 45 | 
             
                gtk_widget_unparent(_SELF(self));
         | 
| 52 46 | 
             
                return self;
         | 
| 53 47 | 
             
            }
         | 
| 54 48 |  | 
| 55 49 | 
             
            static VALUE
         | 
| 56 | 
            -
            widget_show(self)
         | 
| 57 | 
            -
                VALUE self;
         | 
| 50 | 
            +
            widget_show(VALUE self)
         | 
| 58 51 | 
             
            {
         | 
| 59 52 | 
             
                gtk_widget_show(_SELF(self));
         | 
| 60 53 | 
             
                return self;
         | 
| 61 54 | 
             
            }
         | 
| 62 55 |  | 
| 63 56 | 
             
            static VALUE
         | 
| 64 | 
            -
            widget_show_now(self)
         | 
| 65 | 
            -
                VALUE self;
         | 
| 57 | 
            +
            widget_show_now(VALUE self)
         | 
| 66 58 | 
             
            {
         | 
| 67 59 | 
             
                gtk_widget_show_now(_SELF(self));
         | 
| 68 60 | 
             
                return self;
         | 
| 69 61 | 
             
            }
         | 
| 70 62 |  | 
| 71 63 | 
             
            static VALUE
         | 
| 72 | 
            -
            widget_hide(self)
         | 
| 73 | 
            -
                VALUE self;
         | 
| 64 | 
            +
            widget_hide(VALUE self)
         | 
| 74 65 | 
             
            {
         | 
| 75 66 | 
             
                gtk_widget_hide(_SELF(self));
         | 
| 76 67 | 
             
                return self;
         | 
| 77 68 | 
             
            }
         | 
| 78 69 |  | 
| 79 70 | 
             
            static VALUE
         | 
| 80 | 
            -
            widget_show_all(self)
         | 
| 81 | 
            -
                VALUE self;
         | 
| 71 | 
            +
            widget_show_all(VALUE self)
         | 
| 82 72 | 
             
            {
         | 
| 83 73 | 
             
                gtk_widget_show_all(_SELF(self));
         | 
| 84 74 | 
             
                return self;
         | 
| 85 75 | 
             
            }
         | 
| 86 76 |  | 
| 87 77 | 
             
            static VALUE
         | 
| 88 | 
            -
            widget_hide_all(self)
         | 
| 89 | 
            -
                VALUE self;
         | 
| 78 | 
            +
            widget_hide_all(VALUE self)
         | 
| 90 79 | 
             
            {
         | 
| 91 80 | 
             
                gtk_widget_hide_all(_SELF(self));
         | 
| 92 81 | 
             
                return self;
         | 
| 93 82 | 
             
            }
         | 
| 94 83 |  | 
| 95 84 | 
             
            static VALUE
         | 
| 96 | 
            -
            widget_map(self)
         | 
| 97 | 
            -
                VALUE self;
         | 
| 85 | 
            +
            widget_map(VALUE self)
         | 
| 98 86 | 
             
            {
         | 
| 99 87 | 
             
                gtk_widget_map(_SELF(self));
         | 
| 100 88 | 
             
                return self;
         | 
| 101 89 | 
             
            }
         | 
| 102 90 |  | 
| 103 91 | 
             
            static VALUE
         | 
| 104 | 
            -
            widget_unmap(self)
         | 
| 105 | 
            -
                VALUE self;
         | 
| 92 | 
            +
            widget_unmap(VALUE self)
         | 
| 106 93 | 
             
            {
         | 
| 107 94 | 
             
                gtk_widget_unmap(_SELF(self));
         | 
| 108 95 | 
             
                return self;
         | 
| 109 96 | 
             
            }
         | 
| 110 97 |  | 
| 111 98 | 
             
            static VALUE
         | 
| 112 | 
            -
            widget_realize(self)
         | 
| 113 | 
            -
                VALUE self;
         | 
| 99 | 
            +
            widget_realize(VALUE self)
         | 
| 114 100 | 
             
            {
         | 
| 115 101 | 
             
                gtk_widget_realize(_SELF(self));
         | 
| 116 102 | 
             
                return self;
         | 
| 117 103 | 
             
            }
         | 
| 118 104 |  | 
| 119 105 | 
             
            static VALUE
         | 
| 120 | 
            -
            widget_unrealize(self)
         | 
| 121 | 
            -
                VALUE self;
         | 
| 106 | 
            +
            widget_unrealize(VALUE self)
         | 
| 122 107 | 
             
            {
         | 
| 123 108 | 
             
                gtk_widget_unrealize(_SELF(self));
         | 
| 124 109 | 
             
                return self;
         | 
| 125 110 | 
             
            }
         | 
| 126 111 |  | 
| 127 112 | 
             
            static VALUE
         | 
| 128 | 
            -
            widget_queue_draw(self)
         | 
| 129 | 
            -
                VALUE self;
         | 
| 113 | 
            +
            widget_queue_draw(VALUE self)
         | 
| 130 114 | 
             
            {
         | 
| 131 115 | 
             
                gtk_widget_queue_draw(_SELF(self));
         | 
| 132 116 | 
             
                return self;
         | 
| 133 117 | 
             
            }
         | 
| 134 118 |  | 
| 135 119 | 
             
            static VALUE
         | 
| 136 | 
            -
            widget_queue_resize(self)
         | 
| 137 | 
            -
                VALUE self;
         | 
| 120 | 
            +
            widget_queue_resize(VALUE self)
         | 
| 138 121 | 
             
            {
         | 
| 139 122 | 
             
                gtk_widget_queue_resize(_SELF(self));
         | 
| 140 123 | 
             
                return self;
         | 
| @@ -142,8 +125,7 @@ widget_queue_resize(self) | |
| 142 125 |  | 
| 143 126 | 
             
            #if GTK_CHECK_VERSION(2,4,0)
         | 
| 144 127 | 
             
            static VALUE
         | 
| 145 | 
            -
            widget_queue_resize_no_redraw(self)
         | 
| 146 | 
            -
                VALUE self;
         | 
| 128 | 
            +
            widget_queue_resize_no_redraw(VALUE self)
         | 
| 147 129 | 
             
            {
         | 
| 148 130 | 
             
                gtk_widget_queue_resize_no_redraw(_SELF(self));
         | 
| 149 131 | 
             
                return self;
         | 
| @@ -153,8 +135,7 @@ widget_queue_resize_no_redraw(self) | |
| 153 135 | 
             
            /* Note this method is not
         | 
| 154 136 | 
             
               gtk_widget_get_size_request */
         | 
| 155 137 | 
             
            static VALUE
         | 
| 156 | 
            -
            widget_size_request(self)
         | 
| 157 | 
            -
                VALUE self;
         | 
| 138 | 
            +
            widget_size_request(VALUE self)
         | 
| 158 139 | 
             
            {
         | 
| 159 140 | 
             
                GtkRequisition req;
         | 
| 160 141 | 
             
                gtk_widget_size_request(_SELF(self), &req);
         | 
| @@ -162,8 +143,7 @@ widget_size_request(self) | |
| 162 143 | 
             
            }
         | 
| 163 144 |  | 
| 164 145 | 
             
            static VALUE
         | 
| 165 | 
            -
            widget_get_child_requisition(self)
         | 
| 166 | 
            -
                VALUE self;
         | 
| 146 | 
            +
            widget_get_child_requisition(VALUE self)
         | 
| 167 147 | 
             
            {
         | 
| 168 148 | 
             
                GtkRequisition req;
         | 
| 169 149 |  | 
| @@ -172,16 +152,14 @@ widget_get_child_requisition(self) | |
| 172 152 | 
             
            }
         | 
| 173 153 |  | 
| 174 154 | 
             
            static VALUE
         | 
| 175 | 
            -
            widget_size_allocate(self, alloc)
         | 
| 176 | 
            -
                VALUE self, alloc;
         | 
| 155 | 
            +
            widget_size_allocate(VALUE self, VALUE alloc)
         | 
| 177 156 | 
             
            {
         | 
| 178 157 | 
             
                gtk_widget_size_allocate(_SELF(self), (GtkAllocation*)RVAL2BOXED(alloc, GTK_TYPE_ALLOCATION));
         | 
| 179 158 | 
             
                return self;
         | 
| 180 159 | 
             
            }
         | 
| 181 160 |  | 
| 182 161 | 
             
            static VALUE
         | 
| 183 | 
            -
            widget_add_accelerator(self, sig, accel, key, mod, flag)
         | 
| 184 | 
            -
            	VALUE self, sig, accel, key, mod, flag;
         | 
| 162 | 
            +
            widget_add_accelerator(VALUE self, VALUE sig, VALUE accel, VALUE key, VALUE mod, VALUE flag)
         | 
| 185 163 | 
             
            {
         | 
| 186 164 | 
             
                gtk_widget_add_accelerator(_SELF(self),
         | 
| 187 165 | 
             
                                           RVAL2CSTR(sig),
         | 
| @@ -193,8 +171,7 @@ widget_add_accelerator(self, sig, accel, key, mod, flag) | |
| 193 171 | 
             
            }
         | 
| 194 172 |  | 
| 195 173 | 
             
            static VALUE
         | 
| 196 | 
            -
            widget_remove_accelerator(self, accel, key, mod)
         | 
| 197 | 
            -
                VALUE self, accel, key, mod;
         | 
| 174 | 
            +
            widget_remove_accelerator(VALUE self, VALUE accel, VALUE key, VALUE mod)
         | 
| 198 175 | 
             
            {
         | 
| 199 176 | 
             
                return CBOOL2RVAL(gtk_widget_remove_accelerator(_SELF(self),
         | 
| 200 177 | 
             
                                                                GTK_ACCEL_GROUP(RVAL2GOBJ(accel)),
         | 
| @@ -203,8 +180,7 @@ widget_remove_accelerator(self, accel, key, mod) | |
| 203 180 | 
             
            }
         | 
| 204 181 |  | 
| 205 182 | 
             
            static VALUE
         | 
| 206 | 
            -
            widget_set_accel_path(self, accel_path, accel_group)
         | 
| 207 | 
            -
                VALUE self, accel_path, accel_group;
         | 
| 183 | 
            +
            widget_set_accel_path(VALUE self, VALUE accel_path, VALUE accel_group)
         | 
| 208 184 | 
             
            {
         | 
| 209 185 | 
             
                gtk_widget_set_accel_path(_SELF(self), RVAL2CSTR(accel_path), 
         | 
| 210 186 | 
             
                                          GTK_ACCEL_GROUP(RVAL2GOBJ(accel_group)));
         | 
| @@ -212,46 +188,40 @@ widget_set_accel_path(self, accel_path, accel_group) | |
| 212 188 | 
             
            }
         | 
| 213 189 |  | 
| 214 190 | 
             
            static VALUE
         | 
| 215 | 
            -
            widget_list_accel_closures(self)
         | 
| 216 | 
            -
                VALUE self;
         | 
| 191 | 
            +
            widget_list_accel_closures(VALUE self)
         | 
| 217 192 | 
             
            {
         | 
| 218 193 | 
             
                return GLIST2ARY2F(gtk_widget_list_accel_closures(_SELF(self)), G_TYPE_CLOSURE);
         | 
| 219 194 | 
             
            }
         | 
| 220 195 |  | 
| 221 196 | 
             
            #if GTK_CHECK_VERSION(2,4,0)
         | 
| 222 197 | 
             
            static VALUE
         | 
| 223 | 
            -
            widget_can_activate_accel(self, signal_id)
         | 
| 224 | 
            -
                VALUE self, signal_id;
         | 
| 198 | 
            +
            widget_can_activate_accel(VALUE self, VALUE signal_id)
         | 
| 225 199 | 
             
            {
         | 
| 226 200 | 
             
                return CBOOL2RVAL(gtk_widget_can_activate_accel(_SELF(self), NUM2UINT(signal_id)));
         | 
| 227 201 | 
             
            }
         | 
| 228 202 | 
             
            #endif
         | 
| 229 203 |  | 
| 230 204 | 
             
            static VALUE
         | 
| 231 | 
            -
            widget_event(self, event)
         | 
| 232 | 
            -
                VALUE self, event;
         | 
| 205 | 
            +
            widget_event(VALUE self, VALUE event)
         | 
| 233 206 | 
             
            {
         | 
| 234 207 | 
             
                return CBOOL2RVAL(gtk_widget_event(_SELF(self), RVAL2GEV(event)));
         | 
| 235 208 | 
             
            }
         | 
| 236 209 |  | 
| 237 210 | 
             
            static VALUE
         | 
| 238 | 
            -
            widget_activate(self)
         | 
| 239 | 
            -
                VALUE self;
         | 
| 211 | 
            +
            widget_activate(VALUE self)
         | 
| 240 212 | 
             
            {
         | 
| 241 213 | 
             
                return CBOOL2RVAL(gtk_widget_activate(_SELF(self)));
         | 
| 242 214 | 
             
            }
         | 
| 243 215 |  | 
| 244 216 | 
             
            static VALUE
         | 
| 245 | 
            -
            widget_reparent(self, parent)
         | 
| 246 | 
            -
                VALUE self, parent;
         | 
| 217 | 
            +
            widget_reparent(VALUE self, VALUE parent)
         | 
| 247 218 | 
             
            {
         | 
| 248 219 | 
             
                gtk_widget_reparent(_SELF(self), _SELF(parent));
         | 
| 249 220 | 
             
                return self;
         | 
| 250 221 | 
             
            }
         | 
| 251 222 |  | 
| 252 223 | 
             
            static VALUE
         | 
| 253 | 
            -
            widget_intersect(self, area)
         | 
| 254 | 
            -
                VALUE self, area;
         | 
| 224 | 
            +
            widget_intersect(VALUE self, VALUE area)
         | 
| 255 225 | 
             
            {
         | 
| 256 226 | 
             
                GdkRectangle intersection;
         | 
| 257 227 | 
             
                gboolean ret = gtk_widget_intersect(_SELF(self),
         | 
| @@ -261,39 +231,34 @@ widget_intersect(self, area) | |
| 261 231 | 
             
            }
         | 
| 262 232 |  | 
| 263 233 | 
             
            static VALUE
         | 
| 264 | 
            -
            widget_is_focus(self)
         | 
| 265 | 
            -
                VALUE self;
         | 
| 234 | 
            +
            widget_is_focus(VALUE self)
         | 
| 266 235 | 
             
            {
         | 
| 267 236 | 
             
                return CBOOL2RVAL(gtk_widget_is_focus(_SELF(self)));
         | 
| 268 237 | 
             
            }
         | 
| 269 238 |  | 
| 270 239 | 
             
            static VALUE
         | 
| 271 | 
            -
            widget_grab_focus(self)
         | 
| 272 | 
            -
                VALUE self;
         | 
| 240 | 
            +
            widget_grab_focus(VALUE self)
         | 
| 273 241 | 
             
            {
         | 
| 274 242 | 
             
                gtk_widget_grab_focus(_SELF(self));
         | 
| 275 243 | 
             
                return self;
         | 
| 276 244 | 
             
            }
         | 
| 277 245 |  | 
| 278 246 | 
             
            static VALUE
         | 
| 279 | 
            -
            widget_grab_default(self)
         | 
| 280 | 
            -
                VALUE self;
         | 
| 247 | 
            +
            widget_grab_default(VALUE self)
         | 
| 281 248 | 
             
            {
         | 
| 282 249 | 
             
                gtk_widget_grab_default(_SELF(self));
         | 
| 283 250 | 
             
                return self;
         | 
| 284 251 | 
             
            }
         | 
| 285 252 |  | 
| 286 253 | 
             
            static VALUE
         | 
| 287 | 
            -
            widget_set_state(self, state)
         | 
| 288 | 
            -
                VALUE self, state;
         | 
| 254 | 
            +
            widget_set_state(VALUE self, VALUE state)
         | 
| 289 255 | 
             
            {
         | 
| 290 256 | 
             
                gtk_widget_set_state(_SELF(self), RVAL2GTKSTATETYPE(state));
         | 
| 291 257 | 
             
                return self;
         | 
| 292 258 | 
             
            }
         | 
| 293 259 |  | 
| 294 260 | 
             
            static VALUE
         | 
| 295 | 
            -
            widget_set_parent_window(self, parent_window)
         | 
| 296 | 
            -
                VALUE self, parent_window;
         | 
| 261 | 
            +
            widget_set_parent_window(VALUE self, VALUE parent_window)
         | 
| 297 262 | 
             
            {
         | 
| 298 263 | 
             
                gtk_widget_set_parent_window(_SELF(self), 
         | 
| 299 264 | 
             
                                             GDK_WINDOW(RVAL2GOBJ(parent_window)));
         | 
| @@ -301,59 +266,51 @@ widget_set_parent_window(self, parent_window) | |
| 301 266 | 
             
            }
         | 
| 302 267 |  | 
| 303 268 | 
             
            static VALUE
         | 
| 304 | 
            -
            widget_get_parent_window(self)
         | 
| 305 | 
            -
                VALUE self;
         | 
| 269 | 
            +
            widget_get_parent_window(VALUE self)
         | 
| 306 270 | 
             
            {
         | 
| 307 271 | 
             
                return GOBJ2RVAL(gtk_widget_get_parent_window(_SELF(self)));
         | 
| 308 272 | 
             
            }
         | 
| 309 273 |  | 
| 310 274 | 
             
            static VALUE
         | 
| 311 | 
            -
            widget_add_events(self, events)
         | 
| 312 | 
            -
                VALUE self, events;
         | 
| 275 | 
            +
            widget_add_events(VALUE self, VALUE events)
         | 
| 313 276 | 
             
            {
         | 
| 314 277 | 
             
                gtk_widget_add_events(_SELF(self), NUM2INT(events));
         | 
| 315 278 | 
             
                return self;
         | 
| 316 279 | 
             
            }
         | 
| 317 280 |  | 
| 318 281 | 
             
            static VALUE
         | 
| 319 | 
            -
            widget_get_toplevel(self)
         | 
| 320 | 
            -
                VALUE self;
         | 
| 282 | 
            +
            widget_get_toplevel(VALUE self)
         | 
| 321 283 | 
             
            {
         | 
| 322 284 | 
             
                return GOBJ2RVAL(gtk_widget_get_toplevel(_SELF(self)));
         | 
| 323 285 | 
             
            }
         | 
| 324 286 |  | 
| 325 287 | 
             
            static VALUE
         | 
| 326 | 
            -
            widget_get_ancestor(self, klass)
         | 
| 327 | 
            -
                VALUE self, klass;
         | 
| 288 | 
            +
            widget_get_ancestor(VALUE self, VALUE klass)
         | 
| 328 289 | 
             
            {
         | 
| 329 290 | 
             
                return GOBJ2RVAL(gtk_widget_get_ancestor(_SELF(self), CLASS2GTYPE(klass)));
         | 
| 330 291 | 
             
            }
         | 
| 331 292 |  | 
| 332 293 | 
             
            static VALUE
         | 
| 333 | 
            -
            widget_get_colormap(self)
         | 
| 334 | 
            -
                VALUE self;
         | 
| 294 | 
            +
            widget_get_colormap(VALUE self)
         | 
| 335 295 | 
             
            {
         | 
| 336 296 | 
             
                return GOBJ2RVAL(gtk_widget_get_colormap(_SELF(self)));
         | 
| 337 297 | 
             
            }
         | 
| 338 298 |  | 
| 339 299 | 
             
            static VALUE
         | 
| 340 | 
            -
            widget_set_colormap(self, colormap)
         | 
| 341 | 
            -
                VALUE self, colormap;
         | 
| 300 | 
            +
            widget_set_colormap(VALUE self, VALUE colormap)
         | 
| 342 301 | 
             
            {
         | 
| 343 302 | 
             
                gtk_widget_set_colormap(_SELF(self), GDK_COLORMAP(RVAL2GOBJ(colormap)));
         | 
| 344 303 | 
             
                return self;
         | 
| 345 304 | 
             
            }
         | 
| 346 305 |  | 
| 347 306 | 
             
            static VALUE
         | 
| 348 | 
            -
            widget_get_visual(self)
         | 
| 349 | 
            -
                VALUE self;
         | 
| 307 | 
            +
            widget_get_visual(VALUE self)
         | 
| 350 308 | 
             
            {
         | 
| 351 309 | 
             
                return GOBJ2RVAL(gtk_widget_get_visual(_SELF(self)));
         | 
| 352 310 | 
             
            }
         | 
| 353 311 |  | 
| 354 312 | 
             
            static VALUE
         | 
| 355 | 
            -
            widget_get_pointer(self)
         | 
| 356 | 
            -
                VALUE self;
         | 
| 313 | 
            +
            widget_get_pointer(VALUE self)
         | 
| 357 314 | 
             
            {
         | 
| 358 315 | 
             
                int x, y;
         | 
| 359 316 |  | 
| @@ -362,15 +319,13 @@ widget_get_pointer(self) | |
| 362 319 | 
             
            }
         | 
| 363 320 |  | 
| 364 321 | 
             
            static VALUE
         | 
| 365 | 
            -
            widget_is_ancestor(self, ancestor)
         | 
| 366 | 
            -
                VALUE self, ancestor;
         | 
| 322 | 
            +
            widget_is_ancestor(VALUE self, VALUE ancestor)
         | 
| 367 323 | 
             
            {
         | 
| 368 324 | 
             
                return CBOOL2RVAL(gtk_widget_is_ancestor(_SELF(self), _SELF(ancestor)));
         | 
| 369 325 | 
             
            }
         | 
| 370 326 |  | 
| 371 327 | 
             
            static VALUE
         | 
| 372 | 
            -
            widget_translate_coordinates(self, dest_widget, src_x, src_y)
         | 
| 373 | 
            -
                VALUE self, dest_widget, src_x, src_y;
         | 
| 328 | 
            +
            widget_translate_coordinates(VALUE self, VALUE dest_widget, VALUE src_x, VALUE src_y)
         | 
| 374 329 | 
             
            {
         | 
| 375 330 | 
             
                gint dest_x, dest_y;
         | 
| 376 331 | 
             
                gboolean ret;
         | 
| @@ -385,106 +340,92 @@ widget_translate_coordinates(self, dest_widget, src_x, src_y) | |
| 385 340 | 
             
            }
         | 
| 386 341 |  | 
| 387 342 | 
             
            static VALUE
         | 
| 388 | 
            -
            widget_hide_on_delete(self)
         | 
| 389 | 
            -
            	VALUE self;
         | 
| 343 | 
            +
            widget_hide_on_delete(VALUE self)
         | 
| 390 344 | 
             
            {
         | 
| 391 345 | 
             
                return CBOOL2RVAL(gtk_widget_hide_on_delete(_SELF(self)));
         | 
| 392 346 | 
             
            }
         | 
| 393 347 |  | 
| 394 348 | 
             
            static VALUE
         | 
| 395 | 
            -
            widget_ensure_style(self)
         | 
| 396 | 
            -
                VALUE self;
         | 
| 349 | 
            +
            widget_ensure_style(VALUE self)
         | 
| 397 350 | 
             
            {
         | 
| 398 351 | 
             
                gtk_widget_ensure_style(_SELF(self));
         | 
| 399 352 | 
             
                return self;
         | 
| 400 353 | 
             
            }
         | 
| 401 354 |  | 
| 402 355 | 
             
            static VALUE
         | 
| 403 | 
            -
            widget_reset_rc_styles(self)
         | 
| 404 | 
            -
                VALUE self;
         | 
| 356 | 
            +
            widget_reset_rc_styles(VALUE self)
         | 
| 405 357 | 
             
            {
         | 
| 406 358 | 
             
                gtk_widget_reset_rc_styles(_SELF(self));
         | 
| 407 359 | 
             
                return self;
         | 
| 408 360 | 
             
            }
         | 
| 409 361 |  | 
| 410 362 | 
             
            static VALUE
         | 
| 411 | 
            -
            widget_s_push_colormap(self, cmap)
         | 
| 412 | 
            -
                VALUE self, cmap;
         | 
| 363 | 
            +
            widget_s_push_colormap(VALUE self, VALUE cmap)
         | 
| 413 364 | 
             
            {
         | 
| 414 365 | 
             
                gtk_widget_push_colormap(GDK_COLORMAP(RVAL2GOBJ(cmap)));
         | 
| 415 366 | 
             
                return cmap;
         | 
| 416 367 | 
             
            }
         | 
| 417 368 |  | 
| 418 369 | 
             
            static VALUE
         | 
| 419 | 
            -
            widget_s_pop_colormap(self)
         | 
| 420 | 
            -
                VALUE self;
         | 
| 370 | 
            +
            widget_s_pop_colormap(VALUE self)
         | 
| 421 371 | 
             
            {
         | 
| 422 372 | 
             
                gtk_widget_pop_colormap();
         | 
| 423 373 | 
             
                return self;
         | 
| 424 374 | 
             
            }
         | 
| 425 375 |  | 
| 426 376 | 
             
            static VALUE
         | 
| 427 | 
            -
            widget_s_set_default_colormap(self, cmap)
         | 
| 428 | 
            -
                VALUE self, cmap;
         | 
| 377 | 
            +
            widget_s_set_default_colormap(VALUE self, VALUE cmap)
         | 
| 429 378 | 
             
            {
         | 
| 430 379 | 
             
                gtk_widget_set_default_colormap(GDK_COLORMAP(RVAL2GOBJ(cmap)));
         | 
| 431 380 | 
             
                return cmap;
         | 
| 432 381 | 
             
            }
         | 
| 433 382 |  | 
| 434 383 | 
             
            static VALUE
         | 
| 435 | 
            -
            widget_s_get_default_style(self)
         | 
| 436 | 
            -
                VALUE self;
         | 
| 384 | 
            +
            widget_s_get_default_style(VALUE self)
         | 
| 437 385 | 
             
            {
         | 
| 438 386 | 
             
                return GOBJ2RVAL(gtk_widget_get_default_style());
         | 
| 439 387 | 
             
            }
         | 
| 440 388 |  | 
| 441 389 | 
             
            static VALUE
         | 
| 442 | 
            -
            widget_s_get_default_colormap(self)
         | 
| 443 | 
            -
                VALUE self;
         | 
| 390 | 
            +
            widget_s_get_default_colormap(VALUE self)
         | 
| 444 391 | 
             
            {
         | 
| 445 392 | 
             
                return GOBJ2RVAL(gtk_widget_get_default_colormap());
         | 
| 446 393 | 
             
            }
         | 
| 447 394 |  | 
| 448 395 | 
             
            static VALUE
         | 
| 449 | 
            -
            widget_s_get_default_visual(self)
         | 
| 450 | 
            -
                VALUE self;
         | 
| 396 | 
            +
            widget_s_get_default_visual(VALUE self)
         | 
| 451 397 | 
             
            {
         | 
| 452 398 | 
             
                return GOBJ2RVAL(gtk_widget_get_default_visual());
         | 
| 453 399 | 
             
            }
         | 
| 454 400 |  | 
| 455 401 | 
             
            static VALUE
         | 
| 456 | 
            -
            widget_set_direction(self, dir)
         | 
| 457 | 
            -
                VALUE self, dir;
         | 
| 402 | 
            +
            widget_set_direction(VALUE self, VALUE dir)
         | 
| 458 403 | 
             
            {
         | 
| 459 404 | 
             
                gtk_widget_set_direction(_SELF(self), RVAL2GENUM(dir, GTK_TYPE_TEXT_DIRECTION));
         | 
| 460 405 | 
             
                return self;
         | 
| 461 406 | 
             
            }
         | 
| 462 407 |  | 
| 463 408 | 
             
            static VALUE
         | 
| 464 | 
            -
            widget_get_direction(self)
         | 
| 465 | 
            -
                VALUE self;
         | 
| 409 | 
            +
            widget_get_direction(VALUE self)
         | 
| 466 410 | 
             
            {
         | 
| 467 411 | 
             
                return GENUM2RVAL(gtk_widget_get_direction(_SELF(self)), GTK_TYPE_TEXT_DIRECTION);
         | 
| 468 412 | 
             
            }
         | 
| 469 413 |  | 
| 470 414 | 
             
            static VALUE
         | 
| 471 | 
            -
            widget_s_set_default_direction(self, dir)
         | 
| 472 | 
            -
                VALUE self;
         | 
| 415 | 
            +
            widget_s_set_default_direction(VALUE self, VALUE dir)
         | 
| 473 416 | 
             
            {
         | 
| 474 417 | 
             
                gtk_widget_set_default_direction(RVAL2GENUM(dir, GTK_TYPE_TEXT_DIRECTION));
         | 
| 475 418 | 
             
                return self;
         | 
| 476 419 | 
             
            }
         | 
| 477 420 |  | 
| 478 421 | 
             
            static VALUE
         | 
| 479 | 
            -
            widget_s_get_default_direction(self)
         | 
| 480 | 
            -
                VALUE self;
         | 
| 422 | 
            +
            widget_s_get_default_direction(VALUE self)
         | 
| 481 423 | 
             
            {
         | 
| 482 424 | 
             
                return GENUM2RVAL(gtk_widget_get_default_direction(), GTK_TYPE_TEXT_DIRECTION);
         | 
| 483 425 | 
             
            }
         | 
| 484 426 |  | 
| 485 427 | 
             
            static VALUE
         | 
| 486 | 
            -
            widget_shape_combine_mask(self, shape_mask, offset_x, offset_y)
         | 
| 487 | 
            -
                VALUE self, shape_mask, offset_x, offset_y;
         | 
| 428 | 
            +
            widget_shape_combine_mask(VALUE self, VALUE shape_mask, VALUE offset_x, VALUE offset_y)
         | 
| 488 429 | 
             
            {
         | 
| 489 430 | 
             
                gtk_widget_shape_combine_mask(_SELF(self),
         | 
| 490 431 | 
             
                                              GDK_BITMAP(RVAL2GOBJ(shape_mask)),
         | 
| @@ -495,8 +436,7 @@ widget_shape_combine_mask(self, shape_mask, offset_x, offset_y) | |
| 495 436 |  | 
| 496 437 | 
             
            #if GTK_CHECK_VERSION(2,10,0)
         | 
| 497 438 | 
             
            static VALUE
         | 
| 498 | 
            -
            widget_input_shape_combine_mask(self, shape_mask, offset_x, offset_y)
         | 
| 499 | 
            -
                VALUE self, shape_mask, offset_x, offset_y;
         | 
| 439 | 
            +
            widget_input_shape_combine_mask(VALUE self, VALUE shape_mask, VALUE offset_x, VALUE offset_y)
         | 
| 500 440 | 
             
            {
         | 
| 501 441 | 
             
                gtk_widget_input_shape_combine_mask(_SELF(self),
         | 
| 502 442 | 
             
                                                    GDK_BITMAP(RVAL2GOBJ(shape_mask)),
         | 
| @@ -507,8 +447,7 @@ widget_input_shape_combine_mask(self, shape_mask, offset_x, offset_y) | |
| 507 447 | 
             
            #endif
         | 
| 508 448 |  | 
| 509 449 | 
             
            static VALUE
         | 
| 510 | 
            -
            widget_path(self)
         | 
| 511 | 
            -
                VALUE self;
         | 
| 450 | 
            +
            widget_path(VALUE self)
         | 
| 512 451 | 
             
            {
         | 
| 513 452 | 
             
                guint path_length;
         | 
| 514 453 | 
             
                gchar *path;
         | 
| @@ -525,8 +464,7 @@ widget_path(self) | |
| 525 464 | 
             
            }
         | 
| 526 465 |  | 
| 527 466 | 
             
            static VALUE
         | 
| 528 | 
            -
            widget_class_path(self)
         | 
| 529 | 
            -
                VALUE self;
         | 
| 467 | 
            +
            widget_class_path(VALUE self)
         | 
| 530 468 | 
             
            {
         | 
| 531 469 | 
             
                guint path_length;
         | 
| 532 470 | 
             
                gchar *path;
         | 
| @@ -543,15 +481,13 @@ widget_class_path(self) | |
| 543 481 | 
             
            }
         | 
| 544 482 |  | 
| 545 483 | 
             
            static VALUE
         | 
| 546 | 
            -
            widget_get_composite_name(self)
         | 
| 547 | 
            -
                VALUE self;
         | 
| 484 | 
            +
            widget_get_composite_name(VALUE self)
         | 
| 548 485 | 
             
            {
         | 
| 549 486 | 
             
                return CSTR2RVAL(gtk_widget_get_composite_name(_SELF(self)));
         | 
| 550 487 | 
             
            }
         | 
| 551 488 |  | 
| 552 489 | 
             
            static VALUE
         | 
| 553 | 
            -
            widget_modify_style(self, style)
         | 
| 554 | 
            -
                VALUE self, style;
         | 
| 490 | 
            +
            widget_modify_style(VALUE self, VALUE style)
         | 
| 555 491 | 
             
            {
         | 
| 556 492 | 
             
                gtk_widget_modify_style(_SELF(self),
         | 
| 557 493 | 
             
                                        GTK_RC_STYLE(RVAL2GOBJ(style)));
         | 
| @@ -559,15 +495,13 @@ widget_modify_style(self, style) | |
| 559 495 | 
             
            }
         | 
| 560 496 |  | 
| 561 497 | 
             
            static VALUE
         | 
| 562 | 
            -
            widget_get_modifier_style(self)
         | 
| 563 | 
            -
                VALUE self;
         | 
| 498 | 
            +
            widget_get_modifier_style(VALUE self)
         | 
| 564 499 | 
             
            {
         | 
| 565 500 | 
             
                return GOBJ2RVAL(gtk_widget_get_modifier_style(_SELF(self)));
         | 
| 566 501 | 
             
            }
         | 
| 567 502 |  | 
| 568 503 | 
             
            static VALUE
         | 
| 569 | 
            -
            widget_modify_fg(self, state, color)
         | 
| 570 | 
            -
                VALUE self, state, color;
         | 
| 504 | 
            +
            widget_modify_fg(VALUE self, VALUE state, VALUE color)
         | 
| 571 505 | 
             
            {
         | 
| 572 506 | 
             
                gtk_widget_modify_fg(_SELF(self), RVAL2GTKSTATETYPE(state),
         | 
| 573 507 | 
             
                                     RVAL2GDKCOLOR(color));
         | 
| @@ -575,8 +509,7 @@ widget_modify_fg(self, state, color) | |
| 575 509 | 
             
            }
         | 
| 576 510 |  | 
| 577 511 | 
             
            static VALUE
         | 
| 578 | 
            -
            widget_modify_bg(self, state, color)
         | 
| 579 | 
            -
                VALUE self, state, color;
         | 
| 512 | 
            +
            widget_modify_bg(VALUE self, VALUE state, VALUE color)
         | 
| 580 513 | 
             
            {
         | 
| 581 514 | 
             
                gtk_widget_modify_bg(_SELF(self), RVAL2GTKSTATETYPE(state),
         | 
| 582 515 | 
             
                                     RVAL2GDKCOLOR(color));
         | 
| @@ -584,8 +517,7 @@ widget_modify_bg(self, state, color) | |
| 584 517 | 
             
            }
         | 
| 585 518 |  | 
| 586 519 | 
             
            static VALUE
         | 
| 587 | 
            -
            widget_modify_text(self, state, color)
         | 
| 588 | 
            -
                VALUE self, state, color;
         | 
| 520 | 
            +
            widget_modify_text(VALUE self, VALUE state, VALUE color)
         | 
| 589 521 | 
             
            {
         | 
| 590 522 | 
             
                gtk_widget_modify_text(_SELF(self), RVAL2GTKSTATETYPE(state),
         | 
| 591 523 | 
             
                                     RVAL2GDKCOLOR(color));
         | 
| @@ -593,8 +525,7 @@ widget_modify_text(self, state, color) | |
| 593 525 | 
             
            }
         | 
| 594 526 |  | 
| 595 527 | 
             
            static VALUE
         | 
| 596 | 
            -
            widget_modify_base(self, state, color)
         | 
| 597 | 
            -
                VALUE self, state, color;
         | 
| 528 | 
            +
            widget_modify_base(VALUE self, VALUE state, VALUE color)
         | 
| 598 529 | 
             
            {
         | 
| 599 530 | 
             
                gtk_widget_modify_base(_SELF(self), RVAL2GTKSTATETYPE(state),
         | 
| 600 531 | 
             
                                     RVAL2GDKCOLOR(color));
         | 
| @@ -602,8 +533,7 @@ widget_modify_base(self, state, color) | |
| 602 533 | 
             
            }
         | 
| 603 534 |  | 
| 604 535 | 
             
            static VALUE
         | 
| 605 | 
            -
            widget_modify_font(self, font_desc)
         | 
| 606 | 
            -
                VALUE self, font_desc;
         | 
| 536 | 
            +
            widget_modify_font(VALUE self, VALUE font_desc)
         | 
| 607 537 | 
             
            {
         | 
| 608 538 | 
             
                gtk_widget_modify_font(_SELF(self), 
         | 
| 609 539 | 
             
                                       (PangoFontDescription*)RVAL2BOXED(font_desc, PANGO_TYPE_FONT_DESCRIPTION));
         | 
| @@ -612,8 +542,7 @@ widget_modify_font(self, font_desc) | |
| 612 542 |  | 
| 613 543 | 
             
            #if GTK_CHECK_VERSION(2,12,0)
         | 
| 614 544 | 
             
            static VALUE
         | 
| 615 | 
            -
            widget_modify_cursor(self, primary, seconday)
         | 
| 616 | 
            -
                VALUE self, primary, seconday;
         | 
| 545 | 
            +
            widget_modify_cursor(VALUE self, VALUE primary, VALUE seconday)
         | 
| 617 546 | 
             
            {
         | 
| 618 547 | 
             
                gtk_widget_modify_cursor(_SELF(self), 
         | 
| 619 548 | 
             
                                         RVAL2BOXED(primary, GDK_TYPE_COLOR),
         | 
| @@ -623,24 +552,19 @@ widget_modify_cursor(self, primary, seconday) | |
| 623 552 | 
             
            #endif
         | 
| 624 553 |  | 
| 625 554 | 
             
            static VALUE
         | 
| 626 | 
            -
            widget_create_pango_context(self)
         | 
| 627 | 
            -
                VALUE self;
         | 
| 555 | 
            +
            widget_create_pango_context(VALUE self)
         | 
| 628 556 | 
             
            {
         | 
| 629 557 | 
             
                return GOBJ2RVALU(gtk_widget_create_pango_context(_SELF(self)));
         | 
| 630 558 | 
             
            }
         | 
| 631 559 |  | 
| 632 560 | 
             
            static VALUE
         | 
| 633 | 
            -
            widget_get_pango_context(self)
         | 
| 634 | 
            -
                VALUE self;
         | 
| 561 | 
            +
            widget_get_pango_context(VALUE self)
         | 
| 635 562 | 
             
            {
         | 
| 636 563 | 
             
                return GOBJ2RVAL(gtk_widget_get_pango_context(_SELF(self)));
         | 
| 637 564 | 
             
            }
         | 
| 638 565 |  | 
| 639 566 | 
             
            static VALUE
         | 
| 640 | 
            -
            widget_create_pango_layout(argc, argv, self)
         | 
| 641 | 
            -
                int argc;
         | 
| 642 | 
            -
                VALUE* argv;
         | 
| 643 | 
            -
                VALUE self;
         | 
| 567 | 
            +
            widget_create_pango_layout(int argc, VALUE *argv, VALUE self)
         | 
| 644 568 | 
             
            {
         | 
| 645 569 | 
             
                VALUE text;
         | 
| 646 570 | 
             
                rb_scan_args(argc, argv, "01", &text);
         | 
| @@ -648,10 +572,7 @@ widget_create_pango_layout(argc, argv, self) | |
| 648 572 | 
             
            }
         | 
| 649 573 |  | 
| 650 574 | 
             
            static VALUE
         | 
| 651 | 
            -
            widget_render_icon(argc, argv, self)
         | 
| 652 | 
            -
                int argc;
         | 
| 653 | 
            -
                VALUE* argv;
         | 
| 654 | 
            -
                VALUE self;
         | 
| 575 | 
            +
            widget_render_icon(int argc, VALUE *argv, VALUE self)
         | 
| 655 576 | 
             
            {
         | 
| 656 577 | 
             
                VALUE stock_id, size, detail;
         | 
| 657 578 | 
             
                rb_scan_args(argc, argv, "21", &stock_id, &size, &detail);
         | 
| @@ -661,24 +582,21 @@ widget_render_icon(argc, argv, self) | |
| 661 582 | 
             
            }
         | 
| 662 583 |  | 
| 663 584 | 
             
            static VALUE
         | 
| 664 | 
            -
            widget_s_pop_composite_child(self)
         | 
| 665 | 
            -
                VALUE self;
         | 
| 585 | 
            +
            widget_s_pop_composite_child(VALUE self)
         | 
| 666 586 | 
             
            {
         | 
| 667 587 | 
             
                gtk_widget_pop_composite_child();
         | 
| 668 588 | 
             
                return self;
         | 
| 669 589 | 
             
            }
         | 
| 670 590 |  | 
| 671 591 | 
             
            static VALUE
         | 
| 672 | 
            -
            widget_s_push_composite_child(self)
         | 
| 673 | 
            -
                VALUE self;
         | 
| 592 | 
            +
            widget_s_push_composite_child(VALUE self)
         | 
| 674 593 | 
             
            {
         | 
| 675 594 | 
             
                gtk_widget_push_composite_child();
         | 
| 676 595 | 
             
                return self;
         | 
| 677 596 | 
             
            }
         | 
| 678 597 |  | 
| 679 598 | 
             
            static VALUE
         | 
| 680 | 
            -
            widget_queue_draw_area(self, x, y, width, height)
         | 
| 681 | 
            -
                VALUE self, x, y, width, height;
         | 
| 599 | 
            +
            widget_queue_draw_area(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
         | 
| 682 600 | 
             
            {
         | 
| 683 601 | 
             
                gtk_widget_queue_draw_area(_SELF(self), NUM2INT(x), NUM2INT(y),
         | 
| 684 602 | 
             
                                           NUM2INT(width), NUM2INT(height));
         | 
| @@ -686,40 +604,35 @@ widget_queue_draw_area(self, x, y, width, height) | |
| 686 604 | 
             
            }
         | 
| 687 605 |  | 
| 688 606 | 
             
            static VALUE
         | 
| 689 | 
            -
            widget_reset_shapes(self)
         | 
| 690 | 
            -
                VALUE self;
         | 
| 607 | 
            +
            widget_reset_shapes(VALUE self)
         | 
| 691 608 | 
             
            {
         | 
| 692 609 | 
             
                gtk_widget_reset_shapes(_SELF(self));
         | 
| 693 610 | 
             
                return self;
         | 
| 694 611 | 
             
            }
         | 
| 695 612 |  | 
| 696 613 | 
             
            static VALUE
         | 
| 697 | 
            -
            widget_set_double_buffered(self, double_buffered)
         | 
| 698 | 
            -
                VALUE self, double_buffered;
         | 
| 614 | 
            +
            widget_set_double_buffered(VALUE self, VALUE double_buffered)
         | 
| 699 615 | 
             
            {
         | 
| 700 616 | 
             
                gtk_widget_set_double_buffered(_SELF(self), RVAL2CBOOL(double_buffered));
         | 
| 701 617 | 
             
                return self;
         | 
| 702 618 | 
             
            }
         | 
| 703 619 |  | 
| 704 620 | 
             
            static VALUE
         | 
| 705 | 
            -
            widget_set_redraw_on_allocate(self, redraw_on_allocate)
         | 
| 706 | 
            -
                VALUE self, redraw_on_allocate;
         | 
| 621 | 
            +
            widget_set_redraw_on_allocate(VALUE self, VALUE redraw_on_allocate)
         | 
| 707 622 | 
             
            {
         | 
| 708 623 | 
             
                gtk_widget_set_redraw_on_allocate(_SELF(self), RVAL2CBOOL(redraw_on_allocate));
         | 
| 709 624 | 
             
                return self;
         | 
| 710 625 | 
             
            }
         | 
| 711 626 |  | 
| 712 627 | 
             
            static VALUE
         | 
| 713 | 
            -
            widget_set_composite_name(self, name)
         | 
| 714 | 
            -
                VALUE self, name;
         | 
| 628 | 
            +
            widget_set_composite_name(VALUE self, VALUE name)
         | 
| 715 629 | 
             
            {
         | 
| 716 630 | 
             
                gtk_widget_set_composite_name(_SELF(self), RVAL2CSTR(name));
         | 
| 717 631 | 
             
                return self;
         | 
| 718 632 | 
             
            }
         | 
| 719 633 |  | 
| 720 634 | 
             
            static VALUE
         | 
| 721 | 
            -
            widget_set_scroll_adjustments(self, h, v)
         | 
| 722 | 
            -
                VALUE self, h, v;
         | 
| 635 | 
            +
            widget_set_scroll_adjustments(VALUE self, VALUE h, VALUE v)
         | 
| 723 636 | 
             
            {
         | 
| 724 637 | 
             
                return CBOOL2RVAL(gtk_widget_set_scroll_adjustments(_SELF(self),
         | 
| 725 638 | 
             
                                                                    GTK_ADJUSTMENT(_SELF(h)),
         | 
| @@ -727,8 +640,7 @@ widget_set_scroll_adjustments(self, h, v) | |
| 727 640 | 
             
            }
         | 
| 728 641 |  | 
| 729 642 | 
             
            static VALUE
         | 
| 730 | 
            -
            widget_mnemonic_activate(self, group_cycling)
         | 
| 731 | 
            -
                VALUE self, group_cycling;
         | 
| 643 | 
            +
            widget_mnemonic_activate(VALUE self, VALUE group_cycling)
         | 
| 732 644 | 
             
            {
         | 
| 733 645 | 
             
                return CBOOL2RVAL(gtk_widget_mnemonic_activate(_SELF(self), RVAL2CBOOL(group_cycling)));
         | 
| 734 646 | 
             
            }
         | 
| @@ -741,10 +653,7 @@ widget_mnemonic_activate(self, group_cycling) | |
| 741 653 | 
             
             * end
         | 
| 742 654 | 
             
             */
         | 
| 743 655 | 
             
            static gboolean
         | 
| 744 | 
            -
            rc_property_parser(pspec, rc_string, property_value)
         | 
| 745 | 
            -
                const GParamSpec *pspec;
         | 
| 746 | 
            -
                const GString *rc_string;
         | 
| 747 | 
            -
                GValue *property_value;
         | 
| 656 | 
            +
            rc_property_parser(const GParamSpec *pspec, const GString *rc_string, GValue *property_value)
         | 
| 748 657 | 
             
            {
         | 
| 749 658 | 
             
                VALUE spec = GOBJ2RVAL((gpointer)pspec);
         | 
| 750 659 | 
             
                VALUE func = rb_hash_aref(style_prop_func_table, spec);
         | 
| @@ -760,8 +669,7 @@ rc_property_parser(pspec, rc_string, property_value) | |
| 760 669 | 
             
            }
         | 
| 761 670 |  | 
| 762 671 | 
             
            static VALUE
         | 
| 763 | 
            -
            widget_s_install_style_property(self, spec)
         | 
| 764 | 
            -
                VALUE self, spec;
         | 
| 672 | 
            +
            widget_s_install_style_property(VALUE self, VALUE spec)
         | 
| 765 673 | 
             
            {
         | 
| 766 674 | 
             
                const RGObjClassInfo* cinfo = rbgobj_lookup_class(self);
         | 
| 767 675 | 
             
                GtkWidgetClass* gclass;
         | 
| @@ -785,8 +693,7 @@ widget_s_install_style_property(self, spec) | |
| 785 693 |  | 
| 786 694 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 787 695 | 
             
            static VALUE
         | 
| 788 | 
            -
            widget_s_find_style_property(self, property_name)
         | 
| 789 | 
            -
                 VALUE self, property_name;
         | 
| 696 | 
            +
            widget_s_find_style_property(VALUE self, VALUE property_name)
         | 
| 790 697 | 
             
            {
         | 
| 791 698 | 
             
                GtkWidgetClass* oclass;
         | 
| 792 699 | 
             
                const char* name;
         | 
| @@ -813,10 +720,7 @@ widget_s_find_style_property(self, property_name) | |
| 813 720 | 
             
            }
         | 
| 814 721 |  | 
| 815 722 | 
             
            static VALUE
         | 
| 816 | 
            -
            widget_s_style_properties(argc, argv, self)
         | 
| 817 | 
            -
                int argc;
         | 
| 818 | 
            -
                VALUE* argv;
         | 
| 819 | 
            -
                VALUE self;
         | 
| 723 | 
            +
            widget_s_style_properties(int argc, VALUE *argv, VALUE self)
         | 
| 820 724 | 
             
            {
         | 
| 821 725 | 
             
                GtkWidgetClass* oclass = g_type_class_ref(CLASS2GTYPE(self));
         | 
| 822 726 | 
             
                guint n_properties;
         | 
| @@ -844,8 +748,7 @@ widget_s_style_properties(argc, argv, self) | |
| 844 748 | 
             
            #endif
         | 
| 845 749 |  | 
| 846 750 | 
             
            static VALUE
         | 
| 847 | 
            -
            widget_region_intersect(self, region)
         | 
| 848 | 
            -
                VALUE self, region;
         | 
| 751 | 
            +
            widget_region_intersect(VALUE self, VALUE region)
         | 
| 849 752 | 
             
            {
         | 
| 850 753 | 
             
                return BOXED2RVAL(gtk_widget_region_intersect(_SELF(self), 
         | 
| 851 754 | 
             
                                                              (GdkRegion*)RVAL2BOXED(region, GDK_TYPE_REGION)), 
         | 
| @@ -853,8 +756,7 @@ widget_region_intersect(self, region) | |
| 853 756 | 
             
            }
         | 
| 854 757 |  | 
| 855 758 | 
             
            static VALUE
         | 
| 856 | 
            -
            widget_send_expose(self, event)
         | 
| 857 | 
            -
                VALUE self, event;
         | 
| 759 | 
            +
            widget_send_expose(VALUE self, VALUE event)
         | 
| 858 760 | 
             
            {
         | 
| 859 761 | 
             
                return INT2NUM(gtk_widget_send_expose(_SELF(self), RVAL2GEV(event)));
         | 
| 860 762 | 
             
            }
         | 
| @@ -869,8 +771,7 @@ void        gtk_widget_style_get_valist     (GtkWidget *widget, | |
| 869 771 | 
             
            */
         | 
| 870 772 |  | 
| 871 773 | 
             
            static VALUE
         | 
| 872 | 
            -
            widget_style_get_property(self, prop_name)
         | 
| 873 | 
            -
                VALUE self, prop_name;
         | 
| 774 | 
            +
            widget_style_get_property(VALUE self, VALUE prop_name)
         | 
| 874 775 | 
             
            {
         | 
| 875 776 | 
             
                GParamSpec* pspec = NULL;
         | 
| 876 777 | 
             
                const char* name;
         | 
| @@ -898,98 +799,85 @@ widget_style_get_property(self, prop_name) | |
| 898 799 | 
             
            }
         | 
| 899 800 |  | 
| 900 801 | 
             
            static VALUE
         | 
| 901 | 
            -
            widget_get_accessible(self)
         | 
| 902 | 
            -
                VALUE self;
         | 
| 802 | 
            +
            widget_get_accessible(VALUE self)
         | 
| 903 803 | 
             
            {
         | 
| 904 804 | 
             
                return GOBJ2RVAL(_SELF(self));
         | 
| 905 805 | 
             
            }
         | 
| 906 806 |  | 
| 907 807 | 
             
            static VALUE
         | 
| 908 | 
            -
            widget_child_focus(self, direction)
         | 
| 909 | 
            -
                VALUE self, direction;
         | 
| 808 | 
            +
            widget_child_focus(VALUE self, VALUE direction)
         | 
| 910 809 | 
             
            {
         | 
| 911 810 | 
             
                return CBOOL2RVAL(gtk_widget_child_focus(_SELF(self), RVAL2GENUM(direction, GTK_TYPE_DIRECTION_TYPE)));
         | 
| 912 811 | 
             
            }
         | 
| 913 812 |  | 
| 914 813 | 
             
            #if GTK_CHECK_VERSION(2,12,0)
         | 
| 915 814 | 
             
            static VALUE
         | 
| 916 | 
            -
            widget_error_bell(self)
         | 
| 917 | 
            -
                VALUE self;
         | 
| 815 | 
            +
            widget_error_bell(VALUE self)
         | 
| 918 816 | 
             
            {
         | 
| 919 817 | 
             
                gtk_widget_error_bell(_SELF(self));
         | 
| 920 818 | 
             
                return self;
         | 
| 921 819 | 
             
            }
         | 
| 922 820 |  | 
| 923 821 | 
             
            static VALUE
         | 
| 924 | 
            -
            widget_keynav_failed(self, direction)
         | 
| 925 | 
            -
                VALUE self, direction;
         | 
| 822 | 
            +
            widget_keynav_failed(VALUE self, VALUE direction)
         | 
| 926 823 | 
             
            {
         | 
| 927 824 | 
             
                return CBOOL2RVAL(gtk_widget_keynav_failed(_SELF(self), RVAL2GENUM(direction, GTK_TYPE_DIRECTION_TYPE)));
         | 
| 928 825 | 
             
            }
         | 
| 929 826 | 
             
            #endif
         | 
| 930 827 |  | 
| 931 828 | 
             
            static VALUE
         | 
| 932 | 
            -
            widget_child_notify(self, child_property)
         | 
| 933 | 
            -
                VALUE self, child_property;
         | 
| 829 | 
            +
            widget_child_notify(VALUE self, VALUE child_property)
         | 
| 934 830 | 
             
            {
         | 
| 935 831 | 
             
                gtk_widget_child_notify(_SELF(self), RVAL2CSTR(child_property));
         | 
| 936 832 | 
             
                return self;
         | 
| 937 833 | 
             
            }
         | 
| 938 834 |  | 
| 939 835 | 
             
            static VALUE
         | 
| 940 | 
            -
            widget_freeze_child_notify(self)
         | 
| 941 | 
            -
                VALUE self;
         | 
| 836 | 
            +
            widget_freeze_child_notify(VALUE self)
         | 
| 942 837 | 
             
            {
         | 
| 943 838 | 
             
                gtk_widget_freeze_child_notify(_SELF(self));
         | 
| 944 839 | 
             
                return self;
         | 
| 945 840 | 
             
            }
         | 
| 946 841 |  | 
| 947 842 | 
             
            static VALUE
         | 
| 948 | 
            -
            widget_get_child_visible(self)
         | 
| 949 | 
            -
                VALUE self;
         | 
| 843 | 
            +
            widget_get_child_visible(VALUE self)
         | 
| 950 844 | 
             
            {
         | 
| 951 845 | 
             
                return CBOOL2RVAL(gtk_widget_get_child_visible(_SELF(self)));
         | 
| 952 846 | 
             
            }
         | 
| 953 847 |  | 
| 954 848 | 
             
            static VALUE
         | 
| 955 | 
            -
            widget_get_settings(self)
         | 
| 956 | 
            -
                VALUE self;
         | 
| 849 | 
            +
            widget_get_settings(VALUE self)
         | 
| 957 850 | 
             
            {
         | 
| 958 851 | 
             
                return GOBJ2RVAL(gtk_widget_get_settings(_SELF(self)));
         | 
| 959 852 | 
             
            }
         | 
| 960 853 |  | 
| 961 854 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 962 855 | 
             
            static VALUE
         | 
| 963 | 
            -
            widget_get_clipboard(self, selection)
         | 
| 964 | 
            -
                VALUE self, selection;
         | 
| 856 | 
            +
            widget_get_clipboard(VALUE self, VALUE selection)
         | 
| 965 857 | 
             
            {
         | 
| 966 858 | 
             
                return CLIPBOARD2RVAL(gtk_widget_get_clipboard(_SELF(self), RVAL2ATOM(selection)));
         | 
| 967 859 | 
             
            }
         | 
| 968 860 |  | 
| 969 861 | 
             
            static VALUE
         | 
| 970 | 
            -
            widget_get_display(self)
         | 
| 971 | 
            -
                VALUE self;
         | 
| 862 | 
            +
            widget_get_display(VALUE self)
         | 
| 972 863 | 
             
            {
         | 
| 973 864 | 
             
                return GOBJ2RVAL(gtk_widget_get_display(_SELF(self)));
         | 
| 974 865 | 
             
            }
         | 
| 975 866 |  | 
| 976 867 | 
             
            static VALUE
         | 
| 977 | 
            -
            widget_get_root_window(self)
         | 
| 978 | 
            -
                VALUE self;
         | 
| 868 | 
            +
            widget_get_root_window(VALUE self)
         | 
| 979 869 | 
             
            {
         | 
| 980 870 | 
             
                return GOBJ2RVAL(gtk_widget_get_root_window(_SELF(self)));
         | 
| 981 871 | 
             
            }
         | 
| 982 872 |  | 
| 983 873 | 
             
            static VALUE
         | 
| 984 | 
            -
            widget_get_screen(self)
         | 
| 985 | 
            -
                VALUE self;
         | 
| 874 | 
            +
            widget_get_screen(VALUE self)
         | 
| 986 875 | 
             
            {
         | 
| 987 876 | 
             
                return GOBJ2RVAL(gtk_widget_get_screen(_SELF(self)));
         | 
| 988 877 | 
             
            }
         | 
| 989 878 |  | 
| 990 879 | 
             
            static VALUE
         | 
| 991 | 
            -
            widget_has_screen(self)
         | 
| 992 | 
            -
                VALUE self;
         | 
| 880 | 
            +
            widget_has_screen(VALUE self)
         | 
| 993 881 | 
             
            {
         | 
| 994 882 | 
             
                return CBOOL2RVAL(gtk_widget_has_screen(_SELF(self)));
         | 
| 995 883 | 
             
            }
         | 
| @@ -999,8 +887,7 @@ widget_has_screen(self) | |
| 999 887 | 
             
              Note this method is not gtk_widget_size_request()
         | 
| 1000 888 | 
             
            */
         | 
| 1001 889 | 
             
            static VALUE
         | 
| 1002 | 
            -
            widget_get_size_request(self)
         | 
| 1003 | 
            -
                VALUE self;
         | 
| 890 | 
            +
            widget_get_size_request(VALUE self)
         | 
| 1004 891 | 
             
            {
         | 
| 1005 892 | 
             
                gint width, height;
         | 
| 1006 893 | 
             
                gtk_widget_get_size_request(_SELF(self), &width, &height);
         | 
| @@ -1008,24 +895,21 @@ widget_get_size_request(self) | |
| 1008 895 | 
             
            }
         | 
| 1009 896 |  | 
| 1010 897 | 
             
            static VALUE
         | 
| 1011 | 
            -
            widget_set_child_visible(self, is_visible)
         | 
| 1012 | 
            -
                VALUE self, is_visible;
         | 
| 898 | 
            +
            widget_set_child_visible(VALUE self, VALUE is_visible)
         | 
| 1013 899 | 
             
            {
         | 
| 1014 900 | 
             
                gtk_widget_set_child_visible(_SELF(self), RVAL2CBOOL(is_visible));
         | 
| 1015 901 | 
             
                return self;
         | 
| 1016 902 | 
             
            }
         | 
| 1017 903 |  | 
| 1018 904 | 
             
            static VALUE
         | 
| 1019 | 
            -
            widget_set_size_request(self, width, height)
         | 
| 1020 | 
            -
                VALUE self, width, height;
         | 
| 905 | 
            +
            widget_set_size_request(VALUE self, VALUE width, VALUE height)
         | 
| 1021 906 | 
             
            {
         | 
| 1022 907 | 
             
                gtk_widget_set_size_request(_SELF(self), NUM2INT(width), NUM2INT(height));
         | 
| 1023 908 | 
             
                return self;
         | 
| 1024 909 | 
             
            }
         | 
| 1025 910 |  | 
| 1026 911 | 
             
            static VALUE
         | 
| 1027 | 
            -
            widget_thaw_child_notify(self)
         | 
| 1028 | 
            -
                VALUE self;
         | 
| 912 | 
            +
            widget_thaw_child_notify(VALUE self)
         | 
| 1029 913 | 
             
            {
         | 
| 1030 914 | 
             
                gtk_widget_thaw_child_notify(_SELF(self));
         | 
| 1031 915 | 
             
                return self;
         | 
| @@ -1033,38 +917,33 @@ widget_thaw_child_notify(self) | |
| 1033 917 |  | 
| 1034 918 | 
             
            #if GTK_CHECK_VERSION(2,4,0)
         | 
| 1035 919 | 
             
            static VALUE
         | 
| 1036 | 
            -
            widget_set_no_show_all(self, no_show_all)
         | 
| 1037 | 
            -
                VALUE self, no_show_all;
         | 
| 920 | 
            +
            widget_set_no_show_all(VALUE self, VALUE no_show_all)
         | 
| 1038 921 | 
             
            {
         | 
| 1039 922 | 
             
                gtk_widget_set_no_show_all(_SELF(self), RVAL2CBOOL(no_show_all));
         | 
| 1040 923 | 
             
                return self;
         | 
| 1041 924 | 
             
            }
         | 
| 1042 925 |  | 
| 1043 926 | 
             
            static VALUE
         | 
| 1044 | 
            -
            widget_get_no_show_all(self)
         | 
| 1045 | 
            -
                VALUE self;
         | 
| 927 | 
            +
            widget_get_no_show_all(VALUE self)
         | 
| 1046 928 | 
             
            {
         | 
| 1047 929 | 
             
                return CBOOL2RVAL(gtk_widget_get_no_show_all(_SELF(self)));
         | 
| 1048 930 | 
             
            }
         | 
| 1049 931 |  | 
| 1050 932 | 
             
            static VALUE
         | 
| 1051 | 
            -
            widget_list_mnemonic_labels(self)
         | 
| 1052 | 
            -
                VALUE self;
         | 
| 933 | 
            +
            widget_list_mnemonic_labels(VALUE self)
         | 
| 1053 934 | 
             
            {
         | 
| 1054 935 | 
             
                return GLIST2ARYF(gtk_widget_list_mnemonic_labels(_SELF(self)));
         | 
| 1055 936 | 
             
            }
         | 
| 1056 937 |  | 
| 1057 938 | 
             
            static VALUE
         | 
| 1058 | 
            -
            widget_add_mnemonic_label(self, label)
         | 
| 1059 | 
            -
                VALUE self, label;
         | 
| 939 | 
            +
            widget_add_mnemonic_label(VALUE self, VALUE label)
         | 
| 1060 940 | 
             
            {
         | 
| 1061 941 | 
             
                gtk_widget_add_mnemonic_label(_SELF(self), GTK_WIDGET(RVAL2GOBJ(label)));
         | 
| 1062 942 | 
             
                return self;
         | 
| 1063 943 | 
             
            }
         | 
| 1064 944 |  | 
| 1065 945 | 
             
            static VALUE
         | 
| 1066 | 
            -
            widget_remove_mnemonic_label(self, label)
         | 
| 1067 | 
            -
                VALUE self, label;
         | 
| 946 | 
            +
            widget_remove_mnemonic_label(VALUE self, VALUE label)
         | 
| 1068 947 | 
             
            {
         | 
| 1069 948 | 
             
                gtk_widget_remove_mnemonic_label(_SELF(self), GTK_WIDGET(RVAL2GOBJ(label)));
         | 
| 1070 949 | 
             
                return self;
         | 
| @@ -1073,23 +952,20 @@ widget_remove_mnemonic_label(self, label) | |
| 1073 952 |  | 
| 1074 953 | 
             
            #if GTK_CHECK_VERSION(2,12,0)
         | 
| 1075 954 | 
             
            static VALUE
         | 
| 1076 | 
            -
            widget_set_tooltip_window(self, custom_window)
         | 
| 1077 | 
            -
                VALUE self, custom_window;
         | 
| 955 | 
            +
            widget_set_tooltip_window(VALUE self, VALUE custom_window)
         | 
| 1078 956 | 
             
            {
         | 
| 1079 957 | 
             
                gtk_widget_set_tooltip_window(_SELF(self), GTK_WINDOW(RVAL2GOBJ(custom_window)));
         | 
| 1080 958 | 
             
                return self;
         | 
| 1081 959 | 
             
            }
         | 
| 1082 960 |  | 
| 1083 961 | 
             
            static VALUE
         | 
| 1084 | 
            -
            widget_get_tooltip_window(self)
         | 
| 1085 | 
            -
                VALUE self;
         | 
| 962 | 
            +
            widget_get_tooltip_window(VALUE self)
         | 
| 1086 963 | 
             
            {
         | 
| 1087 964 | 
             
                return GOBJ2RVAL(gtk_widget_get_tooltip_window(_SELF(self)));
         | 
| 1088 965 | 
             
            }
         | 
| 1089 966 |  | 
| 1090 967 | 
             
            static VALUE
         | 
| 1091 | 
            -
            widget_trigger_tooltip_query(self)
         | 
| 1092 | 
            -
                VALUE self;
         | 
| 968 | 
            +
            widget_trigger_tooltip_query(VALUE self)
         | 
| 1093 969 | 
             
            {
         | 
| 1094 970 | 
             
                gtk_widget_trigger_tooltip_query(_SELF(self));
         | 
| 1095 971 | 
             
                return self;
         | 
| @@ -1099,23 +975,20 @@ widget_trigger_tooltip_query(self) | |
| 1099 975 |  | 
| 1100 976 | 
             
            #if GTK_CHECK_VERSION(2,10,0)
         | 
| 1101 977 | 
             
            static VALUE
         | 
| 1102 | 
            -
            widget_get_action(self)
         | 
| 1103 | 
            -
                VALUE self;
         | 
| 978 | 
            +
            widget_get_action(VALUE self)
         | 
| 1104 979 | 
             
            {
         | 
| 1105 980 | 
             
                return GOBJ2RVAL(gtk_widget_get_action(_SELF(self)));
         | 
| 1106 981 | 
             
            }
         | 
| 1107 982 |  | 
| 1108 983 | 
             
            static VALUE
         | 
| 1109 | 
            -
            widget_is_composited(self)
         | 
| 1110 | 
            -
                VALUE self;
         | 
| 984 | 
            +
            widget_is_composited(VALUE self)
         | 
| 1111 985 | 
             
            {
         | 
| 1112 986 | 
             
                return CBOOL2RVAL(gtk_widget_is_composited(_SELF(self)));
         | 
| 1113 987 | 
             
            }
         | 
| 1114 988 | 
             
            #endif
         | 
| 1115 989 |  | 
| 1116 990 | 
             
            static VALUE
         | 
| 1117 | 
            -
            widget_window(self)
         | 
| 1118 | 
            -
                VALUE self;
         | 
| 991 | 
            +
            widget_window(VALUE self)
         | 
| 1119 992 | 
             
            {
         | 
| 1120 993 | 
             
                return GOBJ2RVAL(_SELF(self)->window);
         | 
| 1121 994 | 
             
            }
         | 
| @@ -1129,8 +1002,7 @@ widget_set_window(VALUE self, VALUE window) | |
| 1129 1002 |  | 
| 1130 1003 | 
             
            #define DEFINE_IS_WIDGET(STATE) \
         | 
| 1131 1004 | 
             
            static VALUE \
         | 
| 1132 | 
            -
            widget_ ## STATE (self) \
         | 
| 1133 | 
            -
                VALUE self; \
         | 
| 1005 | 
            +
            widget_ ## STATE (VALUE self) \
         | 
| 1134 1006 | 
             
            { \
         | 
| 1135 1007 | 
             
                return( GTK_WIDGET_ ## STATE (_SELF(self))? Qtrue: Qfalse ); \
         | 
| 1136 1008 | 
             
            }
         | 
| @@ -1147,15 +1019,13 @@ DEFINE_IS_WIDGET(RC_STYLE); | |
| 1147 1019 | 
             
            DEFINE_IS_WIDGET(DOUBLE_BUFFERED);
         | 
| 1148 1020 |  | 
| 1149 1021 | 
             
            static VALUE
         | 
| 1150 | 
            -
            widget_get_allocation(self)
         | 
| 1151 | 
            -
                VALUE self;
         | 
| 1022 | 
            +
            widget_get_allocation(VALUE self)
         | 
| 1152 1023 | 
             
            {
         | 
| 1153 1024 | 
             
                return BOXED2RVAL(&(_SELF(self)->allocation), GTK_TYPE_ALLOCATION);
         | 
| 1154 1025 | 
             
            }
         | 
| 1155 1026 |  | 
| 1156 1027 | 
             
            static VALUE
         | 
| 1157 | 
            -
            widget_set_allocation(self, x,y,w,h)
         | 
| 1158 | 
            -
                VALUE self, x,y,w,h;
         | 
| 1028 | 
            +
            widget_set_allocation(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
         | 
| 1159 1029 | 
             
            {
         | 
| 1160 1030 | 
             
                GtkAllocation *a = &(_SELF(self)->allocation);
         | 
| 1161 1031 | 
             
                a->x      = NUM2INT(x);
         | 
| @@ -1166,16 +1036,14 @@ widget_set_allocation(self, x,y,w,h) | |
| 1166 1036 | 
             
            }
         | 
| 1167 1037 |  | 
| 1168 1038 | 
             
            static VALUE
         | 
| 1169 | 
            -
            widget_get_requisition(self)
         | 
| 1170 | 
            -
                VALUE self;
         | 
| 1039 | 
            +
            widget_get_requisition(VALUE self)
         | 
| 1171 1040 | 
             
            {
         | 
| 1172 1041 | 
             
                GtkRequisition req = _SELF(self)->requisition;
         | 
| 1173 1042 | 
             
                return rb_ary_new3(2, INT2NUM(req.width), INT2NUM(req.height));
         | 
| 1174 1043 | 
             
            }
         | 
| 1175 1044 |  | 
| 1176 1045 | 
             
            static VALUE
         | 
| 1177 | 
            -
            widget_set_requisition(self, w, h)
         | 
| 1178 | 
            -
                VALUE self, w, h;
         | 
| 1046 | 
            +
            widget_set_requisition(VALUE self, VALUE w, VALUE h)
         | 
| 1179 1047 | 
             
            {
         | 
| 1180 1048 | 
             
                GtkRequisition *r = &(_SELF(self)->requisition);
         | 
| 1181 1049 | 
             
                r->width  = NUM2INT(w);
         | 
| @@ -1184,32 +1052,26 @@ widget_set_requisition(self, w, h) | |
| 1184 1052 | 
             
            }
         | 
| 1185 1053 |  | 
| 1186 1054 | 
             
            static VALUE
         | 
| 1187 | 
            -
            widget_state(self)
         | 
| 1188 | 
            -
                VALUE self;
         | 
| 1055 | 
            +
            widget_state(VALUE self)
         | 
| 1189 1056 | 
             
            {
         | 
| 1190 1057 | 
             
                return GENUM2RVAL(_SELF(self)->state, GTK_TYPE_STATE_TYPE);
         | 
| 1191 1058 | 
             
            }
         | 
| 1192 1059 |  | 
| 1193 1060 | 
             
            static VALUE
         | 
| 1194 | 
            -
            widget_saved_state(self)
         | 
| 1195 | 
            -
                VALUE self;
         | 
| 1061 | 
            +
            widget_saved_state(VALUE self)
         | 
| 1196 1062 | 
             
            {
         | 
| 1197 1063 | 
             
                return GENUM2RVAL(_SELF(self)->saved_state, GTK_TYPE_STATE_TYPE);
         | 
| 1198 1064 | 
             
            }
         | 
| 1199 1065 |  | 
| 1200 1066 | 
             
            static VALUE
         | 
| 1201 | 
            -
            widget_signal_size_request(num, values)
         | 
| 1202 | 
            -
                guint num;
         | 
| 1203 | 
            -
                const GValue* values;
         | 
| 1067 | 
            +
            widget_signal_size_request(guint num, const GValue *values)
         | 
| 1204 1068 | 
             
            {
         | 
| 1205 1069 | 
             
                GtkRequisition* req = (GtkRequisition*)g_value_get_boxed(&values[1]);
         | 
| 1206 1070 | 
             
                return rb_ary_new3(2, GVAL2RVAL(&values[0]), 
         | 
| 1207 1071 | 
             
                                   rb_ary_new3(2, INT2NUM(req->width), INT2NUM(req->height)));
         | 
| 1208 1072 | 
             
            }
         | 
| 1209 1073 | 
             
            static VALUE
         | 
| 1210 | 
            -
            widget_signal_size_allocate(num, values)
         | 
| 1211 | 
            -
                guint num;
         | 
| 1212 | 
            -
                const GValue* values;
         | 
| 1074 | 
            +
            widget_signal_size_allocate(guint num, const GValue *values)
         | 
| 1213 1075 | 
             
            {
         | 
| 1214 1076 | 
             
                GtkAllocation* alloc = (GtkAllocation*)g_value_get_boxed(&values[1]);
         | 
| 1215 1077 | 
             
                return rb_ary_new3(2, GVAL2RVAL(&values[0]), BOXED2RVAL(alloc, GTK_TYPE_ALLOCATION));
         |