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,23 +15,20 @@ | |
| 15 15 | 
             
            #define _SELF(obj) GDK_DISPLAY_MANAGER(RVAL2GOBJ(obj))
         | 
| 16 16 |  | 
| 17 17 | 
             
            static VALUE
         | 
| 18 | 
            -
            gdkdisplaymanager_get(self)
         | 
| 19 | 
            -
                VALUE self;
         | 
| 18 | 
            +
            gdkdisplaymanager_get(VALUE self)
         | 
| 20 19 | 
             
            {
         | 
| 21 20 | 
             
                return GOBJ2RVAL(gdk_display_manager_get());
         | 
| 22 21 | 
             
            }
         | 
| 23 22 |  | 
| 24 23 | 
             
            static VALUE
         | 
| 25 | 
            -
            gdkdisplaymanager_list_displays(self)
         | 
| 26 | 
            -
                VALUE self;
         | 
| 24 | 
            +
            gdkdisplaymanager_list_displays(VALUE self)
         | 
| 27 25 | 
             
            {
         | 
| 28 26 | 
             
                return GSLIST2ARYF(gdk_display_manager_list_displays(_SELF(self)));
         | 
| 29 27 | 
             
            }
         | 
| 30 28 |  | 
| 31 29 | 
             
            /* Move to Gdk::Display.
         | 
| 32 30 | 
             
            static VALUE
         | 
| 33 | 
            -
            gdkdisplaymanager_get_core_pointer(self)
         | 
| 34 | 
            -
                VALUE self;
         | 
| 31 | 
            +
            gdkdisplaymanager_get_core_pointer(VALUE self)
         | 
| 35 32 | 
             
            {
         | 
| 36 33 | 
             
                return GOBJ2RVAL(gdk_display_get_core_pointer(_SELF(self)));
         | 
| 37 34 | 
             
            }
         | 
    
        data/ext/gtk2/rbgdkdragcontext.c
    CHANGED
    
    | @@ -13,36 +13,31 @@ | |
| 13 13 | 
             
            #define _SELF(self) (GDK_DRAG_CONTEXT(RVAL2GOBJ(self)))
         | 
| 14 14 |  | 
| 15 15 | 
             
            static VALUE
         | 
| 16 | 
            -
            gdkdragcontext_protocol(self)
         | 
| 17 | 
            -
                VALUE self;
         | 
| 16 | 
            +
            gdkdragcontext_protocol(VALUE self)
         | 
| 18 17 | 
             
            {
         | 
| 19 18 | 
             
                return GENUM2RVAL(_SELF(self)->protocol, GDK_TYPE_DRAG_PROTOCOL);
         | 
| 20 19 | 
             
            }
         | 
| 21 20 |  | 
| 22 21 | 
             
            static VALUE
         | 
| 23 | 
            -
            gdkdragcontext_is_source(self)
         | 
| 24 | 
            -
                VALUE self;
         | 
| 22 | 
            +
            gdkdragcontext_is_source(VALUE self)
         | 
| 25 23 | 
             
            {
         | 
| 26 24 | 
             
                return CBOOL2RVAL(_SELF(self)->is_source);
         | 
| 27 25 | 
             
            }
         | 
| 28 26 |  | 
| 29 27 | 
             
            static VALUE
         | 
| 30 | 
            -
            gdkdragcontext_source_window(self)
         | 
| 31 | 
            -
                VALUE self;
         | 
| 28 | 
            +
            gdkdragcontext_source_window(VALUE self)
         | 
| 32 29 | 
             
            {
         | 
| 33 30 | 
             
                return GOBJ2RVAL(_SELF(self)->source_window);
         | 
| 34 31 | 
             
            }
         | 
| 35 32 |  | 
| 36 33 | 
             
            static VALUE
         | 
| 37 | 
            -
            gdkdragcontext_dest_window(self)
         | 
| 38 | 
            -
                VALUE self;
         | 
| 34 | 
            +
            gdkdragcontext_dest_window(VALUE self)
         | 
| 39 35 | 
             
            {
         | 
| 40 36 | 
             
                return GOBJ2RVAL(_SELF(self)->dest_window);
         | 
| 41 37 | 
             
            }
         | 
| 42 38 |  | 
| 43 39 | 
             
            static VALUE
         | 
| 44 | 
            -
            gdkdragcontext_targets(self)
         | 
| 45 | 
            -
                VALUE self;
         | 
| 40 | 
            +
            gdkdragcontext_targets(VALUE self)
         | 
| 46 41 | 
             
            {
         | 
| 47 42 | 
             
                GList *list = _SELF(self)->targets, *cur;
         | 
| 48 43 | 
             
                VALUE ary = rb_ary_new();
         | 
| @@ -54,46 +49,38 @@ gdkdragcontext_targets(self) | |
| 54 49 | 
             
            }
         | 
| 55 50 |  | 
| 56 51 | 
             
            static VALUE
         | 
| 57 | 
            -
            gdkdragcontext_actions(self)
         | 
| 58 | 
            -
                VALUE self;
         | 
| 52 | 
            +
            gdkdragcontext_actions(VALUE self)
         | 
| 59 53 | 
             
            {
         | 
| 60 54 | 
             
                return GFLAGS2RVAL(_SELF(self)->actions, GDK_TYPE_DRAG_ACTION);
         | 
| 61 55 | 
             
            }
         | 
| 62 56 |  | 
| 63 57 | 
             
            static VALUE
         | 
| 64 | 
            -
            gdkdragcontext_suggested_action(self)
         | 
| 65 | 
            -
                VALUE self;
         | 
| 58 | 
            +
            gdkdragcontext_suggested_action(VALUE self)
         | 
| 66 59 | 
             
            {
         | 
| 67 60 | 
             
                return GFLAGS2RVAL(_SELF(self)->suggested_action, GDK_TYPE_DRAG_ACTION);
         | 
| 68 61 | 
             
            }
         | 
| 69 62 |  | 
| 70 63 | 
             
            static VALUE
         | 
| 71 | 
            -
            gdkdragcontext_action(self)
         | 
| 72 | 
            -
                VALUE self;
         | 
| 64 | 
            +
            gdkdragcontext_action(VALUE self)
         | 
| 73 65 | 
             
            {
         | 
| 74 66 | 
             
                return GFLAGS2RVAL(_SELF(self)->action, GDK_TYPE_DRAG_ACTION);
         | 
| 75 67 | 
             
            }
         | 
| 76 68 |  | 
| 77 69 | 
             
            static VALUE
         | 
| 78 | 
            -
            gdkdragcontext_start_time(self)
         | 
| 79 | 
            -
                VALUE self;
         | 
| 70 | 
            +
            gdkdragcontext_start_time(VALUE self)
         | 
| 80 71 | 
             
            {
         | 
| 81 72 | 
             
                return UINT2NUM(_SELF(self)->start_time);
         | 
| 82 73 | 
             
            }
         | 
| 83 74 |  | 
| 84 75 | 
             
            static VALUE
         | 
| 85 | 
            -
            gdkdragcontext_initialize(self)
         | 
| 86 | 
            -
                VALUE self;
         | 
| 76 | 
            +
            gdkdragcontext_initialize(VALUE self)
         | 
| 87 77 | 
             
            {   
         | 
| 88 78 | 
             
                G_INITIALIZE(self, gdk_drag_context_new());
         | 
| 89 79 | 
             
                return Qnil;
         | 
| 90 80 | 
             
            }
         | 
| 91 81 |  | 
| 92 82 | 
             
            static VALUE
         | 
| 93 | 
            -
            gdkdragcontext_s_get_protocol(argc, argv, self)
         | 
| 94 | 
            -
                int argc;
         | 
| 95 | 
            -
                VALUE *argv;
         | 
| 96 | 
            -
                VALUE self;
         | 
| 83 | 
            +
            gdkdragcontext_s_get_protocol(int argc, VALUE *argv, VALUE self)
         | 
| 97 84 | 
             
            {
         | 
| 98 85 | 
             
                VALUE xid;
         | 
| 99 86 | 
             
                GdkDragProtocol prot;
         | 
| @@ -119,41 +106,34 @@ gdkdragcontext_s_get_protocol(argc, argv, self) | |
| 119 106 |  | 
| 120 107 | 
             
            /* Instance Methods */
         | 
| 121 108 | 
             
            static VALUE
         | 
| 122 | 
            -
            gdkdragcontext_get_selection(self)
         | 
| 123 | 
            -
                VALUE self;
         | 
| 109 | 
            +
            gdkdragcontext_get_selection(VALUE self)
         | 
| 124 110 | 
             
            {
         | 
| 125 111 | 
             
                return BOXED2RVAL(gdk_drag_get_selection(_SELF(self)), GDK_TYPE_ATOM);
         | 
| 126 112 | 
             
            }
         | 
| 127 113 |  | 
| 128 114 | 
             
            static VALUE
         | 
| 129 | 
            -
            gdkdragcontext_drag_abort(self, time)
         | 
| 130 | 
            -
                VALUE self, time;
         | 
| 115 | 
            +
            gdkdragcontext_drag_abort(VALUE self, VALUE time)
         | 
| 131 116 | 
             
            {
         | 
| 132 117 | 
             
                gdk_drag_abort(_SELF(self), NUM2UINT(time));
         | 
| 133 118 | 
             
                return self;
         | 
| 134 119 | 
             
            }
         | 
| 135 120 |  | 
| 136 121 | 
             
            static VALUE
         | 
| 137 | 
            -
            gdkdragcontext_drop_reply(self, ok, time)
         | 
| 138 | 
            -
                VALUE self, ok, time;
         | 
| 122 | 
            +
            gdkdragcontext_drop_reply(VALUE self, VALUE ok, VALUE time)
         | 
| 139 123 | 
             
            {
         | 
| 140 124 | 
             
                gdk_drop_reply(_SELF(self), RVAL2CBOOL(ok), NUM2UINT(time));
         | 
| 141 125 | 
             
                return self;
         | 
| 142 126 | 
             
            }
         | 
| 143 127 |  | 
| 144 128 | 
             
            static VALUE
         | 
| 145 | 
            -
            gdkdragcontext_drag_drop(self, time)
         | 
| 146 | 
            -
                VALUE self, time;
         | 
| 129 | 
            +
            gdkdragcontext_drag_drop(VALUE self, VALUE time)
         | 
| 147 130 | 
             
            {
         | 
| 148 131 | 
             
                gdk_drag_drop(_SELF(self), NUM2UINT(time));
         | 
| 149 132 | 
             
                return self;
         | 
| 150 133 | 
             
            }
         | 
| 151 134 |  | 
| 152 135 | 
             
            static VALUE
         | 
| 153 | 
            -
            gdkdragcontext_find_window(argc, argv, self)
         | 
| 154 | 
            -
                int argc;
         | 
| 155 | 
            -
                VALUE *argv;
         | 
| 156 | 
            -
                VALUE self;
         | 
| 136 | 
            +
            gdkdragcontext_find_window(int argc, VALUE *argv, VALUE self)
         | 
| 157 137 | 
             
            {
         | 
| 158 138 | 
             
                VALUE drag_window, x_root, y_root;
         | 
| 159 139 | 
             
                GdkWindow *dest_window;
         | 
| @@ -184,8 +164,7 @@ gdkdragcontext_find_window(argc, argv, self) | |
| 184 164 | 
             
            }
         | 
| 185 165 |  | 
| 186 166 | 
             
            static VALUE
         | 
| 187 | 
            -
            gdkdragcontext_s_drag_begin(self, window, targets)
         | 
| 188 | 
            -
                VALUE self, window, targets;
         | 
| 167 | 
            +
            gdkdragcontext_s_drag_begin(VALUE self, VALUE window, VALUE targets)
         | 
| 189 168 | 
             
            {
         | 
| 190 169 | 
             
                GList* list = NULL;
         | 
| 191 170 | 
             
                VALUE ret;
         | 
| @@ -201,10 +180,7 @@ gdkdragcontext_s_drag_begin(self, window, targets) | |
| 201 180 | 
             
            }
         | 
| 202 181 |  | 
| 203 182 | 
             
            static VALUE
         | 
| 204 | 
            -
            gdkdragcontext_drag_motion(self, dest_window, protocol, x_root, y_root, 
         | 
| 205 | 
            -
                                       suggested_action, possible_actions, time)
         | 
| 206 | 
            -
                VALUE self, dest_window, protocol, x_root, y_root, 
         | 
| 207 | 
            -
              		  suggested_action, possible_actions, time;
         | 
| 183 | 
            +
            gdkdragcontext_drag_motion(VALUE self, VALUE dest_window, VALUE protocol, VALUE x_root, VALUE y_root, VALUE suggested_action, VALUE possible_actions, VALUE time)
         | 
| 208 184 | 
             
            {
         | 
| 209 185 | 
             
                gboolean ret = gdk_drag_motion(_SELF(self), 
         | 
| 210 186 | 
             
                                               GDK_WINDOW(RVAL2GOBJ(dest_window)), 
         | 
| @@ -217,16 +193,14 @@ gdkdragcontext_drag_motion(self, dest_window, protocol, x_root, y_root, | |
| 217 193 | 
             
            }
         | 
| 218 194 |  | 
| 219 195 | 
             
            static VALUE
         | 
| 220 | 
            -
            gdkdragcontext_drop_finish(self, success, time)
         | 
| 221 | 
            -
                VALUE self, success, time;
         | 
| 196 | 
            +
            gdkdragcontext_drop_finish(VALUE self, VALUE success, VALUE time)
         | 
| 222 197 | 
             
            {
         | 
| 223 198 | 
             
                gdk_drop_finish(_SELF(self), RVAL2CBOOL(success), NUM2UINT(time));
         | 
| 224 199 | 
             
                return self;
         | 
| 225 200 | 
             
            }
         | 
| 226 201 |  | 
| 227 202 | 
             
            static VALUE
         | 
| 228 | 
            -
            gdkdragcontext_drag_status(self, action, time)
         | 
| 229 | 
            -
                VALUE self, action, time;
         | 
| 203 | 
            +
            gdkdragcontext_drag_status(VALUE self, VALUE action, VALUE time)
         | 
| 230 204 | 
             
            {
         | 
| 231 205 | 
             
                gdk_drag_status(_SELF(self), 
         | 
| 232 206 | 
             
                                RVAL2GFLAGS(action, GDK_TYPE_DRAG_ACTION), NUM2UINT(time));
         | 
| @@ -235,8 +209,7 @@ gdkdragcontext_drag_status(self, action, time) | |
| 235 209 |  | 
| 236 210 | 
             
            #if GTK_CHECK_VERSION(2,6,0)
         | 
| 237 211 | 
             
            static VALUE
         | 
| 238 | 
            -
            gdkdragcontext_drag_drop_succeeded(self)
         | 
| 239 | 
            -
                VALUE self;
         | 
| 212 | 
            +
            gdkdragcontext_drag_drop_succeeded(VALUE self)
         | 
| 240 213 | 
             
            {
         | 
| 241 214 | 
             
                return CBOOL2RVAL(gdk_drag_drop_succeeded(_SELF(self)));
         | 
| 242 215 | 
             
            }
         | 
    
        data/ext/gtk2/rbgdkdraw.c
    CHANGED
    
    | @@ -24,8 +24,7 @@ | |
| 24 24 | 
             
            #define _SELF(s) GDK_DRAWABLE(RVAL2GOBJ(s))
         | 
| 25 25 |  | 
| 26 26 | 
             
            static VALUE
         | 
| 27 | 
            -
            gdkdraw_get_visual(self)
         | 
| 28 | 
            -
                VALUE self;
         | 
| 27 | 
            +
            gdkdraw_get_visual(VALUE self)
         | 
| 29 28 | 
             
            {
         | 
| 30 29 | 
             
                return GOBJ2RVAL(_SELF(self));
         | 
| 31 30 | 
             
            }
         | 
| @@ -54,15 +53,13 @@ gdkdraw_get_colormap(VALUE self) | |
| 54 53 | 
             
            }
         | 
| 55 54 |  | 
| 56 55 | 
             
            static VALUE
         | 
| 57 | 
            -
            gdkdraw_get_depth(self)
         | 
| 58 | 
            -
                VALUE self;
         | 
| 56 | 
            +
            gdkdraw_get_depth(VALUE self)
         | 
| 59 57 | 
             
            {
         | 
| 60 58 | 
             
                return INT2NUM(gdk_drawable_get_depth(_SELF(self)));
         | 
| 61 59 | 
             
            }
         | 
| 62 60 |  | 
| 63 61 | 
             
            static VALUE
         | 
| 64 | 
            -
            gdkdraw_get_size(self)
         | 
| 65 | 
            -
                VALUE self;
         | 
| 62 | 
            +
            gdkdraw_get_size(VALUE self)
         | 
| 66 63 | 
             
            {
         | 
| 67 64 | 
             
                gint width, height;
         | 
| 68 65 | 
             
                gdk_drawable_get_size(_SELF(self), &width, &height);
         | 
| @@ -70,23 +67,20 @@ gdkdraw_get_size(self) | |
| 70 67 | 
             
            }
         | 
| 71 68 |  | 
| 72 69 | 
             
            static VALUE
         | 
| 73 | 
            -
            gdkdraw_get_clip_region(self)
         | 
| 74 | 
            -
                VALUE self;
         | 
| 70 | 
            +
            gdkdraw_get_clip_region(VALUE self)
         | 
| 75 71 | 
             
            {
         | 
| 76 72 | 
             
                return BOXED2RVAL(gdk_drawable_get_clip_region(_SELF(self)), GDK_TYPE_REGION);
         | 
| 77 73 | 
             
            }
         | 
| 78 74 |  | 
| 79 75 | 
             
            static VALUE
         | 
| 80 | 
            -
            gdkdraw_get_visible_region(self)
         | 
| 81 | 
            -
                VALUE self;
         | 
| 76 | 
            +
            gdkdraw_get_visible_region(VALUE self)
         | 
| 82 77 | 
             
            {
         | 
| 83 78 | 
             
                return BOXED2RVAL(gdk_drawable_get_visible_region(_SELF(self)), GDK_TYPE_REGION);
         | 
| 84 79 | 
             
            }
         | 
| 85 80 |  | 
| 86 81 |  | 
| 87 82 | 
             
            static VALUE
         | 
| 88 | 
            -
            gdkdraw_draw_point(self, gc, x, y)
         | 
| 89 | 
            -
                VALUE self, gc, x, y;
         | 
| 83 | 
            +
            gdkdraw_draw_point(VALUE self, VALUE gc, VALUE x, VALUE y)
         | 
| 90 84 | 
             
            {
         | 
| 91 85 | 
             
                gdk_draw_point(_SELF(self), GDK_GC(RVAL2GOBJ(gc)),
         | 
| 92 86 | 
             
                               NUM2INT(x), NUM2INT(y));
         | 
| @@ -94,8 +88,7 @@ gdkdraw_draw_point(self, gc, x, y) | |
| 94 88 | 
             
            }
         | 
| 95 89 |  | 
| 96 90 | 
             
            static VALUE
         | 
| 97 | 
            -
            gdkdraw_draw_points(self, gc, pnts)
         | 
| 98 | 
            -
                VALUE self, gc, pnts;
         | 
| 91 | 
            +
            gdkdraw_draw_points(VALUE self, VALUE gc, VALUE pnts)
         | 
| 99 92 | 
             
            {
         | 
| 100 93 | 
             
                GdkPoint *points;
         | 
| 101 94 | 
             
                int i;
         | 
| @@ -117,8 +110,7 @@ gdkdraw_draw_points(self, gc, pnts) | |
| 117 110 | 
             
            }
         | 
| 118 111 |  | 
| 119 112 | 
             
            static VALUE
         | 
| 120 | 
            -
            gdkdraw_draw_line(self, gc, x1, y1, x2, y2)
         | 
| 121 | 
            -
                VALUE self, gc, x1, y1, x2, y2;
         | 
| 113 | 
            +
            gdkdraw_draw_line(VALUE self, VALUE gc, VALUE x1, VALUE y1, VALUE x2, VALUE y2)
         | 
| 122 114 | 
             
            {
         | 
| 123 115 | 
             
                gdk_draw_line(_SELF(self), GDK_GC(RVAL2GOBJ(gc)),
         | 
| 124 116 | 
             
                              NUM2INT(x1), NUM2INT(y1),
         | 
| @@ -127,8 +119,7 @@ gdkdraw_draw_line(self, gc, x1, y1, x2, y2) | |
| 127 119 | 
             
            }
         | 
| 128 120 |  | 
| 129 121 | 
             
            static VALUE
         | 
| 130 | 
            -
            gdkdraw_draw_lines(self, gc, pnts)
         | 
| 131 | 
            -
                VALUE self, gc, pnts;
         | 
| 122 | 
            +
            gdkdraw_draw_lines(VALUE self, VALUE gc, VALUE pnts)
         | 
| 132 123 | 
             
            {
         | 
| 133 124 | 
             
                GdkPoint *points;
         | 
| 134 125 | 
             
                int i;
         | 
| @@ -151,10 +142,7 @@ gdkdraw_draw_lines(self, gc, pnts) | |
| 151 142 |  | 
| 152 143 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 153 144 | 
             
            static VALUE
         | 
| 154 | 
            -
            gdkdraw_draw_pixbuf(self, gc, pixbuf, src_x, src_y, dest_x, dest_y, 
         | 
| 155 | 
            -
                                width, height, dither, x_dither, y_dither)
         | 
| 156 | 
            -
                VALUE self, gc, pixbuf, src_x, src_y, dest_x, dest_y; 
         | 
| 157 | 
            -
                VALUE width, height, dither, x_dither, y_dither;
         | 
| 145 | 
            +
            gdkdraw_draw_pixbuf(VALUE self, VALUE gc, VALUE pixbuf, VALUE src_x, VALUE src_y, VALUE dest_x, VALUE dest_y, VALUE width, VALUE height, VALUE dither, VALUE x_dither, VALUE y_dither)
         | 
| 158 146 | 
             
            {
         | 
| 159 147 | 
             
                gdk_draw_pixbuf(_SELF(self),
         | 
| 160 148 | 
             
                                GDK_GC(RVAL2GOBJ(gc)),
         | 
| @@ -169,8 +157,7 @@ gdkdraw_draw_pixbuf(self, gc, pixbuf, src_x, src_y, dest_x, dest_y, | |
| 169 157 | 
             
            #endif
         | 
| 170 158 |  | 
| 171 159 | 
             
            static VALUE
         | 
| 172 | 
            -
            gdkdraw_draw_segs(self, gc, segs)
         | 
| 173 | 
            -
                VALUE self, gc, segs;
         | 
| 160 | 
            +
            gdkdraw_draw_segs(VALUE self, VALUE gc, VALUE segs)
         | 
| 174 161 | 
             
            {
         | 
| 175 162 | 
             
                GdkSegment *segments;
         | 
| 176 163 | 
             
                int i;
         | 
| @@ -193,8 +180,7 @@ gdkdraw_draw_segs(self, gc, segs) | |
| 193 180 | 
             
            }
         | 
| 194 181 |  | 
| 195 182 | 
             
            static VALUE
         | 
| 196 | 
            -
            gdkdraw_draw_rect(self, gc, filled, x, y, w, h)
         | 
| 197 | 
            -
                VALUE self, gc, filled, x, y, w, h;
         | 
| 183 | 
            +
            gdkdraw_draw_rect(VALUE self, VALUE gc, VALUE filled, VALUE x, VALUE y, VALUE w, VALUE h)
         | 
| 198 184 | 
             
            {
         | 
| 199 185 | 
             
                gdk_draw_rectangle(_SELF(self), GDK_GC(RVAL2GOBJ(gc)),
         | 
| 200 186 | 
             
                                   RVAL2CBOOL(filled),
         | 
| @@ -204,8 +190,7 @@ gdkdraw_draw_rect(self, gc, filled, x, y, w, h) | |
| 204 190 | 
             
            }
         | 
| 205 191 |  | 
| 206 192 | 
             
            static VALUE
         | 
| 207 | 
            -
            gdkdraw_draw_arc(self, gc, filled, x, y, w, h, a1, a2)
         | 
| 208 | 
            -
                VALUE self, gc, filled, x, y, w, h, a1, a2;
         | 
| 193 | 
            +
            gdkdraw_draw_arc(VALUE self, VALUE gc, VALUE filled, VALUE x, VALUE y, VALUE w, VALUE h, VALUE a1, VALUE a2)
         | 
| 209 194 | 
             
            {
         | 
| 210 195 | 
             
                gdk_draw_arc(_SELF(self), GDK_GC(RVAL2GOBJ(gc)),
         | 
| 211 196 | 
             
                             RVAL2CBOOL(filled),
         | 
| @@ -216,8 +201,7 @@ gdkdraw_draw_arc(self, gc, filled, x, y, w, h, a1, a2) | |
| 216 201 | 
             
            }
         | 
| 217 202 |  | 
| 218 203 | 
             
            static VALUE
         | 
| 219 | 
            -
            gdkdraw_draw_poly(self, gc, filled, pnts)
         | 
| 220 | 
            -
                VALUE self, gc, filled, pnts;
         | 
| 204 | 
            +
            gdkdraw_draw_poly(VALUE self, VALUE gc, VALUE filled, VALUE pnts)
         | 
| 221 205 | 
             
            {
         | 
| 222 206 | 
             
                GdkPoint *points;
         | 
| 223 207 | 
             
                int i;
         | 
| @@ -244,8 +228,7 @@ gdkdraw_draw_poly(self, gc, filled, pnts) | |
| 244 228 | 
             
              trapezoids = [[y1, x11, x21, y2, x12, x22], ...]
         | 
| 245 229 | 
             
             */
         | 
| 246 230 | 
             
            static VALUE
         | 
| 247 | 
            -
            gdkdraw_draw_trapezoids(self, gc, trapezoids)
         | 
| 248 | 
            -
                VALUE self, gc, trapezoids;
         | 
| 231 | 
            +
            gdkdraw_draw_trapezoids(VALUE self, VALUE gc, VALUE trapezoids)
         | 
| 249 232 | 
             
            {
         | 
| 250 233 | 
             
                GdkTrapezoid *gtrapezoids;
         | 
| 251 234 | 
             
                gint i, len;
         | 
| @@ -273,8 +256,7 @@ gdkdraw_draw_trapezoids(self, gc, trapezoids) | |
| 273 256 | 
             
            #endif
         | 
| 274 257 |  | 
| 275 258 | 
             
            static VALUE
         | 
| 276 | 
            -
            gdkdraw_glyphs(self, gc, font, x, y, glyphs)
         | 
| 277 | 
            -
                VALUE self, gc, font, x, y, glyphs;
         | 
| 259 | 
            +
            gdkdraw_glyphs(VALUE self, VALUE gc, VALUE font, VALUE x, VALUE y, VALUE glyphs)
         | 
| 278 260 | 
             
            {
         | 
| 279 261 | 
             
                gdk_draw_glyphs(_SELF(self), GDK_GC(RVAL2GOBJ(gc)), PANGO_FONT(RVAL2GOBJ(font)),
         | 
| 280 262 | 
             
                                NUM2INT(x), NUM2INT(y), 
         | 
| @@ -284,8 +266,7 @@ gdkdraw_glyphs(self, gc, font, x, y, glyphs) | |
| 284 266 |  | 
| 285 267 | 
             
            #if GTK_CHECK_VERSION(2,6,0)
         | 
| 286 268 | 
             
            static VALUE
         | 
| 287 | 
            -
            gdkdraw_glyphs_transformed(self, gc, matrix, font, x, y, glyphs)
         | 
| 288 | 
            -
                VALUE self, gc, matrix, font, x, y, glyphs;
         | 
| 269 | 
            +
            gdkdraw_glyphs_transformed(VALUE self, VALUE gc, VALUE matrix, VALUE font, VALUE x, VALUE y, VALUE glyphs)
         | 
| 289 270 | 
             
            {
         | 
| 290 271 | 
             
                gdk_draw_glyphs_transformed(_SELF(self), GDK_GC(RVAL2GOBJ(gc)), 
         | 
| 291 272 | 
             
                                            NIL_P(matrix) ? (PangoMatrix*)NULL : (PangoMatrix*)(RVAL2BOXED(matrix, PANGO_TYPE_MATRIX)),
         | 
| @@ -297,10 +278,7 @@ gdkdraw_glyphs_transformed(self, gc, matrix, font, x, y, glyphs) | |
| 297 278 | 
             
            #endif
         | 
| 298 279 |  | 
| 299 280 | 
             
            static VALUE
         | 
| 300 | 
            -
            gdkdraw_layout_line(argc, argv, self)
         | 
| 301 | 
            -
                int argc;
         | 
| 302 | 
            -
                VALUE *argv;
         | 
| 303 | 
            -
                VALUE self;
         | 
| 281 | 
            +
            gdkdraw_layout_line(int argc, VALUE *argv, VALUE self)
         | 
| 304 282 | 
             
            {
         | 
| 305 283 | 
             
                VALUE gc, x, y, line, fg, bg;
         | 
| 306 284 |  | 
| @@ -316,10 +294,7 @@ gdkdraw_layout_line(argc, argv, self) | |
| 316 294 | 
             
            }
         | 
| 317 295 |  | 
| 318 296 | 
             
            static VALUE
         | 
| 319 | 
            -
            gdkdraw_layout(argc, argv, self)
         | 
| 320 | 
            -
                int argc;
         | 
| 321 | 
            -
                VALUE *argv;
         | 
| 322 | 
            -
                VALUE self;
         | 
| 297 | 
            +
            gdkdraw_layout(int argc, VALUE *argv, VALUE self)
         | 
| 323 298 | 
             
            {
         | 
| 324 299 | 
             
                VALUE gc, x, y, layout, fg, bg;
         | 
| 325 300 |  | 
| @@ -334,8 +309,7 @@ gdkdraw_layout(argc, argv, self) | |
| 334 309 | 
             
            }
         | 
| 335 310 |  | 
| 336 311 | 
             
            static VALUE
         | 
| 337 | 
            -
            gdkdraw_draw_drawable(self, gc, src, xsrc, ysrc, xdst, ydst, w, h)
         | 
| 338 | 
            -
                VALUE self, gc, src, xsrc, ysrc, xdst, ydst, w, h;
         | 
| 312 | 
            +
            gdkdraw_draw_drawable(VALUE self, VALUE gc, VALUE src, VALUE xsrc, VALUE ysrc, VALUE xdst, VALUE ydst, VALUE w, VALUE h)
         | 
| 339 313 | 
             
            {
         | 
| 340 314 | 
             
                gdk_draw_drawable(_SELF(self), GDK_GC(RVAL2GOBJ(gc)), _SELF(src),
         | 
| 341 315 | 
             
                                  NUM2INT(xsrc), NUM2INT(ysrc),
         | 
| @@ -345,8 +319,7 @@ gdkdraw_draw_drawable(self, gc, src, xsrc, ysrc, xdst, ydst, w, h) | |
| 345 319 | 
             
            }
         | 
| 346 320 |  | 
| 347 321 | 
             
            static VALUE
         | 
| 348 | 
            -
            gdkdraw_draw_image(self, gc, image, xsrc, ysrc, xdst, ydst, w, h)
         | 
| 349 | 
            -
                VALUE self, gc, image, xsrc, ysrc, xdst, ydst, w, h;
         | 
| 322 | 
            +
            gdkdraw_draw_image(VALUE self, VALUE gc, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VALUE ydst, VALUE w, VALUE h)
         | 
| 350 323 | 
             
            {
         | 
| 351 324 | 
             
                gdk_draw_image(_SELF(self), GDK_GC(RVAL2GOBJ(gc)),
         | 
| 352 325 | 
             
                               GDK_IMAGE(RVAL2GOBJ(image)),
         | 
| @@ -357,8 +330,7 @@ gdkdraw_draw_image(self, gc, image, xsrc, ysrc, xdst, ydst, w, h) | |
| 357 330 | 
             
            }
         | 
| 358 331 |  | 
| 359 332 | 
             
            static VALUE
         | 
| 360 | 
            -
            gdkdraw_get_image(self, x, y, w, h)
         | 
| 361 | 
            -
                VALUE self, x, y, w, h;
         | 
| 333 | 
            +
            gdkdraw_get_image(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
         | 
| 362 334 | 
             
            {
         | 
| 363 335 | 
             
                return GOBJ2RVAL(gdk_drawable_get_image(_SELF(self), 
         | 
| 364 336 | 
             
                                                        NUM2INT(x), NUM2INT(y), 
         | 
| @@ -367,8 +339,7 @@ gdkdraw_get_image(self, x, y, w, h) | |
| 367 339 |  | 
| 368 340 | 
             
            #if GTK_CHECK_VERSION(2,4,0)
         | 
| 369 341 | 
             
            static VALUE
         | 
| 370 | 
            -
            gdkdraw_copy_to_image(self, image, xsrc, ysrc, xdst, ydst, w, h)
         | 
| 371 | 
            -
                VALUE self, image, xsrc, ysrc, xdst, ydst, w, h;
         | 
| 342 | 
            +
            gdkdraw_copy_to_image(VALUE self, VALUE image, VALUE xsrc, VALUE ysrc, VALUE xdst, VALUE ydst, VALUE w, VALUE h)
         | 
| 372 343 | 
             
            {
         | 
| 373 344 | 
             
                return GOBJ2RVAL(gdk_drawable_copy_to_image(_SELF(self), 
         | 
| 374 345 | 
             
                                                            GDK_IMAGE(RVAL2GOBJ(image)),
         | 
| @@ -380,8 +351,7 @@ gdkdraw_copy_to_image(self, image, xsrc, ysrc, xdst, ydst, w, h) | |
| 380 351 |  | 
| 381 352 | 
             
            #ifdef GDK_WINDOWING_X11
         | 
| 382 353 | 
             
            static VALUE
         | 
| 383 | 
            -
            gdkdraw_get_xid(self)
         | 
| 384 | 
            -
                VALUE self;
         | 
| 354 | 
            +
            gdkdraw_get_xid(VALUE self)
         | 
| 385 355 | 
             
            {
         | 
| 386 356 | 
             
                return ULONG2NUM(GDK_DRAWABLE_XID(_SELF(self)));
         | 
| 387 357 | 
             
            }
         | 
| @@ -389,15 +359,13 @@ gdkdraw_get_xid(self) | |
| 389 359 |  | 
| 390 360 | 
             
            #if GTK_CHECK_VERSION(2,2,0)
         | 
| 391 361 | 
             
            static VALUE
         | 
| 392 | 
            -
            gdkdraw_get_display(self)
         | 
| 393 | 
            -
                VALUE self;
         | 
| 362 | 
            +
            gdkdraw_get_display(VALUE self)
         | 
| 394 363 | 
             
            {
         | 
| 395 364 | 
             
                return GOBJ2RVAL(gdk_drawable_get_display(_SELF(self)));
         | 
| 396 365 | 
             
            }
         | 
| 397 366 |  | 
| 398 367 | 
             
            static VALUE
         | 
| 399 | 
            -
            gdkdraw_get_screen(self)
         | 
| 400 | 
            -
                VALUE self;
         | 
| 368 | 
            +
            gdkdraw_get_screen(VALUE self)
         | 
| 401 369 | 
             
            {
         | 
| 402 370 | 
             
                return GOBJ2RVAL(gdk_drawable_get_screen(_SELF(self)));
         | 
| 403 371 | 
             
            }
         | 
| @@ -406,8 +374,7 @@ gdkdraw_get_screen(self) | |
| 406 374 | 
             
            #if GTK_CHECK_VERSION(2,8,0)
         | 
| 407 375 | 
             
            #  ifdef HAVE_RB_CAIRO_H
         | 
| 408 376 | 
             
            static VALUE
         | 
| 409 | 
            -
            gdkdraw_cairo_create(self)
         | 
| 410 | 
            -
                VALUE self;
         | 
| 377 | 
            +
            gdkdraw_cairo_create(VALUE self)
         | 
| 411 378 | 
             
            {
         | 
| 412 379 | 
             
                VALUE rb_cr;
         | 
| 413 380 | 
             
                cairo_t *cr;
         |