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
@@ -49,8 +49,7 @@ gtk_recent_filter_info_get_type(void)
49
49
  #define _SELF(w) ((GtkRecentFilterInfo*)RVAL2BOXED(w, GTK_TYPE_RECENT_FILTER_INFO))
50
50
 
51
51
  static VALUE
52
- rf_initialize(self)
53
- VALUE self;
52
+ rf_initialize(VALUE self)
54
53
  {
55
54
  GtkRecentFilterInfo finfo;
56
55
  G_INITIALIZE(self, &finfo);
@@ -58,15 +57,13 @@ rf_initialize(self)
58
57
  }
59
58
 
60
59
  static VALUE
61
- rf_get_contains(self)
62
- VALUE self;
60
+ rf_get_contains(VALUE self)
63
61
  {
64
62
  return GFLAGS2RVAL(_SELF(self)->contains, GTK_TYPE_RECENT_FILTER_FLAGS);
65
63
  }
66
64
 
67
65
  static VALUE
68
- rf_set_contains(self, contains)
69
- VALUE self, contains;
66
+ rf_set_contains(VALUE self, VALUE contains)
70
67
  {
71
68
  _SELF(self)->contains = RVAL2GFLAGS(contains, GTK_TYPE_RECENT_FILTER_FLAGS);
72
69
  return self;
@@ -74,14 +71,12 @@ rf_set_contains(self, contains)
74
71
 
75
72
  #define FINFO_STR(name)\
76
73
  static VALUE \
77
- rf_get_ ## name (self)\
78
- VALUE self;\
74
+ rf_get_ ## name (VALUE self)\
79
75
  {\
80
76
  return CSTR2RVAL(_SELF(self)->name);\
81
77
  }\
82
78
  static VALUE \
83
- rf_set_ ## name (self, val)\
84
- VALUE self, val;\
79
+ rf_set_ ## name (VALUE self, VALUE val)\
85
80
  {\
86
81
  _SELF(self)->name = RVAL2CSTR(val);\
87
82
  return self;\
@@ -92,8 +87,7 @@ FINFO_STR(display_name);
92
87
  FINFO_STR(mime_type);
93
88
 
94
89
  static VALUE
95
- rf_get_applications(self)
96
- VALUE self;
90
+ rf_get_applications(VALUE self)
97
91
  {
98
92
  const gchar** apps = _SELF(self)->applications;
99
93
  VALUE ary = rb_ary_new();
@@ -107,8 +101,7 @@ rf_get_applications(self)
107
101
  }
108
102
 
109
103
  static VALUE
110
- rf_set_applications(self, applications)
111
- VALUE self, applications;
104
+ rf_set_applications(VALUE self, VALUE applications)
112
105
  {
113
106
  gint i;
114
107
  gint len = RARRAY_LEN(applications);
@@ -123,8 +116,7 @@ rf_set_applications(self, applications)
123
116
  }
124
117
 
125
118
  static VALUE
126
- rf_get_groups(self)
127
- VALUE self;
119
+ rf_get_groups(VALUE self)
128
120
  {
129
121
  const gchar** grps = _SELF(self)->groups;
130
122
  VALUE ary = rb_ary_new();
@@ -138,8 +130,7 @@ rf_get_groups(self)
138
130
  }
139
131
 
140
132
  static VALUE
141
- rf_set_groups(self, groups)
142
- VALUE self, groups;
133
+ rf_set_groups(VALUE self, VALUE groups)
143
134
  {
144
135
  gint i;
145
136
  gint len = RARRAY_LEN(groups);
@@ -154,15 +145,13 @@ rf_set_groups(self, groups)
154
145
  }
155
146
 
156
147
  static VALUE
157
- rf_get_age(self)
158
- VALUE self;
148
+ rf_get_age(VALUE self)
159
149
  {
160
150
  return INT2NUM(_SELF(self)->age);
161
151
  }
162
152
 
163
153
  static VALUE
164
- rf_set_age(self, age)
165
- VALUE self, age;
154
+ rf_set_age(VALUE self, VALUE age)
166
155
  {
167
156
  _SELF(self)->age = NUM2INT(age);
168
157
  return self;
@@ -17,67 +17,58 @@
17
17
 
18
18
 
19
19
  static VALUE
20
- ri_get_uri(self)
21
- VALUE self;
20
+ ri_get_uri(VALUE self)
22
21
  {
23
22
  return CSTR2RVAL(gtk_recent_info_get_uri(_SELF(self)));
24
23
  }
25
24
 
26
25
  static VALUE
27
- ri_get_display_name(self)
28
- VALUE self;
26
+ ri_get_display_name(VALUE self)
29
27
  {
30
28
  return CSTR2RVAL(gtk_recent_info_get_display_name(_SELF(self)));
31
29
  }
32
30
 
33
31
  static VALUE
34
- ri_get_description(self)
35
- VALUE self;
32
+ ri_get_description(VALUE self)
36
33
  {
37
34
  return CSTR2RVAL(gtk_recent_info_get_description(_SELF(self)));
38
35
  }
39
36
 
40
37
  static VALUE
41
- ri_get_mime_type(self)
42
- VALUE self;
38
+ ri_get_mime_type(VALUE self)
43
39
  {
44
40
  return CSTR2RVAL(gtk_recent_info_get_mime_type(_SELF(self)));
45
41
  }
46
42
 
47
43
  static VALUE
48
- ri_get_added(self)
49
- VALUE self;
44
+ ri_get_added(VALUE self)
50
45
  {
51
46
  time_t t = gtk_recent_info_get_added(_SELF(self));
52
47
  return rb_funcall(rb_cTime, rb_intern("at"), 1, INT2NUM(t));
53
48
  }
54
49
 
55
50
  static VALUE
56
- ri_get_modified(self)
57
- VALUE self;
51
+ ri_get_modified(VALUE self)
58
52
  {
59
53
  time_t t = gtk_recent_info_get_modified(_SELF(self));
60
54
  return rb_funcall(rb_cTime, rb_intern("at"), 1, INT2NUM(t));
61
55
  }
62
56
 
63
57
  static VALUE
64
- ri_get_visited(self)
65
- VALUE self;
58
+ ri_get_visited(VALUE self)
66
59
  {
67
60
  time_t t = gtk_recent_info_get_visited(_SELF(self));
68
61
  return rb_funcall(rb_cTime, rb_intern("at"), 1, INT2NUM(t));
69
62
  }
70
63
 
71
64
  static VALUE
72
- ri_get_private_hint(self)
73
- VALUE self;
65
+ ri_get_private_hint(VALUE self)
74
66
  {
75
67
  return CBOOL2RVAL(gtk_recent_info_get_private_hint(_SELF(self)));
76
68
  }
77
69
 
78
70
  static VALUE
79
- ri_get_application_info(self, app_name)
80
- VALUE self, app_name;
71
+ ri_get_application_info(VALUE self, VALUE app_name)
81
72
  {
82
73
  const gchar *app_exec;
83
74
  guint count;
@@ -97,8 +88,7 @@ ri_get_application_info(self, app_name)
97
88
  }
98
89
 
99
90
  static VALUE
100
- ri_get_applications(self)
101
- VALUE self;
91
+ ri_get_applications(VALUE self)
102
92
  {
103
93
  gint i;
104
94
  gsize length;
@@ -112,15 +102,13 @@ ri_get_applications(self)
112
102
  }
113
103
 
114
104
  static VALUE
115
- ri_last_application(self)
116
- VALUE self;
105
+ ri_last_application(VALUE self)
117
106
  {
118
107
  return CSTR2RVAL(gtk_recent_info_last_application(_SELF(self)));
119
108
  }
120
109
 
121
110
  static VALUE
122
- ri_get_groups(self)
123
- VALUE self;
111
+ ri_get_groups(VALUE self)
124
112
  {
125
113
  gint i;
126
114
  gsize length;
@@ -134,66 +122,57 @@ ri_get_groups(self)
134
122
  }
135
123
 
136
124
  static VALUE
137
- ri_has_group(self, group_name)
138
- VALUE self, group_name;
125
+ ri_has_group(VALUE self, VALUE group_name)
139
126
  {
140
127
  return CBOOL2RVAL(gtk_recent_info_has_group(_SELF(self),
141
128
  RVAL2CSTR(group_name)));
142
129
  }
143
130
 
144
131
  static VALUE
145
- ri_has_application(self, app_name)
146
- VALUE self, app_name;
132
+ ri_has_application(VALUE self, VALUE app_name)
147
133
  {
148
134
  return CBOOL2RVAL(gtk_recent_info_has_application(_SELF(self),
149
135
  RVAL2CSTR(app_name)));
150
136
  }
151
137
 
152
138
  static VALUE
153
- ri_get_icon(self, size)
154
- VALUE self, size;
139
+ ri_get_icon(VALUE self, VALUE size)
155
140
  {
156
141
  return GOBJ2RVAL(gtk_recent_info_get_icon(_SELF(self), NUM2INT(size)));
157
142
  }
158
143
 
159
144
  static VALUE
160
- ri_get_short_name(self)
161
- VALUE self;
145
+ ri_get_short_name(VALUE self)
162
146
  {
163
147
  return CSTR2RVAL(gtk_recent_info_get_short_name(_SELF(self)));
164
148
  }
165
149
 
166
150
  static VALUE
167
- ri_get_uri_display(self)
168
- VALUE self;
151
+ ri_get_uri_display(VALUE self)
169
152
  {
170
153
  return CSTR2RVAL(gtk_recent_info_get_uri_display(_SELF(self)));
171
154
  }
172
155
 
173
156
  static VALUE
174
- ri_get_age(self)
175
- VALUE self;
157
+ ri_get_age(VALUE self)
176
158
  {
177
159
  return INT2NUM(gtk_recent_info_get_age(_SELF(self)));
178
160
  }
179
161
 
180
162
  static VALUE
181
- ri_is_local(self)
182
- VALUE self;
163
+ ri_is_local(VALUE self)
183
164
  {
184
165
  return CBOOL2RVAL(gtk_recent_info_is_local(_SELF(self)));
185
166
  }
186
167
 
187
168
  static VALUE
188
- ri_exist(self)
189
- VALUE self;
169
+ ri_exist(VALUE self)
190
170
  {
191
171
  return CBOOL2RVAL(gtk_recent_info_exists(_SELF(self)));
192
172
  }
193
173
 
194
174
  static VALUE
195
- ri_match(self, other)
196
- VALUE self, other;
175
+ ri_match(VALUE self, VALUE other)
197
176
  {
198
177
  return CBOOL2RVAL(gtk_recent_info_match(_SELF(self), _SELF(other)));
199
178
  }
@@ -17,40 +17,33 @@
17
17
 
18
18
 
19
19
  static VALUE
20
- rm_initialize(self)
21
- VALUE self;
20
+ rm_initialize(VALUE self)
22
21
  {
23
22
  G_INITIALIZE(self, gtk_recent_manager_new());
24
23
  return Qnil;
25
24
  }
26
25
 
27
26
  static VALUE
28
- rm_s_get_default(self)
29
- VALUE self;
27
+ rm_s_get_default(VALUE self)
30
28
  {
31
29
  return GOBJ2RVAL(gtk_recent_manager_get_default());
32
30
  }
33
31
 
34
32
  static VALUE
35
- rm_s_get_for_screen(self, screen)
36
- VALUE self, screen;
33
+ rm_s_get_for_screen(VALUE self, VALUE screen)
37
34
  {
38
35
  return GOBJ2RVAL(gtk_recent_manager_get_for_screen(GDK_SCREEN(RVAL2GOBJ(screen))));
39
36
  }
40
37
 
41
38
  static VALUE
42
- rm_set_screen(self, screen)
43
- VALUE self, screen;
39
+ rm_set_screen(VALUE self, VALUE screen)
44
40
  {
45
41
  gtk_recent_manager_set_screen(_SELF(self), GDK_SCREEN(RVAL2GOBJ(screen)));
46
42
  return self;
47
43
  }
48
44
 
49
45
  static VALUE
50
- rm_add_item(argc, argv, self)
51
- int argc;
52
- VALUE *argv;
53
- VALUE self;
46
+ rm_add_item(int argc, VALUE *argv, VALUE self)
54
47
  {
55
48
  VALUE uri, data;
56
49
  gboolean ret;
@@ -69,8 +62,7 @@ rm_add_item(argc, argv, self)
69
62
  }
70
63
 
71
64
  static VALUE
72
- rm_remove_item(self, uri)
73
- VALUE self, uri;
65
+ rm_remove_item(VALUE self, VALUE uri)
74
66
  {
75
67
  GError* error = NULL;
76
68
  gboolean ret = gtk_recent_manager_remove_item(_SELF(self), RVAL2CSTR(uri),
@@ -81,8 +73,7 @@ rm_remove_item(self, uri)
81
73
  }
82
74
 
83
75
  static VALUE
84
- rm_lookup_item(self, uri)
85
- VALUE self, uri;
76
+ rm_lookup_item(VALUE self, VALUE uri)
86
77
  {
87
78
  GError* error = NULL;
88
79
  GtkRecentInfo* info = gtk_recent_manager_lookup_item(_SELF(self), RVAL2CSTR(uri),
@@ -92,15 +83,13 @@ rm_lookup_item(self, uri)
92
83
  }
93
84
 
94
85
  static VALUE
95
- rm_has_item(self, uri)
96
- VALUE self, uri;
86
+ rm_has_item(VALUE self, VALUE uri)
97
87
  {
98
88
  return CBOOL2RVAL(gtk_recent_manager_has_item(_SELF(self), RVAL2CSTR(uri)));
99
89
  }
100
90
 
101
91
  static VALUE
102
- rm_move_item(self, uri, new_uri)
103
- VALUE self, uri, new_uri;
92
+ rm_move_item(VALUE self, VALUE uri, VALUE new_uri)
104
93
  {
105
94
  GError* error = NULL;
106
95
  gboolean ret = gtk_recent_manager_move_item(_SELF(self),
@@ -118,15 +107,13 @@ void gtk_recent_manager_set_limit (GtkRecentManager *manager,
118
107
  */
119
108
 
120
109
  static VALUE
121
- rm_get_items(self)
122
- VALUE self;
110
+ rm_get_items(VALUE self)
123
111
  {
124
112
  return GLIST2ARY2F(gtk_recent_manager_get_items(_SELF(self)), GTK_TYPE_RECENT_INFO);
125
113
  }
126
114
 
127
115
  static VALUE
128
- rm_purge_items(self)
129
- VALUE self;
116
+ rm_purge_items(VALUE self)
130
117
  {
131
118
  GError* error = NULL;
132
119
  gint ret = gtk_recent_manager_purge_items(_SELF(self), &error);
@@ -17,16 +17,14 @@
17
17
  #define _SELF(self) (GTK_RULER(RVAL2GOBJ(self)))
18
18
 
19
19
  static VALUE
20
- ruler_set_metric(self, metric)
21
- VALUE self, metric;
20
+ ruler_set_metric(VALUE self, VALUE metric)
22
21
  {
23
22
  gtk_ruler_set_metric(_SELF(self), RVAL2GENUM(metric, GTK_TYPE_METRIC_TYPE));
24
23
  return self;
25
24
  }
26
25
 
27
26
  static VALUE
28
- ruler_set_range(self, lower, upper, position, max_size)
29
- VALUE self, lower, upper, position, max_size;
27
+ ruler_set_range(VALUE self, VALUE lower, VALUE upper, VALUE position, VALUE max_size)
30
28
  {
31
29
  gtk_ruler_set_range(_SELF(self), NUM2DBL(lower), NUM2DBL(upper),
32
30
  NUM2DBL(position), NUM2DBL(max_size));
@@ -34,15 +32,13 @@ ruler_set_range(self, lower, upper, position, max_size)
34
32
  }
35
33
 
36
34
  static VALUE
37
- ruler_get_metric(self)
38
- VALUE self;
35
+ ruler_get_metric(VALUE self)
39
36
  {
40
37
  return INT2FIX(gtk_ruler_get_metric(_SELF(self)));
41
38
  }
42
39
 
43
40
  static VALUE
44
- ruler_get_range(self)
45
- VALUE self;
41
+ ruler_get_range(VALUE self)
46
42
  {
47
43
  gdouble lower, upper, position, max_size;
48
44
  gtk_ruler_get_range(_SELF(self), &lower, &upper, &position, &max_size);
@@ -51,16 +47,14 @@ ruler_get_range(self)
51
47
  }
52
48
 
53
49
  static VALUE
54
- ruler_draw_ticks(self)
55
- VALUE self;
50
+ ruler_draw_ticks(VALUE self)
56
51
  {
57
52
  gtk_ruler_draw_ticks(_SELF(self));
58
53
  return self;
59
54
  }
60
55
 
61
56
  static VALUE
62
- ruler_draw_pos(self)
63
- VALUE self;
57
+ ruler_draw_pos(VALUE self)
64
58
  {
65
59
  gtk_ruler_draw_pos(_SELF(self));
66
60
  return self;
@@ -18,15 +18,13 @@
18
18
 
19
19
  #if GTK_CHECK_VERSION(2,4,0)
20
20
  static VALUE
21
- rbscale_get_layout(self)
22
- VALUE self;
21
+ rbscale_get_layout(VALUE self)
23
22
  {
24
23
  return GOBJ2RVAL(gtk_scale_get_layout(_SELF(self)));
25
24
  }
26
25
 
27
26
  static VALUE
28
- rbscale_get_layout_offsets(self)
29
- VALUE self;
27
+ rbscale_get_layout_offsets(VALUE self)
30
28
  {
31
29
  gint x, y;
32
30
  gtk_scale_get_layout_offsets(_SELF(self), &x, &y);