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/rbgdkvisual.c
CHANGED
@@ -20,8 +20,7 @@
|
|
20
20
|
#define _SELF(self) (GDK_VISUAL(RVAL2GOBJ(self)))
|
21
21
|
|
22
22
|
static VALUE
|
23
|
-
gdkvisual_s_query_depths(self)
|
24
|
-
VALUE self;
|
23
|
+
gdkvisual_s_query_depths(VALUE self)
|
25
24
|
{
|
26
25
|
gint *depth;
|
27
26
|
gint count;
|
@@ -37,8 +36,7 @@ gdkvisual_s_query_depths(self)
|
|
37
36
|
}
|
38
37
|
|
39
38
|
static VALUE
|
40
|
-
gdkvisual_s_query_visual_types(self)
|
41
|
-
VALUE self;
|
39
|
+
gdkvisual_s_query_visual_types(VALUE self)
|
42
40
|
{
|
43
41
|
GdkVisualType *visual_types;
|
44
42
|
gint count;
|
@@ -54,8 +52,7 @@ gdkvisual_s_query_visual_types(self)
|
|
54
52
|
}
|
55
53
|
|
56
54
|
static VALUE
|
57
|
-
gdkvisual_s_list_visuals(self)
|
58
|
-
VALUE self;
|
55
|
+
gdkvisual_s_list_visuals(VALUE self)
|
59
56
|
{
|
60
57
|
GList *list = gdk_list_visuals(), *cur;
|
61
58
|
VALUE ary = rb_ary_new();
|
@@ -68,51 +65,44 @@ gdkvisual_s_list_visuals(self)
|
|
68
65
|
}
|
69
66
|
|
70
67
|
static VALUE
|
71
|
-
gdkvisual_s_get_best_depth(self)
|
72
|
-
VALUE self;
|
68
|
+
gdkvisual_s_get_best_depth(VALUE self)
|
73
69
|
{
|
74
70
|
return INT2NUM(gdk_visual_get_best_depth());
|
75
71
|
}
|
76
72
|
|
77
73
|
static VALUE
|
78
|
-
gdkvisual_s_get_best_type(self)
|
79
|
-
VALUE self;
|
74
|
+
gdkvisual_s_get_best_type(VALUE self)
|
80
75
|
{
|
81
76
|
return INT2NUM(gdk_visual_get_best_type());
|
82
77
|
}
|
83
78
|
|
84
79
|
static VALUE
|
85
|
-
gdkvisual_s_get_system(self)
|
86
|
-
VALUE self;
|
80
|
+
gdkvisual_s_get_system(VALUE self)
|
87
81
|
{
|
88
82
|
return GOBJ2RVAL(gdk_visual_get_system());
|
89
83
|
}
|
90
84
|
|
91
85
|
static VALUE
|
92
|
-
gdkvisual_s_get_best(self)
|
93
|
-
VALUE self;
|
86
|
+
gdkvisual_s_get_best(VALUE self)
|
94
87
|
{
|
95
88
|
return GOBJ2RVAL(gdk_visual_get_best());
|
96
89
|
}
|
97
90
|
|
98
91
|
static VALUE
|
99
|
-
gdkvisual_s_get_best_with_depth(self, depth)
|
100
|
-
VALUE self, depth;
|
92
|
+
gdkvisual_s_get_best_with_depth(VALUE self, VALUE depth)
|
101
93
|
{
|
102
94
|
return GOBJ2RVAL(gdk_visual_get_best_with_depth(NUM2INT(depth)));
|
103
95
|
}
|
104
96
|
|
105
97
|
static VALUE
|
106
|
-
gdkvisual_s_get_best_with_type(self, type)
|
107
|
-
VALUE self, type;
|
98
|
+
gdkvisual_s_get_best_with_type(VALUE self, VALUE type)
|
108
99
|
{
|
109
100
|
return GOBJ2RVAL(gdk_visual_get_best_with_depth(
|
110
101
|
(GdkVisualType)GENUM2RVAL(type, GDK_TYPE_VISUAL_TYPE)));
|
111
102
|
}
|
112
103
|
|
113
104
|
static VALUE
|
114
|
-
gdkvisual_s_get_best_with_both(self, depth, type)
|
115
|
-
VALUE self, depth, type;
|
105
|
+
gdkvisual_s_get_best_with_both(VALUE self, VALUE depth, VALUE type)
|
116
106
|
{
|
117
107
|
return GOBJ2RVAL(gdk_visual_get_best_with_both(
|
118
108
|
NUM2INT(depth),
|
@@ -121,8 +111,7 @@ gdkvisual_s_get_best_with_both(self, depth, type)
|
|
121
111
|
|
122
112
|
#if GTK_CHECK_VERSION(2,2,0)
|
123
113
|
static VALUE
|
124
|
-
gdkvisual_get_screen(self)
|
125
|
-
VALUE self;
|
114
|
+
gdkvisual_get_screen(VALUE self)
|
126
115
|
{
|
127
116
|
return GOBJ2RVAL(gdk_visual_get_screen(_SELF(self)));
|
128
117
|
}
|
@@ -130,99 +119,85 @@ gdkvisual_get_screen(self)
|
|
130
119
|
|
131
120
|
/* Structure accessors */
|
132
121
|
static VALUE
|
133
|
-
gdkvisual_type(self)
|
134
|
-
VALUE self;
|
122
|
+
gdkvisual_type(VALUE self)
|
135
123
|
{
|
136
124
|
return GENUM2RVAL(_SELF(self)->type, GDK_TYPE_VISUAL_TYPE);
|
137
125
|
}
|
138
126
|
|
139
127
|
static VALUE
|
140
|
-
gdkvisual_depth(self)
|
141
|
-
VALUE self;
|
128
|
+
gdkvisual_depth(VALUE self)
|
142
129
|
{
|
143
130
|
return INT2FIX(_SELF(self)->depth);
|
144
131
|
}
|
145
132
|
|
146
133
|
static VALUE
|
147
|
-
gdkvisual_byte_order(self)
|
148
|
-
VALUE self;
|
134
|
+
gdkvisual_byte_order(VALUE self)
|
149
135
|
{
|
150
136
|
return GENUM2RVAL(_SELF(self)->byte_order, GDK_TYPE_BYTE_ORDER);
|
151
137
|
}
|
152
138
|
|
153
139
|
static VALUE
|
154
|
-
gdkvisual_colormap_size(self)
|
155
|
-
VALUE self;
|
140
|
+
gdkvisual_colormap_size(VALUE self)
|
156
141
|
{
|
157
142
|
return INT2FIX(_SELF(self)->colormap_size);
|
158
143
|
}
|
159
144
|
|
160
145
|
static VALUE
|
161
|
-
gdkvisual_bits_per_rgb(self)
|
162
|
-
VALUE self;
|
146
|
+
gdkvisual_bits_per_rgb(VALUE self)
|
163
147
|
{
|
164
148
|
return INT2FIX(_SELF(self)->bits_per_rgb);
|
165
149
|
}
|
166
150
|
|
167
151
|
static VALUE
|
168
|
-
gdkvisual_red_mask(self)
|
169
|
-
VALUE self;
|
152
|
+
gdkvisual_red_mask(VALUE self)
|
170
153
|
{
|
171
154
|
return INT2FIX(_SELF(self)->red_mask);
|
172
155
|
}
|
173
156
|
|
174
157
|
static VALUE
|
175
|
-
gdkvisual_red_shift(self)
|
176
|
-
VALUE self;
|
158
|
+
gdkvisual_red_shift(VALUE self)
|
177
159
|
{
|
178
160
|
return INT2FIX(_SELF(self)->red_shift);
|
179
161
|
}
|
180
162
|
|
181
163
|
static VALUE
|
182
|
-
gdkvisual_red_prec(self)
|
183
|
-
VALUE self;
|
164
|
+
gdkvisual_red_prec(VALUE self)
|
184
165
|
{
|
185
166
|
return INT2FIX(_SELF(self)->red_prec);
|
186
167
|
}
|
187
168
|
|
188
169
|
static VALUE
|
189
|
-
gdkvisual_green_mask(self)
|
190
|
-
VALUE self;
|
170
|
+
gdkvisual_green_mask(VALUE self)
|
191
171
|
{
|
192
172
|
return INT2FIX(_SELF(self)->green_mask);
|
193
173
|
}
|
194
174
|
|
195
175
|
static VALUE
|
196
|
-
gdkvisual_green_shift(self)
|
197
|
-
VALUE self;
|
176
|
+
gdkvisual_green_shift(VALUE self)
|
198
177
|
{
|
199
178
|
return INT2FIX(_SELF(self)->green_shift);
|
200
179
|
}
|
201
180
|
|
202
181
|
static VALUE
|
203
|
-
gdkvisual_green_prec(self)
|
204
|
-
VALUE self;
|
182
|
+
gdkvisual_green_prec(VALUE self)
|
205
183
|
{
|
206
184
|
return INT2FIX(_SELF(self)->green_prec);
|
207
185
|
}
|
208
186
|
|
209
187
|
static VALUE
|
210
|
-
gdkvisual_blue_mask(self)
|
211
|
-
VALUE self;
|
188
|
+
gdkvisual_blue_mask(VALUE self)
|
212
189
|
{
|
213
190
|
return INT2FIX(_SELF(self)->blue_mask);
|
214
191
|
}
|
215
192
|
|
216
193
|
static VALUE
|
217
|
-
gdkvisual_blue_shift(self)
|
218
|
-
VALUE self;
|
194
|
+
gdkvisual_blue_shift(VALUE self)
|
219
195
|
{
|
220
196
|
return INT2FIX(_SELF(self)->blue_shift);
|
221
197
|
}
|
222
198
|
|
223
199
|
static VALUE
|
224
|
-
gdkvisual_blue_prec(self)
|
225
|
-
VALUE self;
|
200
|
+
gdkvisual_blue_prec(VALUE self)
|
226
201
|
{
|
227
202
|
return INT2FIX(_SELF(self)->blue_prec);
|
228
203
|
}
|
data/ext/gtk2/rbgdkwindow.c
CHANGED
@@ -17,8 +17,7 @@
|
|
17
17
|
#define _SELF(s) GDK_WINDOW(RVAL2GOBJ(s))
|
18
18
|
|
19
19
|
static VALUE
|
20
|
-
gdkwin_initialize(self, parent, attributes, attributes_mask)
|
21
|
-
VALUE self, parent, attributes, attributes_mask;
|
20
|
+
gdkwin_initialize(VALUE self, VALUE parent, VALUE attributes, VALUE attributes_mask)
|
22
21
|
{
|
23
22
|
GdkWindow* win;
|
24
23
|
win = gdk_window_new(NIL_P(parent) ? NULL : _SELF(parent),
|
@@ -32,23 +31,20 @@ gdkwin_initialize(self, parent, attributes, attributes_mask)
|
|
32
31
|
}
|
33
32
|
|
34
33
|
static VALUE
|
35
|
-
gdkwin_destroy(self)
|
36
|
-
VALUE self;
|
34
|
+
gdkwin_destroy(VALUE self)
|
37
35
|
{
|
38
36
|
gdk_window_destroy(_SELF(self));
|
39
37
|
return Qnil;
|
40
38
|
}
|
41
39
|
|
42
40
|
static VALUE
|
43
|
-
gdkwin_get_window_type(self)
|
44
|
-
VALUE self;
|
41
|
+
gdkwin_get_window_type(VALUE self)
|
45
42
|
{
|
46
43
|
return GENUM2RVAL(gdk_window_get_window_type(_SELF(self)), GDK_TYPE_WINDOW_TYPE);
|
47
44
|
}
|
48
45
|
|
49
46
|
static VALUE
|
50
|
-
gdkwin_s_at_pointer(self)
|
51
|
-
VALUE self;
|
47
|
+
gdkwin_s_at_pointer(VALUE self)
|
52
48
|
{
|
53
49
|
gint x, y;
|
54
50
|
GdkWindow* win = gdk_window_at_pointer(&x, &y);
|
@@ -56,117 +52,102 @@ gdkwin_s_at_pointer(self)
|
|
56
52
|
}
|
57
53
|
|
58
54
|
static VALUE
|
59
|
-
gdkwin_show(self)
|
60
|
-
VALUE self;
|
55
|
+
gdkwin_show(VALUE self)
|
61
56
|
{
|
62
57
|
gdk_window_show(_SELF(self));
|
63
58
|
return self;
|
64
59
|
}
|
65
60
|
|
66
61
|
static VALUE
|
67
|
-
gdkwin_show_unraised(self)
|
68
|
-
VALUE self;
|
62
|
+
gdkwin_show_unraised(VALUE self)
|
69
63
|
{
|
70
64
|
gdk_window_show_unraised(_SELF(self));
|
71
65
|
return self;
|
72
66
|
}
|
73
67
|
|
74
68
|
static VALUE
|
75
|
-
gdkwin_hide(self)
|
76
|
-
VALUE self;
|
69
|
+
gdkwin_hide(VALUE self)
|
77
70
|
{
|
78
71
|
gdk_window_hide(_SELF(self));
|
79
72
|
return Qnil;
|
80
73
|
}
|
81
74
|
|
82
75
|
static VALUE
|
83
|
-
gdkwin_is_visible(self)
|
84
|
-
VALUE self;
|
76
|
+
gdkwin_is_visible(VALUE self)
|
85
77
|
{
|
86
78
|
return CBOOL2RVAL(gdk_window_is_visible(_SELF(self)));
|
87
79
|
}
|
88
80
|
|
89
81
|
static VALUE
|
90
|
-
gdkwin_is_viewable(self)
|
91
|
-
VALUE self;
|
82
|
+
gdkwin_is_viewable(VALUE self)
|
92
83
|
{
|
93
84
|
return CBOOL2RVAL(gdk_window_is_viewable(_SELF(self)));
|
94
85
|
}
|
95
86
|
|
96
87
|
static VALUE
|
97
|
-
gdkwin_get_state(self)
|
98
|
-
VALUE self;
|
88
|
+
gdkwin_get_state(VALUE self)
|
99
89
|
{
|
100
90
|
return GENUM2RVAL(gdk_window_get_state(_SELF(self)), GDK_TYPE_WINDOW_STATE);
|
101
91
|
}
|
102
92
|
|
103
93
|
static VALUE
|
104
|
-
gdkwin_withdraw(self)
|
105
|
-
VALUE self;
|
94
|
+
gdkwin_withdraw(VALUE self)
|
106
95
|
{
|
107
96
|
gdk_window_withdraw(_SELF(self));
|
108
97
|
return Qnil;
|
109
98
|
}
|
110
99
|
|
111
100
|
static VALUE
|
112
|
-
gdkwin_iconify(self)
|
113
|
-
VALUE self;
|
101
|
+
gdkwin_iconify(VALUE self)
|
114
102
|
{
|
115
103
|
gdk_window_iconify(_SELF(self));
|
116
104
|
return self;
|
117
105
|
}
|
118
106
|
|
119
107
|
static VALUE
|
120
|
-
gdkwin_deiconify(self)
|
121
|
-
VALUE self;
|
108
|
+
gdkwin_deiconify(VALUE self)
|
122
109
|
{
|
123
110
|
gdk_window_deiconify(_SELF(self));
|
124
111
|
return self;
|
125
112
|
}
|
126
113
|
|
127
114
|
static VALUE
|
128
|
-
gdkwin_stick(self)
|
129
|
-
VALUE self;
|
115
|
+
gdkwin_stick(VALUE self)
|
130
116
|
{
|
131
117
|
gdk_window_stick(_SELF(self));
|
132
118
|
return self;
|
133
119
|
}
|
134
120
|
|
135
121
|
static VALUE
|
136
|
-
gdkwin_unstick(self)
|
137
|
-
VALUE self;
|
122
|
+
gdkwin_unstick(VALUE self)
|
138
123
|
{
|
139
124
|
gdk_window_unstick(_SELF(self));
|
140
125
|
return self;
|
141
126
|
}
|
142
127
|
|
143
128
|
static VALUE
|
144
|
-
gdkwin_maximize(self)
|
145
|
-
VALUE self;
|
129
|
+
gdkwin_maximize(VALUE self)
|
146
130
|
{
|
147
131
|
gdk_window_maximize(_SELF(self));
|
148
132
|
return self;
|
149
133
|
}
|
150
134
|
|
151
135
|
static VALUE
|
152
|
-
gdkwin_unmaximize(self)
|
153
|
-
VALUE self;
|
136
|
+
gdkwin_unmaximize(VALUE self)
|
154
137
|
{
|
155
138
|
gdk_window_unmaximize(_SELF(self));
|
156
139
|
return self;
|
157
140
|
}
|
158
141
|
#if GTK_CHECK_VERSION(2,2,0)
|
159
142
|
static VALUE
|
160
|
-
gdkwin_fullscreen(self)
|
161
|
-
VALUE self;
|
143
|
+
gdkwin_fullscreen(VALUE self)
|
162
144
|
{
|
163
145
|
gdk_window_fullscreen(_SELF(self));
|
164
146
|
return self;
|
165
147
|
}
|
166
148
|
|
167
149
|
static VALUE
|
168
|
-
gdkwin_unfullscreen(self)
|
169
|
-
VALUE self;
|
150
|
+
gdkwin_unfullscreen(VALUE self)
|
170
151
|
{
|
171
152
|
gdk_window_unfullscreen(_SELF(self));
|
172
153
|
return self;
|
@@ -174,16 +155,14 @@ gdkwin_unfullscreen(self)
|
|
174
155
|
#endif
|
175
156
|
#if GTK_CHECK_VERSION(2,4,0)
|
176
157
|
static VALUE
|
177
|
-
gdkwin_set_keep_above(self, setting)
|
178
|
-
VALUE self, setting;
|
158
|
+
gdkwin_set_keep_above(VALUE self, VALUE setting)
|
179
159
|
{
|
180
160
|
gdk_window_set_keep_above(_SELF(self), RVAL2CBOOL(setting));
|
181
161
|
return self;
|
182
162
|
}
|
183
163
|
|
184
164
|
static VALUE
|
185
|
-
gdkwin_set_keep_below(self, setting)
|
186
|
-
VALUE self, setting;
|
165
|
+
gdkwin_set_keep_below(VALUE self, VALUE setting)
|
187
166
|
{
|
188
167
|
gdk_window_set_keep_below(_SELF(self), RVAL2CBOOL(setting));
|
189
168
|
return self;
|
@@ -191,32 +170,28 @@ gdkwin_set_keep_below(self, setting)
|
|
191
170
|
#endif
|
192
171
|
|
193
172
|
static VALUE
|
194
|
-
gdkwin_move(self, x, y)
|
195
|
-
VALUE self, x, y;
|
173
|
+
gdkwin_move(VALUE self, VALUE x, VALUE y)
|
196
174
|
{
|
197
175
|
gdk_window_move(_SELF(self), NUM2INT(x), NUM2INT(y));
|
198
176
|
return self;
|
199
177
|
}
|
200
178
|
|
201
179
|
static VALUE
|
202
|
-
gdkwin_resize(self, w, h)
|
203
|
-
VALUE self, w, h;
|
180
|
+
gdkwin_resize(VALUE self, VALUE w, VALUE h)
|
204
181
|
{
|
205
182
|
gdk_window_resize(_SELF(self), NUM2INT(w), NUM2INT(h));
|
206
183
|
return self;
|
207
184
|
}
|
208
185
|
|
209
186
|
static VALUE
|
210
|
-
gdkwin_move_resize(self, x, y, w, h)
|
211
|
-
VALUE self, x, y, w, h;
|
187
|
+
gdkwin_move_resize(VALUE self, VALUE x, VALUE y, VALUE w, VALUE h)
|
212
188
|
{
|
213
189
|
gdk_window_move_resize(_SELF(self), NUM2INT(x), NUM2INT(y), NUM2INT(w), NUM2INT(h));
|
214
190
|
return self;
|
215
191
|
}
|
216
192
|
|
217
193
|
static VALUE
|
218
|
-
gdkwin_scroll(self, dx, dy)
|
219
|
-
VALUE self, dx, dy;
|
194
|
+
gdkwin_scroll(VALUE self, VALUE dx, VALUE dy)
|
220
195
|
{
|
221
196
|
gdk_window_scroll(_SELF(self), NUM2INT(dx), NUM2INT(dy));
|
222
197
|
return self;
|
@@ -224,8 +199,7 @@ gdkwin_scroll(self, dx, dy)
|
|
224
199
|
|
225
200
|
#if GTK_CHECK_VERSION(2,8,0)
|
226
201
|
static VALUE
|
227
|
-
gdkwin_move_region(self, region, dx, dy)
|
228
|
-
VALUE self, region, dx, dy;
|
202
|
+
gdkwin_move_region(VALUE self, VALUE region, VALUE dx, VALUE dy)
|
229
203
|
{
|
230
204
|
gdk_window_move_region(_SELF(self),
|
231
205
|
(GdkRegion*)RVAL2BOXED(region, GDK_TYPE_REGION),
|
@@ -236,26 +210,21 @@ gdkwin_move_region(self, region, dx, dy)
|
|
236
210
|
#endif
|
237
211
|
|
238
212
|
static VALUE
|
239
|
-
gdkwin_reparent(self, new_parent, x, y)
|
240
|
-
VALUE self, new_parent, x, y;
|
213
|
+
gdkwin_reparent(VALUE self, VALUE new_parent, VALUE x, VALUE y)
|
241
214
|
{
|
242
215
|
gdk_window_reparent(_SELF(self), _SELF(new_parent), NUM2INT(x), NUM2INT(y));
|
243
216
|
return self;
|
244
217
|
}
|
245
218
|
|
246
219
|
static VALUE
|
247
|
-
gdkwin_clear(self)
|
248
|
-
VALUE self;
|
220
|
+
gdkwin_clear(VALUE self)
|
249
221
|
{
|
250
222
|
gdk_window_clear(_SELF(self));
|
251
223
|
return self;
|
252
224
|
}
|
253
225
|
|
254
226
|
static VALUE
|
255
|
-
gdkwin_clear_area(argc, argv, self)
|
256
|
-
int argc;
|
257
|
-
VALUE *argv;
|
258
|
-
VALUE self;
|
227
|
+
gdkwin_clear_area(int argc, VALUE *argv, VALUE self)
|
259
228
|
{
|
260
229
|
VALUE gen_expose, x, y, w, h;
|
261
230
|
rb_scan_args(argc, argv, "41", &x, &y, &w, &h, &gen_expose);
|
@@ -275,40 +244,35 @@ gdkwin_clear_area(argc, argv, self)
|
|
275
244
|
*/
|
276
245
|
|
277
246
|
static VALUE
|
278
|
-
gdkwin_raise(self)
|
279
|
-
VALUE self;
|
247
|
+
gdkwin_raise(VALUE self)
|
280
248
|
{
|
281
249
|
gdk_window_raise(_SELF(self));
|
282
250
|
return self;
|
283
251
|
}
|
284
252
|
|
285
253
|
static VALUE
|
286
|
-
gdkwin_lower(self)
|
287
|
-
VALUE self;
|
254
|
+
gdkwin_lower(VALUE self)
|
288
255
|
{
|
289
256
|
gdk_window_lower(_SELF(self));
|
290
257
|
return self;
|
291
258
|
}
|
292
259
|
|
293
260
|
static VALUE
|
294
|
-
gdkwin_focus(self, timestamp)
|
295
|
-
VALUE self, timestamp;
|
261
|
+
gdkwin_focus(VALUE self, VALUE timestamp)
|
296
262
|
{
|
297
263
|
gdk_window_focus(_SELF(self), NUM2UINT(timestamp));
|
298
264
|
return self;
|
299
265
|
}
|
300
266
|
|
301
267
|
static VALUE
|
302
|
-
gdkwin_register_dnd(self)
|
303
|
-
VALUE self;
|
268
|
+
gdkwin_register_dnd(VALUE self)
|
304
269
|
{
|
305
270
|
gdk_window_register_dnd(_SELF(self));
|
306
271
|
return self;
|
307
272
|
}
|
308
273
|
|
309
274
|
static VALUE
|
310
|
-
gdkwin_begin_resize_drag(self, edge, button, root_x, root_y, timestamp)
|
311
|
-
VALUE self, edge, button, root_x, root_y, timestamp;
|
275
|
+
gdkwin_begin_resize_drag(VALUE self, VALUE edge, VALUE button, VALUE root_x, VALUE root_y, VALUE timestamp)
|
312
276
|
{
|
313
277
|
gdk_window_begin_resize_drag(_SELF(self),
|
314
278
|
RVAL2GENUM(edge, GDK_TYPE_WINDOW_EDGE),
|
@@ -319,8 +283,7 @@ gdkwin_begin_resize_drag(self, edge, button, root_x, root_y, timestamp)
|
|
319
283
|
}
|
320
284
|
|
321
285
|
static VALUE
|
322
|
-
gdkwin_begin_move_drag(self, button, root_x, root_y, timestamp)
|
323
|
-
VALUE self, button, root_x, root_y, timestamp;
|
286
|
+
gdkwin_begin_move_drag(VALUE self, VALUE button, VALUE root_x, VALUE root_y, VALUE timestamp)
|
324
287
|
{
|
325
288
|
gdk_window_begin_move_drag(_SELF(self), NUM2INT(button),
|
326
289
|
NUM2INT(root_x), NUM2INT(root_y),
|
@@ -329,8 +292,7 @@ gdkwin_begin_move_drag(self, button, root_x, root_y, timestamp)
|
|
329
292
|
}
|
330
293
|
|
331
294
|
static VALUE
|
332
|
-
gdkwin_s_constrain_size(self, geometry, flags, w, h)
|
333
|
-
VALUE self, geometry, flags, w, h;
|
295
|
+
gdkwin_s_constrain_size(VALUE self, VALUE geometry, VALUE flags, VALUE w, VALUE h)
|
334
296
|
{
|
335
297
|
gint new_width, new_height;
|
336
298
|
gdk_window_constrain_size((GdkGeometry*)RVAL2BOXED(geometry, GDK_TYPE_GEOMETRY),
|
@@ -349,8 +311,7 @@ gdkwin_beep(VALUE self)
|
|
349
311
|
#endif
|
350
312
|
|
351
313
|
static VALUE
|
352
|
-
gdkwin_begin_paint(self, area)
|
353
|
-
VALUE self, area;
|
314
|
+
gdkwin_begin_paint(VALUE self, VALUE area)
|
354
315
|
{
|
355
316
|
if (rb_obj_is_kind_of(area, GTYPE2CLASS(GDK_TYPE_RECTANGLE))){
|
356
317
|
gdk_window_begin_paint_rect(_SELF(self),
|
@@ -363,16 +324,14 @@ gdkwin_begin_paint(self, area)
|
|
363
324
|
}
|
364
325
|
|
365
326
|
static VALUE
|
366
|
-
gdkwin_end_paint(self)
|
367
|
-
VALUE self;
|
327
|
+
gdkwin_end_paint(VALUE self)
|
368
328
|
{
|
369
329
|
gdk_window_end_paint(_SELF(self));
|
370
330
|
return self;
|
371
331
|
}
|
372
332
|
|
373
333
|
static VALUE
|
374
|
-
gdkwin_invalidate(self, area, invalidate_children)
|
375
|
-
VALUE self, area, invalidate_children;
|
334
|
+
gdkwin_invalidate(VALUE self, VALUE area, VALUE invalidate_children)
|
376
335
|
{
|
377
336
|
if (rb_obj_is_kind_of(area, GTYPE2CLASS(GDK_TYPE_REGION))){
|
378
337
|
gdk_window_invalidate_region(_SELF(self),
|
@@ -387,9 +346,7 @@ gdkwin_invalidate(self, area, invalidate_children)
|
|
387
346
|
}
|
388
347
|
|
389
348
|
static gboolean
|
390
|
-
invalidate_child_func_wrap(window, func)
|
391
|
-
GdkWindow* window;
|
392
|
-
VALUE func;
|
349
|
+
invalidate_child_func_wrap(GdkWindow *window, VALUE func)
|
393
350
|
{
|
394
351
|
VALUE result = rb_funcall(func, id_call, 1, GOBJ2RVAL(window));
|
395
352
|
return RVAL2CBOOL(result);
|
@@ -398,8 +355,7 @@ invalidate_child_func_wrap(window, func)
|
|
398
355
|
typedef gboolean (*ChildFunc) (GdkWindow*, gpointer);
|
399
356
|
|
400
357
|
static VALUE
|
401
|
-
gdkwin_invalidate_maybe_recurse(self, region)
|
402
|
-
VALUE self, region;
|
358
|
+
gdkwin_invalidate_maybe_recurse(VALUE self, VALUE region)
|
403
359
|
{
|
404
360
|
VALUE func = (VALUE)NULL;
|
405
361
|
if (rb_block_given_p()){
|
@@ -414,56 +370,49 @@ gdkwin_invalidate_maybe_recurse(self, region)
|
|
414
370
|
}
|
415
371
|
|
416
372
|
static VALUE
|
417
|
-
gdkwin_get_update_area(self)
|
418
|
-
VALUE self;
|
373
|
+
gdkwin_get_update_area(VALUE self)
|
419
374
|
{
|
420
375
|
GdkRegion* ret = gdk_window_get_update_area(_SELF(self));
|
421
376
|
return BOXED2RVAL(ret, GDK_TYPE_REGION);
|
422
377
|
}
|
423
378
|
|
424
379
|
static VALUE
|
425
|
-
gdkwin_freeze_updates(self)
|
426
|
-
VALUE self;
|
380
|
+
gdkwin_freeze_updates(VALUE self)
|
427
381
|
{
|
428
382
|
gdk_window_freeze_updates(_SELF(self));
|
429
383
|
return self;
|
430
384
|
}
|
431
385
|
|
432
386
|
static VALUE
|
433
|
-
gdkwin_thaw_updates(self)
|
434
|
-
VALUE self;
|
387
|
+
gdkwin_thaw_updates(VALUE self)
|
435
388
|
{
|
436
389
|
gdk_window_thaw_updates(_SELF(self));
|
437
390
|
return self;
|
438
391
|
}
|
439
392
|
|
440
393
|
static VALUE
|
441
|
-
gdkwin_s_process_all_updates(self)
|
442
|
-
VALUE self;
|
394
|
+
gdkwin_s_process_all_updates(VALUE self)
|
443
395
|
{
|
444
396
|
gdk_window_process_all_updates();
|
445
397
|
return self;
|
446
398
|
}
|
447
399
|
|
448
400
|
static VALUE
|
449
|
-
gdkwin_process_updates(self, update_children)
|
450
|
-
VALUE self, update_children;
|
401
|
+
gdkwin_process_updates(VALUE self, VALUE update_children)
|
451
402
|
{
|
452
403
|
gdk_window_process_updates(_SELF(self), RVAL2CBOOL(update_children));
|
453
404
|
return self;
|
454
405
|
}
|
455
406
|
|
456
407
|
static VALUE
|
457
|
-
gdkwin_s_set_debug_updates(self, setting)
|
458
|
-
VALUE self, setting;
|
408
|
+
gdkwin_s_set_debug_updates(VALUE self, VALUE setting)
|
459
409
|
{
|
460
410
|
gdk_window_set_debug_updates(RVAL2CBOOL(setting));
|
461
411
|
return self;
|
462
412
|
}
|
463
413
|
|
464
414
|
static VALUE
|
465
|
-
gdkwin_get_internal_paint_info(self)
|
466
|
-
VALUE self;
|
415
|
+
gdkwin_get_internal_paint_info(VALUE self)
|
467
416
|
{
|
468
417
|
GdkDrawable* real_drawable;
|
469
418
|
gint x_offset, y_offset;
|
@@ -476,16 +425,14 @@ gdkwin_get_internal_paint_info(self)
|
|
476
425
|
|
477
426
|
#if GTK_CHECK_VERSION(2,6,0)
|
478
427
|
static VALUE
|
479
|
-
gdkwin_configure_finished(self)
|
480
|
-
VALUE self;
|
428
|
+
gdkwin_configure_finished(VALUE self)
|
481
429
|
{
|
482
430
|
gdk_window_configure_finished(_SELF(self));
|
483
431
|
return self;
|
484
432
|
}
|
485
433
|
|
486
434
|
static VALUE
|
487
|
-
gdkwin_enable_synchronized_configure(self)
|
488
|
-
VALUE self;
|
435
|
+
gdkwin_enable_synchronized_configure(VALUE self)
|
489
436
|
{
|
490
437
|
gdk_window_enable_synchronized_configure(_SELF(self));
|
491
438
|
|
@@ -497,16 +444,14 @@ gdkwin_enable_synchronized_configure(self)
|
|
497
444
|
#endif
|
498
445
|
|
499
446
|
static VALUE
|
500
|
-
gdkwin_set_user_data(self, user_data)
|
501
|
-
VALUE self, user_data;
|
447
|
+
gdkwin_set_user_data(VALUE self, VALUE user_data)
|
502
448
|
{
|
503
449
|
gdk_window_set_user_data(_SELF(self), (gpointer)RVAL2GOBJ(user_data));
|
504
450
|
return self;
|
505
451
|
}
|
506
452
|
|
507
453
|
static VALUE
|
508
|
-
gdkwin_set_override_redirect(self, override_redirect)
|
509
|
-
VALUE self, override_redirect;
|
454
|
+
gdkwin_set_override_redirect(VALUE self, VALUE override_redirect)
|
510
455
|
{
|
511
456
|
gdk_window_set_override_redirect(_SELF(self),
|
512
457
|
RVAL2CBOOL(override_redirect));
|
@@ -515,8 +460,7 @@ gdkwin_set_override_redirect(self, override_redirect)
|
|
515
460
|
|
516
461
|
#if GTK_CHECK_VERSION(2,4,0)
|
517
462
|
static VALUE
|
518
|
-
gdkwin_set_accept_focus(self, accept_focus)
|
519
|
-
VALUE self, accept_focus;
|
463
|
+
gdkwin_set_accept_focus(VALUE self, VALUE accept_focus)
|
520
464
|
{
|
521
465
|
gdk_window_set_accept_focus(_SELF(self), RVAL2CBOOL(accept_focus));
|
522
466
|
return self;
|
@@ -525,8 +469,7 @@ gdkwin_set_accept_focus(self, accept_focus)
|
|
525
469
|
|
526
470
|
#if GTK_CHECK_VERSION(2,6,0)
|
527
471
|
static VALUE
|
528
|
-
gdkwin_set_focus_on_map(self, focus_on_map)
|
529
|
-
VALUE self, focus_on_map;
|
472
|
+
gdkwin_set_focus_on_map(VALUE self, VALUE focus_on_map)
|
530
473
|
{
|
531
474
|
gdk_window_set_focus_on_map(_SELF(self), RVAL2CBOOL(focus_on_map));
|
532
475
|
return self;
|
@@ -546,8 +489,7 @@ gdkwin_set_focus_on_map(self, focus_on_map)
|
|
546
489
|
*/
|
547
490
|
|
548
491
|
static VALUE
|
549
|
-
gdkwin_shape_combine_mask(self, shape_mask, offset_x, offset_y)
|
550
|
-
VALUE self, shape_mask, offset_x, offset_y;
|
492
|
+
gdkwin_shape_combine_mask(VALUE self, VALUE shape_mask, VALUE offset_x, VALUE offset_y)
|
551
493
|
{
|
552
494
|
gdk_window_shape_combine_mask(_SELF(self),
|
553
495
|
GDK_BITMAP(RVAL2GOBJ(shape_mask)),
|
@@ -556,8 +498,7 @@ gdkwin_shape_combine_mask(self, shape_mask, offset_x, offset_y)
|
|
556
498
|
}
|
557
499
|
|
558
500
|
static VALUE
|
559
|
-
gdkwin_shape_combine_region(self, shape_region, offset_x, offset_y)
|
560
|
-
VALUE self, shape_region, offset_x, offset_y;
|
501
|
+
gdkwin_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x, VALUE offset_y)
|
561
502
|
{
|
562
503
|
gdk_window_shape_combine_region(_SELF(self),
|
563
504
|
NIL_P(shape_region) ? NULL : (GdkRegion*)RVAL2BOXED(shape_region, GDK_TYPE_REGION),
|
@@ -566,16 +507,14 @@ gdkwin_shape_combine_region(self, shape_region, offset_x, offset_y)
|
|
566
507
|
}
|
567
508
|
|
568
509
|
static VALUE
|
569
|
-
gdkwin_set_child_shapes(self)
|
570
|
-
VALUE self;
|
510
|
+
gdkwin_set_child_shapes(VALUE self)
|
571
511
|
{
|
572
512
|
gdk_window_set_child_shapes(_SELF(self));
|
573
513
|
return self;
|
574
514
|
}
|
575
515
|
|
576
516
|
static VALUE
|
577
|
-
gdkwin_merge_child_shapes(self)
|
578
|
-
VALUE self;
|
517
|
+
gdkwin_merge_child_shapes(VALUE self)
|
579
518
|
{
|
580
519
|
gdk_window_merge_child_shapes(_SELF(self));
|
581
520
|
return self;
|
@@ -583,8 +522,7 @@ gdkwin_merge_child_shapes(self)
|
|
583
522
|
|
584
523
|
#if GTK_CHECK_VERSION(2,10,0)
|
585
524
|
static VALUE
|
586
|
-
gdkwin_input_shape_combine_mask(self, mask, x, y)
|
587
|
-
VALUE self, mask, x, y;
|
525
|
+
gdkwin_input_shape_combine_mask(VALUE self, VALUE mask, VALUE x, VALUE y)
|
588
526
|
{
|
589
527
|
gdk_window_input_shape_combine_mask(_SELF(self),
|
590
528
|
GDK_BITMAP(RVAL2GOBJ(mask)),
|
@@ -593,8 +531,7 @@ gdkwin_input_shape_combine_mask(self, mask, x, y)
|
|
593
531
|
}
|
594
532
|
|
595
533
|
static VALUE
|
596
|
-
gdkwin_input_shape_combine_region(self, shape_region, offset_x, offset_y)
|
597
|
-
VALUE self, shape_region, offset_x, offset_y;
|
534
|
+
gdkwin_input_shape_combine_region(VALUE self, VALUE shape_region, VALUE offset_x, VALUE offset_y)
|
598
535
|
{
|
599
536
|
gdk_window_input_shape_combine_region(_SELF(self),
|
600
537
|
(GdkRegion*)RVAL2BOXED(shape_region, GDK_TYPE_REGION),
|
@@ -604,16 +541,14 @@ gdkwin_input_shape_combine_region(self, shape_region, offset_x, offset_y)
|
|
604
541
|
}
|
605
542
|
|
606
543
|
static VALUE
|
607
|
-
gdkwin_set_child_input_shapes(self)
|
608
|
-
VALUE self;
|
544
|
+
gdkwin_set_child_input_shapes(VALUE self)
|
609
545
|
{
|
610
546
|
gdk_window_set_child_input_shapes(_SELF(self));
|
611
547
|
return self;
|
612
548
|
}
|
613
549
|
|
614
550
|
static VALUE
|
615
|
-
gdkwin_merge_child_input_shapes(self)
|
616
|
-
VALUE self;
|
551
|
+
gdkwin_merge_child_input_shapes(VALUE self)
|
617
552
|
{
|
618
553
|
gdk_window_merge_child_input_shapes(_SELF(self));
|
619
554
|
return self;
|
@@ -622,8 +557,7 @@ gdkwin_merge_child_input_shapes(self)
|
|
622
557
|
#endif
|
623
558
|
|
624
559
|
static VALUE
|
625
|
-
gdkwin_set_static_gravities(self, use_static)
|
626
|
-
VALUE self, use_static;
|
560
|
+
gdkwin_set_static_gravities(VALUE self, VALUE use_static)
|
627
561
|
{
|
628
562
|
gboolean ret = gdk_window_set_static_gravities(_SELF(self),
|
629
563
|
RVAL2CBOOL(use_static));
|
@@ -638,24 +572,21 @@ gdkwin_set_static_gravities(self, use_static)
|
|
638
572
|
*/
|
639
573
|
|
640
574
|
static VALUE
|
641
|
-
gdkwin_set_title(self, title)
|
642
|
-
VALUE self, title;
|
575
|
+
gdkwin_set_title(VALUE self, VALUE title)
|
643
576
|
{
|
644
577
|
gdk_window_set_title(_SELF(self),RVAL2CSTR(title));
|
645
578
|
return self;
|
646
579
|
}
|
647
580
|
|
648
581
|
static VALUE
|
649
|
-
gdkwin_set_background(self, color)
|
650
|
-
VALUE self, color;
|
582
|
+
gdkwin_set_background(VALUE self, VALUE color)
|
651
583
|
{
|
652
584
|
gdk_window_set_background(_SELF(self), RVAL2GDKCOLOR(color));
|
653
585
|
return self;
|
654
586
|
}
|
655
587
|
|
656
588
|
static VALUE
|
657
|
-
gdkwin_set_back_pixmap(self, pixmap, parent_relative)
|
658
|
-
VALUE self, pixmap, parent_relative;
|
589
|
+
gdkwin_set_back_pixmap(VALUE self, VALUE pixmap, VALUE parent_relative)
|
659
590
|
{
|
660
591
|
gdk_window_set_back_pixmap(_SELF(self),
|
661
592
|
GDK_PIXMAP(RVAL2GOBJ(pixmap)),
|
@@ -665,8 +596,7 @@ gdkwin_set_back_pixmap(self, pixmap, parent_relative)
|
|
665
596
|
|
666
597
|
#if !GTK_CHECK_VERSION(2, 18, 0)
|
667
598
|
static VALUE
|
668
|
-
gdkwin_set_cursor(self, cursor)
|
669
|
-
VALUE self, cursor;
|
599
|
+
gdkwin_set_cursor(VALUE self, VALUE cursor)
|
670
600
|
{
|
671
601
|
gdk_window_set_cursor(_SELF(self),
|
672
602
|
(GdkCursor*)(NIL_P(cursor) ? NULL : RVAL2BOXED(cursor, GDK_TYPE_CURSOR)));
|
@@ -680,8 +610,7 @@ gdkwin_set_cursor(self, cursor)
|
|
680
610
|
*/
|
681
611
|
|
682
612
|
static VALUE
|
683
|
-
gdkwin_get_user_data(self)
|
684
|
-
VALUE self;
|
613
|
+
gdkwin_get_user_data(VALUE self)
|
685
614
|
{
|
686
615
|
GObject *data = NULL;
|
687
616
|
gdk_window_get_user_data(_SELF(self), (gpointer)&data);
|
@@ -689,8 +618,7 @@ gdkwin_get_user_data(self)
|
|
689
618
|
}
|
690
619
|
|
691
620
|
static VALUE
|
692
|
-
gdkwin_get_geometry(self)
|
693
|
-
VALUE self;
|
621
|
+
gdkwin_get_geometry(VALUE self)
|
694
622
|
{
|
695
623
|
gint x, y, w, h, d;
|
696
624
|
gdk_window_get_geometry(_SELF(self), &x, &y, &w, &h, &d);
|
@@ -699,8 +627,7 @@ gdkwin_get_geometry(self)
|
|
699
627
|
}
|
700
628
|
|
701
629
|
static VALUE
|
702
|
-
gdkwin_set_geometry_hints(self, geometry, geom_mask)
|
703
|
-
VALUE self, geometry, geom_mask;
|
630
|
+
gdkwin_set_geometry_hints(VALUE self, VALUE geometry, VALUE geom_mask)
|
704
631
|
{
|
705
632
|
gdk_window_set_geometry_hints(_SELF(self),
|
706
633
|
NIL_P(geometry) ? (GdkGeometry*)NULL : (GdkGeometry*)RVAL2BOXED(geometry, GDK_TYPE_GEOMETRY),
|
@@ -709,8 +636,7 @@ gdkwin_set_geometry_hints(self, geometry, geom_mask)
|
|
709
636
|
}
|
710
637
|
|
711
638
|
static VALUE
|
712
|
-
gdkwin_set_icon_list(self, pixbufs)
|
713
|
-
VALUE self, pixbufs;
|
639
|
+
gdkwin_set_icon_list(VALUE self, VALUE pixbufs)
|
714
640
|
{
|
715
641
|
int i;
|
716
642
|
GList *glist = NULL;
|
@@ -725,16 +651,14 @@ gdkwin_set_icon_list(self, pixbufs)
|
|
725
651
|
}
|
726
652
|
|
727
653
|
static VALUE
|
728
|
-
gdkwin_set_modal_hint(self, modal)
|
729
|
-
VALUE self, modal;
|
654
|
+
gdkwin_set_modal_hint(VALUE self, VALUE modal)
|
730
655
|
{
|
731
656
|
gdk_window_set_modal_hint(_SELF(self), RVAL2CBOOL(modal));
|
732
657
|
return self;
|
733
658
|
}
|
734
659
|
|
735
660
|
static VALUE
|
736
|
-
gdkwin_set_type_hint(self, hint)
|
737
|
-
VALUE self, hint;
|
661
|
+
gdkwin_set_type_hint(VALUE self, VALUE hint)
|
738
662
|
{
|
739
663
|
gdk_window_set_type_hint(_SELF(self), RVAL2GENUM(hint, GDK_TYPE_WINDOW_TYPE_HINT));
|
740
664
|
return self;
|
@@ -742,8 +666,7 @@ gdkwin_set_type_hint(self, hint)
|
|
742
666
|
|
743
667
|
#if GTK_CHECK_VERSION(2,10,0)
|
744
668
|
static VALUE
|
745
|
-
gdkwin_get_type_hint(self)
|
746
|
-
VALUE self;
|
669
|
+
gdkwin_get_type_hint(VALUE self)
|
747
670
|
{
|
748
671
|
return GENUM2RVAL(gdk_window_get_type_hint(_SELF(self)), GDK_TYPE_WINDOW_TYPE_HINT);
|
749
672
|
}
|
@@ -751,16 +674,14 @@ gdkwin_get_type_hint(self)
|
|
751
674
|
|
752
675
|
#if GTK_CHECK_VERSION(2,2,0)
|
753
676
|
static VALUE
|
754
|
-
gdkwin_set_skip_taskbar_hint(self, hint)
|
755
|
-
VALUE self, hint;
|
677
|
+
gdkwin_set_skip_taskbar_hint(VALUE self, VALUE hint)
|
756
678
|
{
|
757
679
|
gdk_window_set_skip_taskbar_hint(_SELF(self), RVAL2CBOOL(hint));
|
758
680
|
return self;
|
759
681
|
}
|
760
682
|
|
761
683
|
static VALUE
|
762
|
-
gdkwin_set_skip_pager_hint(self, hint)
|
763
|
-
VALUE self, hint;
|
684
|
+
gdkwin_set_skip_pager_hint(VALUE self, VALUE hint)
|
764
685
|
{
|
765
686
|
gdk_window_set_skip_pager_hint(_SELF(self), RVAL2CBOOL(hint));
|
766
687
|
return self;
|
@@ -769,8 +690,7 @@ gdkwin_set_skip_pager_hint(self, hint)
|
|
769
690
|
|
770
691
|
#if GTK_CHECK_VERSION(2,8,0)
|
771
692
|
static VALUE
|
772
|
-
gdkwin_set_urgency_hint(self, hint)
|
773
|
-
VALUE self, hint;
|
693
|
+
gdkwin_set_urgency_hint(VALUE self, VALUE hint)
|
774
694
|
{
|
775
695
|
gdk_window_set_urgency_hint(_SELF(self), RVAL2CBOOL(hint));
|
776
696
|
return self;
|
@@ -778,8 +698,7 @@ gdkwin_set_urgency_hint(self, hint)
|
|
778
698
|
#endif
|
779
699
|
|
780
700
|
static VALUE
|
781
|
-
gdkwin_get_position(self)
|
782
|
-
VALUE self;
|
701
|
+
gdkwin_get_position(VALUE self)
|
783
702
|
{
|
784
703
|
gint x, y;
|
785
704
|
gdk_window_get_position(_SELF(self), &x, &y);
|
@@ -787,8 +706,7 @@ gdkwin_get_position(self)
|
|
787
706
|
}
|
788
707
|
|
789
708
|
static VALUE
|
790
|
-
gdkwin_get_root_origin(self)
|
791
|
-
VALUE self;
|
709
|
+
gdkwin_get_root_origin(VALUE self)
|
792
710
|
{
|
793
711
|
int x, y;
|
794
712
|
gdk_window_get_root_origin(_SELF(self), &x, &y);
|
@@ -796,8 +714,7 @@ gdkwin_get_root_origin(self)
|
|
796
714
|
}
|
797
715
|
|
798
716
|
static VALUE
|
799
|
-
gdkwin_get_frame_extents(self)
|
800
|
-
VALUE self;
|
717
|
+
gdkwin_get_frame_extents(VALUE self)
|
801
718
|
{
|
802
719
|
GdkRectangle rect;
|
803
720
|
gdk_window_get_frame_extents(_SELF(self), &rect);
|
@@ -812,8 +729,7 @@ gdkwin_get_frame_extents(self)
|
|
812
729
|
*/
|
813
730
|
|
814
731
|
static VALUE
|
815
|
-
gdkwin_get_origin(self)
|
816
|
-
VALUE self;
|
732
|
+
gdkwin_get_origin(VALUE self)
|
817
733
|
{
|
818
734
|
gint x, y;
|
819
735
|
gdk_window_get_origin(_SELF(self), &x, &y);
|
@@ -828,8 +744,7 @@ gdkwin_get_origin(self)
|
|
828
744
|
*/
|
829
745
|
|
830
746
|
static VALUE
|
831
|
-
gdkwin_get_pointer(self)
|
832
|
-
VALUE self;
|
747
|
+
gdkwin_get_pointer(VALUE self)
|
833
748
|
{
|
834
749
|
gint x, y;
|
835
750
|
GdkModifierType state;
|
@@ -838,22 +753,19 @@ gdkwin_get_pointer(self)
|
|
838
753
|
}
|
839
754
|
|
840
755
|
static VALUE
|
841
|
-
gdkwin_get_parent(self)
|
842
|
-
VALUE self;
|
756
|
+
gdkwin_get_parent(VALUE self)
|
843
757
|
{
|
844
758
|
return GOBJ2RVAL(gdk_window_get_parent(_SELF(self)));
|
845
759
|
}
|
846
760
|
|
847
761
|
static VALUE
|
848
|
-
gdkwin_get_toplevel(self)
|
849
|
-
VALUE self;
|
762
|
+
gdkwin_get_toplevel(VALUE self)
|
850
763
|
{
|
851
764
|
return GOBJ2RVAL(gdk_window_get_toplevel(_SELF(self)));
|
852
765
|
}
|
853
766
|
|
854
767
|
static VALUE
|
855
|
-
gdkwin_get_children(self)
|
856
|
-
VALUE self;
|
768
|
+
gdkwin_get_children(VALUE self)
|
857
769
|
{
|
858
770
|
/* Don't use gdk_window_get_children() here */
|
859
771
|
GList* list = gdk_window_peek_children(_SELF(self));
|
@@ -866,23 +778,20 @@ gdkwin_get_children(self)
|
|
866
778
|
}
|
867
779
|
|
868
780
|
static VALUE
|
869
|
-
gdkwin_get_events(self)
|
870
|
-
VALUE self;
|
781
|
+
gdkwin_get_events(VALUE self)
|
871
782
|
{
|
872
783
|
return GFLAGS2RVAL(gdk_window_get_events(_SELF(self)), GDK_TYPE_EVENT_MASK);
|
873
784
|
}
|
874
785
|
|
875
786
|
static VALUE
|
876
|
-
gdkwin_set_events(self, mask)
|
877
|
-
VALUE self, mask;
|
787
|
+
gdkwin_set_events(VALUE self, VALUE mask)
|
878
788
|
{
|
879
789
|
gdk_window_set_events(_SELF(self), RVAL2GFLAGS(mask, GDK_TYPE_EVENT_MASK));
|
880
790
|
return self;
|
881
791
|
}
|
882
792
|
|
883
793
|
static VALUE
|
884
|
-
gdkwin_set_icon(self, icon, pixmap, mask)
|
885
|
-
VALUE self, icon, pixmap, mask;
|
794
|
+
gdkwin_set_icon(VALUE self, VALUE icon, VALUE pixmap, VALUE mask)
|
886
795
|
{
|
887
796
|
gdk_window_set_icon(_SELF(self), NIL_P(icon) ? NULL :_SELF(icon),
|
888
797
|
NIL_P(pixmap) ? NULL : GDK_PIXMAP(RVAL2GOBJ(pixmap)),
|
@@ -891,32 +800,28 @@ gdkwin_set_icon(self, icon, pixmap, mask)
|
|
891
800
|
}
|
892
801
|
|
893
802
|
static VALUE
|
894
|
-
gdkwin_set_icon_name(self, name)
|
895
|
-
VALUE self, name;
|
803
|
+
gdkwin_set_icon_name(VALUE self, VALUE name)
|
896
804
|
{
|
897
805
|
gdk_window_set_icon_name(_SELF(self), RVAL2CSTR(name));
|
898
806
|
return self;
|
899
807
|
}
|
900
808
|
|
901
809
|
static VALUE
|
902
|
-
gdkwin_set_transient_for(self, parent)
|
903
|
-
VALUE self, parent;
|
810
|
+
gdkwin_set_transient_for(VALUE self, VALUE parent)
|
904
811
|
{
|
905
812
|
gdk_window_set_transient_for(_SELF(self), _SELF(parent));
|
906
813
|
return self;
|
907
814
|
}
|
908
815
|
|
909
816
|
static VALUE
|
910
|
-
gdkwin_set_role(self, role)
|
911
|
-
VALUE self, role;
|
817
|
+
gdkwin_set_role(VALUE self, VALUE role)
|
912
818
|
{
|
913
819
|
gdk_window_set_role(_SELF(self), RVAL2CSTR(role));
|
914
820
|
return self;
|
915
821
|
}
|
916
822
|
|
917
823
|
static VALUE
|
918
|
-
gdkwin_set_group(self, leader)
|
919
|
-
VALUE self, leader;
|
824
|
+
gdkwin_set_group(VALUE self, VALUE leader)
|
920
825
|
{
|
921
826
|
gdk_window_set_group(_SELF(self), _SELF(leader));
|
922
827
|
return self;
|
@@ -924,24 +829,21 @@ gdkwin_set_group(self, leader)
|
|
924
829
|
|
925
830
|
#if GTK_CHECK_VERSION(2,4,0)
|
926
831
|
static VALUE
|
927
|
-
gdkwin_get_group(self)
|
928
|
-
VALUE self;
|
832
|
+
gdkwin_get_group(VALUE self)
|
929
833
|
{
|
930
834
|
return GOBJ2RVAL(gdk_window_get_group(_SELF(self)));
|
931
835
|
}
|
932
836
|
#endif
|
933
837
|
|
934
838
|
static VALUE
|
935
|
-
gdkwin_set_decorations(self, decor)
|
936
|
-
VALUE self, decor;
|
839
|
+
gdkwin_set_decorations(VALUE self, VALUE decor)
|
937
840
|
{
|
938
841
|
gdk_window_set_decorations(_SELF(self), RVAL2GFLAGS(decor, GDK_TYPE_WM_DECORATION));
|
939
842
|
return self;
|
940
843
|
}
|
941
844
|
|
942
845
|
static VALUE
|
943
|
-
gdkwin_get_decorations(self)
|
944
|
-
VALUE self;
|
846
|
+
gdkwin_get_decorations(VALUE self)
|
945
847
|
{
|
946
848
|
GdkWMDecoration decorations;
|
947
849
|
gboolean ret = gdk_window_get_decorations(_SELF(self), &decorations);
|
@@ -949,8 +851,7 @@ gdkwin_get_decorations(self)
|
|
949
851
|
}
|
950
852
|
|
951
853
|
static VALUE
|
952
|
-
gdkwin_set_functions(self, func)
|
953
|
-
VALUE self, func;
|
854
|
+
gdkwin_set_functions(VALUE self, VALUE func)
|
954
855
|
{
|
955
856
|
gdk_window_set_functions(_SELF(self), RVAL2GFLAGS(func, GDK_TYPE_WM_FUNCTION));
|
956
857
|
return self;
|
@@ -980,15 +881,13 @@ gdkwin_set_startup_id(VALUE self, VALUE startup_id)
|
|
980
881
|
#endif
|
981
882
|
|
982
883
|
static VALUE
|
983
|
-
gdkwin_s_get_toplevels(self)
|
984
|
-
VALUE self;
|
884
|
+
gdkwin_s_get_toplevels(VALUE self)
|
985
885
|
{
|
986
886
|
return GLIST2ARYF(gdk_window_get_toplevels());
|
987
887
|
}
|
988
888
|
|
989
889
|
static VALUE
|
990
|
-
gdkwin_s_get_default_root_window(self)
|
991
|
-
VALUE self;
|
890
|
+
gdkwin_s_get_default_root_window(VALUE self)
|
992
891
|
{
|
993
892
|
return GOBJ2RVAL(gdk_get_default_root_window());
|
994
893
|
}
|
@@ -1000,10 +899,7 @@ GdkPointerHooks* gdk_set_pointer_hooks (const GdkPointerHooks *new_hooks);
|
|
1000
899
|
|
1001
900
|
/* From X Window System Interaction */
|
1002
901
|
static VALUE
|
1003
|
-
gdkwin_foreign_new(argc, argv, self)
|
1004
|
-
int argc;
|
1005
|
-
VALUE *argv;
|
1006
|
-
VALUE self;
|
902
|
+
gdkwin_foreign_new(int argc, VALUE *argv, VALUE self)
|
1007
903
|
{
|
1008
904
|
VALUE arg[2];
|
1009
905
|
GdkWindow * win = NULL;
|
@@ -1032,10 +928,7 @@ gdkwin_foreign_new(argc, argv, self)
|
|
1032
928
|
}
|
1033
929
|
|
1034
930
|
static VALUE
|
1035
|
-
gdkwin_lookup(argc, argv, self)
|
1036
|
-
int argc;
|
1037
|
-
VALUE *argv;
|
1038
|
-
VALUE self;
|
931
|
+
gdkwin_lookup(int argc, VALUE *argv, VALUE self)
|
1039
932
|
{
|
1040
933
|
VALUE arg[2];
|
1041
934
|
GdkWindow * win = NULL;
|
@@ -1065,8 +958,7 @@ gdkwin_lookup(argc, argv, self)
|
|
1065
958
|
|
1066
959
|
#ifdef GDK_WINDOWING_X11
|
1067
960
|
static VALUE
|
1068
|
-
gdkwin_get_server_time(self)
|
1069
|
-
VALUE self;
|
961
|
+
gdkwin_get_server_time(VALUE self)
|
1070
962
|
{
|
1071
963
|
return UINT2NUM(gdk_x11_get_server_time(_SELF(self)));
|
1072
964
|
}
|
@@ -1082,8 +974,7 @@ gdkwin_set_user_time(VALUE self, VALUE time)
|
|
1082
974
|
|
1083
975
|
#if GTK_CHECK_VERSION(2,8,0)
|
1084
976
|
static VALUE
|
1085
|
-
gdkwin_move_to_current_desktop(self)
|
1086
|
-
VALUE self;
|
977
|
+
gdkwin_move_to_current_desktop(VALUE self)
|
1087
978
|
{
|
1088
979
|
gdk_x11_window_move_to_current_desktop(_SELF(self));
|
1089
980
|
return self;
|