gtk2 0.90.7 → 0.90.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) 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/gtk2/base.rb +1 -2
  226. data/sample/gtk-demo/main.rb +2 -0
  227. data/sample/gtk-demo/textview.rb +1 -0
  228. metadata +15 -17
  229. data/ext/gtk2/Makefile +0 -169
  230. data/ext/gtk2/rbgdkkeysyms.h +0 -2174
  231. data/ext/gtk2/rbgtkinits.c +0 -473
  232. data/ext/gtk2/ruby-gtk2.pc +0 -3
@@ -21,22 +21,19 @@
21
21
  static ID id_new;
22
22
 
23
23
  static VALUE
24
- gdkscreen_default(self)
25
- VALUE self;
24
+ gdkscreen_default(VALUE self)
26
25
  {
27
26
  return GOBJ2RVAL(gdk_screen_get_default());
28
27
  }
29
28
 
30
29
  static VALUE
31
- gdkscreen_get_default_colormap(self)
32
- VALUE self;
30
+ gdkscreen_get_default_colormap(VALUE self)
33
31
  {
34
32
  return GOBJ2RVAL(gdk_screen_get_default_colormap(_SELF(self)));
35
33
  }
36
34
 
37
35
  static VALUE
38
- gdkscreen_set_default_colormap(self, colormap)
39
- VALUE self, colormap;
36
+ gdkscreen_set_default_colormap(VALUE self, VALUE colormap)
40
37
  {
41
38
  gdk_screen_set_default_colormap(_SELF(self),
42
39
  GDK_COLORMAP(RVAL2GOBJ(colormap)));
@@ -44,44 +41,38 @@ gdkscreen_set_default_colormap(self, colormap)
44
41
  }
45
42
 
46
43
  static VALUE
47
- gdkscreen_get_system_colormap(self)
48
- VALUE self;
44
+ gdkscreen_get_system_colormap(VALUE self)
49
45
  {
50
46
  return GOBJ2RVAL(gdk_screen_get_system_colormap(_SELF(self)));
51
47
  }
52
48
 
53
49
  static VALUE
54
- gdkscreen_get_system_visual(self)
55
- VALUE self;
50
+ gdkscreen_get_system_visual(VALUE self)
56
51
  {
57
52
  return GOBJ2RVAL(gdk_screen_get_system_visual(_SELF(self)));
58
53
  }
59
54
 
60
55
  static VALUE
61
- gdkscreen_get_rgb_colormap(self)
62
- VALUE self;
56
+ gdkscreen_get_rgb_colormap(VALUE self)
63
57
  {
64
58
  return GOBJ2RVAL(gdk_screen_get_rgb_colormap(_SELF(self)));
65
59
  }
66
60
 
67
61
  static VALUE
68
- gdkscreen_get_rgb_visual(self)
69
- VALUE self;
62
+ gdkscreen_get_rgb_visual(VALUE self)
70
63
  {
71
64
  return GOBJ2RVAL(gdk_screen_get_rgb_visual(_SELF(self)));
72
65
  }
73
66
 
74
67
  #if GTK_CHECK_VERSION(2,8,0)
75
68
  static VALUE
76
- gdkscreen_get_rgba_colormap(self)
77
- VALUE self;
69
+ gdkscreen_get_rgba_colormap(VALUE self)
78
70
  {
79
71
  return GOBJ2RVAL(gdk_screen_get_rgba_colormap(_SELF(self)));
80
72
  }
81
73
 
82
74
  static VALUE
83
- gdkscreen_get_rgba_visual(self)
84
- VALUE self;
75
+ gdkscreen_get_rgba_visual(VALUE self)
85
76
  {
86
77
  return GOBJ2RVAL(gdk_screen_get_rgba_visual(_SELF(self)));
87
78
  }
@@ -89,75 +80,64 @@ gdkscreen_get_rgba_visual(self)
89
80
 
90
81
  #if GTK_CHECK_VERSION(2,10,0)
91
82
  static VALUE
92
- gdkscreen_is_composited(self)
93
- VALUE self;
83
+ gdkscreen_is_composited(VALUE self)
94
84
  {
95
85
  return CBOOL2RVAL(gdk_screen_is_composited(_SELF(self)));
96
86
  }
97
87
  #endif
98
88
 
99
89
  static VALUE
100
- gdkscreen_get_root_window(self)
101
- VALUE self;
90
+ gdkscreen_get_root_window(VALUE self)
102
91
  {
103
92
  return GOBJ2RVAL(gdk_screen_get_root_window(_SELF(self)));
104
93
  }
105
94
 
106
95
  static VALUE
107
- gdkscreen_get_display(self)
108
- VALUE self;
96
+ gdkscreen_get_display(VALUE self)
109
97
  {
110
98
  return GOBJ2RVAL(gdk_screen_get_display(_SELF(self)));
111
99
  }
112
100
 
113
101
  static VALUE
114
- gdkscreen_number(self)
115
- VALUE self;
102
+ gdkscreen_number(VALUE self)
116
103
  {
117
104
  return INT2NUM(gdk_screen_get_number(_SELF(self)));
118
105
  }
119
106
  static VALUE
120
- gdkscreen_width(self)
121
- VALUE self;
107
+ gdkscreen_width(VALUE self)
122
108
  {
123
109
  return INT2NUM(gdk_screen_get_width(_SELF(self)));
124
110
  }
125
111
  static VALUE
126
- gdkscreen_height(self)
127
- VALUE self;
112
+ gdkscreen_height(VALUE self)
128
113
  {
129
114
  return INT2NUM(gdk_screen_get_height(_SELF(self)));
130
115
  }
131
116
  static VALUE
132
- gdkscreen_width_mm(self)
133
- VALUE self;
117
+ gdkscreen_width_mm(VALUE self)
134
118
  {
135
119
  return INT2NUM(gdk_screen_get_width_mm(_SELF(self)));
136
120
  }
137
121
  static VALUE
138
- gdkscreen_height_mm(self)
139
- VALUE self;
122
+ gdkscreen_height_mm(VALUE self)
140
123
  {
141
124
  return INT2NUM(gdk_screen_get_height_mm(_SELF(self)));
142
125
  }
143
126
 
144
127
  static VALUE
145
- gdkscreen_list_visuals(self)
146
- VALUE self;
128
+ gdkscreen_list_visuals(VALUE self)
147
129
  {
148
130
  return GLIST2ARYF(gdk_screen_list_visuals(_SELF(self)));
149
131
  }
150
132
 
151
133
  static VALUE
152
- gdkscreen_get_toplevel_windows(self)
153
- VALUE self;
134
+ gdkscreen_get_toplevel_windows(VALUE self)
154
135
  {
155
136
  return GLIST2ARYF(gdk_screen_get_toplevel_windows(_SELF(self)));
156
137
  }
157
138
 
158
139
  static VALUE
159
- gdkscreen_make_display_name(self)
160
- VALUE self;
140
+ gdkscreen_make_display_name(VALUE self)
161
141
  {
162
142
  gchar* name = gdk_screen_make_display_name(_SELF(self));
163
143
  VALUE ret = CSTR2RVAL(name);
@@ -166,15 +146,13 @@ gdkscreen_make_display_name(self)
166
146
  }
167
147
 
168
148
  static VALUE
169
- gdkscreen_n_monitors(self)
170
- VALUE self;
149
+ gdkscreen_n_monitors(VALUE self)
171
150
  {
172
151
  return INT2NUM(gdk_screen_get_n_monitors(_SELF(self)));
173
152
  }
174
153
 
175
154
  static VALUE
176
- gdkscreen_monitor_geometry(self, num)
177
- VALUE self, num;
155
+ gdkscreen_monitor_geometry(VALUE self, VALUE num)
178
156
  {
179
157
  GdkRectangle rect;
180
158
  gdk_screen_get_monitor_geometry(_SELF(self), NUM2INT(num), &rect);
@@ -182,10 +160,7 @@ gdkscreen_monitor_geometry(self, num)
182
160
  }
183
161
 
184
162
  static VALUE
185
- gdkscreen_get_monitor(argc, argv, self)
186
- int argc;
187
- VALUE* argv;
188
- VALUE self;
163
+ gdkscreen_get_monitor(int argc, VALUE *argv, VALUE self)
189
164
  {
190
165
  VALUE arg1, arg2;
191
166
  VALUE ret;
@@ -204,8 +179,7 @@ gdkscreen_get_monitor(argc, argv, self)
204
179
  }
205
180
 
206
181
  static VALUE
207
- gdkscreen_broadcast_client_message(self, event)
208
- VALUE self, event;
182
+ gdkscreen_broadcast_client_message(VALUE self, VALUE event)
209
183
  {
210
184
  gdk_screen_broadcast_client_message(_SELF(self), RVAL2GEV(event));
211
185
  return self;
@@ -215,10 +189,7 @@ gdkscreen_broadcast_client_message(self, event)
215
189
  type: String, Integer, Gdk::Color.
216
190
  */
217
191
  static VALUE
218
- gdkscreen_get_setting(argc, argv, self)
219
- int argc;
220
- VALUE* argv;
221
- VALUE self;
192
+ gdkscreen_get_setting(int argc, VALUE *argv, VALUE self)
222
193
  {
223
194
  VALUE name, type;
224
195
  GType gtype;
@@ -242,15 +213,13 @@ gdkscreen_get_setting(argc, argv, self)
242
213
  #if GTK_CHECK_VERSION(2,10,0)
243
214
  #ifdef HAVE_RB_CAIRO_H
244
215
  static VALUE
245
- gdkscreen_get_font_options(self)
246
- VALUE self;
216
+ gdkscreen_get_font_options(VALUE self)
247
217
  {
248
218
  return CRFONTOPTIONS2RVAL((cairo_font_options_t *)gdk_screen_get_font_options(_SELF(self)));
249
219
  }
250
220
 
251
221
  static VALUE
252
- gdkscreen_set_font_options(self, options)
253
- VALUE self, options;
222
+ gdkscreen_set_font_options(VALUE self, VALUE options)
254
223
  {
255
224
  gdk_screen_set_font_options(_SELF(self),
256
225
  (const cairo_font_options_t *)RVAL2CRFONTOPTIONS(options));
@@ -265,15 +234,13 @@ gdouble gdk_screen_get_resolution (GdkScreen *screen);
265
234
  */
266
235
 
267
236
  static VALUE
268
- gdkscreen_get_active_window(self)
269
- VALUE self;
237
+ gdkscreen_get_active_window(VALUE self)
270
238
  {
271
239
  return GOBJ2RVAL(gdk_screen_get_active_window(_SELF(self)));
272
240
  }
273
241
 
274
242
  static VALUE
275
- gdkscreen_get_window_stack(self)
276
- VALUE self;
243
+ gdkscreen_get_window_stack(VALUE self)
277
244
  {
278
245
  GList* list = gdk_screen_get_window_stack(_SELF(self));
279
246
  VALUE ary = rb_ary_new();
@@ -289,8 +256,7 @@ gdkscreen_get_window_stack(self)
289
256
 
290
257
  #if GTK_CHECK_VERSION(2,4,0)
291
258
  static void
292
- child_setup(func)
293
- gpointer func;
259
+ child_setup(gpointer func)
294
260
  {
295
261
  if (! NIL_P(func)){
296
262
  rb_funcall((VALUE)func, id_call, 0);
@@ -298,8 +264,7 @@ child_setup(func)
298
264
  }
299
265
 
300
266
  static VALUE
301
- gdkscreen_spawn_on_screen(self, working_directory, argv, envp, flags)
302
- VALUE self, working_directory, argv, envp, flags;
267
+ gdkscreen_spawn_on_screen(VALUE self, VALUE working_directory, VALUE argv, VALUE envp, VALUE flags)
303
268
  {
304
269
  GError *err = NULL;
305
270
  gboolean ret;
@@ -358,8 +323,7 @@ gdkscreen_spawn_on_screen(self, working_directory, argv, envp, flags)
358
323
  }
359
324
 
360
325
  static VALUE
361
- gdkscreen_spawn_on_screen_with_pipes(self, working_directory, argv, envp, flags)
362
- VALUE self, working_directory, argv, envp, flags;
326
+ gdkscreen_spawn_on_screen_with_pipes(VALUE self, VALUE working_directory, VALUE argv, VALUE envp, VALUE flags)
363
327
  {
364
328
  GError *err = NULL;
365
329
  gboolean ret;
@@ -422,8 +386,7 @@ gdkscreen_spawn_on_screen_with_pipes(self, working_directory, argv, envp, flags)
422
386
  }
423
387
 
424
388
  static VALUE
425
- gdkscreen_spawn_command_line_on_screen(self, command_line)
426
- VALUE self, command_line;
389
+ gdkscreen_spawn_command_line_on_screen(VALUE self, VALUE command_line)
427
390
  {
428
391
  GError *err = NULL;
429
392
  VALUE ret;
@@ -439,28 +402,24 @@ gdkscreen_spawn_command_line_on_screen(self, command_line)
439
402
  #ifdef GDK_WINDOWING_X11
440
403
  #include <gdk/gdkx.h>
441
404
  static VALUE
442
- gdkscreen_xnumber(self)
443
- VALUE self;
405
+ gdkscreen_xnumber(VALUE self)
444
406
  {
445
407
  return INT2NUM(GDK_SCREEN_XNUMBER(_SELF(self)));
446
408
  }
447
409
  static VALUE
448
- gdkscreen_supports_net_wm_hint(self, property)
449
- VALUE self, property;
410
+ gdkscreen_supports_net_wm_hint(VALUE self, VALUE property)
450
411
  {
451
412
  return CBOOL2RVAL(gdk_x11_screen_supports_net_wm_hint(_SELF(self),
452
413
  RVAL2ATOM(property)));
453
414
  }
454
415
 
455
416
  static VALUE
456
- gdkscreen_get_window_manager_name(self)
457
- VALUE self;
417
+ gdkscreen_get_window_manager_name(VALUE self)
458
418
  {
459
419
  return CSTR2RVAL(gdk_x11_screen_get_window_manager_name(_SELF(self)));
460
420
  }
461
421
  static VALUE
462
- gdkscreen_get_screen_number(self)
463
- VALUE self;
422
+ gdkscreen_get_screen_number(VALUE self)
464
423
  {
465
424
  return INT2NUM(gdk_x11_screen_get_screen_number(_SELF(self)));
466
425
  }
@@ -15,10 +15,7 @@
15
15
  #define GATOM2RVAL(g) (BOXED2RVAL(g, GDK_TYPE_ATOM))
16
16
 
17
17
  static VALUE
18
- gdkselection_owner_set(argc, argv, self)
19
- int argc;
20
- VALUE *argv;
21
- VALUE self;
18
+ gdkselection_owner_set(int argc, VALUE *argv, VALUE self)
22
19
  {
23
20
  VALUE owner, selection, time, send_event;
24
21
  int ret;
@@ -45,10 +42,7 @@ gdkselection_owner_set(argc, argv, self)
45
42
  }
46
43
 
47
44
  static VALUE
48
- gdkselection_owner_get(argc, argv, self)
49
- int argc;
50
- VALUE *argv;
51
- VALUE self;
45
+ gdkselection_owner_get(int argc, VALUE *argv, VALUE self)
52
46
  {
53
47
  VALUE selection;
54
48
 
@@ -68,8 +62,7 @@ gdkselection_owner_get(argc, argv, self)
68
62
  }
69
63
 
70
64
  static VALUE
71
- gdkselection_convert(self, requestor, selection, target, time)
72
- VALUE self, requestor, selection, target, time;
65
+ gdkselection_convert(VALUE self, VALUE requestor, VALUE selection, VALUE target, VALUE time)
73
66
  {
74
67
  gdk_selection_convert(GDK_WINDOW(RVAL2GOBJ(requestor)),
75
68
  RVAL2ATOM(selection),
@@ -78,8 +71,7 @@ gdkselection_convert(self, requestor, selection, target, time)
78
71
  }
79
72
 
80
73
  static VALUE
81
- gdkselection_property_get(self, requestor)
82
- VALUE self, requestor;
74
+ gdkselection_property_get(VALUE self, VALUE requestor)
83
75
  {
84
76
  guchar *data;
85
77
  GdkAtom prop_type;
@@ -96,10 +88,7 @@ gdkselection_property_get(self, requestor)
96
88
  }
97
89
 
98
90
  static VALUE
99
- gdkselection_send_notify(argc, argv, self)
100
- int argc;
101
- VALUE *argv;
102
- VALUE self;
91
+ gdkselection_send_notify(int argc, VALUE *argv, VALUE self)
103
92
  {
104
93
  VALUE requestor, selection, target, property, time;
105
94
 
@@ -13,8 +13,7 @@
13
13
 
14
14
  #ifdef G_THREADS_ENABLED
15
15
  static VALUE
16
- rbgdk_threads_init(self)
17
- VALUE self;
16
+ rbgdk_threads_init(VALUE self)
18
17
  {
19
18
  #ifndef GDK_WINDOWING_WIN32
20
19
  if (!g_thread_supported()){
@@ -26,24 +25,21 @@ rbgdk_threads_init(self)
26
25
  }
27
26
 
28
27
  static VALUE
29
- rbgdk_threads_enter(self)
30
- VALUE self;
28
+ rbgdk_threads_enter(VALUE self)
31
29
  {
32
30
  gdk_threads_enter();
33
31
  return self;
34
32
  }
35
33
 
36
34
  static VALUE
37
- rbgdk_threads_leave(self)
38
- VALUE self;
35
+ rbgdk_threads_leave(VALUE self)
39
36
  {
40
37
  gdk_threads_leave();
41
38
  return self;
42
39
  }
43
40
 
44
41
  static VALUE
45
- rbgdk_threads_synchronize(self)
46
- VALUE self;
42
+ rbgdk_threads_synchronize(VALUE self)
47
43
  {
48
44
  VALUE func = rb_block_proc();
49
45
  gdk_threads_enter();
@@ -37,8 +37,7 @@ gdk_timecoord_get_type(void)
37
37
  /**********************************/
38
38
 
39
39
  static VALUE
40
- timecoord_initialize(self, time, axes)
41
- VALUE self, time, axes;
40
+ timecoord_initialize(VALUE self, VALUE time, VALUE axes)
42
41
  {
43
42
  GdkTimeCoord coord;
44
43
  int i;
@@ -58,23 +57,20 @@ timecoord_initialize(self, time, axes)
58
57
  }
59
58
 
60
59
  static VALUE
61
- timecoord_time(self)
62
- VALUE self;
60
+ timecoord_time(VALUE self)
63
61
  {
64
62
  return UINT2NUM(_SELF(self)->time);
65
63
  }
66
64
 
67
65
  static VALUE
68
- timecoord_set_time(self, time)
69
- VALUE self, time;
66
+ timecoord_set_time(VALUE self, VALUE time)
70
67
  {
71
68
  _SELF(self)->time = NUM2UINT(time);
72
69
  return self;
73
70
  }
74
71
 
75
72
  static VALUE
76
- timecoord_axes(self)
77
- VALUE self;
73
+ timecoord_axes(VALUE self)
78
74
  {
79
75
  VALUE ary = rb_ary_new();
80
76
  int i;
@@ -85,8 +81,7 @@ timecoord_axes(self)
85
81
  }
86
82
 
87
83
  static VALUE
88
- timecoord_set_axes(self, axes)
89
- VALUE self, axes;
84
+ timecoord_set_axes(VALUE self, VALUE axes)
90
85
  {
91
86
  int i;
92
87
  GdkTimeCoord* coord = _SELF(self);