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
@@ -14,10 +14,7 @@
14
14
  #if GTK_CHECK_VERSION(2,6,0)
15
15
 
16
16
  static VALUE
17
- filechooserbutton_initialize(argc, argv, self)
18
- int argc;
19
- VALUE* argv;
20
- VALUE self;
17
+ filechooserbutton_initialize(int argc, VALUE *argv, VALUE self)
21
18
  {
22
19
  VALUE title, action, backend;
23
20
  GtkWidget* widget;
@@ -16,10 +16,7 @@
16
16
  #define _SELF(self) GTK_FILE_CHOOSER_DIALOG(RVAL2GOBJ(self))
17
17
 
18
18
  static VALUE
19
- fchodiag_initialize(argc, argv, self)
20
- int argc;
21
- VALUE* argv;
22
- VALUE self;
19
+ fchodiag_initialize(int argc, VALUE *argv, VALUE self)
23
20
  {
24
21
  VALUE title, parent, action, back, button_ary;
25
22
  GtkWidget* dialog;
@@ -14,10 +14,7 @@
14
14
  #if GTK_CHECK_VERSION(2,4,0)
15
15
 
16
16
  static VALUE
17
- fchowidget_initialize(argc, argv, self)
18
- int argc;
19
- VALUE* argv;
20
- VALUE self;
17
+ fchowidget_initialize(int argc, VALUE *argv, VALUE self)
21
18
  {
22
19
  VALUE action, back;
23
20
  GtkWidget* widget;
@@ -17,39 +17,34 @@
17
17
  #define _SELF(self) GTK_FILE_FILTER(RVAL2GOBJ(self))
18
18
 
19
19
  static VALUE
20
- ffil_initialize(self)
21
- VALUE self;
20
+ ffil_initialize(VALUE self)
22
21
  {
23
22
  RBGTK_INITIALIZE(self, gtk_file_filter_new());
24
23
  return Qnil;
25
24
  }
26
25
 
27
26
  static VALUE
28
- ffil_set_name(self, name)
29
- VALUE self, name;
27
+ ffil_set_name(VALUE self, VALUE name)
30
28
  {
31
29
  gtk_file_filter_set_name(_SELF(self), RVAL2CSTR(name));
32
30
  return self;
33
31
  }
34
32
 
35
33
  static VALUE
36
- ffil_get_name(self)
37
- VALUE self;
34
+ ffil_get_name(VALUE self)
38
35
  {
39
36
  return CSTR2RVAL(gtk_file_filter_get_name(_SELF(self)));
40
37
  }
41
38
 
42
39
  static VALUE
43
- ffil_add_mime_type(self, mime)
44
- VALUE self, mime;
40
+ ffil_add_mime_type(VALUE self, VALUE mime)
45
41
  {
46
42
  gtk_file_filter_add_mime_type(_SELF(self), RVAL2CSTR(mime));
47
43
  return self;
48
44
  }
49
45
 
50
46
  static VALUE
51
- ffil_add_pattern(self, pattern)
52
- VALUE self, pattern;
47
+ ffil_add_pattern(VALUE self, VALUE pattern)
53
48
  {
54
49
  gtk_file_filter_add_pattern(_SELF(self), RVAL2CSTR(pattern));
55
50
  return self;
@@ -57,9 +52,7 @@ ffil_add_pattern(self, pattern)
57
52
 
58
53
  /* Should return true/false */
59
54
  static gboolean
60
- filter_func(info, func)
61
- const GtkFileFilterInfo* info;
62
- gpointer func;
55
+ filter_func(const GtkFileFilterInfo *info, gpointer func)
63
56
  {
64
57
  return CBOOL2RVAL(rb_funcall((VALUE)func, 5,
65
58
  GFLAGS2RVAL(info->contains, GTK_TYPE_FILE_FILTER_FLAGS),
@@ -69,8 +62,7 @@ filter_func(info, func)
69
62
 
70
63
  #if GTK_CHECK_VERSION(2,6,0)
71
64
  static VALUE
72
- ffil_add_pixbuf_formats(self)
73
- VALUE self;
65
+ ffil_add_pixbuf_formats(VALUE self)
74
66
  {
75
67
  gtk_file_filter_add_pixbuf_formats(_SELF(self));
76
68
  return self;
@@ -78,8 +70,7 @@ ffil_add_pixbuf_formats(self)
78
70
  #endif
79
71
 
80
72
  static VALUE
81
- ffil_add_custom(self, needed)
82
- VALUE self, needed;
73
+ ffil_add_custom(VALUE self, VALUE needed)
83
74
  {
84
75
  VALUE func = rb_block_proc();
85
76
  G_RELATIVE(self, func);
@@ -89,15 +80,13 @@ ffil_add_custom(self, needed)
89
80
  }
90
81
 
91
82
  static VALUE
92
- ffil_get_needed(self)
93
- VALUE self;
83
+ ffil_get_needed(VALUE self)
94
84
  {
95
85
  return GFLAGS2RVAL(gtk_file_filter_get_needed(_SELF(self)), GTK_TYPE_FILE_FILTER_FLAGS);
96
86
  }
97
87
 
98
88
  static VALUE
99
- ffil_filter(self, contains, filename, uri, display_name, mime_type)
100
- VALUE self, contains, filename, uri, display_name, mime_type;
89
+ ffil_filter(VALUE self, VALUE contains, VALUE filename, VALUE uri, VALUE display_name, VALUE mime_type)
101
90
  {
102
91
  GtkFileFilterInfo info;
103
92
  info.contains = RVAL2GFLAGS(contains, GTK_TYPE_FILE_FILTER_FLAGS);
@@ -17,10 +17,7 @@
17
17
  #define _SELF(self) GTK_FILE_SELECTION(RVAL2GOBJ(self))
18
18
 
19
19
  static VALUE
20
- fsel_initialize(argc, argv, self)
21
- int argc;
22
- VALUE *argv;
23
- VALUE self;
20
+ fsel_initialize(int argc, VALUE *argv, VALUE self)
24
21
  {
25
22
  VALUE title;
26
23
  rb_scan_args(argc, argv, "01", &title);
@@ -29,32 +26,28 @@ fsel_initialize(argc, argv, self)
29
26
  }
30
27
 
31
28
  static VALUE
32
- fsel_complete(self, pattern)
33
- VALUE self, pattern;
29
+ fsel_complete(VALUE self, VALUE pattern)
34
30
  {
35
31
  gtk_file_selection_complete(_SELF(self), RVAL2CSTR(pattern));
36
32
  return self;
37
33
  }
38
34
 
39
35
  static VALUE
40
- fsel_show_fileop_buttons(self)
41
- VALUE self;
36
+ fsel_show_fileop_buttons(VALUE self)
42
37
  {
43
38
  gtk_file_selection_show_fileop_buttons(_SELF(self));
44
39
  return Qnil;
45
40
  }
46
41
 
47
42
  static VALUE
48
- fsel_hide_fileop_buttons(self)
49
- VALUE self;
43
+ fsel_hide_fileop_buttons(VALUE self)
50
44
  {
51
45
  gtk_file_selection_hide_fileop_buttons(_SELF(self));
52
46
  return Qnil;
53
47
  }
54
48
 
55
49
  static VALUE
56
- fsel_get_selections(self)
57
- VALUE self;
50
+ fsel_get_selections(VALUE self)
58
51
  {
59
52
  gchar** ptr = gtk_file_selection_get_selections(_SELF(self));
60
53
  gchar** selections = ptr;
@@ -70,65 +63,56 @@ fsel_get_selections(self)
70
63
  }
71
64
 
72
65
  static VALUE
73
- fsel_fileop_dialog(self)
74
- VALUE self;
66
+ fsel_fileop_dialog(VALUE self)
75
67
  {
76
68
  GtkWidget* widget = _SELF(self)->fileop_dialog;
77
69
  return widget ? GOBJ2RVAL(widget) : Qnil;
78
70
  }
79
71
 
80
72
  static VALUE
81
- fsel_dir_list(self)
82
- VALUE self;
73
+ fsel_dir_list(VALUE self)
83
74
  {
84
75
  return GOBJ2RVAL(_SELF(self)->dir_list);
85
76
  }
86
77
 
87
78
  static VALUE
88
- fsel_file_list(self)
89
- VALUE self;
79
+ fsel_file_list(VALUE self)
90
80
  {
91
81
  return GOBJ2RVAL(_SELF(self)->file_list);
92
82
  }
93
83
 
94
84
  static VALUE
95
- fsel_ok_button(self)
96
- VALUE self;
85
+ fsel_ok_button(VALUE self)
97
86
  {
98
87
  return GOBJ2RVAL(_SELF(self)->ok_button);
99
88
  }
100
89
 
101
90
  static VALUE
102
- fsel_cancel_button(self)
103
- VALUE self;
91
+ fsel_cancel_button(VALUE self)
104
92
  {
105
93
  return GOBJ2RVAL(_SELF(self)->cancel_button);
106
94
  }
107
95
 
108
96
  static VALUE
109
- fsel_history_pulldown(self)
110
- VALUE self;
97
+ fsel_history_pulldown(VALUE self)
111
98
  {
112
99
  return GOBJ2RVAL(_SELF(self)->history_pulldown);
113
100
  }
114
101
 
115
102
  static VALUE
116
- fsel_fileop_c_dir(self)
117
- VALUE self;
103
+ fsel_fileop_c_dir(VALUE self)
118
104
  {
119
105
  return GOBJ2RVAL(_SELF(self)->fileop_c_dir);
120
106
  }
121
107
 
122
108
  static VALUE
123
- fsel_fileop_del_file(self)
124
- VALUE self;
109
+ fsel_fileop_del_file(VALUE self)
125
110
  {
126
111
  return GOBJ2RVAL(_SELF(self)->fileop_del_file);
127
112
  }
128
113
 
129
114
  static VALUE
130
- fsel_fileop_ren_file(self)
131
- VALUE self;
115
+ fsel_fileop_ren_file(VALUE self)
132
116
  {
133
117
  return GOBJ2RVAL(_SELF(self)->fileop_ren_file);
134
118
  }
@@ -17,16 +17,14 @@
17
17
  #define _SELF(self) (GTK_FIXED(RVAL2GOBJ(self)))
18
18
 
19
19
  static VALUE
20
- fixed_initialize(self)
21
- VALUE self;
20
+ fixed_initialize(VALUE self)
22
21
  {
23
22
  RBGTK_INITIALIZE(self, gtk_fixed_new());
24
23
  return Qnil;
25
24
  }
26
25
 
27
26
  static VALUE
28
- fixed_put(self, win, x, y)
29
- VALUE self, win, x, y;
27
+ fixed_put(VALUE self, VALUE win, VALUE x, VALUE y)
30
28
  {
31
29
  gtk_fixed_put(_SELF(self), GTK_WIDGET(RVAL2GOBJ(win)),
32
30
  NUM2INT(x), NUM2INT(y));
@@ -34,8 +32,7 @@ fixed_put(self, win, x, y)
34
32
  }
35
33
 
36
34
  static VALUE
37
- fixed_move(self, win, x, y)
38
- VALUE self, win, x, y;
35
+ fixed_move(VALUE self, VALUE win, VALUE x, VALUE y)
39
36
  {
40
37
  gtk_fixed_move(_SELF(self), GTK_WIDGET(RVAL2GOBJ(win)),
41
38
  NUM2INT(x), NUM2INT(y));
@@ -43,15 +40,13 @@ fixed_move(self, win, x, y)
43
40
  }
44
41
 
45
42
  static VALUE
46
- fixed_get_has_window(self)
47
- VALUE self;
43
+ fixed_get_has_window(VALUE self)
48
44
  {
49
45
  return CBOOL2RVAL(gtk_fixed_get_has_window(_SELF(self)));
50
46
  }
51
47
 
52
48
  static VALUE
53
- fixed_set_has_window(self, has_window)
54
- VALUE self;
49
+ fixed_set_has_window(VALUE self, VALUE has_window)
55
50
  {
56
51
  gtk_fixed_set_has_window(_SELF(self), RVAL2CBOOL(has_window));
57
52
  return self;
@@ -14,10 +14,7 @@
14
14
  #if GTK_CHECK_VERSION(2,4,0)
15
15
 
16
16
  static VALUE
17
- fontbutton_initialize(argc, argv, self)
18
- int argc;
19
- VALUE* argv;
20
- VALUE self;
17
+ fontbutton_initialize(int argc, VALUE *argv, VALUE self)
21
18
  {
22
19
  VALUE fontname;
23
20
  GtkWidget* widget;
@@ -13,8 +13,7 @@
13
13
  #include "global.h"
14
14
 
15
15
  static VALUE
16
- fs_initialize(self)
17
- VALUE self;
16
+ fs_initialize(VALUE self)
18
17
  {
19
18
  RBGTK_INITIALIZE(self, gtk_font_selection_new());
20
19
  return Qnil;
@@ -15,10 +15,7 @@
15
15
  #define _SELF(self) (GTK_FONT_SELECTION_DIALOG(RVAL2GOBJ(self)))
16
16
 
17
17
  static VALUE
18
- fsd_initialize(argc, argv, self)
19
- int argc;
20
- VALUE *argv;
21
- VALUE self;
18
+ fsd_initialize(int argc, VALUE *argv, VALUE self)
22
19
  {
23
20
  VALUE title;
24
21
  rb_scan_args(argc, argv, "01", &title);
@@ -27,61 +24,53 @@ fsd_initialize(argc, argv, self)
27
24
  }
28
25
 
29
26
  static VALUE
30
- fsd_get_font_name(self)
31
- VALUE self;
27
+ fsd_get_font_name(VALUE self)
32
28
  {
33
29
  gchar* name = gtk_font_selection_dialog_get_font_name(_SELF(self));
34
30
  return name ? CSTR2RVAL(name) : Qnil;
35
31
  }
36
32
 
37
33
  static VALUE
38
- fsd_set_font_name(self, fontname)
39
- VALUE self, fontname;
34
+ fsd_set_font_name(VALUE self, VALUE fontname)
40
35
  {
41
36
  return CBOOL2RVAL(gtk_font_selection_dialog_set_font_name(_SELF(self),
42
37
  RVAL2CSTR(fontname)));
43
38
  }
44
39
 
45
40
  static VALUE
46
- fsd_get_preview_text(self)
47
- VALUE self;
41
+ fsd_get_preview_text(VALUE self)
48
42
  {
49
43
  const gchar* text = gtk_font_selection_dialog_get_preview_text(_SELF(self));
50
44
  return text ? CSTR2RVAL(text) : Qnil;
51
45
  }
52
46
 
53
47
  static VALUE
54
- fsd_set_preview_text(self, text)
55
- VALUE self, text;
48
+ fsd_set_preview_text(VALUE self, VALUE text)
56
49
  {
57
50
  gtk_font_selection_dialog_set_preview_text(_SELF(self), RVAL2CSTR(text));
58
51
  return self;
59
52
  }
60
53
 
61
54
  static VALUE
62
- fsd_get_font_selection(self)
63
- VALUE self;
55
+ fsd_get_font_selection(VALUE self)
64
56
  {
65
57
  return GOBJ2RVAL(_SELF(self)->fontsel);
66
58
  }
67
59
 
68
60
  static VALUE
69
- fsd_get_ok_button(self)
70
- VALUE self;
61
+ fsd_get_ok_button(VALUE self)
71
62
  {
72
63
  return GOBJ2RVAL(_SELF(self)->ok_button);
73
64
  }
74
65
 
75
66
  static VALUE
76
- fsd_get_cancel_button(self)
77
- VALUE self;
67
+ fsd_get_cancel_button(VALUE self)
78
68
  {
79
69
  return GOBJ2RVAL(_SELF(self)->cancel_button);
80
70
  }
81
71
 
82
72
  static VALUE
83
- fsd_get_apply_button(self)
84
- VALUE self;
73
+ fsd_get_apply_button(VALUE self)
85
74
  {
86
75
  return GOBJ2RVAL(_SELF(self)->apply_button);
87
76
  }
@@ -15,10 +15,7 @@
15
15
  #include "global.h"
16
16
 
17
17
  static VALUE
18
- frame_initialize(argc, argv, self)
19
- int argc;
20
- VALUE* argv;
21
- VALUE self;
18
+ frame_initialize(int argc, VALUE *argv, VALUE self)
22
19
  {
23
20
  VALUE label;
24
21
  rb_scan_args(argc, argv, "01", &label);
@@ -27,8 +24,7 @@ frame_initialize(argc, argv, self)
27
24
  }
28
25
 
29
26
  static VALUE
30
- frame_set_label_align(self, xalign, yalign)
31
- VALUE self, xalign, yalign;
27
+ frame_set_label_align(VALUE self, VALUE xalign, VALUE yalign)
32
28
  {
33
29
  gtk_frame_set_label_align(GTK_FRAME(RVAL2GOBJ(self)),
34
30
  NUM2DBL(xalign),
@@ -38,8 +34,7 @@ frame_set_label_align(self, xalign, yalign)
38
34
  }
39
35
 
40
36
  static VALUE
41
- frame_get_label_align(self)
42
- VALUE self;
37
+ frame_get_label_align(VALUE self)
43
38
  {
44
39
  gfloat xalign, yalign;
45
40
  gtk_frame_get_label_align(GTK_FRAME(RVAL2GOBJ(self)),
@@ -15,23 +15,20 @@
15
15
  #include "global.h"
16
16
 
17
17
  static VALUE
18
- gamma_initialize(self)
19
- VALUE self;
18
+ gamma_initialize(VALUE self)
20
19
  {
21
20
  RBGTK_INITIALIZE(self, gtk_gamma_curve_new());
22
21
  return Qnil;
23
22
  }
24
23
 
25
24
  static VALUE
26
- gamma_gamma(self)
27
- VALUE self;
25
+ gamma_gamma(VALUE self)
28
26
  {
29
27
  return rb_float_new(GTK_GAMMA_CURVE(RVAL2GOBJ(self))->gamma);
30
28
  }
31
29
 
32
30
  static VALUE
33
- gamma_curve(self)
34
- VALUE self;
31
+ gamma_curve(VALUE self)
35
32
  {
36
33
  return GOBJ2RVAL(GTK_GAMMA_CURVE(RVAL2GOBJ(self))->curve);
37
34
  }