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/rbgdkpixmap.c
CHANGED
@@ -18,8 +18,7 @@
|
|
18
18
|
#endif /* HAVE_XREADBITMAPFILEDATA */
|
19
19
|
|
20
20
|
static VALUE
|
21
|
-
gdkpmap_initialize(self, win, w, h, depth)
|
22
|
-
VALUE self, win, w, h, depth;
|
21
|
+
gdkpmap_initialize(VALUE self, VALUE win, VALUE w, VALUE h, VALUE depth)
|
23
22
|
{
|
24
23
|
G_INITIALIZE(self, gdk_pixmap_new(GDK_WINDOW(RVAL2GOBJ(win)),
|
25
24
|
NUM2INT(w), NUM2INT(h),
|
@@ -28,10 +27,7 @@ gdkpmap_initialize(self, win, w, h, depth)
|
|
28
27
|
}
|
29
28
|
|
30
29
|
static VALUE
|
31
|
-
gdkpmap_create_from_data(argc, argv, self)
|
32
|
-
int argc;
|
33
|
-
VALUE *argv;
|
34
|
-
VALUE self;
|
30
|
+
gdkpmap_create_from_data(int argc, VALUE *argv, VALUE self)
|
35
31
|
{
|
36
32
|
VALUE win, data, w, h, depth, fg, bg, ret;
|
37
33
|
|
@@ -52,8 +48,7 @@ gdkpmap_create_from_data(argc, argv, self)
|
|
52
48
|
}
|
53
49
|
|
54
50
|
static VALUE
|
55
|
-
gdkpmap_create_from_xpm(self, win, color, fname)
|
56
|
-
VALUE self, win, color, fname;
|
51
|
+
gdkpmap_create_from_xpm(VALUE self, VALUE win, VALUE color, VALUE fname)
|
57
52
|
{
|
58
53
|
GdkPixmap *new;
|
59
54
|
GdkBitmap *mask;
|
@@ -67,8 +62,7 @@ gdkpmap_create_from_xpm(self, win, color, fname)
|
|
67
62
|
}
|
68
63
|
|
69
64
|
static VALUE
|
70
|
-
gdkpmap_create_from_xpm_d(self, win, tcolor, data)
|
71
|
-
VALUE self, win, tcolor, data;
|
65
|
+
gdkpmap_create_from_xpm_d(VALUE self, VALUE win, VALUE tcolor, VALUE data)
|
72
66
|
{
|
73
67
|
GdkPixmap *new;
|
74
68
|
GdkBitmap *mask;
|
@@ -87,8 +81,7 @@ gdkpmap_create_from_xpm_d(self, win, tcolor, data)
|
|
87
81
|
}
|
88
82
|
|
89
83
|
static VALUE
|
90
|
-
gdkpmap_colormap_create_from_xpm(self, win, colormap, tcolor, fname)
|
91
|
-
VALUE self, win, colormap, tcolor, fname;
|
84
|
+
gdkpmap_colormap_create_from_xpm(VALUE self, VALUE win, VALUE colormap, VALUE tcolor, VALUE fname)
|
92
85
|
{
|
93
86
|
GdkPixmap *new;
|
94
87
|
GdkBitmap *mask;
|
@@ -104,8 +97,7 @@ gdkpmap_colormap_create_from_xpm(self, win, colormap, tcolor, fname)
|
|
104
97
|
}
|
105
98
|
|
106
99
|
static VALUE
|
107
|
-
gdkpmap_colormap_create_from_xpm_d(self, win, colormap, tcolor, data)
|
108
|
-
VALUE self, win, colormap, tcolor, data;
|
100
|
+
gdkpmap_colormap_create_from_xpm_d(VALUE self, VALUE win, VALUE colormap, VALUE tcolor, VALUE data)
|
109
101
|
{
|
110
102
|
GdkPixmap *new;
|
111
103
|
GdkBitmap *mask;
|
@@ -128,8 +120,7 @@ gdkpmap_colormap_create_from_xpm_d(self, win, colormap, tcolor, data)
|
|
128
120
|
|
129
121
|
#ifdef HAVE_XREADBITMAPFILEDATA
|
130
122
|
static VALUE
|
131
|
-
gdkpmap_create_from_xbm(self, win, fname)
|
132
|
-
VALUE self, win, fname;
|
123
|
+
gdkpmap_create_from_xbm(VALUE self, VALUE win, VALUE fname)
|
133
124
|
{
|
134
125
|
GdkBitmap *new;
|
135
126
|
unsigned char *data;
|
@@ -155,10 +146,7 @@ gdkpmap_create_from_xbm(self, win, fname)
|
|
155
146
|
*/
|
156
147
|
|
157
148
|
static VALUE
|
158
|
-
gdkpmap_foreign_new(argc, argv, self)
|
159
|
-
int argc;
|
160
|
-
VALUE *argv;
|
161
|
-
VALUE self;
|
149
|
+
gdkpmap_foreign_new(int argc, VALUE *argv, VALUE self)
|
162
150
|
{
|
163
151
|
VALUE arg[5];
|
164
152
|
GdkPixmap* win = NULL;
|
@@ -196,10 +184,7 @@ gdkpmap_foreign_new(argc, argv, self)
|
|
196
184
|
}
|
197
185
|
|
198
186
|
static VALUE
|
199
|
-
gdkpmap_lookup(argc, argv, self)
|
200
|
-
int argc;
|
201
|
-
VALUE *argv;
|
202
|
-
VALUE self;
|
187
|
+
gdkpmap_lookup(int argc, VALUE *argv, VALUE self)
|
203
188
|
{
|
204
189
|
VALUE arg[2];
|
205
190
|
GdkPixmap* win = NULL;
|
data/ext/gtk2/rbgdkproperty.c
CHANGED
@@ -19,10 +19,7 @@
|
|
19
19
|
#include "global.h"
|
20
20
|
|
21
21
|
static VALUE
|
22
|
-
gdkprop_text_property_to_text_list(argc, argv, self)
|
23
|
-
int argc;
|
24
|
-
VALUE *argv;
|
25
|
-
VALUE self;
|
22
|
+
gdkprop_text_property_to_text_list(int argc, VALUE *argv, VALUE self)
|
26
23
|
{
|
27
24
|
gint num, i;
|
28
25
|
gchar** list;
|
@@ -69,10 +66,7 @@ gdkprop_text_property_to_text_list(argc, argv, self)
|
|
69
66
|
}
|
70
67
|
|
71
68
|
static VALUE
|
72
|
-
gdkprop_text_property_to_utf8_list(argc, argv, self)
|
73
|
-
int argc;
|
74
|
-
VALUE *argv;
|
75
|
-
VALUE self;
|
69
|
+
gdkprop_text_property_to_utf8_list(int argc, VALUE *argv, VALUE self)
|
76
70
|
{
|
77
71
|
gint num, i;
|
78
72
|
gchar** list;
|
@@ -121,10 +115,7 @@ gdkprop_text_property_to_utf8_list(argc, argv, self)
|
|
121
115
|
}
|
122
116
|
|
123
117
|
static VALUE
|
124
|
-
gdkprop_string_to_compound_text(argc, argv, self)
|
125
|
-
int argc;
|
126
|
-
VALUE *argv;
|
127
|
-
VALUE self;
|
118
|
+
gdkprop_string_to_compound_text(int argc, VALUE *argv, VALUE self)
|
128
119
|
{
|
129
120
|
gint num;
|
130
121
|
GdkAtom encoding;
|
@@ -169,17 +160,13 @@ gdkprop_string_to_compound_text(argc, argv, self)
|
|
169
160
|
}
|
170
161
|
|
171
162
|
static VALUE
|
172
|
-
gdkprop_utf8_to_string_target(self, str)
|
173
|
-
VALUE self, str;
|
163
|
+
gdkprop_utf8_to_string_target(VALUE self, VALUE str)
|
174
164
|
{
|
175
165
|
return CSTR2RVAL((const char*)gdk_utf8_to_string_target(RVAL2CSTR(str)));
|
176
166
|
}
|
177
167
|
|
178
168
|
static VALUE
|
179
|
-
gdkprop_utf8_to_compound_text(argc, argv, self)
|
180
|
-
int argc;
|
181
|
-
VALUE *argv;
|
182
|
-
VALUE self;
|
169
|
+
gdkprop_utf8_to_compound_text(int argc, VALUE *argv, VALUE self)
|
183
170
|
{
|
184
171
|
GdkAtom encoding;
|
185
172
|
gint format;
|
@@ -227,10 +214,7 @@ gdkprop_utf8_to_compound_text(argc, argv, self)
|
|
227
214
|
|
228
215
|
|
229
216
|
static VALUE
|
230
|
-
gdkprop_change(argc, argv, self)
|
231
|
-
int argc;
|
232
|
-
VALUE *argv;
|
233
|
-
VALUE self;
|
217
|
+
gdkprop_change(int argc, VALUE *argv, VALUE self)
|
234
218
|
{
|
235
219
|
int fmt, len;
|
236
220
|
void* dat;
|
@@ -253,10 +237,7 @@ gdkprop_change(argc, argv, self)
|
|
253
237
|
}
|
254
238
|
|
255
239
|
static VALUE
|
256
|
-
gdkprop_get(argc, argv, self)
|
257
|
-
int argc;
|
258
|
-
VALUE *argv;
|
259
|
-
VALUE self;
|
240
|
+
gdkprop_get(int argc, VALUE *argv, VALUE self)
|
260
241
|
{
|
261
242
|
/* for argument processing */
|
262
243
|
GdkAtom rtype;
|
@@ -314,8 +295,7 @@ gdkprop_get(argc, argv, self)
|
|
314
295
|
}
|
315
296
|
|
316
297
|
static VALUE
|
317
|
-
gdkprop_delete(self, win, property)
|
318
|
-
VALUE self, win, property;
|
298
|
+
gdkprop_delete(VALUE self, VALUE win, VALUE property)
|
319
299
|
{
|
320
300
|
gdk_property_delete(GDK_WINDOW(RVAL2GOBJ(win)), RVAL2ATOM(property));
|
321
301
|
return self;
|
data/ext/gtk2/rbgdkrectangle.c
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
#define _SELF(r) ((GdkRectangle*)RVAL2BOXED(r, GDK_TYPE_RECTANGLE))
|
21
21
|
|
22
22
|
static VALUE
|
23
|
-
gdkrect_initialize(self, x, y, width, height)
|
24
|
-
VALUE self, x, y, width, height;
|
23
|
+
gdkrect_initialize(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height)
|
25
24
|
{
|
26
25
|
GdkRectangle new;
|
27
26
|
|
@@ -35,8 +34,7 @@ gdkrect_initialize(self, x, y, width, height)
|
|
35
34
|
}
|
36
35
|
|
37
36
|
static VALUE
|
38
|
-
gdkrect_intersect(self, other)
|
39
|
-
VALUE self, other;
|
37
|
+
gdkrect_intersect(VALUE self, VALUE other)
|
40
38
|
{
|
41
39
|
GdkRectangle dest;
|
42
40
|
gboolean ret = gdk_rectangle_intersect(_SELF(self), _SELF(other), &dest);
|
@@ -44,8 +42,7 @@ gdkrect_intersect(self, other)
|
|
44
42
|
}
|
45
43
|
|
46
44
|
static VALUE
|
47
|
-
gdkrect_union(self, other)
|
48
|
-
VALUE self, other;
|
45
|
+
gdkrect_union(VALUE self, VALUE other)
|
49
46
|
{
|
50
47
|
GdkRectangle dest;
|
51
48
|
gdk_rectangle_union(_SELF(self), _SELF(other), &dest);
|
@@ -54,68 +51,59 @@ gdkrect_union(self, other)
|
|
54
51
|
|
55
52
|
/* Struct accessors */
|
56
53
|
static VALUE
|
57
|
-
gdkrect_x(self)
|
58
|
-
VALUE self;
|
54
|
+
gdkrect_x(VALUE self)
|
59
55
|
{
|
60
56
|
return INT2NUM(_SELF(self)->x);
|
61
57
|
}
|
62
58
|
|
63
59
|
static VALUE
|
64
|
-
gdkrect_y(self)
|
65
|
-
VALUE self;
|
60
|
+
gdkrect_y(VALUE self)
|
66
61
|
{
|
67
62
|
return INT2NUM(_SELF(self)->y);
|
68
63
|
}
|
69
64
|
|
70
65
|
static VALUE
|
71
|
-
gdkrect_w(self)
|
72
|
-
VALUE self;
|
66
|
+
gdkrect_w(VALUE self)
|
73
67
|
{
|
74
68
|
return INT2NUM(_SELF(self)->width);
|
75
69
|
}
|
76
70
|
|
77
71
|
static VALUE
|
78
|
-
gdkrect_h(self)
|
79
|
-
VALUE self;
|
72
|
+
gdkrect_h(VALUE self)
|
80
73
|
{
|
81
74
|
return INT2NUM(_SELF(self)->height);
|
82
75
|
}
|
83
76
|
|
84
77
|
static VALUE
|
85
|
-
gdkrect_set_x(self, x)
|
86
|
-
VALUE self, x;
|
78
|
+
gdkrect_set_x(VALUE self, VALUE x)
|
87
79
|
{
|
88
80
|
_SELF(self)->x = NUM2INT(x);
|
89
81
|
return self;
|
90
82
|
}
|
91
83
|
|
92
84
|
static VALUE
|
93
|
-
gdkrect_set_y(self, y)
|
94
|
-
VALUE self, y;
|
85
|
+
gdkrect_set_y(VALUE self, VALUE y)
|
95
86
|
{
|
96
87
|
_SELF(self)->y = NUM2INT(y);
|
97
88
|
return self;
|
98
89
|
}
|
99
90
|
|
100
91
|
static VALUE
|
101
|
-
gdkrect_set_w(self, width)
|
102
|
-
VALUE self, width;
|
92
|
+
gdkrect_set_w(VALUE self, VALUE width)
|
103
93
|
{
|
104
94
|
_SELF(self)->width = NUM2INT(width);
|
105
95
|
return self;
|
106
96
|
}
|
107
97
|
|
108
98
|
static VALUE
|
109
|
-
gdkrect_set_h(self, height)
|
110
|
-
VALUE self, height;
|
99
|
+
gdkrect_set_h(VALUE self, VALUE height)
|
111
100
|
{
|
112
101
|
_SELF(self)->height = NUM2INT(height);
|
113
102
|
return self;
|
114
103
|
}
|
115
104
|
|
116
105
|
static VALUE
|
117
|
-
gdkrect_to_a(self)
|
118
|
-
VALUE self;
|
106
|
+
gdkrect_to_a(VALUE self)
|
119
107
|
{
|
120
108
|
GdkRectangle* a = _SELF(self);
|
121
109
|
return rb_ary_new3(4, INT2FIX(a->x), INT2FIX(a->y),
|
data/ext/gtk2/rbgdkregion.c
CHANGED
@@ -29,10 +29,7 @@ gdk_region_get_type(void)
|
|
29
29
|
}
|
30
30
|
/**********************************/
|
31
31
|
static VALUE
|
32
|
-
gdkregion_initialize(argc, argv, self)
|
33
|
-
int argc;
|
34
|
-
VALUE *argv;
|
35
|
-
VALUE self;
|
32
|
+
gdkregion_initialize(int argc, VALUE *argv, VALUE self)
|
36
33
|
{
|
37
34
|
VALUE points_or_rectangle, fill_rule;
|
38
35
|
GdkRegion* region;
|
@@ -69,8 +66,7 @@ gdkregion_initialize(argc, argv, self)
|
|
69
66
|
}
|
70
67
|
|
71
68
|
static VALUE
|
72
|
-
gdkregion_get_rectangles(self)
|
73
|
-
VALUE self;
|
69
|
+
gdkregion_get_rectangles(VALUE self)
|
74
70
|
{
|
75
71
|
GdkRectangle* rectangles;
|
76
72
|
gint n_rect, i;
|
@@ -86,17 +82,14 @@ gdkregion_get_rectangles(self)
|
|
86
82
|
}
|
87
83
|
|
88
84
|
static void
|
89
|
-
gdkregion_span_func(span, func)
|
90
|
-
GdkSpan* span;
|
91
|
-
gpointer func;
|
85
|
+
gdkregion_span_func(GdkSpan *span, gpointer func)
|
92
86
|
{
|
93
87
|
rb_funcall((VALUE)func, id_call, 3,
|
94
88
|
INT2NUM(span->x), INT2NUM(span->y), INT2NUM(span->width));
|
95
89
|
}
|
96
90
|
|
97
91
|
static VALUE
|
98
|
-
gdkregion_spans_intersect_foreach(self, spans, sorted)
|
99
|
-
VALUE self, spans, sorted;
|
92
|
+
gdkregion_spans_intersect_foreach(VALUE self, VALUE spans, VALUE sorted)
|
100
93
|
{
|
101
94
|
int i;
|
102
95
|
GdkSpan* gspans = ALLOCA_N(GdkSpan, RARRAY_LEN(spans));
|
@@ -115,8 +108,7 @@ gdkregion_spans_intersect_foreach(self, spans, sorted)
|
|
115
108
|
}
|
116
109
|
|
117
110
|
static VALUE
|
118
|
-
gdkregion_get_clipbox(self)
|
119
|
-
VALUE self;
|
111
|
+
gdkregion_get_clipbox(VALUE self)
|
120
112
|
{
|
121
113
|
GdkRectangle rect;
|
122
114
|
gdk_region_get_clipbox(_SELF(self), &rect);
|
@@ -124,15 +116,13 @@ gdkregion_get_clipbox(self)
|
|
124
116
|
}
|
125
117
|
|
126
118
|
static VALUE
|
127
|
-
gdkregion_empty(self)
|
128
|
-
VALUE self;
|
119
|
+
gdkregion_empty(VALUE self)
|
129
120
|
{
|
130
121
|
return CBOOL2RVAL(gdk_region_empty(_SELF(self)));
|
131
122
|
}
|
132
123
|
|
133
124
|
static VALUE
|
134
|
-
gdkregion_equal(self, obj)
|
135
|
-
VALUE self, obj;
|
125
|
+
gdkregion_equal(VALUE self, VALUE obj)
|
136
126
|
{
|
137
127
|
if (!rb_obj_is_instance_of(obj, GTYPE2CLASS(GDK_TYPE_REGION))) {
|
138
128
|
return Qnil;
|
@@ -141,16 +131,14 @@ gdkregion_equal(self, obj)
|
|
141
131
|
}
|
142
132
|
|
143
133
|
static VALUE
|
144
|
-
gdkregion_point_in(self, x, y)
|
145
|
-
VALUE self, x, y;
|
134
|
+
gdkregion_point_in(VALUE self, VALUE x, VALUE y)
|
146
135
|
{
|
147
136
|
return CBOOL2RVAL(gdk_region_point_in(_SELF(self), NUM2INT(x),
|
148
137
|
NUM2INT(y)));
|
149
138
|
}
|
150
139
|
|
151
140
|
static VALUE
|
152
|
-
gdkregion_rect_in(self, rect)
|
153
|
-
VALUE self, rect;
|
141
|
+
gdkregion_rect_in(VALUE self, VALUE rect)
|
154
142
|
{
|
155
143
|
return GENUM2RVAL(gdk_region_rect_in(
|
156
144
|
_SELF(self),
|
@@ -159,32 +147,28 @@ gdkregion_rect_in(self, rect)
|
|
159
147
|
}
|
160
148
|
|
161
149
|
static VALUE
|
162
|
-
gdkregion_offset(self, dx, dy)
|
163
|
-
VALUE self, dx, dy;
|
150
|
+
gdkregion_offset(VALUE self, VALUE dx, VALUE dy)
|
164
151
|
{
|
165
152
|
gdk_region_offset(_SELF(self), NUM2INT(dx), NUM2INT(dy));
|
166
153
|
return self;
|
167
154
|
}
|
168
155
|
|
169
156
|
static VALUE
|
170
|
-
gdkregion_shrink(self, dx, dy)
|
171
|
-
VALUE self, dx, dy;
|
157
|
+
gdkregion_shrink(VALUE self, VALUE dx, VALUE dy)
|
172
158
|
{
|
173
159
|
gdk_region_shrink(_SELF(self), NUM2INT(dx), NUM2INT(dy));
|
174
160
|
return self;
|
175
161
|
}
|
176
162
|
|
177
163
|
static VALUE
|
178
|
-
gdkregion_intersect(self, region)
|
179
|
-
VALUE self, region;
|
164
|
+
gdkregion_intersect(VALUE self, VALUE region)
|
180
165
|
{
|
181
166
|
gdk_region_intersect(_SELF(self), _SELF(region));
|
182
167
|
return self;
|
183
168
|
}
|
184
169
|
|
185
170
|
static VALUE
|
186
|
-
gdkregion_union(self, other)
|
187
|
-
VALUE self, other;
|
171
|
+
gdkregion_union(VALUE self, VALUE other)
|
188
172
|
{
|
189
173
|
if (RVAL2GTYPE(other) == GDK_TYPE_RECTANGLE){
|
190
174
|
gdk_region_union_with_rect(_SELF(self),
|
@@ -196,16 +180,14 @@ gdkregion_union(self, other)
|
|
196
180
|
}
|
197
181
|
|
198
182
|
static VALUE
|
199
|
-
gdkregion_subtract(self, region)
|
200
|
-
VALUE self, region;
|
183
|
+
gdkregion_subtract(VALUE self, VALUE region)
|
201
184
|
{
|
202
185
|
gdk_region_subtract(_SELF(self), _SELF(region));
|
203
186
|
return self;
|
204
187
|
}
|
205
188
|
|
206
189
|
static VALUE
|
207
|
-
gdkregion_xor(self, region)
|
208
|
-
VALUE self, region;
|
190
|
+
gdkregion_xor(VALUE self, VALUE region)
|
209
191
|
{
|
210
192
|
gdk_region_xor(_SELF(self), _SELF(region));
|
211
193
|
return self;
|
data/ext/gtk2/rbgdkrgb.c
CHANGED
@@ -18,10 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
static VALUE
|
21
|
-
rgb_draw_rgb_image(argc, argv, self)
|
22
|
-
int argc;
|
23
|
-
VALUE* argv;
|
24
|
-
VALUE self;
|
21
|
+
rgb_draw_rgb_image(int argc, VALUE *argv, VALUE self)
|
25
22
|
{
|
26
23
|
VALUE win, gc, x, y, w, h, dither, buf, rowstride, xdith, ydith;
|
27
24
|
|
@@ -49,8 +46,7 @@ rgb_draw_rgb_image(argc, argv, self)
|
|
49
46
|
}
|
50
47
|
|
51
48
|
static VALUE
|
52
|
-
rgb_draw_indexed_image(self, win, gc, x, y, w, h, dither, buf, rowstride, colors)
|
53
|
-
VALUE self, win, gc, x, y, w, h, dither, buf, rowstride, colors;
|
49
|
+
rgb_draw_indexed_image(VALUE self, VALUE win, VALUE gc, VALUE x, VALUE y, VALUE w, VALUE h, VALUE dither, VALUE buf, VALUE rowstride, VALUE colors)
|
54
50
|
{
|
55
51
|
GdkRgbCmap* cmap;
|
56
52
|
guint32* gcolors;
|
@@ -79,8 +75,7 @@ rgb_draw_indexed_image(self, win, gc, x, y, w, h, dither, buf, rowstride, colors
|
|
79
75
|
}
|
80
76
|
|
81
77
|
static VALUE
|
82
|
-
rgb_draw_gray_image(self, win, gc, x, y, w, h, dither, buf, rowstride)
|
83
|
-
VALUE self, win, gc, x, y, w, h, dither, buf, rowstride;
|
78
|
+
rgb_draw_gray_image(VALUE self, VALUE win, VALUE gc, VALUE x, VALUE y, VALUE w, VALUE h, VALUE dither, VALUE buf, VALUE rowstride)
|
84
79
|
{
|
85
80
|
gdk_draw_gray_image(RVAL2DRAW(win), GDK_GC(RVAL2GOBJ(gc)),
|
86
81
|
NUM2INT(x), NUM2INT(y),
|
@@ -92,10 +87,7 @@ rgb_draw_gray_image(self, win, gc, x, y, w, h, dither, buf, rowstride)
|
|
92
87
|
}
|
93
88
|
|
94
89
|
static VALUE
|
95
|
-
rgb_draw_rgb_32_image(argc, argv, self)
|
96
|
-
int argc;
|
97
|
-
VALUE* argv;
|
98
|
-
VALUE self;
|
90
|
+
rgb_draw_rgb_32_image(int argc, VALUE *argv, VALUE self)
|
99
91
|
{
|
100
92
|
VALUE win, gc, x, y, w, h, dither, buf, rowstride, xdith, ydith;
|
101
93
|
|
@@ -121,8 +113,7 @@ rgb_draw_rgb_32_image(argc, argv, self)
|
|
121
113
|
}
|
122
114
|
|
123
115
|
static VALUE
|
124
|
-
rgb_find_color(self, colormap, color)
|
125
|
-
VALUE self, colormap, color;
|
116
|
+
rgb_find_color(VALUE self, VALUE colormap, VALUE color)
|
126
117
|
{
|
127
118
|
gdk_rgb_find_color(GDK_COLORMAP(RVAL2GOBJ(colormap)),
|
128
119
|
RVAL2GDKCOLOR(color));
|
@@ -130,45 +121,39 @@ rgb_find_color(self, colormap, color)
|
|
130
121
|
}
|
131
122
|
|
132
123
|
static VALUE
|
133
|
-
rgb_set_install(self, install)
|
134
|
-
VALUE self, install;
|
124
|
+
rgb_set_install(VALUE self, VALUE install)
|
135
125
|
{
|
136
126
|
gdk_rgb_set_install(RVAL2CBOOL(install));
|
137
127
|
return self;
|
138
128
|
}
|
139
129
|
|
140
130
|
static VALUE
|
141
|
-
rgb_set_min_colors(self, min_colors)
|
142
|
-
VALUE self, min_colors;
|
131
|
+
rgb_set_min_colors(VALUE self, VALUE min_colors)
|
143
132
|
{
|
144
133
|
gdk_rgb_set_min_colors(NUM2INT(min_colors));
|
145
134
|
return self;
|
146
135
|
}
|
147
136
|
|
148
137
|
static VALUE
|
149
|
-
rgb_get_visual(self)
|
150
|
-
VALUE self;
|
138
|
+
rgb_get_visual(VALUE self)
|
151
139
|
{
|
152
140
|
return GOBJ2RVAL(gdk_rgb_get_visual());
|
153
141
|
}
|
154
142
|
|
155
143
|
static VALUE
|
156
|
-
rgb_get_cmap(self)
|
157
|
-
VALUE self;
|
144
|
+
rgb_get_cmap(VALUE self)
|
158
145
|
{
|
159
146
|
return GOBJ2RVAL(gdk_rgb_get_colormap());
|
160
147
|
}
|
161
148
|
|
162
149
|
static VALUE
|
163
|
-
rgb_ditherable(self)
|
164
|
-
VALUE self;
|
150
|
+
rgb_ditherable(VALUE self)
|
165
151
|
{
|
166
152
|
return CBOOL2RVAL(gdk_rgb_ditherable());
|
167
153
|
}
|
168
154
|
|
169
155
|
static VALUE
|
170
|
-
rgb_set_verbose(self, verbose)
|
171
|
-
VALUE self, verbose;
|
156
|
+
rgb_set_verbose(VALUE self, VALUE verbose)
|
172
157
|
{
|
173
158
|
gdk_rgb_set_verbose(RVAL2CBOOL(verbose));
|
174
159
|
return self;
|