gtk2 0.90.7 → 0.90.8
Sign up to get free protection for your applications and to get access to all the features.
- 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/gtk2/base.rb +1 -2
- data/sample/gtk-demo/main.rb +2 -0
- data/sample/gtk-demo/textview.rb +1 -0
- metadata +15 -17
- data/ext/gtk2/Makefile +0 -169
- data/ext/gtk2/rbgdkkeysyms.h +0 -2174
- data/ext/gtk2/rbgtkinits.c +0 -473
- data/ext/gtk2/ruby-gtk2.pc +0 -3
data/ext/gtk2/rbgtktextbuffer.c
CHANGED
@@ -24,10 +24,7 @@
|
|
24
24
|
static ID id_tagtable;
|
25
25
|
|
26
26
|
static VALUE
|
27
|
-
txt_initialize(argc, argv, self)
|
28
|
-
int argc;
|
29
|
-
VALUE* argv;
|
30
|
-
VALUE self;
|
27
|
+
txt_initialize(int argc, VALUE *argv, VALUE self)
|
31
28
|
{
|
32
29
|
VALUE table;
|
33
30
|
rb_scan_args(argc, argv, "01", &table);
|
@@ -41,29 +38,25 @@ txt_initialize(argc, argv, self)
|
|
41
38
|
}
|
42
39
|
|
43
40
|
static VALUE
|
44
|
-
txt_get_line_count(self)
|
45
|
-
VALUE self;
|
41
|
+
txt_get_line_count(VALUE self)
|
46
42
|
{
|
47
43
|
return INT2NUM(gtk_text_buffer_get_line_count(_SELF(self)));
|
48
44
|
}
|
49
45
|
|
50
46
|
static VALUE
|
51
|
-
txt_get_char_count(self)
|
52
|
-
VALUE self;
|
47
|
+
txt_get_char_count(VALUE self)
|
53
48
|
{
|
54
49
|
return INT2NUM(gtk_text_buffer_get_char_count(_SELF(self)));
|
55
50
|
}
|
56
51
|
|
57
52
|
static VALUE
|
58
|
-
txt_get_tag_table(self)
|
59
|
-
VALUE self;
|
53
|
+
txt_get_tag_table(VALUE self)
|
60
54
|
{
|
61
55
|
return GOBJ2RVAL(gtk_text_buffer_get_tag_table(_SELF(self)));
|
62
56
|
}
|
63
57
|
|
64
58
|
static VALUE
|
65
|
-
txt_set_text(self, text)
|
66
|
-
VALUE self, text;
|
59
|
+
txt_set_text(VALUE self, VALUE text)
|
67
60
|
{
|
68
61
|
StringValue(text);
|
69
62
|
gtk_text_buffer_set_text(_SELF(self), RVAL2CSTR(text), RSTRING_LEN(text));
|
@@ -72,8 +65,7 @@ txt_set_text(self, text)
|
|
72
65
|
|
73
66
|
#if GTK_CHECK_VERSION(2,6,0)
|
74
67
|
static VALUE
|
75
|
-
txt_backspace(self, iter, interactive, default_editable)
|
76
|
-
VALUE self, iter, interactive, default_editable;
|
68
|
+
txt_backspace(VALUE self, VALUE iter, VALUE interactive, VALUE default_editable)
|
77
69
|
{
|
78
70
|
return CBOOL2RVAL(gtk_text_buffer_backspace(_SELF(self), RVAL2ITR(iter),
|
79
71
|
RVAL2CBOOL(interactive),
|
@@ -82,8 +74,7 @@ txt_backspace(self, iter, interactive, default_editable)
|
|
82
74
|
#endif
|
83
75
|
|
84
76
|
static VALUE
|
85
|
-
txt_insert_at_cursor(self, text)
|
86
|
-
VALUE self, text;
|
77
|
+
txt_insert_at_cursor(VALUE self, VALUE text)
|
87
78
|
{
|
88
79
|
StringValue(text);
|
89
80
|
gtk_text_buffer_insert_at_cursor(_SELF(self),
|
@@ -92,8 +83,7 @@ txt_insert_at_cursor(self, text)
|
|
92
83
|
}
|
93
84
|
|
94
85
|
static VALUE
|
95
|
-
txt_insert_interactive(self, iter, text, editable)
|
96
|
-
VALUE self, iter, text, editable;
|
86
|
+
txt_insert_interactive(VALUE self, VALUE iter, VALUE text, VALUE editable)
|
97
87
|
{
|
98
88
|
return CBOOL2RVAL(gtk_text_buffer_insert_interactive(_SELF(self),
|
99
89
|
RVAL2ITR(iter),
|
@@ -103,8 +93,7 @@ txt_insert_interactive(self, iter, text, editable)
|
|
103
93
|
}
|
104
94
|
|
105
95
|
static VALUE
|
106
|
-
txt_insert_interactive_at_cursor(self, text, editable)
|
107
|
-
VALUE self, text, editable;
|
96
|
+
txt_insert_interactive_at_cursor(VALUE self, VALUE text, VALUE editable)
|
108
97
|
{
|
109
98
|
return CBOOL2RVAL(gtk_text_buffer_insert_interactive_at_cursor(_SELF(self),
|
110
99
|
RVAL2CSTR(text),
|
@@ -113,8 +102,7 @@ txt_insert_interactive_at_cursor(self, text, editable)
|
|
113
102
|
}
|
114
103
|
|
115
104
|
static VALUE
|
116
|
-
txt_insert_range(self, iter, start, end)
|
117
|
-
VALUE self, iter, start, end;
|
105
|
+
txt_insert_range(VALUE self, VALUE iter, VALUE start, VALUE end)
|
118
106
|
{
|
119
107
|
gtk_text_buffer_insert_range(_SELF(self), RVAL2ITR(iter),
|
120
108
|
RVAL2ITR(start), RVAL2ITR(end));
|
@@ -122,8 +110,7 @@ txt_insert_range(self, iter, start, end)
|
|
122
110
|
}
|
123
111
|
|
124
112
|
static VALUE
|
125
|
-
txt_insert_range_interactive(self, iter, start, end, editable)
|
126
|
-
VALUE self, iter, start, end, editable;
|
113
|
+
txt_insert_range_interactive(VALUE self, VALUE iter, VALUE start, VALUE end, VALUE editable)
|
127
114
|
{
|
128
115
|
return CBOOL2RVAL(gtk_text_buffer_insert_range_interactive(_SELF(self),
|
129
116
|
RVAL2ITR(iter),
|
@@ -133,8 +120,7 @@ txt_insert_range_interactive(self, iter, start, end, editable)
|
|
133
120
|
}
|
134
121
|
|
135
122
|
static VALUE
|
136
|
-
txt_delete(self, start, end)
|
137
|
-
VALUE self, start, end;
|
123
|
+
txt_delete(VALUE self, VALUE start, VALUE end)
|
138
124
|
{
|
139
125
|
gtk_text_buffer_delete(GTK_TEXT_BUFFER(RVAL2GOBJ(self)),
|
140
126
|
RVAL2ITR(start), RVAL2ITR(end));
|
@@ -142,8 +128,7 @@ txt_delete(self, start, end)
|
|
142
128
|
}
|
143
129
|
|
144
130
|
static VALUE
|
145
|
-
txt_delete_interactive(self, start, end, editable)
|
146
|
-
VALUE self, start, end, editable;
|
131
|
+
txt_delete_interactive(VALUE self, VALUE start, VALUE end, VALUE editable)
|
147
132
|
{
|
148
133
|
return CBOOL2RVAL(gtk_text_buffer_delete_interactive(_SELF(self),
|
149
134
|
RVAL2ITR(start),
|
@@ -152,10 +137,7 @@ txt_delete_interactive(self, start, end, editable)
|
|
152
137
|
}
|
153
138
|
|
154
139
|
static VALUE
|
155
|
-
txt_get_text(argc, argv, self)
|
156
|
-
int argc;
|
157
|
-
VALUE *argv;
|
158
|
-
VALUE self;
|
140
|
+
txt_get_text(int argc, VALUE *argv, VALUE self)
|
159
141
|
{
|
160
142
|
VALUE start, end, include_hidden_chars;
|
161
143
|
GtkTextIter start_iter, end_iter;
|
@@ -181,17 +163,13 @@ txt_get_text(argc, argv, self)
|
|
181
163
|
}
|
182
164
|
|
183
165
|
static VALUE
|
184
|
-
txt_get_text_all(self)
|
185
|
-
VALUE self;
|
166
|
+
txt_get_text_all(VALUE self)
|
186
167
|
{
|
187
168
|
return txt_get_text(0, NULL, self);
|
188
169
|
}
|
189
170
|
|
190
171
|
static VALUE
|
191
|
-
txt_get_slice(argc, argv, self)
|
192
|
-
int argc;
|
193
|
-
VALUE *argv;
|
194
|
-
VALUE self;
|
172
|
+
txt_get_slice(int argc, VALUE *argv, VALUE self)
|
195
173
|
{
|
196
174
|
VALUE start, end, include_hidden_chars;
|
197
175
|
GtkTextIter start_iter, end_iter;
|
@@ -217,15 +195,13 @@ txt_get_slice(argc, argv, self)
|
|
217
195
|
}
|
218
196
|
|
219
197
|
static VALUE
|
220
|
-
txt_get_slice_all(self)
|
221
|
-
VALUE self;
|
198
|
+
txt_get_slice_all(VALUE self)
|
222
199
|
{
|
223
200
|
return txt_get_slice(0, NULL, self);
|
224
201
|
}
|
225
202
|
|
226
203
|
static VALUE
|
227
|
-
txt_insert_pixbuf(self, iter, pixbuf)
|
228
|
-
VALUE self, iter, pixbuf;
|
204
|
+
txt_insert_pixbuf(VALUE self, VALUE iter, VALUE pixbuf)
|
229
205
|
{
|
230
206
|
G_CHILD_ADD(self, iter);
|
231
207
|
G_CHILD_ADD(iter, pixbuf);
|
@@ -238,8 +214,7 @@ txt_insert_pixbuf(self, iter, pixbuf)
|
|
238
214
|
}
|
239
215
|
|
240
216
|
static VALUE
|
241
|
-
txt_insert_child_anchor(self, iter, anchor)
|
242
|
-
VALUE self, iter, anchor;
|
217
|
+
txt_insert_child_anchor(VALUE self, VALUE iter, VALUE anchor)
|
243
218
|
{
|
244
219
|
G_CHILD_ADD(self, iter);
|
245
220
|
G_CHILD_ADD(iter, anchor);
|
@@ -251,8 +226,7 @@ txt_insert_child_anchor(self, iter, anchor)
|
|
251
226
|
}
|
252
227
|
|
253
228
|
static VALUE
|
254
|
-
txt_create_child_anchor(self, iter)
|
255
|
-
VALUE self, iter;
|
229
|
+
txt_create_child_anchor(VALUE self, VALUE iter)
|
256
230
|
{
|
257
231
|
VALUE ret = GOBJ2RVAL(gtk_text_buffer_create_child_anchor(_SELF(self), RVAL2ITR(iter)));
|
258
232
|
G_CHILD_ADD(self, ret);
|
@@ -260,8 +234,7 @@ txt_create_child_anchor(self, iter)
|
|
260
234
|
}
|
261
235
|
|
262
236
|
static VALUE
|
263
|
-
txt_create_mark(self, name, where, left_gravity)
|
264
|
-
VALUE self, name, where, left_gravity;
|
237
|
+
txt_create_mark(VALUE self, VALUE name, VALUE where, VALUE left_gravity)
|
265
238
|
{
|
266
239
|
VALUE ret = GOBJ2RVAL(gtk_text_buffer_create_mark(_SELF(self),
|
267
240
|
NIL_P(name) ? NULL : RVAL2CSTR(name),
|
@@ -273,8 +246,7 @@ txt_create_mark(self, name, where, left_gravity)
|
|
273
246
|
|
274
247
|
#if GTK_CHECK_VERSION(2,12,0)
|
275
248
|
static VALUE
|
276
|
-
txt_add_mark(self, mark, where)
|
277
|
-
VALUE self, mark, where;
|
249
|
+
txt_add_mark(VALUE self, VALUE mark, VALUE where)
|
278
250
|
{
|
279
251
|
gtk_text_buffer_add_mark(_SELF(self), RVAL2MARK(mark), RVAL2ITR(where));
|
280
252
|
return self;
|
@@ -282,8 +254,7 @@ txt_add_mark(self, mark, where)
|
|
282
254
|
#endif
|
283
255
|
|
284
256
|
static VALUE
|
285
|
-
txt_delete_mark(self, mark)
|
286
|
-
VALUE self, mark;
|
257
|
+
txt_delete_mark(VALUE self, VALUE mark)
|
287
258
|
{
|
288
259
|
if (rb_obj_is_kind_of(mark, GTYPE2CLASS(GTK_TYPE_TEXT_MARK))){
|
289
260
|
G_CHILD_REMOVE(self, mark);
|
@@ -296,31 +267,27 @@ txt_delete_mark(self, mark)
|
|
296
267
|
}
|
297
268
|
|
298
269
|
static VALUE
|
299
|
-
txt_get_mark(self, name)
|
300
|
-
VALUE self, name;
|
270
|
+
txt_get_mark(VALUE self, VALUE name)
|
301
271
|
{
|
302
272
|
return GOBJ2RVAL(gtk_text_buffer_get_mark(_SELF(self), RVAL2CSTR(name)));
|
303
273
|
}
|
304
274
|
|
305
275
|
/*
|
306
276
|
static VALUE
|
307
|
-
txt_get_insert(self)
|
308
|
-
VALUE self;
|
277
|
+
txt_get_insert(VALUE self)
|
309
278
|
{
|
310
279
|
return GOBJ2RVAL(gtk_text_buffer_get_insert(_SELF(self)));
|
311
280
|
}
|
312
281
|
*/
|
313
282
|
|
314
283
|
static VALUE
|
315
|
-
txt_get_selection_bound(self)
|
316
|
-
VALUE self;
|
284
|
+
txt_get_selection_bound(VALUE self)
|
317
285
|
{
|
318
286
|
return GOBJ2RVAL(gtk_text_buffer_get_selection_bound(_SELF(self)));
|
319
287
|
}
|
320
288
|
|
321
289
|
static VALUE
|
322
|
-
txt_place_cursor(self, where)
|
323
|
-
VALUE self, where;
|
290
|
+
txt_place_cursor(VALUE self, VALUE where)
|
324
291
|
{
|
325
292
|
gtk_text_buffer_place_cursor(_SELF(self), RVAL2ITR(where));
|
326
293
|
return self;
|
@@ -328,8 +295,7 @@ txt_place_cursor(self, where)
|
|
328
295
|
|
329
296
|
#if GTK_CHECK_VERSION(2,4,0)
|
330
297
|
static VALUE
|
331
|
-
txt_select_range(self, ins, bound)
|
332
|
-
VALUE self, ins, bound;
|
298
|
+
txt_select_range(VALUE self, VALUE ins, VALUE bound)
|
333
299
|
{
|
334
300
|
gtk_text_buffer_select_range(_SELF(self), RVAL2ITR(ins), RVAL2ITR(bound));
|
335
301
|
return self;
|
@@ -337,8 +303,7 @@ txt_select_range(self, ins, bound)
|
|
337
303
|
#endif
|
338
304
|
|
339
305
|
static VALUE
|
340
|
-
txt_get_iter_at_child_anchor(self, anchor)
|
341
|
-
VALUE self, anchor;
|
306
|
+
txt_get_iter_at_child_anchor(VALUE self, VALUE anchor)
|
342
307
|
{
|
343
308
|
GtkTextIter iter;
|
344
309
|
gtk_text_buffer_get_iter_at_child_anchor(_SELF(self), &iter, RVAL2ANCHOR(anchor));
|
@@ -346,23 +311,20 @@ txt_get_iter_at_child_anchor(self, anchor)
|
|
346
311
|
}
|
347
312
|
|
348
313
|
static VALUE
|
349
|
-
txt_get_modified(self)
|
350
|
-
VALUE self;
|
314
|
+
txt_get_modified(VALUE self)
|
351
315
|
{
|
352
316
|
return CBOOL2RVAL(gtk_text_buffer_get_modified(_SELF(self)));
|
353
317
|
}
|
354
318
|
|
355
319
|
static VALUE
|
356
|
-
txt_set_modified(self, setting)
|
357
|
-
VALUE self, setting;
|
320
|
+
txt_set_modified(VALUE self, VALUE setting)
|
358
321
|
{
|
359
322
|
gtk_text_buffer_set_modified(_SELF(self), RVAL2CBOOL(setting));
|
360
323
|
return setting;
|
361
324
|
}
|
362
325
|
|
363
326
|
static VALUE
|
364
|
-
txt_add_selection_clipboard(self, clipboard)
|
365
|
-
VALUE self, clipboard;
|
327
|
+
txt_add_selection_clipboard(VALUE self, VALUE clipboard)
|
366
328
|
{
|
367
329
|
G_CHILD_ADD(self, clipboard);
|
368
330
|
gtk_text_buffer_add_selection_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
|
@@ -370,8 +332,7 @@ txt_add_selection_clipboard(self, clipboard)
|
|
370
332
|
}
|
371
333
|
|
372
334
|
static VALUE
|
373
|
-
txt_remove_selection_clipboard(self, clipboard)
|
374
|
-
VALUE self, clipboard;
|
335
|
+
txt_remove_selection_clipboard(VALUE self, VALUE clipboard)
|
375
336
|
{
|
376
337
|
G_CHILD_REMOVE(self, clipboard);
|
377
338
|
gtk_text_buffer_remove_selection_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
|
@@ -380,8 +341,7 @@ txt_remove_selection_clipboard(self, clipboard)
|
|
380
341
|
|
381
342
|
#if GTK_CHECK_VERSION(2,10,0)
|
382
343
|
static VALUE
|
383
|
-
txt_deserialize(self, content_buffer, format, iter, data)
|
384
|
-
VALUE self, content_buffer, format, iter, data;
|
344
|
+
txt_deserialize(VALUE self, VALUE content_buffer, VALUE format, VALUE iter, VALUE data)
|
385
345
|
{
|
386
346
|
GError* error = NULL;
|
387
347
|
gboolean ret;
|
@@ -398,8 +358,7 @@ txt_deserialize(self, content_buffer, format, iter, data)
|
|
398
358
|
}
|
399
359
|
|
400
360
|
static VALUE
|
401
|
-
txt_deserialize_get_can_create_tags(self, format)
|
402
|
-
VALUE self, format;
|
361
|
+
txt_deserialize_get_can_create_tags(VALUE self, VALUE format)
|
403
362
|
{
|
404
363
|
return CBOOL2RVAL(gtk_text_buffer_deserialize_get_can_create_tags(_SELF(self),
|
405
364
|
RVAL2ATOM(format)));
|
@@ -407,8 +366,7 @@ txt_deserialize_get_can_create_tags(self, format)
|
|
407
366
|
}
|
408
367
|
|
409
368
|
static VALUE
|
410
|
-
txt_deserialize_set_can_create_tags(self, format, can_create_tags)
|
411
|
-
VALUE self, format, can_create_tags;
|
369
|
+
txt_deserialize_set_can_create_tags(VALUE self, VALUE format, VALUE can_create_tags)
|
412
370
|
{
|
413
371
|
gtk_text_buffer_deserialize_set_can_create_tags(_SELF(self),
|
414
372
|
RVAL2ATOM(format),
|
@@ -422,8 +380,7 @@ GtkTargetList* gtk_text_buffer_get_copy_target_list
|
|
422
380
|
*/
|
423
381
|
|
424
382
|
static VALUE
|
425
|
-
txt_get_deserialize_formats(self)
|
426
|
-
VALUE self;
|
383
|
+
txt_get_deserialize_formats(VALUE self)
|
427
384
|
{
|
428
385
|
gint i;
|
429
386
|
gint n_formats;
|
@@ -442,8 +399,7 @@ GtkTargetList* gtk_text_buffer_get_paste_target_list
|
|
442
399
|
*/
|
443
400
|
|
444
401
|
static VALUE
|
445
|
-
txt_get_serialize_formats(self)
|
446
|
-
VALUE self;
|
402
|
+
txt_get_serialize_formats(VALUE self)
|
447
403
|
{
|
448
404
|
gint i;
|
449
405
|
gint n_formats;
|
@@ -472,15 +428,7 @@ invoke_callback(VALUE data)
|
|
472
428
|
}
|
473
429
|
|
474
430
|
static gboolean
|
475
|
-
deserialize_func(register_buffer, content_buffer, iter, data, length, create_tags, func, error)
|
476
|
-
GtkTextBuffer* register_buffer;
|
477
|
-
GtkTextBuffer* content_buffer;
|
478
|
-
GtkTextIter* iter;
|
479
|
-
const guint8 *data;
|
480
|
-
gsize length;
|
481
|
-
gboolean create_tags;
|
482
|
-
gpointer func;
|
483
|
-
GError** error;
|
431
|
+
deserialize_func(GtkTextBuffer *register_buffer, GtkTextBuffer *content_buffer, GtkTextIter *iter, const guint8 *data, gsize length, gboolean create_tags, gpointer func, GError **error)
|
484
432
|
{
|
485
433
|
VALUE result;
|
486
434
|
VALUE argv[5];
|
@@ -507,8 +455,7 @@ remove_callback_reference(gpointer callback)
|
|
507
455
|
}
|
508
456
|
|
509
457
|
static VALUE
|
510
|
-
txt_register_deserialize_format(self, mime_type)
|
511
|
-
VALUE self, mime_type;
|
458
|
+
txt_register_deserialize_format(VALUE self, VALUE mime_type)
|
512
459
|
{
|
513
460
|
VALUE block = rb_block_proc();
|
514
461
|
GdkAtom atom;
|
@@ -522,21 +469,14 @@ txt_register_deserialize_format(self, mime_type)
|
|
522
469
|
}
|
523
470
|
|
524
471
|
static VALUE
|
525
|
-
txt_register_deserialize_target(self, tagset_name)
|
526
|
-
VALUE self, tagset_name;
|
472
|
+
txt_register_deserialize_target(VALUE self, VALUE tagset_name)
|
527
473
|
{
|
528
474
|
return ATOM2RVAL(gtk_text_buffer_register_deserialize_tagset(_SELF(self),
|
529
475
|
(const gchar*)(NIL_P(tagset_name) ? NULL : RVAL2CSTR(tagset_name))));
|
530
476
|
}
|
531
477
|
|
532
478
|
static guint8*
|
533
|
-
serialize_func(register_buffer, content_buffer, start, end, length, func)
|
534
|
-
GtkTextBuffer* register_buffer;
|
535
|
-
GtkTextBuffer* content_buffer;
|
536
|
-
GtkTextIter* start;
|
537
|
-
GtkTextIter* end;
|
538
|
-
gsize* length;
|
539
|
-
gpointer func;
|
479
|
+
serialize_func(GtkTextBuffer *register_buffer, GtkTextBuffer *content_buffer, GtkTextIter *start, GtkTextIter *end, gsize *length, gpointer func)
|
540
480
|
{
|
541
481
|
VALUE result;
|
542
482
|
VALUE argv[4];
|
@@ -559,8 +499,7 @@ serialize_func(register_buffer, content_buffer, start, end, length, func)
|
|
559
499
|
}
|
560
500
|
|
561
501
|
static VALUE
|
562
|
-
txt_register_serialize_format(self, mime_type)
|
563
|
-
VALUE self, mime_type;
|
502
|
+
txt_register_serialize_format(VALUE self, VALUE mime_type)
|
564
503
|
{
|
565
504
|
VALUE block = rb_block_proc();
|
566
505
|
GdkAtom atom;
|
@@ -574,16 +513,14 @@ txt_register_serialize_format(self, mime_type)
|
|
574
513
|
}
|
575
514
|
|
576
515
|
static VALUE
|
577
|
-
txt_register_serialize_target(self, tagset_name)
|
578
|
-
VALUE self, tagset_name;
|
516
|
+
txt_register_serialize_target(VALUE self, VALUE tagset_name)
|
579
517
|
{
|
580
518
|
return ATOM2RVAL(gtk_text_buffer_register_serialize_tagset(_SELF(self),
|
581
519
|
NIL_P(tagset_name) ? NULL : RVAL2CSTR(tagset_name)));
|
582
520
|
}
|
583
521
|
|
584
522
|
static VALUE
|
585
|
-
txt_serialize(self, content_buffer, format, start, end)
|
586
|
-
VALUE self, content_buffer, format, start, end;
|
523
|
+
txt_serialize(VALUE self, VALUE content_buffer, VALUE format, VALUE start, VALUE end)
|
587
524
|
{
|
588
525
|
gsize length;
|
589
526
|
guint8* ret = gtk_text_buffer_serialize(_SELF(self), _SELF(self),
|
@@ -594,16 +531,14 @@ txt_serialize(self, content_buffer, format, start, end)
|
|
594
531
|
}
|
595
532
|
|
596
533
|
static VALUE
|
597
|
-
txt_unregister_deserialize_format(self, format)
|
598
|
-
VALUE self, format;
|
534
|
+
txt_unregister_deserialize_format(VALUE self, VALUE format)
|
599
535
|
{
|
600
536
|
gtk_text_buffer_unregister_deserialize_format(_SELF(self), RVAL2ATOM(format));
|
601
537
|
return self;
|
602
538
|
}
|
603
539
|
|
604
540
|
static VALUE
|
605
|
-
txt_unregister_serialize_format(self, format)
|
606
|
-
VALUE self, format;
|
541
|
+
txt_unregister_serialize_format(VALUE self, VALUE format)
|
607
542
|
{
|
608
543
|
gtk_text_buffer_unregister_serialize_format(_SELF(self), RVAL2ATOM(format));
|
609
544
|
return self;
|
@@ -611,8 +546,7 @@ txt_unregister_serialize_format(self, format)
|
|
611
546
|
#endif
|
612
547
|
|
613
548
|
static VALUE
|
614
|
-
txt_cut_clipboard(self, clipboard, default_editable)
|
615
|
-
VALUE self, clipboard, default_editable;
|
549
|
+
txt_cut_clipboard(VALUE self, VALUE clipboard, VALUE default_editable)
|
616
550
|
{
|
617
551
|
G_CHILD_ADD(self, clipboard);
|
618
552
|
gtk_text_buffer_cut_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard), RVAL2CBOOL(default_editable));
|
@@ -620,8 +554,7 @@ txt_cut_clipboard(self, clipboard, default_editable)
|
|
620
554
|
}
|
621
555
|
|
622
556
|
static VALUE
|
623
|
-
txt_copy_clipboard(self, clipboard)
|
624
|
-
VALUE self, clipboard;
|
557
|
+
txt_copy_clipboard(VALUE self, VALUE clipboard)
|
625
558
|
{
|
626
559
|
G_CHILD_ADD(self, clipboard);
|
627
560
|
gtk_text_buffer_copy_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard));
|
@@ -629,8 +562,7 @@ txt_copy_clipboard(self, clipboard)
|
|
629
562
|
}
|
630
563
|
|
631
564
|
static VALUE
|
632
|
-
txt_paste_clipboard(self, clipboard, location, default_editable)
|
633
|
-
VALUE self, clipboard, location, default_editable;
|
565
|
+
txt_paste_clipboard(VALUE self, VALUE clipboard, VALUE location, VALUE default_editable)
|
634
566
|
{
|
635
567
|
G_CHILD_ADD(self, clipboard);
|
636
568
|
gtk_text_buffer_paste_clipboard(_SELF(self), RVAL2CLIPBOARD(clipboard),
|
@@ -640,8 +572,7 @@ txt_paste_clipboard(self, clipboard, location, default_editable)
|
|
640
572
|
}
|
641
573
|
|
642
574
|
static VALUE
|
643
|
-
txt_get_selection_bounds(self)
|
644
|
-
VALUE self;
|
575
|
+
txt_get_selection_bounds(VALUE self)
|
645
576
|
{
|
646
577
|
GtkTextIter start, end;
|
647
578
|
|
@@ -655,10 +586,7 @@ gboolean gtk_text_buffer_get_has_selection
|
|
655
586
|
*/
|
656
587
|
|
657
588
|
static VALUE
|
658
|
-
txt_delete_selection(argc, argv, self)
|
659
|
-
int argc;
|
660
|
-
VALUE* argv;
|
661
|
-
VALUE self;
|
589
|
+
txt_delete_selection(int argc, VALUE *argv, VALUE self)
|
662
590
|
{
|
663
591
|
VALUE interactive, default_editable;
|
664
592
|
rb_scan_args(argc, argv, "20", &interactive, &default_editable);
|
@@ -667,16 +595,14 @@ txt_delete_selection(argc, argv, self)
|
|
667
595
|
}
|
668
596
|
|
669
597
|
static VALUE
|
670
|
-
txt_end_user_action(self)
|
671
|
-
VALUE self;
|
598
|
+
txt_end_user_action(VALUE self)
|
672
599
|
{
|
673
600
|
gtk_text_buffer_end_user_action(_SELF(self));
|
674
601
|
return self;
|
675
602
|
}
|
676
603
|
|
677
604
|
static VALUE
|
678
|
-
txt_begin_user_action(self)
|
679
|
-
VALUE self;
|
605
|
+
txt_begin_user_action(VALUE self)
|
680
606
|
{
|
681
607
|
gtk_text_buffer_begin_user_action(_SELF(self));
|
682
608
|
if (rb_block_given_p())
|
@@ -685,8 +611,7 @@ txt_begin_user_action(self)
|
|
685
611
|
}
|
686
612
|
|
687
613
|
static VALUE
|
688
|
-
txt_get_start_iter(self)
|
689
|
-
VALUE self;
|
614
|
+
txt_get_start_iter(VALUE self)
|
690
615
|
{
|
691
616
|
GtkTextIter iter;
|
692
617
|
gtk_text_buffer_get_start_iter(_SELF(self), &iter);
|
@@ -694,8 +619,7 @@ txt_get_start_iter(self)
|
|
694
619
|
}
|
695
620
|
|
696
621
|
static VALUE
|
697
|
-
txt_get_end_iter(self)
|
698
|
-
VALUE self;
|
622
|
+
txt_get_end_iter(VALUE self)
|
699
623
|
{
|
700
624
|
GtkTextIter iter;
|
701
625
|
gtk_text_buffer_get_end_iter(_SELF(self), &iter);
|
@@ -703,8 +627,7 @@ txt_get_end_iter(self)
|
|
703
627
|
}
|
704
628
|
|
705
629
|
static VALUE
|
706
|
-
txt_move_mark(self, mark, where)
|
707
|
-
VALUE self, mark, where;
|
630
|
+
txt_move_mark(VALUE self, VALUE mark, VALUE where)
|
708
631
|
{
|
709
632
|
if (rb_obj_is_kind_of(mark, GTYPE2CLASS(GTK_TYPE_TEXT_MARK)))
|
710
633
|
gtk_text_buffer_move_mark(_SELF(self), RVAL2MARK(mark), RVAL2ITR(where));
|
@@ -714,8 +637,7 @@ txt_move_mark(self, mark, where)
|
|
714
637
|
}
|
715
638
|
|
716
639
|
static VALUE
|
717
|
-
txt_create_tag(self, tag_name, properties)
|
718
|
-
VALUE self, tag_name, properties;
|
640
|
+
txt_create_tag(VALUE self, VALUE tag_name, VALUE properties)
|
719
641
|
{
|
720
642
|
GtkTextTag *tag;
|
721
643
|
VALUE ret;
|
@@ -733,10 +655,7 @@ txt_create_tag(self, tag_name, properties)
|
|
733
655
|
}
|
734
656
|
|
735
657
|
static VALUE
|
736
|
-
txt_insert(argc, argv, self)
|
737
|
-
int argc;
|
738
|
-
VALUE *argv;
|
739
|
-
VALUE self;
|
658
|
+
txt_insert(int argc, VALUE *argv, VALUE self)
|
740
659
|
{
|
741
660
|
VALUE where, value, tags;
|
742
661
|
gint start_offset;
|
@@ -787,10 +706,7 @@ txt_insert(argc, argv, self)
|
|
787
706
|
}
|
788
707
|
|
789
708
|
static VALUE
|
790
|
-
txt_insert_with_tags(argc, argv, self)
|
791
|
-
int argc;
|
792
|
-
VALUE *argv;
|
793
|
-
VALUE self;
|
709
|
+
txt_insert_with_tags(int argc, VALUE *argv, VALUE self)
|
794
710
|
{
|
795
711
|
if (RVAL2CBOOL(ruby_debug))
|
796
712
|
rb_warning("Gtk::TextBuffer#insert_with_tags is deprecated. Use Gtk::TextBuffer#insert instead.");
|
@@ -799,8 +715,7 @@ txt_insert_with_tags(argc, argv, self)
|
|
799
715
|
}
|
800
716
|
|
801
717
|
static VALUE
|
802
|
-
txt_apply_tag(self, tag, start, end)
|
803
|
-
VALUE self, tag, start, end;
|
718
|
+
txt_apply_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
|
804
719
|
{
|
805
720
|
if (rb_obj_is_kind_of(tag, GTYPE2CLASS(GTK_TYPE_TEXT_TAG)))
|
806
721
|
gtk_text_buffer_apply_tag(_SELF(self), RVAL2TAG(tag), RVAL2ITR(start), RVAL2ITR(end));
|
@@ -811,8 +726,7 @@ txt_apply_tag(self, tag, start, end)
|
|
811
726
|
}
|
812
727
|
|
813
728
|
static VALUE
|
814
|
-
txt_remove_tag(self, tag, start, end)
|
815
|
-
VALUE self, tag, start, end;
|
729
|
+
txt_remove_tag(VALUE self, VALUE tag, VALUE start, VALUE end)
|
816
730
|
{
|
817
731
|
if (rb_obj_is_kind_of(tag, GTYPE2CLASS(GTK_TYPE_TEXT_TAG)))
|
818
732
|
gtk_text_buffer_remove_tag(_SELF(self), RVAL2TAG(tag), RVAL2ITR(start), RVAL2ITR(end));
|
@@ -823,16 +737,14 @@ txt_remove_tag(self, tag, start, end)
|
|
823
737
|
}
|
824
738
|
|
825
739
|
static VALUE
|
826
|
-
txt_remove_all_tags(self, start, end)
|
827
|
-
VALUE self, start, end;
|
740
|
+
txt_remove_all_tags(VALUE self, VALUE start, VALUE end)
|
828
741
|
{
|
829
742
|
gtk_text_buffer_remove_all_tags(_SELF(self), RVAL2ITR(start), RVAL2ITR(end));
|
830
743
|
return self;
|
831
744
|
}
|
832
745
|
|
833
746
|
static VALUE
|
834
|
-
txt_get_iter_at_line_offset(self, line_number, char_offset)
|
835
|
-
VALUE self, line_number, char_offset;
|
747
|
+
txt_get_iter_at_line_offset(VALUE self, VALUE line_number, VALUE char_offset)
|
836
748
|
{
|
837
749
|
GtkTextIter iter;
|
838
750
|
gtk_text_buffer_get_iter_at_line_offset(_SELF(self), &iter, NUM2INT(line_number), NUM2INT(char_offset));
|
@@ -840,8 +752,7 @@ txt_get_iter_at_line_offset(self, line_number, char_offset)
|
|
840
752
|
}
|
841
753
|
|
842
754
|
static VALUE
|
843
|
-
txt_get_iter_at_line_index(self, line_number, byte_index)
|
844
|
-
VALUE self, line_number, byte_index;
|
755
|
+
txt_get_iter_at_line_index(VALUE self, VALUE line_number, VALUE byte_index)
|
845
756
|
{
|
846
757
|
GtkTextIter iter;
|
847
758
|
gtk_text_buffer_get_iter_at_line_index(_SELF(self), &iter, NUM2INT(line_number), NUM2INT(byte_index));
|
@@ -849,8 +760,7 @@ txt_get_iter_at_line_index(self, line_number, byte_index)
|
|
849
760
|
}
|
850
761
|
|
851
762
|
static VALUE
|
852
|
-
txt_get_iter_at_offset(self, char_offset)
|
853
|
-
VALUE self, char_offset;
|
763
|
+
txt_get_iter_at_offset(VALUE self, VALUE char_offset)
|
854
764
|
{
|
855
765
|
GtkTextIter iter;
|
856
766
|
gtk_text_buffer_get_iter_at_offset(_SELF(self), &iter, NUM2INT(char_offset));
|
@@ -858,8 +768,7 @@ txt_get_iter_at_offset(self, char_offset)
|
|
858
768
|
}
|
859
769
|
|
860
770
|
static VALUE
|
861
|
-
txt_get_iter_at_line(self, line_number)
|
862
|
-
VALUE self, line_number;
|
771
|
+
txt_get_iter_at_line(VALUE self, VALUE line_number)
|
863
772
|
{
|
864
773
|
GtkTextIter iter;
|
865
774
|
gtk_text_buffer_get_iter_at_line(_SELF(self), &iter, NUM2INT(line_number));
|
@@ -867,8 +776,7 @@ txt_get_iter_at_line(self, line_number)
|
|
867
776
|
}
|
868
777
|
|
869
778
|
static VALUE
|
870
|
-
txt_get_bounds(self)
|
871
|
-
VALUE self;
|
779
|
+
txt_get_bounds(VALUE self)
|
872
780
|
{
|
873
781
|
GtkTextIter start, end;
|
874
782
|
VALUE result;
|
@@ -882,8 +790,7 @@ txt_get_bounds(self)
|
|
882
790
|
}
|
883
791
|
|
884
792
|
static VALUE
|
885
|
-
txt_get_iter_at_mark(self, mark)
|
886
|
-
VALUE self, mark;
|
793
|
+
txt_get_iter_at_mark(VALUE self, VALUE mark)
|
887
794
|
{
|
888
795
|
GtkTextIter iter;
|
889
796
|
gtk_text_buffer_get_iter_at_mark(_SELF(self), &iter, RVAL2MARK(mark));
|