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/rbgtkcurve.c
CHANGED
@@ -15,32 +15,28 @@
|
|
15
15
|
#include "global.h"
|
16
16
|
|
17
17
|
static VALUE
|
18
|
-
curve_initialize(self)
|
19
|
-
VALUE self;
|
18
|
+
curve_initialize(VALUE self)
|
20
19
|
{
|
21
20
|
RBGTK_INITIALIZE(self, gtk_curve_new());
|
22
21
|
return Qnil;
|
23
22
|
}
|
24
23
|
|
25
24
|
static VALUE
|
26
|
-
curve_reset(self)
|
27
|
-
VALUE self;
|
25
|
+
curve_reset(VALUE self)
|
28
26
|
{
|
29
27
|
gtk_curve_reset(GTK_CURVE(RVAL2GOBJ(self)));
|
30
28
|
return self;
|
31
29
|
}
|
32
30
|
|
33
31
|
static VALUE
|
34
|
-
curve_set_gamma(self, gamma)
|
35
|
-
VALUE self, gamma;
|
32
|
+
curve_set_gamma(VALUE self, VALUE gamma)
|
36
33
|
{
|
37
34
|
gtk_curve_set_gamma(GTK_CURVE(RVAL2GOBJ(self)), NUM2DBL(gamma));
|
38
35
|
return self;
|
39
36
|
}
|
40
37
|
|
41
38
|
static VALUE
|
42
|
-
curve_set_range(self, min_x, max_x, min_y, max_y)
|
43
|
-
VALUE self, min_x, max_x, min_y, max_y;
|
39
|
+
curve_set_range(VALUE self, VALUE min_x, VALUE max_x, VALUE min_y, VALUE max_y)
|
44
40
|
{
|
45
41
|
gtk_curve_set_range(GTK_CURVE(RVAL2GOBJ(self)),
|
46
42
|
NUM2DBL(min_x), NUM2DBL(max_x),
|
@@ -49,8 +45,7 @@ curve_set_range(self, min_x, max_x, min_y, max_y)
|
|
49
45
|
}
|
50
46
|
|
51
47
|
static VALUE
|
52
|
-
curve_set_vector(self, length, vector)
|
53
|
-
VALUE self, length, vector;
|
48
|
+
curve_set_vector(VALUE self, VALUE length, VALUE vector)
|
54
49
|
{
|
55
50
|
gint len = NUM2INT(length);
|
56
51
|
gfloat *c_vec;
|
@@ -66,8 +61,7 @@ curve_set_vector(self, length, vector)
|
|
66
61
|
}
|
67
62
|
|
68
63
|
static VALUE
|
69
|
-
curve_get_vector(self, length)
|
70
|
-
VALUE self, length;
|
64
|
+
curve_get_vector(VALUE self, VALUE length)
|
71
65
|
{
|
72
66
|
gint len = NUM2INT(length);
|
73
67
|
gfloat *c_vec;
|
data/ext/gtk2/rbgtkdialog.c
CHANGED
@@ -19,8 +19,7 @@
|
|
19
19
|
static ID id_to_a;
|
20
20
|
|
21
21
|
static VALUE
|
22
|
-
dialog_add_button(self, button_text, response_id)
|
23
|
-
VALUE self, button_text, response_id;
|
22
|
+
dialog_add_button(VALUE self, VALUE button_text, VALUE response_id)
|
24
23
|
{
|
25
24
|
const gchar *name;
|
26
25
|
if (SYMBOL_P(button_text)) {
|
@@ -33,8 +32,7 @@ dialog_add_button(self, button_text, response_id)
|
|
33
32
|
}
|
34
33
|
|
35
34
|
VALUE
|
36
|
-
rbgtk_dialog_add_buttons_internal(self, button_ary)
|
37
|
-
VALUE self, button_ary;
|
35
|
+
rbgtk_dialog_add_buttons_internal(VALUE self, VALUE button_ary)
|
38
36
|
{
|
39
37
|
int i;
|
40
38
|
GObject* obj = RVAL2GOBJ(self);
|
@@ -51,10 +49,7 @@ rbgtk_dialog_add_buttons_internal(self, button_ary)
|
|
51
49
|
}
|
52
50
|
|
53
51
|
static VALUE
|
54
|
-
dialog_add_buttons(argc, argv, self)
|
55
|
-
int argc;
|
56
|
-
VALUE *argv;
|
57
|
-
VALUE self;
|
52
|
+
dialog_add_buttons(int argc, VALUE *argv, VALUE self)
|
58
53
|
{
|
59
54
|
VALUE button_ary;
|
60
55
|
rb_scan_args(argc, argv, "*", &button_ary);
|
@@ -63,10 +58,7 @@ dialog_add_buttons(argc, argv, self)
|
|
63
58
|
}
|
64
59
|
|
65
60
|
static VALUE
|
66
|
-
dialog_initialize(argc, argv, self)
|
67
|
-
int argc;
|
68
|
-
VALUE *argv;
|
69
|
-
VALUE self;
|
61
|
+
dialog_initialize(int argc, VALUE *argv, VALUE self)
|
70
62
|
{
|
71
63
|
VALUE title, parent, flags, button_ary;
|
72
64
|
rb_scan_args(argc, argv, "03*", &title, &parent, &flags, &button_ary);
|
@@ -98,8 +90,7 @@ dialog_initialize(argc, argv, self)
|
|
98
90
|
}
|
99
91
|
|
100
92
|
static VALUE
|
101
|
-
dialog_run(self)
|
102
|
-
VALUE self;
|
93
|
+
dialog_run(VALUE self)
|
103
94
|
{
|
104
95
|
if (rb_block_given_p()){
|
105
96
|
VALUE ret = INT2NUM(gtk_dialog_run(_SELF(self)));
|
@@ -111,16 +102,14 @@ dialog_run(self)
|
|
111
102
|
}
|
112
103
|
|
113
104
|
static VALUE
|
114
|
-
dialog_response(self, response_id)
|
115
|
-
VALUE self, response_id;
|
105
|
+
dialog_response(VALUE self, VALUE response_id)
|
116
106
|
{
|
117
107
|
gtk_dialog_response(_SELF(self), NUM2INT(response_id));
|
118
108
|
return self;
|
119
109
|
}
|
120
110
|
|
121
111
|
static VALUE
|
122
|
-
dialog_add_action_widget(self, child, response_id)
|
123
|
-
VALUE self, child, response_id;
|
112
|
+
dialog_add_action_widget(VALUE self, VALUE child, VALUE response_id)
|
124
113
|
{
|
125
114
|
gtk_dialog_add_action_widget(_SELF(self), GTK_WIDGET(RVAL2GOBJ(child)),
|
126
115
|
NUM2INT(response_id));
|
@@ -128,16 +117,14 @@ dialog_add_action_widget(self, child, response_id)
|
|
128
117
|
}
|
129
118
|
|
130
119
|
static VALUE
|
131
|
-
dialog_set_default_response(self, response_id)
|
132
|
-
VALUE self, response_id;
|
120
|
+
dialog_set_default_response(VALUE self, VALUE response_id)
|
133
121
|
{
|
134
122
|
gtk_dialog_set_default_response(_SELF(self), NUM2INT(response_id));
|
135
123
|
return self;
|
136
124
|
}
|
137
125
|
|
138
126
|
static VALUE
|
139
|
-
dialog_set_response_sensitive(self, response_id, setting)
|
140
|
-
VALUE self, response_id, setting;
|
127
|
+
dialog_set_response_sensitive(VALUE self, VALUE response_id, VALUE setting)
|
141
128
|
{
|
142
129
|
gtk_dialog_set_response_sensitive(_SELF(self), NUM2INT(response_id), RVAL2CBOOL(setting));
|
143
130
|
return self;
|
@@ -145,8 +132,7 @@ dialog_set_response_sensitive(self, response_id, setting)
|
|
145
132
|
|
146
133
|
#if GTK_CHECK_VERSION(2,6,0)
|
147
134
|
static VALUE
|
148
|
-
dialog_s_alternative_dialog_button_order(self, screen)
|
149
|
-
VALUE self, screen;
|
135
|
+
dialog_s_alternative_dialog_button_order(VALUE self, VALUE screen)
|
150
136
|
{
|
151
137
|
gboolean ret = gtk_alternative_dialog_button_order(NIL_P(screen) ? NULL :
|
152
138
|
GDK_SCREEN(RVAL2GOBJ(screen)));
|
@@ -161,8 +147,7 @@ void gtk_dialog_set_alternative_button_order
|
|
161
147
|
*/
|
162
148
|
|
163
149
|
static VALUE
|
164
|
-
dialog_set_alternative_button_order(self, new_order)
|
165
|
-
VALUE self, new_order;
|
150
|
+
dialog_set_alternative_button_order(VALUE self, VALUE new_order)
|
166
151
|
{
|
167
152
|
gint i;
|
168
153
|
gint len = RARRAY_LEN(new_order);
|
@@ -180,23 +165,20 @@ dialog_set_alternative_button_order(self, new_order)
|
|
180
165
|
#endif
|
181
166
|
|
182
167
|
static VALUE
|
183
|
-
dialog_vbox(self)
|
184
|
-
VALUE self;
|
168
|
+
dialog_vbox(VALUE self)
|
185
169
|
{
|
186
170
|
return GOBJ2RVAL(_SELF(self)->vbox);
|
187
171
|
}
|
188
172
|
|
189
173
|
static VALUE
|
190
|
-
dialog_action_area(self)
|
191
|
-
VALUE self;
|
174
|
+
dialog_action_area(VALUE self)
|
192
175
|
{
|
193
176
|
return GOBJ2RVAL(_SELF(self)->action_area);
|
194
177
|
}
|
195
178
|
|
196
179
|
#if GTK_CHECK_VERSION(2,8,0)
|
197
180
|
static VALUE
|
198
|
-
dialog_get_response_for_widget(self, widget)
|
199
|
-
VALUE self, widget;
|
181
|
+
dialog_get_response_for_widget(VALUE self, VALUE widget)
|
200
182
|
{
|
201
183
|
return INT2NUM(gtk_dialog_get_response_for_widget(_SELF(self), RVAL2GOBJ(widget)));
|
202
184
|
}
|
data/ext/gtk2/rbgtkdrag.c
CHANGED
@@ -16,8 +16,7 @@
|
|
16
16
|
#define RVAL2WIDGET(w) (GTK_WIDGET(RVAL2GOBJ(w)))
|
17
17
|
|
18
18
|
GtkTargetEntry*
|
19
|
-
rbgtk_get_target_entry(targets)
|
20
|
-
VALUE targets;
|
19
|
+
rbgtk_get_target_entry(VALUE targets)
|
21
20
|
{
|
22
21
|
VALUE ary;
|
23
22
|
VALUE e_target, e_flags, e_info;
|
@@ -46,8 +45,7 @@ rbgtk_get_target_entry(targets)
|
|
46
45
|
}
|
47
46
|
|
48
47
|
static VALUE
|
49
|
-
gtkdrag_dest_set(self, widget, flags, targets, actions)
|
50
|
-
VALUE self, widget, flags, targets, actions;
|
48
|
+
gtkdrag_dest_set(VALUE self, VALUE widget, VALUE flags, VALUE targets, VALUE actions)
|
51
49
|
{
|
52
50
|
int num;
|
53
51
|
GtkTargetEntry* entries = rbgtk_get_target_entry(targets);
|
@@ -67,8 +65,7 @@ gtkdrag_dest_set(self, widget, flags, targets, actions)
|
|
67
65
|
}
|
68
66
|
|
69
67
|
static VALUE
|
70
|
-
gtkdrag_dest_set_proxy(self, widget, proxy_window, protocol, use_coordinates)
|
71
|
-
VALUE self, widget, proxy_window, protocol, use_coordinates;
|
68
|
+
gtkdrag_dest_set_proxy(VALUE self, VALUE widget, VALUE proxy_window, VALUE protocol, VALUE use_coordinates)
|
72
69
|
{
|
73
70
|
gtk_drag_dest_set_proxy(RVAL2WIDGET(widget),
|
74
71
|
GDK_WINDOW(RVAL2GOBJ(proxy_window)),
|
@@ -78,18 +75,14 @@ gtkdrag_dest_set_proxy(self, widget, proxy_window, protocol, use_coordinates)
|
|
78
75
|
}
|
79
76
|
|
80
77
|
static VALUE
|
81
|
-
gtkdrag_dest_unset(self, widget)
|
82
|
-
VALUE self,widget;
|
78
|
+
gtkdrag_dest_unset(VALUE self, VALUE widget)
|
83
79
|
{
|
84
80
|
gtk_drag_dest_unset(RVAL2WIDGET(widget));
|
85
81
|
return self;
|
86
82
|
}
|
87
83
|
|
88
84
|
static VALUE
|
89
|
-
gtkdrag_dest_find_target(argc, argv, self)
|
90
|
-
int argc;
|
91
|
-
VALUE *argv;
|
92
|
-
VALUE self;
|
85
|
+
gtkdrag_dest_find_target(int argc, VALUE *argv, VALUE self)
|
93
86
|
{
|
94
87
|
VALUE widget, context, target_list;
|
95
88
|
GdkAtom ret;
|
@@ -103,16 +96,14 @@ gtkdrag_dest_find_target(argc, argv, self)
|
|
103
96
|
}
|
104
97
|
|
105
98
|
static VALUE
|
106
|
-
gtkdrag_dest_get_target_list(self, widget)
|
107
|
-
VALUE self, widget;
|
99
|
+
gtkdrag_dest_get_target_list(VALUE self, VALUE widget)
|
108
100
|
{
|
109
101
|
GtkTargetList* list = gtk_drag_dest_get_target_list(RVAL2WIDGET(widget));
|
110
102
|
return BOXED2RVAL(list, GTK_TYPE_TARGET_LIST);
|
111
103
|
}
|
112
104
|
|
113
105
|
static VALUE
|
114
|
-
gtkdrag_dest_set_target_list(self, widget, target_list)
|
115
|
-
VALUE self, widget, target_list;
|
106
|
+
gtkdrag_dest_set_target_list(VALUE self, VALUE widget, VALUE target_list)
|
116
107
|
{
|
117
108
|
gtk_drag_dest_set_target_list(
|
118
109
|
RVAL2WIDGET(widget),
|
@@ -124,22 +115,19 @@ gtkdrag_dest_set_target_list(self, widget, target_list)
|
|
124
115
|
|
125
116
|
#if GTK_CHECK_VERSION(2,6,0)
|
126
117
|
static VALUE
|
127
|
-
gtkdrag_dest_add_text_targets(self, widget)
|
128
|
-
VALUE self, widget;
|
118
|
+
gtkdrag_dest_add_text_targets(VALUE self, VALUE widget)
|
129
119
|
{
|
130
120
|
gtk_drag_dest_add_text_targets(RVAL2WIDGET(widget));
|
131
121
|
return self;
|
132
122
|
}
|
133
123
|
static VALUE
|
134
|
-
gtkdrag_dest_add_image_targets(self, widget)
|
135
|
-
VALUE self, widget;
|
124
|
+
gtkdrag_dest_add_image_targets(VALUE self, VALUE widget)
|
136
125
|
{
|
137
126
|
gtk_drag_dest_add_image_targets(RVAL2WIDGET(widget));
|
138
127
|
return self;
|
139
128
|
}
|
140
129
|
static VALUE
|
141
|
-
gtkdrag_dest_add_uri_targets(self, widget)
|
142
|
-
VALUE self, widget;
|
130
|
+
gtkdrag_dest_add_uri_targets(VALUE self, VALUE widget)
|
143
131
|
{
|
144
132
|
gtk_drag_dest_add_uri_targets(RVAL2WIDGET(widget));
|
145
133
|
return self;
|
@@ -148,24 +136,21 @@ gtkdrag_dest_add_uri_targets(self, widget)
|
|
148
136
|
|
149
137
|
#if GTK_CHECK_VERSION(2,10,0)
|
150
138
|
static VALUE
|
151
|
-
gtkdrag_dest_set_track_motion(self, widget, track_motion)
|
152
|
-
VALUE self, widget, track_motion;
|
139
|
+
gtkdrag_dest_set_track_motion(VALUE self, VALUE widget, VALUE track_motion)
|
153
140
|
{
|
154
141
|
gtk_drag_dest_set_track_motion(RVAL2WIDGET(widget), RVAL2CBOOL(track_motion));
|
155
142
|
return self;
|
156
143
|
}
|
157
144
|
|
158
145
|
static VALUE
|
159
|
-
gtkdrag_dest_get_track_motion(self, widget)
|
160
|
-
VALUE self, widget;
|
146
|
+
gtkdrag_dest_get_track_motion(VALUE self, VALUE widget)
|
161
147
|
{
|
162
148
|
return CBOOL2RVAL(gtk_drag_dest_get_track_motion(RVAL2WIDGET(widget)));
|
163
149
|
}
|
164
150
|
#endif
|
165
151
|
|
166
152
|
static VALUE
|
167
|
-
gtkdrag_finish(self, context, success, del, time)
|
168
|
-
VALUE self, context, success, del, time;
|
153
|
+
gtkdrag_finish(VALUE self, VALUE context, VALUE success, VALUE del, VALUE time)
|
169
154
|
{
|
170
155
|
gtk_drag_finish(RVAL2DC(context), RVAL2CBOOL(success),
|
171
156
|
RVAL2CBOOL(del), NUM2UINT(time));
|
@@ -173,8 +158,7 @@ gtkdrag_finish(self, context, success, del, time)
|
|
173
158
|
}
|
174
159
|
|
175
160
|
static VALUE
|
176
|
-
gtkdrag_get_data(self, widget, context, target, time)
|
177
|
-
VALUE self, widget, context, target, time;
|
161
|
+
gtkdrag_get_data(VALUE self, VALUE widget, VALUE context, VALUE target, VALUE time)
|
178
162
|
{
|
179
163
|
gtk_drag_get_data(RVAL2WIDGET(widget), RVAL2DC(context), RVAL2ATOM(target),
|
180
164
|
NUM2UINT(time));
|
@@ -182,31 +166,27 @@ gtkdrag_get_data(self, widget, context, target, time)
|
|
182
166
|
}
|
183
167
|
|
184
168
|
static VALUE
|
185
|
-
gtkdrag_get_source_widget(self, context)
|
186
|
-
VALUE self, context;
|
169
|
+
gtkdrag_get_source_widget(VALUE self, VALUE context)
|
187
170
|
{
|
188
171
|
return GOBJ2RVAL(gtk_drag_get_source_widget(RVAL2DC(context)));
|
189
172
|
}
|
190
173
|
|
191
174
|
static VALUE
|
192
|
-
gtkdrag_highlight(self, widget)
|
193
|
-
VALUE self, widget;
|
175
|
+
gtkdrag_highlight(VALUE self, VALUE widget)
|
194
176
|
{
|
195
177
|
gtk_drag_highlight(RVAL2WIDGET(widget));
|
196
178
|
return self;
|
197
179
|
}
|
198
180
|
|
199
181
|
static VALUE
|
200
|
-
gtkdrag_unhighlight(self, widget)
|
201
|
-
VALUE self, widget;
|
182
|
+
gtkdrag_unhighlight(VALUE self, VALUE widget)
|
202
183
|
{
|
203
184
|
gtk_drag_unhighlight(RVAL2WIDGET(widget));
|
204
185
|
return self;
|
205
186
|
}
|
206
187
|
|
207
188
|
static VALUE
|
208
|
-
gtkdrag_begin(self, widget, target_list, actions, button, event)
|
209
|
-
VALUE self, widget, target_list, actions, button, event;
|
189
|
+
gtkdrag_begin(VALUE self, VALUE widget, VALUE target_list, VALUE actions, VALUE button, VALUE event)
|
210
190
|
{
|
211
191
|
return GOBJ2RVAL(gtk_drag_begin(RVAL2WIDGET(widget),
|
212
192
|
RVAL2BOXED(target_list, GTK_TYPE_TARGET_LIST),
|
@@ -216,10 +196,7 @@ gtkdrag_begin(self, widget, target_list, actions, button, event)
|
|
216
196
|
}
|
217
197
|
|
218
198
|
static VALUE
|
219
|
-
gtkdrag_set_icon(argc, argv, self)
|
220
|
-
int argc;
|
221
|
-
VALUE *argv;
|
222
|
-
VALUE self;
|
199
|
+
gtkdrag_set_icon(int argc, VALUE *argv, VALUE self)
|
223
200
|
{
|
224
201
|
VALUE context, obj, pixmap = Qnil, mask = Qnil, hot_x, hot_y;
|
225
202
|
|
@@ -252,8 +229,7 @@ gtkdrag_set_icon(argc, argv, self)
|
|
252
229
|
|
253
230
|
#if GTK_CHECK_VERSION(2,8,0)
|
254
231
|
static VALUE
|
255
|
-
gtkdrag_set_icon_name(self, context, name, hot_x, hot_y)
|
256
|
-
VALUE self, context, name, hot_x, hot_y;
|
232
|
+
gtkdrag_set_icon_name(VALUE self, VALUE context, VALUE name, VALUE hot_x, VALUE hot_y)
|
257
233
|
{
|
258
234
|
gtk_drag_set_icon_name(RVAL2DC(context), RVAL2CSTR(name), NUM2INT(hot_x), NUM2INT(hot_y));
|
259
235
|
return self;
|
@@ -261,16 +237,14 @@ gtkdrag_set_icon_name(self, context, name, hot_x, hot_y)
|
|
261
237
|
#endif
|
262
238
|
|
263
239
|
static VALUE
|
264
|
-
gtkdrag_set_icon_default(self, context)
|
265
|
-
VALUE self, context;
|
240
|
+
gtkdrag_set_icon_default(VALUE self, VALUE context)
|
266
241
|
{
|
267
242
|
gtk_drag_set_icon_default(RVAL2DC(context));
|
268
243
|
return self;
|
269
244
|
}
|
270
245
|
|
271
246
|
static VALUE
|
272
|
-
gtkdrag_check_threshold(self, widget, start_x, start_y, current_x, current_y)
|
273
|
-
VALUE self, widget, start_x, start_y, current_x, current_y;
|
247
|
+
gtkdrag_check_threshold(VALUE self, VALUE widget, VALUE start_x, VALUE start_y, VALUE current_x, VALUE current_y)
|
274
248
|
{
|
275
249
|
return CBOOL2RVAL(gtk_drag_check_threshold(RVAL2WIDGET(widget),
|
276
250
|
NUM2INT(start_x), NUM2INT(start_y),
|
@@ -278,8 +252,7 @@ gtkdrag_check_threshold(self, widget, start_x, start_y, current_x, current_y)
|
|
278
252
|
}
|
279
253
|
|
280
254
|
static VALUE
|
281
|
-
gtkdrag_source_set(self, widget, flags, targets, actions)
|
282
|
-
VALUE self, widget, flags, targets, actions;
|
255
|
+
gtkdrag_source_set(VALUE self, VALUE widget, VALUE flags, VALUE targets, VALUE actions)
|
283
256
|
{
|
284
257
|
gtk_drag_source_set(RVAL2WIDGET(widget), RVAL2GFLAGS(flags, GDK_TYPE_MODIFIER_TYPE),
|
285
258
|
rbgtk_get_target_entry(targets),
|
@@ -289,10 +262,7 @@ gtkdrag_source_set(self, widget, flags, targets, actions)
|
|
289
262
|
}
|
290
263
|
|
291
264
|
static VALUE
|
292
|
-
gtkdrag_source_set_icon(argc, argv, self)
|
293
|
-
int argc;
|
294
|
-
VALUE *argv;
|
295
|
-
VALUE self;
|
265
|
+
gtkdrag_source_set_icon(int argc, VALUE *argv, VALUE self)
|
296
266
|
{
|
297
267
|
VALUE widget, obj, pixmap = Qnil, mask = Qnil;
|
298
268
|
|
@@ -315,8 +285,7 @@ gtkdrag_source_set_icon(argc, argv, self)
|
|
315
285
|
|
316
286
|
#if GTK_CHECK_VERSION(2,8,0)
|
317
287
|
static VALUE
|
318
|
-
gtkdrag_source_set_icon_name(self, widget, icon_name)
|
319
|
-
VALUE self, widget, icon_name;
|
288
|
+
gtkdrag_source_set_icon_name(VALUE self, VALUE widget, VALUE icon_name)
|
320
289
|
{
|
321
290
|
gtk_drag_source_set_icon_name(RVAL2WIDGET(widget), RVAL2CSTR(icon_name));
|
322
291
|
return self;
|
@@ -324,8 +293,7 @@ gtkdrag_source_set_icon_name(self, widget, icon_name)
|
|
324
293
|
#endif
|
325
294
|
|
326
295
|
static VALUE
|
327
|
-
gtkdrag_source_unset(self, widget)
|
328
|
-
VALUE self, widget;
|
296
|
+
gtkdrag_source_unset(VALUE self, VALUE widget)
|
329
297
|
{
|
330
298
|
gtk_drag_source_unset(RVAL2WIDGET(widget));
|
331
299
|
return self;
|
@@ -333,8 +301,7 @@ gtkdrag_source_unset(self, widget)
|
|
333
301
|
|
334
302
|
#if GTK_CHECK_VERSION(2,4,0)
|
335
303
|
static VALUE
|
336
|
-
gtkdrag_source_set_target_list(self, widget, targetlist)
|
337
|
-
VALUE self, widget, targetlist;
|
304
|
+
gtkdrag_source_set_target_list(VALUE self, VALUE widget, VALUE targetlist)
|
338
305
|
{
|
339
306
|
GtkTargetList* tlist = NULL;
|
340
307
|
if (! NIL_P(targetlist))
|
@@ -345,8 +312,7 @@ gtkdrag_source_set_target_list(self, widget, targetlist)
|
|
345
312
|
}
|
346
313
|
|
347
314
|
static VALUE
|
348
|
-
gtkdrag_source_get_target_list(self, widget)
|
349
|
-
VALUE self, widget;
|
315
|
+
gtkdrag_source_get_target_list(VALUE self, VALUE widget)
|
350
316
|
{
|
351
317
|
GtkTargetList* ret = gtk_drag_source_get_target_list(RVAL2WIDGET(widget));
|
352
318
|
return NIL_P(ret) ? Qnil : BOXED2RVAL(ret, GTK_TYPE_TARGET_LIST);
|
@@ -355,22 +321,19 @@ gtkdrag_source_get_target_list(self, widget)
|
|
355
321
|
|
356
322
|
#if GTK_CHECK_VERSION(2,6,0)
|
357
323
|
static VALUE
|
358
|
-
gtkdrag_source_add_text_targets(self, widget)
|
359
|
-
VALUE self, widget;
|
324
|
+
gtkdrag_source_add_text_targets(VALUE self, VALUE widget)
|
360
325
|
{
|
361
326
|
gtk_drag_source_add_text_targets(RVAL2WIDGET(widget));
|
362
327
|
return self;
|
363
328
|
}
|
364
329
|
static VALUE
|
365
|
-
gtkdrag_source_add_image_targets(self, widget)
|
366
|
-
VALUE self, widget;
|
330
|
+
gtkdrag_source_add_image_targets(VALUE self, VALUE widget)
|
367
331
|
{
|
368
332
|
gtk_drag_source_add_image_targets(RVAL2WIDGET(widget));
|
369
333
|
return self;
|
370
334
|
}
|
371
335
|
static VALUE
|
372
|
-
gtkdrag_source_add_uri_targets(self, widget)
|
373
|
-
VALUE self, widget;
|
336
|
+
gtkdrag_source_add_uri_targets(VALUE self, VALUE widget)
|
374
337
|
{
|
375
338
|
gtk_drag_source_add_uri_targets(RVAL2WIDGET(widget));
|
376
339
|
return self;
|