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.
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
@@ -13,16 +13,14 @@
13
13
  #define _SELF(self) (GTK_IM_CONTEXT_SIMPLE(RVAL2GOBJ(self)))
14
14
 
15
15
  static VALUE
16
- imcsimple_initialize(self)
17
- VALUE self;
16
+ imcsimple_initialize(VALUE self)
18
17
  {
19
18
  G_INITIALIZE(self, gtk_im_context_simple_new());
20
19
  return Qnil;
21
20
  }
22
21
 
23
22
  static VALUE
24
- imcsimple_add_table(self, data, max_seq_len, n_seqs)
25
- VALUE self, data, max_seq_len, n_seqs;
23
+ imcsimple_add_table(VALUE self, VALUE data, VALUE max_seq_len, VALUE n_seqs)
26
24
  {
27
25
  int i;
28
26
  guint16* gdata = ALLOCA_N(guint16, RARRAY_LEN(data));
@@ -13,16 +13,14 @@
13
13
  #define _SELF(self) (GTK_IM_MULTICONTEXT(RVAL2GOBJ(self)))
14
14
 
15
15
  static VALUE
16
- immulti_initialize(self)
17
- VALUE self;
16
+ immulti_initialize(VALUE self)
18
17
  {
19
18
  G_INITIALIZE(self, gtk_im_multicontext_new());
20
19
  return Qnil;
21
20
  }
22
21
 
23
22
  static VALUE
24
- immulti_append_menuitems(self, menushell)
25
- VALUE self, menushell;
23
+ immulti_append_menuitems(VALUE self, VALUE menushell)
26
24
  {
27
25
  gtk_im_multicontext_append_menuitems(_SELF(self), RVAL2GOBJ(menushell));
28
26
  return self;
@@ -15,8 +15,7 @@
15
15
  #include "global.h"
16
16
 
17
17
  static VALUE
18
- idiag_initialize(self)
19
- VALUE self;
18
+ idiag_initialize(VALUE self)
20
19
  {
21
20
  RBGTK_INITIALIZE(self, gtk_input_dialog_new());
22
21
  return Qnil;
@@ -13,10 +13,7 @@
13
13
  #define _SELF(s) GTK_INVISIBLE(RVAL2GOBJ(s))
14
14
 
15
15
  static VALUE
16
- invisible_initialize(argc, argv, self)
17
- int argc;
18
- VALUE *argv;
19
- VALUE self;
16
+ invisible_initialize(int argc, VALUE *argv, VALUE self)
20
17
  {
21
18
  VALUE screen;
22
19
 
@@ -37,16 +34,14 @@ invisible_initialize(argc, argv, self)
37
34
 
38
35
  #if GTK_CHECK_VERSION(2,2,0)
39
36
  static VALUE
40
- invisible_set_screen(self, screen)
41
- VALUE self, screen;
37
+ invisible_set_screen(VALUE self, VALUE screen)
42
38
  {
43
39
  gtk_invisible_set_screen(_SELF(self), GDK_SCREEN(RVAL2GOBJ(screen)));
44
40
  return self;
45
41
  }
46
42
 
47
43
  static VALUE
48
- invisible_get_screen(self)
49
- VALUE self;
44
+ invisible_get_screen(VALUE self)
50
45
  {
51
46
  return GOBJ2RVAL(gtk_invisible_get_screen(_SELF(self)));
52
47
  }
@@ -18,24 +18,21 @@
18
18
  * Item
19
19
  */
20
20
  static VALUE
21
- item_select(self)
22
- VALUE self;
21
+ item_select(VALUE self)
23
22
  {
24
23
  gtk_item_select(GTK_ITEM(RVAL2GOBJ(self)));
25
24
  return self;
26
25
  }
27
26
 
28
27
  static VALUE
29
- item_deselect(self)
30
- VALUE self;
28
+ item_deselect(VALUE self)
31
29
  {
32
30
  gtk_item_deselect(GTK_ITEM(RVAL2GOBJ(self)));
33
31
  return self;
34
32
  }
35
33
 
36
34
  static VALUE
37
- item_toggle(self)
38
- VALUE self;
35
+ item_toggle(VALUE self)
39
36
  {
40
37
  gtk_item_toggle(GTK_ITEM(RVAL2GOBJ(self)));
41
38
  return self;
@@ -23,9 +23,7 @@ static VALUE action_table;
23
23
  static guint action_id = 0;
24
24
 
25
25
  static VALUE
26
- ifact_initialize(self, type, path, accel)
27
- VALUE self;
28
- VALUE type, path, accel;
26
+ ifact_initialize(VALUE self, VALUE type, VALUE path, VALUE accel)
29
27
  {
30
28
  VALUE obj = rb_eval_string("eval('self', binding)");
31
29
  G_RELATIVE(obj, self);
@@ -36,10 +34,7 @@ ifact_initialize(self, type, path, accel)
36
34
  }
37
35
 
38
36
  static VALUE
39
- ifact_construct(argc, argv, self)
40
- int argc;
41
- VALUE *argv;
42
- VALUE self;
37
+ ifact_construct(int argc, VALUE *argv, VALUE self)
43
38
  {
44
39
  VALUE type, path, accel;
45
40
  GtkItemFactory* ifact = _SELF(self);
@@ -52,8 +47,7 @@ ifact_construct(argc, argv, self)
52
47
  }
53
48
 
54
49
  static VALUE
55
- ifact_s_from_widget(self, widget)
56
- VALUE self, widget;
50
+ ifact_s_from_widget(VALUE self, VALUE widget)
57
51
  {
58
52
  VALUE obj = GOBJ2RVAL(gtk_item_factory_from_widget(RVAL2WIDGET(widget)));
59
53
  G_RELATIVE(obj, self);
@@ -61,15 +55,13 @@ ifact_s_from_widget(self, widget)
61
55
  }
62
56
 
63
57
  static VALUE
64
- ifact_s_path_from_widget(self, widget)
65
- VALUE self, widget;
58
+ ifact_s_path_from_widget(VALUE self, VALUE widget)
66
59
  {
67
60
  return CSTR2RVAL(gtk_item_factory_path_from_widget(RVAL2WIDGET(widget)));
68
61
  }
69
62
 
70
63
  static VALUE
71
- ifact_get_item(self, path)
72
- VALUE self, path;
64
+ ifact_get_item(VALUE self, VALUE path)
73
65
  {
74
66
  VALUE obj = Qnil;
75
67
  GtkWidget* widget = gtk_item_factory_get_item(_SELF(self), RVAL2CSTR(path));
@@ -81,8 +73,7 @@ ifact_get_item(self, path)
81
73
  }
82
74
 
83
75
  static VALUE
84
- ifact_get_widget(self, path)
85
- VALUE self, path;
76
+ ifact_get_widget(VALUE self, VALUE path)
86
77
  {
87
78
  VALUE obj = Qnil;
88
79
  GtkWidget* widget = gtk_item_factory_get_widget(_SELF(self), RVAL2CSTR(path));
@@ -103,8 +94,7 @@ GtkWidget* gtk_item_factory_get_item_by_action
103
94
  */
104
95
 
105
96
  static int
106
- menuitem_type_check(item_type)
107
- char *item_type;
97
+ menuitem_type_check(char *item_type)
108
98
  {
109
99
  if (item_type == NULL || strcmp(item_type, "<Branch>") == 0
110
100
  || (strcmp(item_type, "<LastBranch>") == 0)
@@ -115,10 +105,7 @@ menuitem_type_check(item_type)
115
105
  }
116
106
 
117
107
  static void
118
- items_exec_callback_wrap(callback_data, action_id, widget)
119
- VALUE callback_data;
120
- guint action_id;
121
- GtkWidget* widget;
108
+ items_exec_callback_wrap(VALUE callback_data, guint action_id, GtkWidget *widget)
122
109
  {
123
110
  VALUE iter, data;
124
111
  VALUE action = rb_hash_aref(action_table, UINT2NUM(action_id));
@@ -131,9 +118,7 @@ items_exec_callback_wrap(callback_data, action_id, widget)
131
118
  }
132
119
 
133
120
  static void
134
- create_factory_entry(entry, self, path, item_type, accel, extdata, func, data)
135
- GtkItemFactoryEntry* entry;
136
- VALUE self, path, item_type, accel, extdata, func, data;
121
+ create_factory_entry(GtkItemFactoryEntry *entry, VALUE self, VALUE path, VALUE item_type, VALUE accel, VALUE extdata, VALUE func, VALUE data)
137
122
  {
138
123
  VALUE action;
139
124
 
@@ -173,10 +158,7 @@ create_factory_entry(entry, self, path, item_type, accel, extdata, func, data)
173
158
  }
174
159
 
175
160
  static VALUE
176
- ifact_create_item(argc, argv, self)
177
- int argc;
178
- VALUE *argv;
179
- VALUE self;
161
+ ifact_create_item(int argc, VALUE *argv, VALUE self)
180
162
  {
181
163
  VALUE path, type, accel, extdata, data, func;
182
164
  GtkItemFactoryEntry *entry;
@@ -194,8 +176,7 @@ ifact_create_item(argc, argv, self)
194
176
  }
195
177
 
196
178
  static VALUE
197
- ifact_create_items(self, ary)
198
- VALUE self, ary;
179
+ ifact_create_items(VALUE self, VALUE ary)
199
180
  {
200
181
  VALUE entry, path, accel, type, func, data, extdata;
201
182
  GtkItemFactoryEntry *entries;
@@ -226,8 +207,7 @@ ifact_create_items(self, ary)
226
207
 
227
208
 
228
209
  static VALUE
229
- ifact_delete_item(self, path)
230
- VALUE self, path;
210
+ ifact_delete_item(VALUE self, VALUE path)
231
211
  {
232
212
  gtk_item_factory_delete_item(_SELF(self), RVAL2CSTR(path));
233
213
  return self;
@@ -243,8 +223,7 @@ void gtk_item_factory_delete_entries (GtkItemFactory *ifactory,
243
223
  */
244
224
 
245
225
  static VALUE
246
- ifact_popup(self, x, y, mouse_button, time)
247
- VALUE self, x, y, mouse_button, time;
226
+ ifact_popup(VALUE self, VALUE x, VALUE y, VALUE mouse_button, VALUE time)
248
227
  {
249
228
  gtk_item_factory_popup(_SELF(self), NUM2UINT(x), NUM2UINT(y), NUM2UINT(mouse_button),
250
229
  NUM2UINT(time));
@@ -17,10 +17,7 @@
17
17
  #define _SELF(s) (GTK_LABEL(RVAL2GOBJ(s)))
18
18
 
19
19
  static VALUE
20
- label_initialize(argc, argv, self)
21
- int argc;
22
- VALUE *argv;
23
- VALUE self;
20
+ label_initialize(int argc, VALUE *argv, VALUE self)
24
21
  {
25
22
  VALUE label, with_mnemonic;
26
23
  GtkWidget* widget = NULL;
@@ -37,18 +34,14 @@ label_initialize(argc, argv, self)
37
34
  }
38
35
 
39
36
  static VALUE
40
- label_set_text_only(self, text)
41
- VALUE self, text;
37
+ label_set_text_only(VALUE self, VALUE text)
42
38
  {
43
39
  gtk_label_set_text(_SELF(self), RVAL2CSTR(text));
44
40
  return text;
45
41
  }
46
42
 
47
43
  static VALUE
48
- label_set_text(argc, argv, self)
49
- int argc;
50
- VALUE *argv;
51
- VALUE self;
44
+ label_set_text(int argc, VALUE *argv, VALUE self)
52
45
  {
53
46
  VALUE label, with_mnemonic;
54
47
 
@@ -62,18 +55,14 @@ label_set_text(argc, argv, self)
62
55
  }
63
56
 
64
57
  static VALUE
65
- label_set_markup_only(self, text)
66
- VALUE self, text;
58
+ label_set_markup_only(VALUE self, VALUE text)
67
59
  {
68
60
  gtk_label_set_markup(_SELF(self), RVAL2CSTR(text));
69
61
  return text;
70
62
  }
71
63
 
72
64
  static VALUE
73
- label_set_markup(argc, argv, self)
74
- int argc;
75
- VALUE *argv;
76
- VALUE self;
65
+ label_set_markup(int argc, VALUE *argv, VALUE self)
77
66
  {
78
67
  VALUE str, with_mnemonic;
79
68
  rb_scan_args(argc, argv, "02", &str, &with_mnemonic);
@@ -87,8 +76,7 @@ label_set_markup(argc, argv, self)
87
76
  }
88
77
 
89
78
  static VALUE
90
- label_get_layout_offsets(self)
91
- VALUE self;
79
+ label_get_layout_offsets(VALUE self)
92
80
  {
93
81
  gint x, y;
94
82
  gtk_label_get_layout_offsets(_SELF(self), &x, &y);
@@ -96,30 +84,26 @@ label_get_layout_offsets(self)
96
84
  }
97
85
 
98
86
  static VALUE
99
- label_get_text(self)
100
- VALUE self;
87
+ label_get_text(VALUE self)
101
88
  {
102
89
  return CSTR2RVAL(gtk_label_get_text(_SELF(self)));
103
90
  }
104
91
 
105
92
  static VALUE
106
- label_select_region(self, start_offset, end_offset)
107
- VALUE self, start_offset, end_offset;
93
+ label_select_region(VALUE self, VALUE start_offset, VALUE end_offset)
108
94
  {
109
95
  gtk_label_select_region(_SELF(self), NUM2INT(start_offset), NUM2INT(end_offset));
110
96
  return self;
111
97
  }
112
98
 
113
99
  static VALUE
114
- label_get_layout(self)
115
- VALUE self;
100
+ label_get_layout(VALUE self)
116
101
  {
117
102
  return GOBJ2RVAL(gtk_label_get_layout(_SELF(self)));
118
103
  }
119
104
 
120
105
  static VALUE
121
- label_get_selection_bounds(self)
122
- VALUE self;
106
+ label_get_selection_bounds(VALUE self)
123
107
  {
124
108
  gint start, end;
125
109
  gboolean ret = gtk_label_get_selection_bounds(_SELF(self), &start, &end);
@@ -18,10 +18,7 @@
18
18
  #define RVAL2ADJ(a) (GTK_ADJUSTMENT(RVAL2GOBJ(a)))
19
19
 
20
20
  static VALUE
21
- layout_initialize(argc, argv, self)
22
- int argc;
23
- VALUE *argv;
24
- VALUE self;
21
+ layout_initialize(int argc, VALUE *argv, VALUE self)
25
22
  {
26
23
  VALUE hadjustment, vadjustment;
27
24
  GtkWidget* layout;
@@ -36,8 +33,7 @@ layout_initialize(argc, argv, self)
36
33
  }
37
34
 
38
35
  static VALUE
39
- layout_put(self, widget, x, y)
40
- VALUE self, widget, x, y;
36
+ layout_put(VALUE self, VALUE widget, VALUE x, VALUE y)
41
37
  {
42
38
  gtk_layout_put(_SELF(self), GTK_WIDGET(RVAL2GOBJ(widget)),
43
39
  NUM2INT(x), NUM2INT(y));
@@ -45,8 +41,7 @@ layout_put(self, widget, x, y)
45
41
  }
46
42
 
47
43
  static VALUE
48
- layout_move(self, widget, x, y)
49
- VALUE self, widget, x, y;
44
+ layout_move(VALUE self, VALUE widget, VALUE x, VALUE y)
50
45
  {
51
46
  gtk_layout_move(_SELF(self), GTK_WIDGET(RVAL2GOBJ(widget)),
52
47
  NUM2INT(x), NUM2INT(y));
@@ -54,16 +49,14 @@ layout_move(self, widget, x, y)
54
49
  }
55
50
 
56
51
  static VALUE
57
- layout_set_size(self, width, height)
58
- VALUE self, width, height;
52
+ layout_set_size(VALUE self, VALUE width, VALUE height)
59
53
  {
60
54
  gtk_layout_set_size(_SELF(self), NUM2UINT(width), NUM2UINT(height));
61
55
  return self;
62
56
  }
63
57
 
64
58
  static VALUE
65
- layout_get_size(self)
66
- VALUE self;
59
+ layout_get_size(VALUE self)
67
60
  {
68
61
  guint width, height;
69
62
  gtk_layout_get_size(_SELF(self), &width, &height);
@@ -71,8 +64,7 @@ layout_get_size(self)
71
64
  }
72
65
 
73
66
  static VALUE
74
- layout_get_bin_window(self)
75
- VALUE self;
67
+ layout_get_bin_window(VALUE self)
76
68
  {
77
69
  return GOBJ2RVAL(_SELF(self)->bin_window);
78
70
  }
@@ -16,10 +16,7 @@
16
16
  #define _SELF(self) (GTK_LINK_BUTTON(RVAL2GOBJ(self)))
17
17
 
18
18
  static VALUE
19
- lb_initialize(argc, argv, self)
20
- int argc;
21
- VALUE *argv;
22
- VALUE self;
19
+ lb_initialize(int argc, VALUE *argv, VALUE self)
23
20
  {
24
21
  VALUE uri, label;
25
22
  GtkWidget *widget = NULL;
@@ -35,17 +32,13 @@ lb_initialize(argc, argv, self)
35
32
  }
36
33
 
37
34
  static void
38
- link_func(button, link, func)
39
- GtkLinkButton* button;
40
- const gchar* link;
41
- gpointer func;
35
+ link_func(GtkLinkButton *button, const gchar *link, gpointer func)
42
36
  {
43
37
  rb_funcall((VALUE)func, id_call, 2, GOBJ2RVAL(button), CSTR2RVAL(link));
44
38
  }
45
39
 
46
40
  static VALUE
47
- lb_set_uri_hook(self)
48
- VALUE self;
41
+ lb_set_uri_hook(VALUE self)
49
42
  {
50
43
  VALUE func = rb_block_proc();
51
44
  G_RELATIVE(self, func);
@@ -16,10 +16,7 @@
16
16
  static ID id_to_a, id_size;
17
17
 
18
18
  static VALUE
19
- lstore_initialize(argc, argv, self)
20
- int argc;
21
- VALUE* argv;
22
- VALUE self;
19
+ lstore_initialize(int argc, VALUE *argv, VALUE self)
23
20
  {
24
21
  gint cnt;
25
22
  GtkListStore* store;
@@ -40,10 +37,7 @@ lstore_initialize(argc, argv, self)
40
37
  }
41
38
 
42
39
  static VALUE
43
- lstore_set_column_types(argc, argv, self)
44
- int argc;
45
- VALUE* argv;
46
- VALUE self;
40
+ lstore_set_column_types(int argc, VALUE *argv, VALUE self)
47
41
  {
48
42
  gint cnt;
49
43
  GType* buf;
@@ -60,8 +54,7 @@ lstore_set_column_types(argc, argv, self)
60
54
  }
61
55
 
62
56
  static VALUE
63
- lstore_set_value(self, iter, column, value)
64
- VALUE self, iter, column, value;
57
+ lstore_set_value(VALUE self, VALUE iter, VALUE column, VALUE value)
65
58
  {
66
59
  GType gtype = gtk_tree_model_get_column_type(GTK_TREE_MODEL(RVAL2GOBJ(self)), NUM2INT(column));
67
60
  GValue gval = {0,};
@@ -188,8 +181,7 @@ lstore_set_valuesv(VALUE self, VALUE iter, VALUE values)
188
181
  */
189
182
 
190
183
  static VALUE
191
- lstore_remove(self, iter)
192
- VALUE self, iter;
184
+ lstore_remove(VALUE self, VALUE iter)
193
185
  {
194
186
  G_CHILD_REMOVE(self, iter);
195
187
  #if GTK_CHECK_VERSION(2,2,0)
@@ -204,10 +196,7 @@ lstore_remove(self, iter)
204
196
  Gtk::ListStore#insert(pos, val1 => 0, val2 => 2, ... )
205
197
  */
206
198
  static VALUE
207
- lstore_insert(argc, argv, self)
208
- int argc;
209
- VALUE* argv;
210
- VALUE self;
199
+ lstore_insert(int argc, VALUE *argv, VALUE self)
211
200
  {
212
201
  VALUE position, values, ret;
213
202
  GtkTreeIter iter;
@@ -260,8 +249,7 @@ lstore_insert(argc, argv, self)
260
249
  }
261
250
 
262
251
  static VALUE
263
- lstore_insert_before(self, sibling)
264
- VALUE self, sibling;
252
+ lstore_insert_before(VALUE self, VALUE sibling)
265
253
  {
266
254
  VALUE ret;
267
255
  GtkTreeIter iter;
@@ -275,8 +263,7 @@ lstore_insert_before(self, sibling)
275
263
  }
276
264
 
277
265
  static VALUE
278
- lstore_insert_after(self, sibling)
279
- VALUE self, sibling;
266
+ lstore_insert_after(VALUE self, VALUE sibling)
280
267
  {
281
268
  VALUE ret;
282
269
  GtkTreeIter iter;
@@ -290,8 +277,7 @@ lstore_insert_after(self, sibling)
290
277
  }
291
278
 
292
279
  static VALUE
293
- lstore_prepend(self)
294
- VALUE self;
280
+ lstore_prepend(VALUE self)
295
281
  {
296
282
  VALUE ret;
297
283
  GtkTreeIter iter;
@@ -305,8 +291,7 @@ lstore_prepend(self)
305
291
  }
306
292
 
307
293
  static VALUE
308
- lstore_append(self)
309
- VALUE self;
294
+ lstore_append(VALUE self)
310
295
  {
311
296
  VALUE ret;
312
297
  GtkTreeIter iter;
@@ -320,8 +305,7 @@ lstore_append(self)
320
305
  }
321
306
 
322
307
  static VALUE
323
- lstore_clear(self)
324
- VALUE self;
308
+ lstore_clear(VALUE self)
325
309
  {
326
310
  G_CHILD_REMOVE_ALL(self);
327
311
  gtk_list_store_clear(_SELF(self));
@@ -330,16 +314,14 @@ lstore_clear(self)
330
314
 
331
315
  #if GTK_CHECK_VERSION(2,2,0)
332
316
  static VALUE
333
- lstore_iter_is_valid(self, iter)
334
- VALUE self, iter;
317
+ lstore_iter_is_valid(VALUE self, VALUE iter)
335
318
  {
336
319
  return (NIL_P(iter)) ? Qfalse :
337
320
  CBOOL2RVAL(gtk_list_store_iter_is_valid(_SELF(self), RVAL2GTKTREEITER(iter)));
338
321
  }
339
322
 
340
323
  static VALUE
341
- lstore_reorder(self, new_order)
342
- VALUE self, new_order;
324
+ lstore_reorder(VALUE self, VALUE new_order)
343
325
  {
344
326
  gint i;
345
327
  gint len = RARRAY_LEN(new_order);
@@ -354,23 +336,20 @@ lstore_reorder(self, new_order)
354
336
  return self;
355
337
  }
356
338
  static VALUE
357
- lstore_swap(self, iter1, iter2)
358
- VALUE self, iter1, iter2;
339
+ lstore_swap(VALUE self, VALUE iter1, VALUE iter2)
359
340
  {
360
341
  gtk_list_store_swap(_SELF(self), RVAL2GTKTREEITER(iter1), RVAL2GTKTREEITER(iter2));
361
342
  return self;
362
343
  }
363
344
  static VALUE
364
- lstore_move_before(self, iter, position)
365
- VALUE self, iter, position;
345
+ lstore_move_before(VALUE self, VALUE iter, VALUE position)
366
346
  {
367
347
  gtk_list_store_move_before(_SELF(self), RVAL2GTKTREEITER(iter),
368
348
  NIL_P(position) ? NULL : RVAL2GTKTREEITER(position));
369
349
  return self;
370
350
  }
371
351
  static VALUE
372
- lstore_move_after(self, iter, position)
373
- VALUE self, iter, position;
352
+ lstore_move_after(VALUE self, VALUE iter, VALUE position)
374
353
  {
375
354
  gtk_list_store_move_after(_SELF(self), RVAL2GTKTREEITER(iter),
376
355
  NIL_P(position) ? NULL : RVAL2GTKTREEITER(position));