gtk2 0.90.7-x86-mingw32 → 0.90.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (230) hide show
  1. data/ChangeLog +62 -0
  2. data/ext/gtk2/extconf.rb +2 -2
  3. data/ext/gtk2/rbgdk.c +30 -61
  4. data/ext/gtk2/rbgdkatom.c +6 -14
  5. data/ext/gtk2/rbgdkcairo.c +4 -8
  6. data/ext/gtk2/rbgdkcolor.c +11 -27
  7. data/ext/gtk2/rbgdkcolormap.c +8 -16
  8. data/ext/gtk2/rbgdkcursor.c +5 -12
  9. data/ext/gtk2/rbgdkdevice.c +16 -32
  10. data/ext/gtk2/rbgdkdisplay.c +49 -100
  11. data/ext/gtk2/rbgdkdisplaymanager.c +3 -6
  12. data/ext/gtk2/rbgdkdragcontext.c +21 -48
  13. data/ext/gtk2/rbgdkdraw.c +27 -60
  14. data/ext/gtk2/rbgdkevent.c +51 -113
  15. data/ext/gtk2/rbgdkgc.c +35 -70
  16. data/ext/gtk2/rbgdkgeometry.c +24 -50
  17. data/ext/gtk2/rbgdkimage.c +14 -28
  18. data/ext/gtk2/rbgdkinput.c +3 -8
  19. data/ext/gtk2/rbgdkkeymap.c +7 -14
  20. data/ext/gtk2/rbgdkkeyval.c +9 -18
  21. data/ext/gtk2/rbgdkpango.c +8 -18
  22. data/ext/gtk2/rbgdkpangorenderer.c +7 -18
  23. data/ext/gtk2/rbgdkpixbuf.c +5 -20
  24. data/ext/gtk2/rbgdkpixmap.c +9 -24
  25. data/ext/gtk2/rbgdkproperty.c +8 -28
  26. data/ext/gtk2/rbgdkrectangle.c +12 -24
  27. data/ext/gtk2/rbgdkregion.c +15 -33
  28. data/ext/gtk2/rbgdkrgb.c +11 -26
  29. data/ext/gtk2/rbgdkscreen.c +37 -78
  30. data/ext/gtk2/rbgdkselection.c +5 -16
  31. data/ext/gtk2/rbgdkthreads.c +4 -8
  32. data/ext/gtk2/rbgdktimecoord.c +5 -10
  33. data/ext/gtk2/rbgdkvisual.c +25 -50
  34. data/ext/gtk2/rbgdkwindow.c +102 -211
  35. data/ext/gtk2/rbgdkwindowattr.c +16 -32
  36. data/ext/gtk2/rbgdkx11.c +5 -12
  37. data/ext/gtk2/rbgtk.c +9 -10
  38. data/ext/gtk2/rbgtkaboutdialog.c +5 -12
  39. data/ext/gtk2/rbgtkaccelerator.c +6 -12
  40. data/ext/gtk2/rbgtkaccelgroup.c +14 -32
  41. data/ext/gtk2/rbgtkaccelgroupentry.c +4 -8
  42. data/ext/gtk2/rbgtkaccelkey.c +7 -14
  43. data/ext/gtk2/rbgtkaccellabel.c +3 -6
  44. data/ext/gtk2/rbgtkaccelmap.c +12 -28
  45. data/ext/gtk2/rbgtkaccessible.c +1 -2
  46. data/ext/gtk2/rbgtkaction.c +20 -42
  47. data/ext/gtk2/rbgtkactiongroup.c +15 -39
  48. data/ext/gtk2/rbgtkadjustment.c +14 -28
  49. data/ext/gtk2/rbgtkalignment.c +4 -8
  50. data/ext/gtk2/rbgtkallocation.c +13 -26
  51. data/ext/gtk2/rbgtkarrow.c +2 -4
  52. data/ext/gtk2/rbgtkaspectframe.c +2 -4
  53. data/ext/gtk2/rbgtkassistant.c +23 -47
  54. data/ext/gtk2/rbgtkbbox.c +2 -4
  55. data/ext/gtk2/rbgtkbin.c +1 -2
  56. data/ext/gtk2/rbgtkbindingset.c +8 -18
  57. data/ext/gtk2/rbgtkborder.c +4 -8
  58. data/ext/gtk2/rbgtkbox.c +8 -23
  59. data/ext/gtk2/rbgtkbutton.c +8 -18
  60. data/ext/gtk2/rbgtkcalendar.c +11 -24
  61. data/ext/gtk2/rbgtkcelleditable.c +3 -6
  62. data/ext/gtk2/rbgtkcelllayout.c +9 -22
  63. data/ext/gtk2/rbgtkcellrenderer.c +8 -19
  64. data/ext/gtk2/rbgtkcellrendereraccel.c +1 -2
  65. data/ext/gtk2/rbgtkcellrenderercombo.c +1 -2
  66. data/ext/gtk2/rbgtkcellrendererpixbuf.c +1 -2
  67. data/ext/gtk2/rbgtkcellrendererprogress.c +1 -2
  68. data/ext/gtk2/rbgtkcellrendererspin.c +1 -2
  69. data/ext/gtk2/rbgtkcellrendererspinner.c +35 -0
  70. data/ext/gtk2/rbgtkcellrenderertext.c +2 -4
  71. data/ext/gtk2/rbgtkcellrenderertoggle.c +1 -2
  72. data/ext/gtk2/rbgtkcellview.c +6 -14
  73. data/ext/gtk2/rbgtkcheckbutton.c +1 -4
  74. data/ext/gtk2/rbgtkcheckmenuitem.c +2 -6
  75. data/ext/gtk2/rbgtkclipboard.c +30 -75
  76. data/ext/gtk2/rbgtkcolorbutton.c +1 -4
  77. data/ext/gtk2/rbgtkcolorsel.c +10 -24
  78. data/ext/gtk2/rbgtkcolorselectiondialog.c +5 -12
  79. data/ext/gtk2/rbgtkcombo.c +7 -16
  80. data/ext/gtk2/rbgtkcombobox.c +14 -32
  81. data/ext/gtk2/rbgtkcomboboxentry.c +1 -4
  82. data/ext/gtk2/rbgtkcontainer.c +27 -70
  83. data/ext/gtk2/rbgtkcurve.c +6 -12
  84. data/ext/gtk2/rbgtkdialog.c +14 -32
  85. data/ext/gtk2/rbgtkdrag.c +31 -68
  86. data/ext/gtk2/rbgtkdrawingarea.c +1 -2
  87. data/ext/gtk2/rbgtkeditable.c +13 -26
  88. data/ext/gtk2/rbgtkentry.c +7 -14
  89. data/ext/gtk2/rbgtkentrycompletion.c +10 -23
  90. data/ext/gtk2/rbgtkeventbox.c +1 -2
  91. data/ext/gtk2/rbgtkexpander.c +1 -4
  92. data/ext/gtk2/rbgtkfilechooser.c +30 -60
  93. data/ext/gtk2/rbgtkfilechooserbutton.c +1 -4
  94. data/ext/gtk2/rbgtkfilechooserdialog.c +1 -4
  95. data/ext/gtk2/rbgtkfilechooserwidget.c +1 -4
  96. data/ext/gtk2/rbgtkfilefilter.c +10 -21
  97. data/ext/gtk2/rbgtkfilesel.c +14 -30
  98. data/ext/gtk2/rbgtkfixed.c +5 -10
  99. data/ext/gtk2/rbgtkfontbutton.c +1 -4
  100. data/ext/gtk2/rbgtkfontselection.c +1 -2
  101. data/ext/gtk2/rbgtkfontselectiondialog.c +9 -20
  102. data/ext/gtk2/rbgtkframe.c +3 -8
  103. data/ext/gtk2/rbgtkgamma.c +3 -6
  104. data/ext/gtk2/rbgtkhandlebox.c +2 -4
  105. data/ext/gtk2/rbgtkhbbox.c +1 -2
  106. data/ext/gtk2/rbgtkhbox.c +1 -4
  107. data/ext/gtk2/rbgtkhpaned.c +1 -2
  108. data/ext/gtk2/rbgtkhruler.c +1 -2
  109. data/ext/gtk2/rbgtkhscale.c +1 -4
  110. data/ext/gtk2/rbgtkhscrollbar.c +1 -4
  111. data/ext/gtk2/rbgtkhseparator.c +1 -2
  112. data/ext/gtk2/rbgtkiconfactory.c +6 -12
  113. data/ext/gtk2/rbgtkiconinfo.c +8 -16
  114. data/ext/gtk2/rbgtkiconset.c +4 -12
  115. data/ext/gtk2/rbgtkiconsize.c +6 -12
  116. data/ext/gtk2/rbgtkiconsource.c +17 -34
  117. data/ext/gtk2/rbgtkicontheme.c +16 -32
  118. data/ext/gtk2/rbgtkiconview.c +23 -50
  119. data/ext/gtk2/rbgtkimage.c +3 -10
  120. data/ext/gtk2/rbgtkimagemenuitem.c +1 -4
  121. data/ext/gtk2/rbgtkimcontext.c +11 -22
  122. data/ext/gtk2/rbgtkimcontextsimple.c +2 -4
  123. data/ext/gtk2/rbgtkimmulticontext.c +2 -4
  124. data/ext/gtk2/rbgtkinputdialog.c +1 -2
  125. data/ext/gtk2/rbgtkinvisible.c +3 -8
  126. data/ext/gtk2/rbgtkitem.c +3 -6
  127. data/ext/gtk2/rbgtkitemfactory.c +13 -34
  128. data/ext/gtk2/rbgtklabel.c +10 -26
  129. data/ext/gtk2/rbgtklayout.c +6 -14
  130. data/ext/gtk2/rbgtklinkbutton.c +3 -10
  131. data/ext/gtk2/rbgtkliststore.c +15 -36
  132. data/ext/gtk2/rbgtkmain.c +32 -68
  133. data/ext/gtk2/rbgtkmenu.c +21 -46
  134. data/ext/gtk2/rbgtkmenubar.c +1 -2
  135. data/ext/gtk2/rbgtkmenuitem.c +12 -26
  136. data/ext/gtk2/rbgtkmenushell.c +9 -18
  137. data/ext/gtk2/rbgtkmenutoolbutton.c +2 -8
  138. data/ext/gtk2/rbgtkmessagedialog.c +4 -10
  139. data/ext/gtk2/rbgtkmisc.c +4 -8
  140. data/ext/gtk2/rbgtknotebook.c +53 -79
  141. data/ext/gtk2/rbgtkobject.c +7 -14
  142. data/ext/gtk2/rbgtkoptionmenu.c +4 -8
  143. data/ext/gtk2/rbgtkpaned.c +10 -20
  144. data/ext/gtk2/rbgtkplug.c +3 -8
  145. data/ext/gtk2/rbgtkprintsettings.c +1 -4
  146. data/ext/gtk2/rbgtkprogressbar.c +2 -4
  147. data/ext/gtk2/rbgtkradioaction.c +4 -8
  148. data/ext/gtk2/rbgtkradiobutton.c +3 -8
  149. data/ext/gtk2/rbgtkradiomenuitem.c +4 -10
  150. data/ext/gtk2/rbgtkradiotoolbutton.c +3 -8
  151. data/ext/gtk2/rbgtkrange.c +4 -8
  152. data/ext/gtk2/rbgtkrc.c +16 -34
  153. data/ext/gtk2/rbgtkrcstyle.c +13 -26
  154. data/ext/gtk2/rbgtkrecentaction.c +1 -4
  155. data/ext/gtk2/rbgtkrecentchooser.c +18 -38
  156. data/ext/gtk2/rbgtkrecentchooserdialog.c +1 -4
  157. data/ext/gtk2/rbgtkrecentchoosermenu.c +1 -4
  158. data/ext/gtk2/rbgtkrecentchooserwidget.c +1 -4
  159. data/ext/gtk2/rbgtkrecentdata.c +7 -14
  160. data/ext/gtk2/rbgtkrecentfilter.c +14 -29
  161. data/ext/gtk2/rbgtkrecentfilterinfo.c +11 -22
  162. data/ext/gtk2/rbgtkrecentinfo.c +21 -42
  163. data/ext/gtk2/rbgtkrecentmanager.c +11 -24
  164. data/ext/gtk2/rbgtkruler.c +6 -12
  165. data/ext/gtk2/rbgtkscale.c +2 -4
  166. data/ext/gtk2/rbgtkscalebutton.c +6 -14
  167. data/ext/gtk2/rbgtkscrolledwindow.c +9 -20
  168. data/ext/gtk2/rbgtkselection.c +10 -22
  169. data/ext/gtk2/rbgtkselectiondata.c +19 -41
  170. data/ext/gtk2/rbgtkseparatormenuitem.c +1 -2
  171. data/ext/gtk2/rbgtkseparatortoolitem.c +1 -2
  172. data/ext/gtk2/rbgtksettings.c +10 -22
  173. data/ext/gtk2/rbgtksizegroup.c +4 -8
  174. data/ext/gtk2/rbgtksocket.c +4 -8
  175. data/ext/gtk2/rbgtkspinbutton.c +9 -20
  176. data/ext/gtk2/rbgtkspinner.c +51 -0
  177. data/ext/gtk2/rbgtkstatusbar.c +7 -14
  178. data/ext/gtk2/rbgtkstatusicon.c +5 -10
  179. data/ext/gtk2/rbgtkstock.c +5 -13
  180. data/ext/gtk2/rbgtkstyle.c +51 -139
  181. data/ext/gtk2/rbgtktable.c +14 -33
  182. data/ext/gtk2/rbgtktargetlist.c +9 -18
  183. data/ext/gtk2/rbgtktearoffmenuitem.c +1 -2
  184. data/ext/gtk2/rbgtktextappearance.c +11 -22
  185. data/ext/gtk2/rbgtktextattributes.c +16 -32
  186. data/ext/gtk2/rbgtktextbuffer.c +69 -162
  187. data/ext/gtk2/rbgtktextchild.c +3 -8
  188. data/ext/gtk2/rbgtktextiter.c +34 -81
  189. data/ext/gtk2/rbgtktextmark.c +7 -14
  190. data/ext/gtk2/rbgtktexttag.c +4 -10
  191. data/ext/gtk2/rbgtktexttagtable.c +7 -15
  192. data/ext/gtk2/rbgtktextview.c +30 -62
  193. data/ext/gtk2/rbgtktoggleaction.c +4 -8
  194. data/ext/gtk2/rbgtktogglebutton.c +4 -10
  195. data/ext/gtk2/rbgtktoggletoolbutton.c +3 -8
  196. data/ext/gtk2/rbgtktoolbar.c +20 -46
  197. data/ext/gtk2/rbgtktoolbutton.c +1 -4
  198. data/ext/gtk2/rbgtktoolitem.c +16 -34
  199. data/ext/gtk2/rbgtktooltip.c +5 -10
  200. data/ext/gtk2/rbgtktooltips.c +7 -14
  201. data/ext/gtk2/rbgtktreeiter.c +14 -29
  202. data/ext/gtk2/rbgtktreemodel.c +16 -37
  203. data/ext/gtk2/rbgtktreemodelfilter.c +13 -36
  204. data/ext/gtk2/rbgtktreemodelsort.c +8 -16
  205. data/ext/gtk2/rbgtktreepath.c +13 -28
  206. data/ext/gtk2/rbgtktreerowreference.c +9 -20
  207. data/ext/gtk2/rbgtktreeselection.c +20 -47
  208. data/ext/gtk2/rbgtktreesortable.c +7 -18
  209. data/ext/gtk2/rbgtktreestore.c +17 -40
  210. data/ext/gtk2/rbgtktreeview.c +58 -138
  211. data/ext/gtk2/rbgtktreeviewcolumn.c +20 -46
  212. data/ext/gtk2/rbgtkuimanager.c +12 -26
  213. data/ext/gtk2/rbgtkvbbox.c +1 -2
  214. data/ext/gtk2/rbgtkvbox.c +1 -4
  215. data/ext/gtk2/rbgtkviewport.c +1 -2
  216. data/ext/gtk2/rbgtkvolumebutton.c +1 -2
  217. data/ext/gtk2/rbgtkvpaned.c +1 -2
  218. data/ext/gtk2/rbgtkvruler.c +1 -2
  219. data/ext/gtk2/rbgtkvscale.c +1 -4
  220. data/ext/gtk2/rbgtkvscrollbar.c +1 -4
  221. data/ext/gtk2/rbgtkvseparator.c +1 -2
  222. data/ext/gtk2/rbgtkwidget.c +126 -264
  223. data/ext/gtk2/rbgtkwindow.c +69 -142
  224. data/ext/gtk2/rbgtkwindowgroup.c +3 -6
  225. data/lib/1.8/gtk2.so +0 -0
  226. data/lib/1.9/gtk2.so +0 -0
  227. data/lib/gtk2/base.rb +1 -2
  228. data/sample/gtk-demo/main.rb +2 -0
  229. data/sample/gtk-demo/textview.rb +1 -0
  230. metadata +15 -13
@@ -19,10 +19,7 @@
19
19
  static ID id_buffer;
20
20
 
21
21
  static VALUE
22
- textview_initialize(argc, argv, self)
23
- int argc;
24
- VALUE* argv;
25
- VALUE self;
22
+ textview_initialize(int argc, VALUE *argv, VALUE self)
26
23
  {
27
24
  VALUE buffer;
28
25
  GtkWidget* widget;
@@ -40,8 +37,7 @@ textview_initialize(argc, argv, self)
40
37
  }
41
38
 
42
39
  static VALUE
43
- textview_set_buffer(self, buf)
44
- VALUE self, buf;
40
+ textview_set_buffer(VALUE self, VALUE buf)
45
41
  {
46
42
  G_CHILD_SET(self, id_buffer, buf);
47
43
  gtk_text_view_set_buffer(_SELF(self),
@@ -50,8 +46,7 @@ textview_set_buffer(self, buf)
50
46
  }
51
47
 
52
48
  static VALUE
53
- textview_get_buffer(self)
54
- VALUE self;
49
+ textview_get_buffer(VALUE self)
55
50
  {
56
51
  VALUE buf = GOBJ2RVAL(gtk_text_view_get_buffer(_SELF(self)));
57
52
  G_CHILD_SET(self, id_buffer, buf);
@@ -60,8 +55,7 @@ textview_get_buffer(self)
60
55
  }
61
56
 
62
57
  static VALUE
63
- textview_scroll_to_mark(self, mark, within_margin, use_align, xalign, yalign)
64
- VALUE self, mark, within_margin, use_align, xalign, yalign;
58
+ textview_scroll_to_mark(VALUE self, VALUE mark, VALUE within_margin, VALUE use_align, VALUE xalign, VALUE yalign)
65
59
  {
66
60
  gtk_text_view_scroll_to_mark(_SELF(self), RVAL2MARK(mark),
67
61
  NUM2DBL(within_margin), RVAL2CBOOL(use_align),
@@ -70,8 +64,7 @@ textview_scroll_to_mark(self, mark, within_margin, use_align, xalign, yalign)
70
64
  }
71
65
 
72
66
  static VALUE
73
- textview_scroll_to_iter(self, iter, within_margin, use_align, xalign, yalign)
74
- VALUE self, iter, within_margin, use_align, xalign, yalign;
67
+ textview_scroll_to_iter(VALUE self, VALUE iter, VALUE within_margin, VALUE use_align, VALUE xalign, VALUE yalign)
75
68
  {
76
69
  return CBOOL2RVAL(gtk_text_view_scroll_to_iter(_SELF(self), RVAL2ITR(iter),
77
70
  NUM2DBL(within_margin), RVAL2CBOOL(use_align),
@@ -79,30 +72,26 @@ textview_scroll_to_iter(self, iter, within_margin, use_align, xalign, yalign)
79
72
  }
80
73
 
81
74
  static VALUE
82
- textview_scroll_mark_onscreen(self, mark)
83
- VALUE self, mark;
75
+ textview_scroll_mark_onscreen(VALUE self, VALUE mark)
84
76
  {
85
77
  gtk_text_view_scroll_mark_onscreen(_SELF(self), RVAL2MARK(mark));
86
78
  return self;
87
79
  }
88
80
 
89
81
  static VALUE
90
- textview_move_mark_onscreen(self, mark)
91
- VALUE self, mark;
82
+ textview_move_mark_onscreen(VALUE self, VALUE mark)
92
83
  {
93
84
  return CBOOL2RVAL(gtk_text_view_move_mark_onscreen(_SELF(self), RVAL2MARK(mark)));
94
85
  }
95
86
 
96
87
  static VALUE
97
- textview_place_cursor_onscreen(self)
98
- VALUE self;
88
+ textview_place_cursor_onscreen(VALUE self)
99
89
  {
100
90
  return CBOOL2RVAL(gtk_text_view_place_cursor_onscreen(_SELF(self)));
101
91
  }
102
92
 
103
93
  static VALUE
104
- textview_get_visible_rect(self)
105
- VALUE self;
94
+ textview_get_visible_rect(VALUE self)
106
95
  {
107
96
  GdkRectangle rect;
108
97
  gtk_text_view_get_visible_rect(_SELF(self), &rect);
@@ -110,8 +99,7 @@ textview_get_visible_rect(self)
110
99
  }
111
100
 
112
101
  static VALUE
113
- textview_get_iter_location(self, iter)
114
- VALUE self, iter;
102
+ textview_get_iter_location(VALUE self, VALUE iter)
115
103
  {
116
104
  GdkRectangle rect;
117
105
  gtk_text_view_get_iter_location(_SELF(self), RVAL2ITR(iter), &rect);
@@ -119,8 +107,7 @@ textview_get_iter_location(self, iter)
119
107
  }
120
108
 
121
109
  static VALUE
122
- textview_get_line_at_y(self, y)
123
- VALUE self, y;
110
+ textview_get_line_at_y(VALUE self, VALUE y)
124
111
  {
125
112
  GtkTextIter target_iter;
126
113
  gint line_top;
@@ -129,8 +116,7 @@ textview_get_line_at_y(self, y)
129
116
  }
130
117
 
131
118
  static VALUE
132
- textview_get_line_yrange(self, iter)
133
- VALUE self, iter;
119
+ textview_get_line_yrange(VALUE self, VALUE iter)
134
120
  {
135
121
  int y, height;
136
122
  gtk_text_view_get_line_yrange(_SELF(self), RVAL2ITR(iter), &y, &height);
@@ -139,8 +125,7 @@ textview_get_line_yrange(self, iter)
139
125
  }
140
126
 
141
127
  static VALUE
142
- textview_get_iter_at_location(self, x, y)
143
- VALUE self, x, y;
128
+ textview_get_iter_at_location(VALUE self, VALUE x, VALUE y)
144
129
  {
145
130
  GtkTextIter iter;
146
131
  gtk_text_view_get_iter_at_location(_SELF(self), &iter, NUM2INT(x), NUM2INT(y));
@@ -149,8 +134,7 @@ textview_get_iter_at_location(self, x, y)
149
134
 
150
135
  #if GTK_CHECK_VERSION(2,6,0)
151
136
  static VALUE
152
- textview_get_iter_at_position(self, x, y)
153
- VALUE self, x, y;
137
+ textview_get_iter_at_position(VALUE self, VALUE x, VALUE y)
154
138
  {
155
139
  GtkTextIter iter;
156
140
  gint trailing;
@@ -160,8 +144,7 @@ textview_get_iter_at_position(self, x, y)
160
144
  #endif
161
145
 
162
146
  static VALUE
163
- textview_buffer_to_window_coords(self, wintype, buffer_x, buffer_y)
164
- VALUE self, wintype, buffer_x, buffer_y;
147
+ textview_buffer_to_window_coords(VALUE self, VALUE wintype, VALUE buffer_x, VALUE buffer_y)
165
148
  {
166
149
  int window_x, window_y;
167
150
  gtk_text_view_buffer_to_window_coords(_SELF(self),
@@ -172,8 +155,7 @@ textview_buffer_to_window_coords(self, wintype, buffer_x, buffer_y)
172
155
  }
173
156
 
174
157
  static VALUE
175
- textview_window_to_buffer_coords(self, wintype, window_x, window_y)
176
- VALUE self, wintype, window_x, window_y;
158
+ textview_window_to_buffer_coords(VALUE self, VALUE wintype, VALUE window_x, VALUE window_y)
177
159
  {
178
160
  int buffer_x, buffer_y;
179
161
  gtk_text_view_window_to_buffer_coords(_SELF(self),
@@ -184,8 +166,7 @@ textview_window_to_buffer_coords(self, wintype, window_x, window_y)
184
166
  }
185
167
 
186
168
  static VALUE
187
- textview_get_window(self, wintype)
188
- VALUE self, wintype;
169
+ textview_get_window(VALUE self, VALUE wintype)
189
170
  {
190
171
  GdkWindow* win = NULL;
191
172
  win = gtk_text_view_get_window(_SELF(self),
@@ -194,16 +175,14 @@ textview_get_window(self, wintype)
194
175
  }
195
176
 
196
177
  static VALUE
197
- textview_get_window_type(self, gdkwin)
198
- VALUE self, gdkwin;
178
+ textview_get_window_type(VALUE self, VALUE gdkwin)
199
179
  {
200
180
  return GENUM2RVAL(gtk_text_view_get_window_type(_SELF(self), RVAL2GOBJ(gdkwin)),
201
181
  GTK_TYPE_TEXT_WINDOW_TYPE);
202
182
  }
203
183
 
204
184
  static VALUE
205
- textview_set_border_window_size(self, wintype, size)
206
- VALUE self, wintype, size;
185
+ textview_set_border_window_size(VALUE self, VALUE wintype, VALUE size)
207
186
  {
208
187
  gtk_text_view_set_border_window_size(_SELF(self),
209
188
  RVAL2GENUM(wintype, GTK_TYPE_TEXT_WINDOW_TYPE),
@@ -212,8 +191,7 @@ textview_set_border_window_size(self, wintype, size)
212
191
  }
213
192
 
214
193
  static VALUE
215
- textview_get_border_window_size(self, wintype)
216
- VALUE self, wintype;
194
+ textview_get_border_window_size(VALUE self, VALUE wintype)
217
195
  {
218
196
  return INT2NUM(gtk_text_view_get_border_window_size(
219
197
  _SELF(self),
@@ -221,50 +199,43 @@ textview_get_border_window_size(self, wintype)
221
199
  }
222
200
 
223
201
  static VALUE
224
- textview_forward_display_line(self, iter)
225
- VALUE self, iter;
202
+ textview_forward_display_line(VALUE self, VALUE iter)
226
203
  {
227
204
  return CBOOL2RVAL(gtk_text_view_forward_display_line(_SELF(self), RVAL2ITR(iter)));
228
205
  }
229
206
 
230
207
  static VALUE
231
- textview_backward_display_line(self, iter)
232
- VALUE self, iter;
208
+ textview_backward_display_line(VALUE self, VALUE iter)
233
209
  {
234
210
  return CBOOL2RVAL(gtk_text_view_backward_display_line(_SELF(self), RVAL2ITR(iter)));
235
211
  }
236
212
 
237
213
  static VALUE
238
- textview_forward_display_line_end(self, iter)
239
- VALUE self, iter;
214
+ textview_forward_display_line_end(VALUE self, VALUE iter)
240
215
  {
241
216
  return CBOOL2RVAL(gtk_text_view_forward_display_line_end(_SELF(self), RVAL2ITR(iter)));
242
217
  }
243
218
 
244
219
  static VALUE
245
- textview_backward_display_line_start(self, iter)
246
- VALUE self, iter;
220
+ textview_backward_display_line_start(VALUE self, VALUE iter)
247
221
  {
248
222
  return CBOOL2RVAL(gtk_text_view_backward_display_line_start(_SELF(self), RVAL2ITR(iter)));
249
223
  }
250
224
 
251
225
  static VALUE
252
- textview_starts_display_line(self, iter)
253
- VALUE self, iter;
226
+ textview_starts_display_line(VALUE self, VALUE iter)
254
227
  {
255
228
  return CBOOL2RVAL(gtk_text_view_starts_display_line(_SELF(self), RVAL2ITR(iter)));
256
229
  }
257
230
 
258
231
  static VALUE
259
- textview_move_visually(self, iter, count)
260
- VALUE self, iter, count;
232
+ textview_move_visually(VALUE self, VALUE iter, VALUE count)
261
233
  {
262
234
  return CBOOL2RVAL(gtk_text_view_move_visually(_SELF(self), RVAL2ITR(iter), NUM2INT(count)));
263
235
  }
264
236
 
265
237
  static VALUE
266
- textview_add_child_at_anchor(self, child, anchor)
267
- VALUE self, child, anchor;
238
+ textview_add_child_at_anchor(VALUE self, VALUE child, VALUE anchor)
268
239
  {
269
240
  G_CHILD_ADD(self, child);
270
241
  gtk_text_view_add_child_at_anchor(_SELF(self), GTK_WIDGET(RVAL2GOBJ(child)),
@@ -273,8 +244,7 @@ textview_add_child_at_anchor(self, child, anchor)
273
244
  }
274
245
 
275
246
  static VALUE
276
- textview_add_child_in_window(self, child, which_window, xpos, ypos)
277
- VALUE self, child, which_window, xpos, ypos;
247
+ textview_add_child_in_window(VALUE self, VALUE child, VALUE which_window, VALUE xpos, VALUE ypos)
278
248
  {
279
249
  G_CHILD_ADD(self, child);
280
250
  gtk_text_view_add_child_in_window(_SELF(self), GTK_WIDGET(RVAL2GOBJ(child)),
@@ -284,8 +254,7 @@ textview_add_child_in_window(self, child, which_window, xpos, ypos)
284
254
  }
285
255
 
286
256
  static VALUE
287
- textview_move_child(self, child, xpos, ypos)
288
- VALUE self, child, xpos, ypos;
257
+ textview_move_child(VALUE self, VALUE child, VALUE xpos, VALUE ypos)
289
258
  {
290
259
  G_CHILD_ADD(self, child);
291
260
  gtk_text_view_move_child(_SELF(self), GTK_WIDGET(RVAL2GOBJ(child)),
@@ -294,8 +263,7 @@ textview_move_child(self, child, xpos, ypos)
294
263
  }
295
264
 
296
265
  static VALUE
297
- textview_get_default_attributes(self)
298
- VALUE self;
266
+ textview_get_default_attributes(VALUE self)
299
267
  {
300
268
  return BOXED2RVAL(gtk_text_view_get_default_attributes(_SELF(self)),
301
269
  GTK_TYPE_TEXT_ATTRIBUTES);
@@ -16,8 +16,7 @@
16
16
  #define _SELF(self) (GTK_TOGGLE_ACTION(RVAL2GOBJ(self)))
17
17
 
18
18
  static VALUE
19
- taction_initialize(self, name, label, tooltip, stock_id)
20
- VALUE self, name, label, tooltip, stock_id;
19
+ taction_initialize(VALUE self, VALUE name, VALUE label, VALUE tooltip, VALUE stock_id)
21
20
  {
22
21
  const gchar *gstockid = NULL;
23
22
 
@@ -35,24 +34,21 @@ taction_initialize(self, name, label, tooltip, stock_id)
35
34
  }
36
35
 
37
36
  static VALUE
38
- taction_toggled(self)
39
- VALUE self;
37
+ taction_toggled(VALUE self)
40
38
  {
41
39
  gtk_toggle_action_toggled(_SELF(self));
42
40
  return self;
43
41
  }
44
42
 
45
43
  static VALUE
46
- taction_set_active(self, is_active)
47
- VALUE self, is_active;
44
+ taction_set_active(VALUE self, VALUE is_active)
48
45
  {
49
46
  gtk_toggle_action_set_active(_SELF(self), RVAL2CBOOL(is_active));
50
47
  return self;
51
48
  }
52
49
 
53
50
  static VALUE
54
- taction_get_active(self)
55
- VALUE self;
51
+ taction_get_active(VALUE self)
56
52
  {
57
53
  return CBOOL2RVAL(gtk_toggle_action_get_active(_SELF(self)));
58
54
  }
@@ -15,10 +15,7 @@
15
15
  #include "global.h"
16
16
 
17
17
  static VALUE
18
- tbtn_initialize(argc, argv, self)
19
- int argc;
20
- VALUE *argv;
21
- VALUE self;
18
+ tbtn_initialize(int argc, VALUE *argv, VALUE self)
22
19
  {
23
20
  VALUE label, use_underline;
24
21
  GtkWidget *widget;
@@ -46,8 +43,7 @@ tbtn_initialize(argc, argv, self)
46
43
  }
47
44
 
48
45
  static VALUE
49
- tbtn_set_mode(self, mode)
50
- VALUE self, mode;
46
+ tbtn_set_mode(VALUE self, VALUE mode)
51
47
  {
52
48
  gtk_toggle_button_set_mode(GTK_TOGGLE_BUTTON(RVAL2GOBJ(self)),
53
49
  RVAL2CBOOL(mode));
@@ -55,15 +51,13 @@ tbtn_set_mode(self, mode)
55
51
  }
56
52
 
57
53
  static VALUE
58
- tbtn_get_mode(self)
59
- VALUE self;
54
+ tbtn_get_mode(VALUE self)
60
55
  {
61
56
  return CBOOL2RVAL(gtk_toggle_button_get_mode(GTK_TOGGLE_BUTTON(RVAL2GOBJ(self))));
62
57
  }
63
58
 
64
59
  static VALUE
65
- tbtn_toggled(self)
66
- VALUE self;
60
+ tbtn_toggled(VALUE self)
67
61
  {
68
62
  gtk_toggle_button_toggled(GTK_TOGGLE_BUTTON(RVAL2GOBJ(self)));
69
63
  return self;
@@ -15,10 +15,7 @@
15
15
 
16
16
  #define _SELF(self) (GTK_TOGGLE_TOOL_BUTTON(RVAL2GOBJ(self)))
17
17
  static VALUE
18
- toggletoolbutton_initialize(argc, argv, self)
19
- int argc;
20
- VALUE *argv;
21
- VALUE self;
18
+ toggletoolbutton_initialize(int argc, VALUE *argv, VALUE self)
22
19
  {
23
20
  VALUE stock_id;
24
21
  GtkToolItem* item;
@@ -39,16 +36,14 @@ toggletoolbutton_initialize(argc, argv, self)
39
36
  }
40
37
 
41
38
  static VALUE
42
- toggletoolbutton_set_active(self, is_active)
43
- VALUE self, is_active;
39
+ toggletoolbutton_set_active(VALUE self, VALUE is_active)
44
40
  {
45
41
  gtk_toggle_tool_button_set_active(_SELF(self), RVAL2CBOOL(is_active));
46
42
  return self;
47
43
  }
48
44
 
49
45
  static VALUE
50
- toggletoolbutton_get_active(self)
51
- VALUE self;
46
+ toggletoolbutton_get_active(VALUE self)
52
47
  {
53
48
  return CBOOL2RVAL(gtk_toggle_tool_button_get_active(_SELF(self)));
54
49
  }
@@ -19,18 +19,14 @@
19
19
  #define N_RVAL2WIDGET(w) (NIL_P(w) ? NULL : GTK_WIDGET(RVAL2GOBJ(w)))
20
20
 
21
21
  static VALUE
22
- tbar_initialize(self)
23
- VALUE self;
22
+ tbar_initialize(VALUE self)
24
23
  {
25
24
  RBGTK_INITIALIZE(self, gtk_toolbar_new());
26
25
  return Qnil;
27
26
  }
28
27
 
29
28
  static VALUE
30
- tbar_append(argc, argv, self)
31
- int argc;
32
- VALUE* argv;
33
- VALUE self;
29
+ tbar_append(int argc, VALUE *argv, VALUE self)
34
30
  {
35
31
  GtkWidget* ret = NULL;
36
32
  VALUE type = Qnil;
@@ -82,10 +78,7 @@ tbar_append(argc, argv, self)
82
78
  }
83
79
 
84
80
  static VALUE
85
- tbar_prepend(argc, argv, self)
86
- int argc;
87
- VALUE* argv;
88
- VALUE self;
81
+ tbar_prepend(int argc, VALUE *argv, VALUE self)
89
82
  {
90
83
  GtkWidget* ret = NULL;
91
84
  VALUE type = Qnil;
@@ -136,10 +129,7 @@ tbar_prepend(argc, argv, self)
136
129
  }
137
130
 
138
131
  static VALUE
139
- tbar_insert(argc, argv, self)
140
- int argc;
141
- VALUE* argv;
142
- VALUE self;
132
+ tbar_insert(int argc, VALUE *argv, VALUE self)
143
133
  {
144
134
  GtkWidget* ret = NULL;
145
135
  VALUE type = Qnil;
@@ -201,36 +191,31 @@ tbar_insert(argc, argv, self)
201
191
 
202
192
  #if GTK_CHECK_VERSION(2,4,0)
203
193
  static VALUE
204
- tbar_get_item_index(self, item)
205
- VALUE self, item;
194
+ tbar_get_item_index(VALUE self, VALUE item)
206
195
  {
207
196
  return INT2NUM(gtk_toolbar_get_item_index(_SELF(self), GTK_TOOL_ITEM(RVAL2GOBJ(item))));
208
197
  }
209
198
 
210
199
  static VALUE
211
- tbar_get_n_items(self)
212
- VALUE self;
200
+ tbar_get_n_items(VALUE self)
213
201
  {
214
202
  return INT2NUM(gtk_toolbar_get_n_items(_SELF(self)));
215
203
  }
216
204
 
217
205
  static VALUE
218
- tbar_get_nth_item(self, n)
219
- VALUE self, n;
206
+ tbar_get_nth_item(VALUE self, VALUE n)
220
207
  {
221
208
  return GOBJ2RVAL(gtk_toolbar_get_nth_item(_SELF(self), NUM2INT(n)));
222
209
  }
223
210
 
224
211
  static VALUE
225
- tbar_get_drop_index(self, x, y)
226
- VALUE self, x, y;
212
+ tbar_get_drop_index(VALUE self, VALUE x, VALUE y)
227
213
  {
228
214
  return INT2NUM(gtk_toolbar_get_drop_index(_SELF(self), NUM2INT(x), NUM2INT(y)));
229
215
  }
230
216
 
231
217
  static VALUE
232
- tbar_set_drop_highlight_item(self, item, index)
233
- VALUE self, item, index;
218
+ tbar_set_drop_highlight_item(VALUE self, VALUE item, VALUE index)
234
219
  {
235
220
  gtk_toolbar_set_drop_highlight_item(_SELF(self),
236
221
  GTK_TOOL_ITEM(RVAL2GOBJ(item)),
@@ -244,86 +229,75 @@ gboolean gtk_toolbar_get_show_arrow (GtkToolbar *toolbar);
244
229
  */
245
230
 
246
231
  static VALUE
247
- tbar_get_relief_style(self)
248
- VALUE self;
232
+ tbar_get_relief_style(VALUE self)
249
233
  {
250
234
  return GENUM2RVAL(gtk_toolbar_get_relief_style(_SELF(self)), GTK_TYPE_RELIEF_STYLE);
251
235
  }
252
236
  #endif
253
237
 
254
238
  static VALUE
255
- tbar_append_space(self)
256
- VALUE self;
239
+ tbar_append_space(VALUE self)
257
240
  {
258
241
  gtk_toolbar_append_space(_SELF(self));
259
242
  return self;
260
243
  }
261
244
 
262
245
  static VALUE
263
- tbar_prepend_space(self)
264
- VALUE self;
246
+ tbar_prepend_space(VALUE self)
265
247
  {
266
248
  gtk_toolbar_prepend_space(_SELF(self));
267
249
  return self;
268
250
  }
269
251
 
270
252
  static VALUE
271
- tbar_insert_space(self, pos)
272
- VALUE self, pos;
253
+ tbar_insert_space(VALUE self, VALUE pos)
273
254
  {
274
255
  gtk_toolbar_insert_space(_SELF(self), NUM2INT(pos));
275
256
  return self;
276
257
  }
277
258
 
278
259
  static VALUE
279
- tbar_set_tooltips(self, enable)
280
- VALUE self, enable;
260
+ tbar_set_tooltips(VALUE self, VALUE enable)
281
261
  {
282
262
  gtk_toolbar_set_tooltips(_SELF(self), RVAL2CBOOL(enable));
283
263
  return self;
284
264
  }
285
265
 
286
266
  static VALUE
287
- tbar_set_icon_size(self, size)
288
- VALUE self, size;
267
+ tbar_set_icon_size(VALUE self, VALUE size)
289
268
  {
290
269
  gtk_toolbar_set_icon_size(_SELF(self), RVAL2GENUM(size, GTK_TYPE_ICON_SIZE));
291
270
  return self;
292
271
  }
293
272
 
294
273
  static VALUE
295
- tbar_get_icon_size(self)
296
- VALUE self;
274
+ tbar_get_icon_size(VALUE self)
297
275
  {
298
276
  return GENUM2RVAL(gtk_toolbar_get_icon_size(_SELF(self)), GTK_TYPE_ICON_SIZE);
299
277
  }
300
278
 
301
279
  static VALUE
302
- tbar_get_tooltips(self)
303
- VALUE self;
280
+ tbar_get_tooltips(VALUE self)
304
281
  {
305
282
  return CBOOL2RVAL(gtk_toolbar_get_tooltips(_SELF(self)));
306
283
  }
307
284
 
308
285
  static VALUE
309
- tbar_remove_space(self, position)
310
- VALUE self, position;
286
+ tbar_remove_space(VALUE self, VALUE position)
311
287
  {
312
288
  gtk_toolbar_remove_space(_SELF(self), NUM2INT(position));
313
289
  return self;
314
290
  }
315
291
 
316
292
  static VALUE
317
- tbar_unset_icon_size(self)
318
- VALUE self;
293
+ tbar_unset_icon_size(VALUE self)
319
294
  {
320
295
  gtk_toolbar_unset_icon_size(_SELF(self));
321
296
  return self;
322
297
  }
323
298
 
324
299
  static VALUE
325
- tbar_unset_style(self)
326
- VALUE self;
300
+ tbar_unset_style(VALUE self)
327
301
  {
328
302
  gtk_toolbar_unset_style(_SELF(self));
329
303
  return self;