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
    
        data/ext/gtk2/rbgdkgc.c
    CHANGED
    
    | @@ -19,8 +19,7 @@ static VALUE gdkGC; | |
| 19 19 | 
             
            static VALUE gdkDrawable;
         | 
| 20 20 |  | 
| 21 21 | 
             
            static VALUE
         | 
| 22 | 
            -
            gdkgc_initialize(self, win)
         | 
| 23 | 
            -
                VALUE self, win;
         | 
| 22 | 
            +
            gdkgc_initialize(VALUE self, VALUE win)
         | 
| 24 23 | 
             
            {
         | 
| 25 24 | 
             
                G_INITIALIZE(self, gdk_gc_new(GDK_DRAWABLE(RVAL2GOBJ(win))));
         | 
| 26 25 | 
             
                return Qnil;
         | 
| @@ -38,40 +37,35 @@ void        gdk_gc_get_values               (GdkGC *gc, | |
| 38 37 | 
             
            */
         | 
| 39 38 |  | 
| 40 39 | 
             
            static VALUE
         | 
| 41 | 
            -
            gdkgc_set_foreground(self, color)
         | 
| 42 | 
            -
                VALUE self, color;
         | 
| 40 | 
            +
            gdkgc_set_foreground(VALUE self, VALUE color)
         | 
| 43 41 | 
             
            {
         | 
| 44 42 | 
             
                gdk_gc_set_foreground(_SELF(self), RVAL2GDKCOLOR(color));
         | 
| 45 43 | 
             
                return self;
         | 
| 46 44 | 
             
            }
         | 
| 47 45 |  | 
| 48 46 | 
             
            static VALUE
         | 
| 49 | 
            -
            gdkgc_set_background(self, color)
         | 
| 50 | 
            -
                VALUE self, color;
         | 
| 47 | 
            +
            gdkgc_set_background(VALUE self, VALUE color)
         | 
| 51 48 | 
             
            {
         | 
| 52 49 | 
             
                gdk_gc_set_background(_SELF(self), RVAL2GDKCOLOR(color));
         | 
| 53 50 | 
             
                return self;
         | 
| 54 51 | 
             
            }
         | 
| 55 52 |  | 
| 56 53 | 
             
            static VALUE
         | 
| 57 | 
            -
            gdkgc_set_rgb_fg_color(self, color)
         | 
| 58 | 
            -
                VALUE self, color;
         | 
| 54 | 
            +
            gdkgc_set_rgb_fg_color(VALUE self, VALUE color)
         | 
| 59 55 | 
             
            {
         | 
| 60 56 | 
             
                gdk_gc_set_rgb_fg_color(_SELF(self), RVAL2GDKCOLOR(color));
         | 
| 61 57 | 
             
                return self;
         | 
| 62 58 | 
             
            }
         | 
| 63 59 |  | 
| 64 60 | 
             
            static VALUE
         | 
| 65 | 
            -
            gdkgc_set_rgb_bg_color(self, color)
         | 
| 66 | 
            -
                VALUE self, color;
         | 
| 61 | 
            +
            gdkgc_set_rgb_bg_color(VALUE self, VALUE color)
         | 
| 67 62 | 
             
            {
         | 
| 68 63 | 
             
                gdk_gc_set_rgb_bg_color(_SELF(self), RVAL2GDKCOLOR(color));
         | 
| 69 64 | 
             
                return self;
         | 
| 70 65 | 
             
            }
         | 
| 71 66 |  | 
| 72 67 | 
             
            static VALUE
         | 
| 73 | 
            -
            gdkgc_set_function(self, func)
         | 
| 74 | 
            -
                VALUE self, func;
         | 
| 68 | 
            +
            gdkgc_set_function(VALUE self, VALUE func)
         | 
| 75 69 | 
             
            {
         | 
| 76 70 | 
             
                GdkFunction f;
         | 
| 77 71 | 
             
                f = (GdkFunction)(RVAL2GENUM(func, GDK_TYPE_FUNCTION));
         | 
| @@ -83,56 +77,49 @@ gdkgc_set_function(self, func) | |
| 83 77 | 
             
            }
         | 
| 84 78 |  | 
| 85 79 | 
             
            static VALUE
         | 
| 86 | 
            -
            gdkgc_set_fill(self, fill)
         | 
| 87 | 
            -
                VALUE self, fill;
         | 
| 80 | 
            +
            gdkgc_set_fill(VALUE self, VALUE fill)
         | 
| 88 81 | 
             
            {
         | 
| 89 82 | 
             
                gdk_gc_set_fill(_SELF(self), RVAL2GENUM(fill, GDK_TYPE_FILL));
         | 
| 90 83 | 
             
                return self;
         | 
| 91 84 | 
             
            }
         | 
| 92 85 |  | 
| 93 86 | 
             
            static VALUE
         | 
| 94 | 
            -
            gdkgc_set_tile(self, tile)
         | 
| 95 | 
            -
                VALUE self, tile;
         | 
| 87 | 
            +
            gdkgc_set_tile(VALUE self, VALUE tile)
         | 
| 96 88 | 
             
            {
         | 
| 97 89 | 
             
                gdk_gc_set_tile(_SELF(self), GDK_PIXMAP(RVAL2GOBJ(tile))); 
         | 
| 98 90 | 
             
                return self;
         | 
| 99 91 | 
             
            }
         | 
| 100 92 |  | 
| 101 93 | 
             
            static VALUE
         | 
| 102 | 
            -
            gdkgc_set_stipple(self, stipple)
         | 
| 103 | 
            -
                VALUE self, stipple;
         | 
| 94 | 
            +
            gdkgc_set_stipple(VALUE self, VALUE stipple)
         | 
| 104 95 | 
             
            {
         | 
| 105 96 | 
             
                gdk_gc_set_stipple(_SELF(self), GDK_PIXMAP(RVAL2GOBJ(stipple))); 
         | 
| 106 97 | 
             
                return self;
         | 
| 107 98 | 
             
            }
         | 
| 108 99 |  | 
| 109 100 | 
             
            static VALUE
         | 
| 110 | 
            -
            gdkgc_set_ts_origin(self, x, y)
         | 
| 111 | 
            -
                VALUE self, x, y;
         | 
| 101 | 
            +
            gdkgc_set_ts_origin(VALUE self, VALUE x, VALUE y)
         | 
| 112 102 | 
             
            {
         | 
| 113 103 | 
             
                gdk_gc_set_ts_origin(_SELF(self), NUM2INT(x), NUM2INT(y)); 
         | 
| 114 104 | 
             
                return self;
         | 
| 115 105 | 
             
            }
         | 
| 116 106 |  | 
| 117 107 | 
             
            static VALUE
         | 
| 118 | 
            -
            gdkgc_set_clip_origin(self, x, y)
         | 
| 119 | 
            -
                VALUE self, x, y;
         | 
| 108 | 
            +
            gdkgc_set_clip_origin(VALUE self, VALUE x, VALUE y)
         | 
| 120 109 | 
             
            {
         | 
| 121 110 | 
             
                gdk_gc_set_clip_origin(_SELF(self), NUM2INT(x), NUM2INT(y));
         | 
| 122 111 | 
             
                return self;
         | 
| 123 112 | 
             
            }
         | 
| 124 113 |  | 
| 125 114 | 
             
            static VALUE
         | 
| 126 | 
            -
            gdkgc_set_clip_mask(self, mask)
         | 
| 127 | 
            -
                VALUE self, mask;
         | 
| 115 | 
            +
            gdkgc_set_clip_mask(VALUE self, VALUE mask)
         | 
| 128 116 | 
             
            {
         | 
| 129 117 | 
             
                gdk_gc_set_clip_mask(_SELF(self), GDK_BITMAP(RVAL2GOBJ(mask)));
         | 
| 130 118 | 
             
                return self;
         | 
| 131 119 | 
             
            }
         | 
| 132 120 |  | 
| 133 121 | 
             
            static VALUE
         | 
| 134 | 
            -
            gdkgc_set_clip_rectangle(self, rectangle)
         | 
| 135 | 
            -
                VALUE self, rectangle;
         | 
| 122 | 
            +
            gdkgc_set_clip_rectangle(VALUE self, VALUE rectangle)
         | 
| 136 123 | 
             
            {
         | 
| 137 124 | 
             
                gdk_gc_set_clip_rectangle(_SELF(self), 
         | 
| 138 125 | 
             
                                          (GdkRectangle*)RVAL2BOXED(rectangle, GDK_TYPE_RECTANGLE));
         | 
| @@ -140,8 +127,7 @@ gdkgc_set_clip_rectangle(self, rectangle) | |
| 140 127 | 
             
            }
         | 
| 141 128 |  | 
| 142 129 | 
             
            static VALUE
         | 
| 143 | 
            -
            gdkgc_set_clip_region(self, region)
         | 
| 144 | 
            -
                VALUE self, region;
         | 
| 130 | 
            +
            gdkgc_set_clip_region(VALUE self, VALUE region)
         | 
| 145 131 | 
             
            {
         | 
| 146 132 | 
             
                gdk_gc_set_clip_region(_SELF(self), 
         | 
| 147 133 | 
             
                                       (GdkRegion*)RVAL2BOXED(region, GDK_TYPE_REGION));
         | 
| @@ -149,24 +135,21 @@ gdkgc_set_clip_region(self, region) | |
| 149 135 | 
             
            }
         | 
| 150 136 |  | 
| 151 137 | 
             
            static VALUE
         | 
| 152 | 
            -
            gdkgc_set_subwindow(self, mode)
         | 
| 153 | 
            -
                VALUE self, mode;
         | 
| 138 | 
            +
            gdkgc_set_subwindow(VALUE self, VALUE mode)
         | 
| 154 139 | 
             
            {
         | 
| 155 140 | 
             
                gdk_gc_set_subwindow(_SELF(self), RVAL2GENUM(mode, GDK_TYPE_SUBWINDOW_MODE));
         | 
| 156 141 | 
             
                return self;
         | 
| 157 142 | 
             
            }
         | 
| 158 143 |  | 
| 159 144 | 
             
            static VALUE
         | 
| 160 | 
            -
            gdkgc_set_exposures(self, exposures)
         | 
| 161 | 
            -
                VALUE self, exposures;
         | 
| 145 | 
            +
            gdkgc_set_exposures(VALUE self, VALUE exposures)
         | 
| 162 146 | 
             
            {
         | 
| 163 147 | 
             
                gdk_gc_set_exposures(_SELF(self), RVAL2CBOOL(exposures));
         | 
| 164 148 | 
             
                return self;
         | 
| 165 149 | 
             
            }
         | 
| 166 150 |  | 
| 167 151 | 
             
            static VALUE
         | 
| 168 | 
            -
            gdkgc_set_line_attributes(self, line_width, line_style, cap_style, join_style)
         | 
| 169 | 
            -
                VALUE self, line_width, line_style, cap_style, join_style;
         | 
| 152 | 
            +
            gdkgc_set_line_attributes(VALUE self, VALUE line_width, VALUE line_style, VALUE cap_style, VALUE join_style)
         | 
| 170 153 | 
             
            {
         | 
| 171 154 | 
             
                gdk_gc_set_line_attributes(_SELF(self), NUM2INT(line_width),
         | 
| 172 155 | 
             
                                           RVAL2GENUM(line_style, GDK_TYPE_LINE_STYLE), 
         | 
| @@ -176,8 +159,7 @@ gdkgc_set_line_attributes(self, line_width, line_style, cap_style, join_style) | |
| 176 159 | 
             
            }
         | 
| 177 160 |  | 
| 178 161 | 
             
            static VALUE
         | 
| 179 | 
            -
            gdkgc_set_dashes(self, dash_offset, dash_list)
         | 
| 180 | 
            -
                VALUE self, dash_offset, dash_list;
         | 
| 162 | 
            +
            gdkgc_set_dashes(VALUE self, VALUE dash_offset, VALUE dash_list)
         | 
| 181 163 | 
             
            {
         | 
| 182 164 | 
             
                gint8 *buf;
         | 
| 183 165 | 
             
                int   i;
         | 
| @@ -196,8 +178,7 @@ gdkgc_set_dashes(self, dash_offset, dash_list) | |
| 196 178 | 
             
            }
         | 
| 197 179 |  | 
| 198 180 | 
             
            static VALUE
         | 
| 199 | 
            -
            gdkgc_copy(self, dst)
         | 
| 200 | 
            -
                VALUE self, dst;
         | 
| 181 | 
            +
            gdkgc_copy(VALUE self, VALUE dst)
         | 
| 201 182 | 
             
            {
         | 
| 202 183 | 
             
                if (RVAL2CBOOL(rb_obj_is_kind_of(dst, gdkDrawable))) {
         | 
| 203 184 | 
             
                    VALUE args[1];
         | 
| @@ -209,16 +190,14 @@ gdkgc_copy(self, dst) | |
| 209 190 | 
             
            }
         | 
| 210 191 |  | 
| 211 192 | 
             
            static VALUE
         | 
| 212 | 
            -
            gdkgc_set_colormap(self, colormap)
         | 
| 213 | 
            -
                VALUE self, colormap;
         | 
| 193 | 
            +
            gdkgc_set_colormap(VALUE self, VALUE colormap)
         | 
| 214 194 | 
             
            {
         | 
| 215 195 | 
             
                gdk_gc_set_colormap(_SELF(self), GDK_COLORMAP(RVAL2GOBJ(self)));
         | 
| 216 196 | 
             
                return self;
         | 
| 217 197 | 
             
            }
         | 
| 218 198 |  | 
| 219 199 | 
             
            static VALUE
         | 
| 220 | 
            -
            gdkgc_get_foreground(self)
         | 
| 221 | 
            -
                VALUE self;
         | 
| 200 | 
            +
            gdkgc_get_foreground(VALUE self)
         | 
| 222 201 | 
             
            {
         | 
| 223 202 | 
             
                GdkGCValues val;
         | 
| 224 203 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -227,8 +206,7 @@ gdkgc_get_foreground(self) | |
| 227 206 | 
             
            }
         | 
| 228 207 |  | 
| 229 208 | 
             
            static VALUE
         | 
| 230 | 
            -
            gdkgc_get_background(self)
         | 
| 231 | 
            -
                VALUE self;
         | 
| 209 | 
            +
            gdkgc_get_background(VALUE self)
         | 
| 232 210 | 
             
            {
         | 
| 233 211 | 
             
                GdkGCValues val;
         | 
| 234 212 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -237,8 +215,7 @@ gdkgc_get_background(self) | |
| 237 215 | 
             
            }
         | 
| 238 216 |  | 
| 239 217 | 
             
            static VALUE
         | 
| 240 | 
            -
            gdkgc_get_function(self)
         | 
| 241 | 
            -
                VALUE self;
         | 
| 218 | 
            +
            gdkgc_get_function(VALUE self)
         | 
| 242 219 | 
             
            {
         | 
| 243 220 | 
             
                GdkGCValues val;
         | 
| 244 221 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -247,8 +224,7 @@ gdkgc_get_function(self) | |
| 247 224 | 
             
            }
         | 
| 248 225 |  | 
| 249 226 | 
             
            static VALUE
         | 
| 250 | 
            -
            gdkgc_get_fill(self)
         | 
| 251 | 
            -
                VALUE self;
         | 
| 227 | 
            +
            gdkgc_get_fill(VALUE self)
         | 
| 252 228 | 
             
            {
         | 
| 253 229 | 
             
                GdkGCValues val;
         | 
| 254 230 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -257,8 +233,7 @@ gdkgc_get_fill(self) | |
| 257 233 | 
             
            }
         | 
| 258 234 |  | 
| 259 235 | 
             
            static VALUE
         | 
| 260 | 
            -
            gdkgc_get_tile(self)
         | 
| 261 | 
            -
                VALUE self;
         | 
| 236 | 
            +
            gdkgc_get_tile(VALUE self)
         | 
| 262 237 | 
             
            {
         | 
| 263 238 | 
             
                GdkGCValues val;
         | 
| 264 239 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -267,8 +242,7 @@ gdkgc_get_tile(self) | |
| 267 242 | 
             
            }
         | 
| 268 243 |  | 
| 269 244 | 
             
            static VALUE
         | 
| 270 | 
            -
            gdkgc_get_stipple(self)
         | 
| 271 | 
            -
                VALUE self;
         | 
| 245 | 
            +
            gdkgc_get_stipple(VALUE self)
         | 
| 272 246 | 
             
            {
         | 
| 273 247 | 
             
                GdkGCValues val;
         | 
| 274 248 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -277,8 +251,7 @@ gdkgc_get_stipple(self) | |
| 277 251 | 
             
            }    
         | 
| 278 252 |  | 
| 279 253 | 
             
            static VALUE
         | 
| 280 | 
            -
            gdkgc_get_ts_origin(self)
         | 
| 281 | 
            -
                VALUE self;
         | 
| 254 | 
            +
            gdkgc_get_ts_origin(VALUE self)
         | 
| 282 255 | 
             
            {
         | 
| 283 256 | 
             
                GdkGCValues val;
         | 
| 284 257 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -288,8 +261,7 @@ gdkgc_get_ts_origin(self) | |
| 288 261 | 
             
            }
         | 
| 289 262 |  | 
| 290 263 | 
             
            static VALUE
         | 
| 291 | 
            -
            gdkgc_get_clip_origin(self)
         | 
| 292 | 
            -
                VALUE self;
         | 
| 264 | 
            +
            gdkgc_get_clip_origin(VALUE self)
         | 
| 293 265 | 
             
            {
         | 
| 294 266 | 
             
                GdkGCValues val;
         | 
| 295 267 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -299,8 +271,7 @@ gdkgc_get_clip_origin(self) | |
| 299 271 | 
             
            }
         | 
| 300 272 |  | 
| 301 273 | 
             
            static VALUE
         | 
| 302 | 
            -
            gdkgc_get_clip_mask(self)
         | 
| 303 | 
            -
                VALUE self;
         | 
| 274 | 
            +
            gdkgc_get_clip_mask(VALUE self)
         | 
| 304 275 | 
             
            {
         | 
| 305 276 | 
             
                GdkGCValues val;
         | 
| 306 277 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -309,8 +280,7 @@ gdkgc_get_clip_mask(self) | |
| 309 280 | 
             
            }
         | 
| 310 281 |  | 
| 311 282 | 
             
            static VALUE
         | 
| 312 | 
            -
            gdkgc_get_subwindow(self)
         | 
| 313 | 
            -
                VALUE self;
         | 
| 283 | 
            +
            gdkgc_get_subwindow(VALUE self)
         | 
| 314 284 | 
             
            {
         | 
| 315 285 | 
             
                GdkGCValues val;
         | 
| 316 286 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -319,8 +289,7 @@ gdkgc_get_subwindow(self) | |
| 319 289 | 
             
            }
         | 
| 320 290 |  | 
| 321 291 | 
             
            static VALUE
         | 
| 322 | 
            -
            gdkgc_get_exposures(self)
         | 
| 323 | 
            -
                VALUE self;
         | 
| 292 | 
            +
            gdkgc_get_exposures(VALUE self)
         | 
| 324 293 | 
             
            {
         | 
| 325 294 | 
             
                GdkGCValues val;
         | 
| 326 295 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -329,8 +298,7 @@ gdkgc_get_exposures(self) | |
| 329 298 | 
             
            }
         | 
| 330 299 |  | 
| 331 300 | 
             
            static VALUE
         | 
| 332 | 
            -
            gdkgc_get_line_attributes(self)
         | 
| 333 | 
            -
                VALUE self;
         | 
| 301 | 
            +
            gdkgc_get_line_attributes(VALUE self)
         | 
| 334 302 | 
             
            {
         | 
| 335 303 | 
             
                GdkGCValues val;
         | 
| 336 304 | 
             
                gdk_gc_get_values(_SELF(self), &val);
         | 
| @@ -342,15 +310,13 @@ gdkgc_get_line_attributes(self) | |
| 342 310 | 
             
            }
         | 
| 343 311 |  | 
| 344 312 | 
             
            static VALUE
         | 
| 345 | 
            -
            gdkgc_get_colormap(self)
         | 
| 346 | 
            -
                VALUE self;
         | 
| 313 | 
            +
            gdkgc_get_colormap(VALUE self)
         | 
| 347 314 | 
             
            {
         | 
| 348 315 | 
             
                return GOBJ2RVAL(gdk_gc_get_colormap(_SELF(self)));
         | 
| 349 316 | 
             
            }
         | 
| 350 317 |  | 
| 351 318 | 
             
            static VALUE
         | 
| 352 | 
            -
            gdkgc_offset(self, x, y)
         | 
| 353 | 
            -
                VALUE self, x, y;
         | 
| 319 | 
            +
            gdkgc_offset(VALUE self, VALUE x, VALUE y)
         | 
| 354 320 | 
             
            {
         | 
| 355 321 | 
             
                gdk_gc_offset(_SELF(self), NUM2INT(x), NUM2INT(y));
         | 
| 356 322 | 
             
                return self;
         | 
| @@ -358,8 +324,7 @@ gdkgc_offset(self, x, y) | |
| 358 324 |  | 
| 359 325 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 360 326 | 
             
            static VALUE
         | 
| 361 | 
            -
            gdkgc_screen(self)
         | 
| 362 | 
            -
                VALUE self;
         | 
| 327 | 
            +
            gdkgc_screen(VALUE self)
         | 
| 363 328 | 
             
            {
         | 
| 364 329 | 
             
                return GOBJ2RVAL(gdk_gc_get_screen(_SELF(self)));
         | 
| 365 330 | 
             
            }
         | 
    
        data/ext/gtk2/rbgdkgeometry.c
    CHANGED
    
    | @@ -42,8 +42,7 @@ gdk_geometry_get_type(void) | |
| 42 42 | 
             
            #define _SELF(g) ((GdkGeometry*)RVAL2BOXED(g, GDK_TYPE_GEOMETRY))
         | 
| 43 43 |  | 
| 44 44 | 
             
            static VALUE
         | 
| 45 | 
            -
            geo_initialize(self)
         | 
| 46 | 
            -
                VALUE self;
         | 
| 45 | 
            +
            geo_initialize(VALUE self)
         | 
| 47 46 | 
             
            {
         | 
| 48 47 | 
             
                GdkGeometry g;
         | 
| 49 48 | 
             
                G_INITIALIZE(self, &g);
         | 
| @@ -51,10 +50,7 @@ geo_initialize(self) | |
| 51 50 | 
             
            }
         | 
| 52 51 |  | 
| 53 52 | 
             
            static VALUE
         | 
| 54 | 
            -
            geo_set(self, min_width, min_height, max_width, | 
| 55 | 
            -
            		base_width, base_height, width_inc, height_inc,	min_aspect, max_aspect, gravity)
         | 
| 56 | 
            -
                 VALUE self, min_width, min_height, max_width, max_height,
         | 
| 57 | 
            -
                 base_width, base_height, width_inc, height_inc, min_aspect, max_aspect, gravity;
         | 
| 53 | 
            +
            geo_set(VALUE self, VALUE min_width, VALUE min_height, VALUE max_width, VALUE max_height, VALUE base_width, VALUE base_height, VALUE width_inc, VALUE height_inc, VALUE min_aspect, VALUE max_aspect, VALUE gravity)
         | 
| 58 54 | 
             
            {
         | 
| 59 55 | 
             
                GdkGeometry *geo = _SELF(self);
         | 
| 60 56 | 
             
                geo->min_width = NUM2INT(min_width);
         | 
| @@ -73,165 +69,143 @@ geo_set(self, min_width, min_height, max_width,	max_height, | |
| 73 69 | 
             
            }
         | 
| 74 70 |  | 
| 75 71 | 
             
            static VALUE
         | 
| 76 | 
            -
            geo_min_width(self)
         | 
| 77 | 
            -
                VALUE self;
         | 
| 72 | 
            +
            geo_min_width(VALUE self)
         | 
| 78 73 | 
             
            {
         | 
| 79 74 | 
             
                return INT2NUM(_SELF(self)->min_width);
         | 
| 80 75 | 
             
            }
         | 
| 81 76 |  | 
| 82 77 | 
             
            static VALUE
         | 
| 83 | 
            -
            geo_min_height(self)
         | 
| 84 | 
            -
                VALUE self;
         | 
| 78 | 
            +
            geo_min_height(VALUE self)
         | 
| 85 79 | 
             
            {
         | 
| 86 80 | 
             
                return INT2NUM(_SELF(self)->min_height);
         | 
| 87 81 | 
             
            }
         | 
| 88 82 |  | 
| 89 83 | 
             
            static VALUE
         | 
| 90 | 
            -
            geo_max_width(self)
         | 
| 91 | 
            -
                VALUE self;
         | 
| 84 | 
            +
            geo_max_width(VALUE self)
         | 
| 92 85 | 
             
            {
         | 
| 93 86 | 
             
                return INT2NUM(_SELF(self)->max_width);
         | 
| 94 87 | 
             
            }
         | 
| 95 88 |  | 
| 96 89 | 
             
            static VALUE
         | 
| 97 | 
            -
            geo_max_height(self)
         | 
| 98 | 
            -
                VALUE self;
         | 
| 90 | 
            +
            geo_max_height(VALUE self)
         | 
| 99 91 | 
             
            {
         | 
| 100 92 | 
             
                return INT2NUM(_SELF(self)->max_height);
         | 
| 101 93 | 
             
            }
         | 
| 102 94 |  | 
| 103 95 | 
             
            static VALUE
         | 
| 104 | 
            -
            geo_base_width(self)
         | 
| 105 | 
            -
                VALUE self;
         | 
| 96 | 
            +
            geo_base_width(VALUE self)
         | 
| 106 97 | 
             
            {
         | 
| 107 98 | 
             
                return INT2NUM(_SELF(self)->base_width);
         | 
| 108 99 | 
             
            }
         | 
| 109 100 |  | 
| 110 101 | 
             
            static VALUE
         | 
| 111 | 
            -
            geo_base_height(self)
         | 
| 112 | 
            -
                VALUE self;
         | 
| 102 | 
            +
            geo_base_height(VALUE self)
         | 
| 113 103 | 
             
            {
         | 
| 114 104 | 
             
                return INT2NUM(_SELF(self)->base_height);
         | 
| 115 105 | 
             
            }
         | 
| 116 106 |  | 
| 117 107 | 
             
            static VALUE
         | 
| 118 | 
            -
            geo_width_inc(self)
         | 
| 119 | 
            -
                VALUE self;
         | 
| 108 | 
            +
            geo_width_inc(VALUE self)
         | 
| 120 109 | 
             
            {
         | 
| 121 110 | 
             
                return INT2NUM(_SELF(self)->width_inc);
         | 
| 122 111 | 
             
            }
         | 
| 123 112 |  | 
| 124 113 | 
             
            static VALUE
         | 
| 125 | 
            -
            geo_height_inc(self)
         | 
| 126 | 
            -
                VALUE self;
         | 
| 114 | 
            +
            geo_height_inc(VALUE self)
         | 
| 127 115 | 
             
            {
         | 
| 128 116 | 
             
                return INT2NUM(_SELF(self)->height_inc);
         | 
| 129 117 | 
             
            }
         | 
| 130 118 |  | 
| 131 119 | 
             
            static VALUE
         | 
| 132 | 
            -
            geo_min_aspect(self)
         | 
| 133 | 
            -
                VALUE self;
         | 
| 120 | 
            +
            geo_min_aspect(VALUE self)
         | 
| 134 121 | 
             
            {
         | 
| 135 122 | 
             
                return rb_float_new(_SELF(self)->min_aspect);
         | 
| 136 123 | 
             
            }
         | 
| 137 124 |  | 
| 138 125 | 
             
            static VALUE
         | 
| 139 | 
            -
            geo_max_aspect(self)
         | 
| 140 | 
            -
                VALUE self;
         | 
| 126 | 
            +
            geo_max_aspect(VALUE self)
         | 
| 141 127 | 
             
            {
         | 
| 142 128 | 
             
                return rb_float_new(_SELF(self)->max_aspect);
         | 
| 143 129 | 
             
            }
         | 
| 144 130 |  | 
| 145 131 | 
             
            static VALUE
         | 
| 146 | 
            -
            geo_win_gravity(self)
         | 
| 147 | 
            -
                VALUE self;
         | 
| 132 | 
            +
            geo_win_gravity(VALUE self)
         | 
| 148 133 | 
             
            {
         | 
| 149 134 | 
             
                return GENUM2RVAL(_SELF(self)->win_gravity, GDK_TYPE_GRAVITY);
         | 
| 150 135 | 
             
            }
         | 
| 151 136 |  | 
| 152 137 | 
             
            static VALUE
         | 
| 153 | 
            -
            geo_set_min_width(self, min_width)
         | 
| 154 | 
            -
                VALUE self, min_width;
         | 
| 138 | 
            +
            geo_set_min_width(VALUE self, VALUE min_width)
         | 
| 155 139 | 
             
            {
         | 
| 156 140 | 
             
                _SELF(self)->min_width = NUM2INT(min_width);
         | 
| 157 141 | 
             
                return self;
         | 
| 158 142 | 
             
            }
         | 
| 159 143 |  | 
| 160 144 | 
             
            static VALUE
         | 
| 161 | 
            -
            geo_set_min_height(self, min_height)
         | 
| 162 | 
            -
                VALUE self, min_height;
         | 
| 145 | 
            +
            geo_set_min_height(VALUE self, VALUE min_height)
         | 
| 163 146 | 
             
            {
         | 
| 164 147 | 
             
                _SELF(self)->min_height = NUM2INT(min_height);
         | 
| 165 148 | 
             
                return self;
         | 
| 166 149 | 
             
            }
         | 
| 167 150 |  | 
| 168 151 | 
             
            static VALUE
         | 
| 169 | 
            -
            geo_set_max_width(self, max_width)
         | 
| 170 | 
            -
                VALUE self, max_width;
         | 
| 152 | 
            +
            geo_set_max_width(VALUE self, VALUE max_width)
         | 
| 171 153 | 
             
            {
         | 
| 172 154 | 
             
                _SELF(self)->max_width = NUM2INT(max_width);
         | 
| 173 155 | 
             
                return self;
         | 
| 174 156 | 
             
            }
         | 
| 175 157 |  | 
| 176 158 | 
             
            static VALUE
         | 
| 177 | 
            -
            geo_set_max_height(self, max_height)
         | 
| 178 | 
            -
                VALUE self, max_height;
         | 
| 159 | 
            +
            geo_set_max_height(VALUE self, VALUE max_height)
         | 
| 179 160 | 
             
            {
         | 
| 180 161 | 
             
                _SELF(self)->max_height = NUM2INT(max_height);
         | 
| 181 162 | 
             
                return self;
         | 
| 182 163 | 
             
            }
         | 
| 183 164 |  | 
| 184 165 | 
             
            static VALUE
         | 
| 185 | 
            -
            geo_set_base_width(self, base_width)
         | 
| 186 | 
            -
                VALUE self, base_width;
         | 
| 166 | 
            +
            geo_set_base_width(VALUE self, VALUE base_width)
         | 
| 187 167 | 
             
            {
         | 
| 188 168 | 
             
                _SELF(self)->base_width = NUM2INT(base_width);
         | 
| 189 169 | 
             
                return self;
         | 
| 190 170 | 
             
            }
         | 
| 191 171 |  | 
| 192 172 | 
             
            static VALUE
         | 
| 193 | 
            -
            geo_set_base_height(self, base_height)
         | 
| 194 | 
            -
                VALUE self, base_height;
         | 
| 173 | 
            +
            geo_set_base_height(VALUE self, VALUE base_height)
         | 
| 195 174 | 
             
            {
         | 
| 196 175 | 
             
                _SELF(self)->base_height = NUM2INT(base_height);
         | 
| 197 176 | 
             
                return self;
         | 
| 198 177 | 
             
            }
         | 
| 199 178 |  | 
| 200 179 | 
             
            static VALUE
         | 
| 201 | 
            -
            geo_set_width_inc(self, width_inc)
         | 
| 202 | 
            -
                VALUE self, width_inc;
         | 
| 180 | 
            +
            geo_set_width_inc(VALUE self, VALUE width_inc)
         | 
| 203 181 | 
             
            {
         | 
| 204 182 | 
             
                _SELF(self)->width_inc = NUM2INT(width_inc);
         | 
| 205 183 | 
             
                return self;
         | 
| 206 184 | 
             
            }
         | 
| 207 185 |  | 
| 208 186 | 
             
            static VALUE
         | 
| 209 | 
            -
            geo_set_height_inc(self, height_inc)
         | 
| 210 | 
            -
                VALUE self, height_inc;
         | 
| 187 | 
            +
            geo_set_height_inc(VALUE self, VALUE height_inc)
         | 
| 211 188 | 
             
            {
         | 
| 212 189 | 
             
                _SELF(self)->height_inc = NUM2INT(height_inc);
         | 
| 213 190 | 
             
                return self;
         | 
| 214 191 | 
             
            }
         | 
| 215 192 |  | 
| 216 193 | 
             
            static VALUE
         | 
| 217 | 
            -
            geo_set_min_aspect(self, min_aspect)
         | 
| 218 | 
            -
                VALUE self, min_aspect;
         | 
| 194 | 
            +
            geo_set_min_aspect(VALUE self, VALUE min_aspect)
         | 
| 219 195 | 
             
            {
         | 
| 220 196 | 
             
                _SELF(self)->min_aspect = NUM2DBL(min_aspect);
         | 
| 221 197 | 
             
                return self;
         | 
| 222 198 | 
             
            }
         | 
| 223 199 |  | 
| 224 200 | 
             
            static VALUE
         | 
| 225 | 
            -
            geo_set_max_aspect(self, max_aspect)
         | 
| 226 | 
            -
                VALUE self, max_aspect;
         | 
| 201 | 
            +
            geo_set_max_aspect(VALUE self, VALUE max_aspect)
         | 
| 227 202 | 
             
            {
         | 
| 228 203 | 
             
                _SELF(self)->max_aspect = NUM2DBL(max_aspect);
         | 
| 229 204 | 
             
                return self;
         | 
| 230 205 | 
             
            }
         | 
| 231 206 |  | 
| 232 207 | 
             
            static VALUE
         | 
| 233 | 
            -
            geo_set_win_gravity(self, gravity)
         | 
| 234 | 
            -
                VALUE self, gravity;
         | 
| 208 | 
            +
            geo_set_win_gravity(VALUE self, VALUE gravity)
         | 
| 235 209 | 
             
            {
         | 
| 236 210 | 
             
                _SELF(self)->win_gravity = RVAL2GENUM(gravity, GDK_TYPE_GRAVITY);
         | 
| 237 211 | 
             
                return self;
         |