gio2 1.0.3-x86-mingw32 → 1.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/ext/gio2/extconf.rb +4 -42
  2. data/ext/gio2/gio2.c +18 -117
  3. data/ext/gio2/gio2.h +20 -339
  4. data/ext/gio2/rbgio.c +132 -0
  5. data/ext/gio2/rbgio2.h +156 -0
  6. data/ext/gio2/rbgio2conversions.h +154 -0
  7. data/ext/gio2/rbgio2private.h +147 -0
  8. data/ext/gio2/{gappinfo.c → rbgioappinfo.c} +81 -82
  9. data/ext/gio2/rbgioapplaunchcontext.c +81 -0
  10. data/ext/gio2/{gasyncinitable.c → rbgioasyncinitable.c} +33 -30
  11. data/ext/gio2/rbgioasyncresult.c +41 -0
  12. data/ext/gio2/{gbufferedinputstream.c → rbgiobufferedinputstream.c} +37 -35
  13. data/ext/gio2/rbgiobufferedoutputstream.c +50 -0
  14. data/ext/gio2/rbgiocancellable.c +180 -0
  15. data/ext/gio2/rbgiocharsetconverter.c +57 -0
  16. data/ext/gio2/rbgiocontenttype.c +131 -0
  17. data/ext/gio2/{gconverter.c → rbgioconverter.c} +24 -28
  18. data/ext/gio2/rbgioconverterinputstream.c +43 -0
  19. data/ext/gio2/rbgioconverteroutputstream.c +43 -0
  20. data/ext/gio2/{gdatainputstream.c → rbgiodatainputstream.c} +49 -58
  21. data/ext/gio2/{gdataoutputstream.c → rbgiodataoutputstream.c} +39 -37
  22. data/ext/gio2/rbgiodesktopappinfo.c +87 -0
  23. data/ext/gio2/{gdrive.c → rbgiodrive.c} +75 -76
  24. data/ext/gio2/rbgioemblem.c +52 -0
  25. data/ext/gio2/rbgioemblemedicon.c +65 -0
  26. data/ext/gio2/{gfile.c → rbgiofile.c} +256 -266
  27. data/ext/gio2/rbgiofileattribute.c +114 -0
  28. data/ext/gio2/rbgiofileattributeinfo.c +86 -0
  29. data/ext/gio2/rbgiofileattributeinfolist.c +106 -0
  30. data/ext/gio2/rbgiofileattributematcher.c +93 -0
  31. data/ext/gio2/rbgiofiledescriptorbased.c +45 -0
  32. data/ext/gio2/{gfileenumerator.c → rbgiofileenumerator.c} +42 -40
  33. data/ext/gio2/rbgiofileicon.c +41 -0
  34. data/ext/gio2/{gfileinfo.c → rbgiofileinfo.c} +159 -163
  35. data/ext/gio2/{gfileinputstream.c → rbgiofileinputstream.c} +26 -25
  36. data/ext/gio2/{gfileiostream.c → rbgiofileiostream.c} +28 -26
  37. data/ext/gio2/rbgiofilemonitor.c +46 -0
  38. data/ext/gio2/rbgiofilenamecompleter.c +74 -0
  39. data/ext/gio2/{gfileoutputstream.c → rbgiofileoutputstream.c} +28 -26
  40. data/ext/gio2/rbgiofilterinputstream.c +28 -0
  41. data/ext/gio2/rbgiofilteroutputstream.c +28 -0
  42. data/ext/gio2/rbgioicon.c +69 -0
  43. data/ext/gio2/rbgioinetaddress.c +118 -0
  44. data/ext/gio2/rbgioinetsocketaddress.c +41 -0
  45. data/ext/gio2/{ginitable.c → rbgioinitable.c} +29 -25
  46. data/ext/gio2/{ginputstream.c → rbgioinputstream.c} +50 -48
  47. data/ext/gio2/rbgioio.c +73 -0
  48. data/ext/gio2/rbgioiomodule.c +45 -0
  49. data/ext/gio2/rbgioiomodules.c +47 -0
  50. data/ext/gio2/rbgioioscheduler.c +102 -0
  51. data/ext/gio2/rbgioioschedulerjob.c +121 -0
  52. data/ext/gio2/rbgioiostream.c +108 -0
  53. data/ext/gio2/{gloadableicon.c → rbgioloadableicon.c} +26 -24
  54. data/ext/gio2/rbgiomemoryinputstream.c +67 -0
  55. data/ext/gio2/rbgiomemoryoutputstream.c +44 -0
  56. data/ext/gio2/{gmount.c → rbgiomount.c} +70 -68
  57. data/ext/gio2/rbgiomountoperation.c +53 -0
  58. data/ext/gio2/rbgionetworkaddress.c +59 -0
  59. data/ext/gio2/rbgionetworkservice.c +45 -0
  60. data/ext/gio2/{goutputstream.c → rbgiooutputstream.c} +61 -62
  61. data/ext/gio2/{gresolver.c → rbgioresolver.c} +50 -48
  62. data/ext/gio2/rbgioseekable.c +91 -0
  63. data/ext/gio2/rbgiosimpleasyncresult.c +155 -0
  64. data/ext/gio2/{gsocket.c → rbgiosocket.c} +74 -76
  65. data/ext/gio2/rbgiosocketaddress.c +34 -0
  66. data/ext/gio2/rbgiosocketaddressenumerator.c +83 -0
  67. data/ext/gio2/{gsocketclient.c → rbgiosocketclient.c} +41 -39
  68. data/ext/gio2/rbgiosocketconnectable.c +41 -0
  69. data/ext/gio2/rbgiosocketconnection.c +66 -0
  70. data/ext/gio2/rbgiosocketconnectionfactory.c +39 -0
  71. data/ext/gio2/rbgiosocketcontrolmessage.c +82 -0
  72. data/ext/gio2/{gsocketlistener.c → rbgiosocketlistener.c} +49 -47
  73. data/ext/gio2/rbgiosocketservice.c +66 -0
  74. data/ext/gio2/rbgiosrvtarget.c +76 -0
  75. data/ext/gio2/rbgiotcpconnection.c +28 -0
  76. data/ext/gio2/rbgiothemedicon.c +83 -0
  77. data/ext/gio2/rbgiothreadedsocketservice.c +43 -0
  78. data/ext/gio2/rbgiounixconnection.c +71 -0
  79. data/ext/gio2/rbgiounixfdlist.c +115 -0
  80. data/ext/gio2/rbgiounixfdmessage.c +74 -0
  81. data/ext/gio2/rbgiounixinputstream.c +51 -0
  82. data/ext/gio2/rbgiounixmount.c +164 -0
  83. data/ext/gio2/rbgiounixmountmonitor.c +66 -0
  84. data/ext/gio2/rbgiounixmountpoint.c +136 -0
  85. data/ext/gio2/rbgiounixmountpoints.c +58 -0
  86. data/ext/gio2/rbgiounixmounts.c +58 -0
  87. data/ext/gio2/rbgiounixoutputstream.c +51 -0
  88. data/ext/gio2/rbgiounixsocketaddress.c +69 -0
  89. data/ext/gio2/rbgiovfs.c +84 -0
  90. data/ext/gio2/rbgiovolume.c +193 -0
  91. data/ext/gio2/rbgiovolumemonitor.c +77 -0
  92. data/ext/gio2/rbgiozlibcompressor.c +52 -0
  93. data/ext/gio2/rbgiozlibdecompressor.c +45 -0
  94. data/ext/gio2/util.c +57 -60
  95. data/lib/1.8/gio2.so +0 -0
  96. data/lib/1.9/gio2.so +0 -0
  97. data/lib/gio2/deprecated.rb +102 -0
  98. data/lib/gio2.rb +14 -12
  99. metadata +100 -88
  100. data/ChangeLog +0 -129
  101. data/ext/gio2/gapplaunchcontext.c +0 -79
  102. data/ext/gio2/gasyncresult.c +0 -39
  103. data/ext/gio2/gbufferedoutputstream.c +0 -48
  104. data/ext/gio2/gcancellable.c +0 -177
  105. data/ext/gio2/gcharsetconverter.c +0 -55
  106. data/ext/gio2/gcontenttype.c +0 -128
  107. data/ext/gio2/gconverterinputstream.c +0 -41
  108. data/ext/gio2/gconverteroutputstream.c +0 -41
  109. data/ext/gio2/gdesktopappinfo.c +0 -88
  110. data/ext/gio2/gemblem.c +0 -52
  111. data/ext/gio2/gemblemedicon.c +0 -63
  112. data/ext/gio2/gfileattribute.c +0 -111
  113. data/ext/gio2/gfileattributeinfo.c +0 -89
  114. data/ext/gio2/gfileattributeinfolist.c +0 -109
  115. data/ext/gio2/gfileattributematcher.c +0 -90
  116. data/ext/gio2/gfiledescriptorbased.c +0 -42
  117. data/ext/gio2/gfileicon.c +0 -39
  118. data/ext/gio2/gfilemonitor.c +0 -44
  119. data/ext/gio2/gfilenamecompleter.c +0 -72
  120. data/ext/gio2/gfilterinputstream.c +0 -27
  121. data/ext/gio2/gfilteroutputstream.c +0 -27
  122. data/ext/gio2/gicon.c +0 -67
  123. data/ext/gio2/ginetaddress.c +0 -116
  124. data/ext/gio2/ginetsocketaddress.c +0 -38
  125. data/ext/gio2/gioerror.c +0 -70
  126. data/ext/gio2/giomodule.c +0 -63
  127. data/ext/gio2/gioscheduler.c +0 -193
  128. data/ext/gio2/giostream.c +0 -106
  129. data/ext/gio2/gmemoryinputstream.c +0 -65
  130. data/ext/gio2/gmemoryoutputstream.c +0 -41
  131. data/ext/gio2/gmountoperation.c +0 -66
  132. data/ext/gio2/gnetworkaddress.c +0 -57
  133. data/ext/gio2/gnetworkservice.c +0 -43
  134. data/ext/gio2/gseekable.c +0 -89
  135. data/ext/gio2/gsimpleasyncresult.c +0 -153
  136. data/ext/gio2/gsocketaddress.c +0 -33
  137. data/ext/gio2/gsocketconnectable.c +0 -97
  138. data/ext/gio2/gsocketconnection.c +0 -75
  139. data/ext/gio2/gsocketcontrolmessage.c +0 -80
  140. data/ext/gio2/gsocketservice.c +0 -64
  141. data/ext/gio2/gsrvtarget.c +0 -77
  142. data/ext/gio2/gtcpconnection.c +0 -27
  143. data/ext/gio2/gthemedicon.c +0 -81
  144. data/ext/gio2/gthreadedsocketservice.c +0 -40
  145. data/ext/gio2/gunixconnection.c +0 -69
  146. data/ext/gio2/gunixfdlist.c +0 -112
  147. data/ext/gio2/gunixfdmessage.c +0 -72
  148. data/ext/gio2/gunixinputstream.c +0 -49
  149. data/ext/gio2/gunixmounts.c +0 -343
  150. data/ext/gio2/gunixoutputstream.c +0 -49
  151. data/ext/gio2/gunixsocketaddress.c +0 -67
  152. data/ext/gio2/gvfs.c +0 -82
  153. data/ext/gio2/gvolume.c +0 -191
  154. data/ext/gio2/gvolumemonitor.c +0 -75
  155. data/ext/gio2/gzlibcompressor.c +0 -50
  156. data/ext/gio2/gzlibdecompressor.c +0 -43
@@ -1,38 +1,34 @@
1
- /* -*- c-file-style: "ruby" -*- */
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
2
  /*
3
- * Ruby/GIO: a Ruby binding of gio-2.0.x.
4
- * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
5
5
  *
6
- * This library is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU Lesser General Public
8
- * License as published by the Free Software Foundation; either
9
- * version 2.1 of the License.
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
10
  *
11
- * This library is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
- * Lesser General Public License for more details.
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
15
  *
16
- * You should have received a copy of the GNU Lesser General Public
17
- * License along with this library; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
19
20
  */
20
21
 
21
- #include "gio2.h"
22
+ #include "rbgio2private.h"
22
23
 
24
+ #define RG_TARGET_NAMESPACE cFileInfo
23
25
  #define _SELF(value) RVAL2GFILEINFO(value)
24
26
 
25
- #define GFILEATTRIBUTESTATUS2RVAL(value) \
26
- GENUM2RVAL((value), G_TYPE_FILE_ATTRIBUTE_STATUS)
27
-
28
- #define RVAL2GFILEATTRIBUTESTATUS(value) \
29
- GENUM2RVAL((value), G_TYPE_FILE_ATTRIBUTE_STATUS)
30
-
31
27
  #define RVAL2FILEINFONAMESPACEDEFAULT(value) \
32
28
  RVAL2TYPE_WITH_DEFAULT((value), RVAL2CSTR, "*")
33
29
 
34
30
  static VALUE
35
- fileinfo_initialize(VALUE self)
31
+ rg_initialize(VALUE self)
36
32
  {
37
33
  G_INITIALIZE(self, g_file_info_new());
38
34
 
@@ -40,13 +36,13 @@ fileinfo_initialize(VALUE self)
40
36
  }
41
37
 
42
38
  static VALUE
43
- fileinfo_dup(VALUE self)
39
+ rg_dup(VALUE self)
44
40
  {
45
41
  return GOBJ2RVAL_UNREF(g_file_info_dup(_SELF(self)));
46
42
  }
47
43
 
48
44
  static VALUE
49
- fileinfo_copy_into(VALUE self, VALUE other)
45
+ rg_copy_into(VALUE self, VALUE other)
50
46
  {
51
47
  g_file_info_copy_into(_SELF(self), _SELF(other));
52
48
 
@@ -54,19 +50,19 @@ fileinfo_copy_into(VALUE self, VALUE other)
54
50
  }
55
51
 
56
52
  static VALUE
57
- fileinfo_has_attribute(VALUE self, VALUE attribute)
53
+ rg_has_attribute_p(VALUE self, VALUE attribute)
58
54
  {
59
55
  return CBOOL2RVAL(g_file_info_has_attribute(_SELF(self), RVAL2CSTR(attribute)));
60
56
  }
61
57
 
62
58
  static VALUE
63
- fileinfo_has_namespace(VALUE self, VALUE namespace)
59
+ rg_has_namespace_p(VALUE self, VALUE namespace)
64
60
  {
65
61
  return CBOOL2RVAL(g_file_info_has_namespace(_SELF(self), RVAL2CSTR(namespace)));
66
62
  }
67
63
 
68
64
  static VALUE
69
- fileinfo_set_attribute_status(VALUE self, VALUE attribute, VALUE status)
65
+ rg_set_attribute_status(VALUE self, VALUE attribute, VALUE status)
70
66
  {
71
67
  return CBOOL2RVAL(g_file_info_set_attribute_status(_SELF(self),
72
68
  RVAL2CSTR(attribute),
@@ -74,24 +70,24 @@ fileinfo_set_attribute_status(VALUE self, VALUE attribute, VALUE status)
74
70
  }
75
71
 
76
72
  static VALUE
77
- fileinfo_list_attributes(int argc, VALUE *argv, VALUE self)
73
+ rg_list_attributes(int argc, VALUE *argv, VALUE self)
78
74
  {
79
75
  VALUE name_space;
80
76
 
81
77
  rb_scan_args(argc, argv, "01", &name_space);
82
78
 
83
- return STRVECTOR2ARY_FREE(g_file_info_list_attributes(_SELF(self),
84
- RVAL2FILEINFONAMESPACEDEFAULT(name_space)));
79
+ return STRV2RVAL_FREE(g_file_info_list_attributes(_SELF(self),
80
+ RVAL2FILEINFONAMESPACEDEFAULT(name_space)));
85
81
  }
86
82
 
87
83
  static VALUE
88
- fileinfo_get_attribute_type(VALUE self, VALUE attribute)
84
+ rg_get_attribute_type(VALUE self, VALUE attribute)
89
85
  {
90
86
  return GFILEATTRIBUTETYPE2RVAL(g_file_info_get_attribute_type(_SELF(self), RVAL2CSTR(attribute)));
91
87
  }
92
88
 
93
89
  static VALUE
94
- fileinfo_remove_attribute(VALUE self, VALUE attribute)
90
+ rg_remove_attribute(VALUE self, VALUE attribute)
95
91
  {
96
92
  g_file_info_remove_attribute(_SELF(self), RVAL2CSTR(attribute));
97
93
 
@@ -99,7 +95,7 @@ fileinfo_remove_attribute(VALUE self, VALUE attribute)
99
95
  }
100
96
 
101
97
  static VALUE
102
- fileinfo_get_attribute_as_string(VALUE self, VALUE attribute)
98
+ rg_get_attribute_as_string(VALUE self, VALUE attribute)
103
99
  {
104
100
  return CSTR2RVAL_FREE(g_file_info_get_attribute_as_string(_SELF(self), RVAL2CSTR(attribute)));
105
101
  }
@@ -124,7 +120,7 @@ file_attribute_to_value(GFileAttributeType type, gpointer value)
124
120
  case G_FILE_ATTRIBUTE_TYPE_OBJECT:
125
121
  return GOBJ2RVAL((GObject *)value);
126
122
  case G_FILE_ATTRIBUTE_TYPE_STRINGV:
127
- return STRVECTOR2ARY_FREE((char **)value);
123
+ return STRV2RVAL_FREE((gchar **)value);
128
124
  case G_FILE_ATTRIBUTE_TYPE_INVALID:
129
125
  rb_raise(rb_eArgError, "invalid file attribute type");
130
126
  break;
@@ -135,7 +131,7 @@ file_attribute_to_value(GFileAttributeType type, gpointer value)
135
131
  }
136
132
 
137
133
  static VALUE
138
- fileinfo_get_attribute_data(VALUE self, VALUE attribute)
134
+ rg_get_attribute_data(VALUE self, VALUE attribute)
139
135
  {
140
136
  GFileAttributeType type;
141
137
  gpointer value;
@@ -155,77 +151,77 @@ fileinfo_get_attribute_data(VALUE self, VALUE attribute)
155
151
  }
156
152
 
157
153
  static VALUE
158
- fileinfo_get_attribute_status(VALUE self, VALUE attribute)
154
+ rg_get_attribute_status(VALUE self, VALUE attribute)
159
155
  {
160
156
  return GFILEATTRIBUTESTATUS2RVAL(g_file_info_get_attribute_status(_SELF(self),
161
157
  RVAL2CSTR(attribute)));
162
158
  }
163
159
 
164
160
  static VALUE
165
- fileinfo_get_attribute_string(VALUE self, VALUE attribute)
161
+ rg_get_attribute_string(VALUE self, VALUE attribute)
166
162
  {
167
163
  return CSTR2RVAL(g_file_info_get_attribute_string(_SELF(self),
168
164
  RVAL2CSTR(attribute)));
169
165
  }
170
166
 
171
167
  static VALUE
172
- fileinfo_get_attribute_stringv(VALUE self, VALUE attribute)
168
+ rg_get_attribute_stringv(VALUE self, VALUE attribute)
173
169
  {
174
- return STRVECTOR2ARY((const gchar * const *)g_file_info_get_attribute_stringv(_SELF(self),
175
- RVAL2CSTR(attribute)));
170
+ return STRV2RVAL((const gchar **)g_file_info_get_attribute_stringv(_SELF(self),
171
+ RVAL2CSTR(attribute)));
176
172
  }
177
173
 
178
174
  static VALUE
179
- fileinfo_get_attribute_byte_string(VALUE self, VALUE attribute)
175
+ rg_get_attribute_byte_string(VALUE self, VALUE attribute)
180
176
  {
181
177
  return CSTR2RVAL(g_file_info_get_attribute_byte_string(_SELF(self),
182
178
  RVAL2CSTR(attribute)));
183
179
  }
184
180
 
185
181
  static VALUE
186
- fileinfo_get_attribute_boolean(VALUE self, VALUE attribute)
182
+ rg_get_attribute_boolean(VALUE self, VALUE attribute)
187
183
  {
188
184
  return CBOOL2RVAL(g_file_info_get_attribute_boolean(_SELF(self),
189
185
  RVAL2CSTR(attribute)));
190
186
  }
191
187
 
192
188
  static VALUE
193
- fileinfo_get_attribute_uint32(VALUE self, VALUE attribute)
189
+ rg_get_attribute_uint32(VALUE self, VALUE attribute)
194
190
  {
195
191
  return GUINT322RVAL(g_file_info_get_attribute_uint32(_SELF(self),
196
192
  RVAL2CSTR(attribute)));
197
193
  }
198
194
 
199
195
  static VALUE
200
- fileinfo_get_attribute_int32(VALUE self, VALUE attribute)
196
+ rg_get_attribute_int32(VALUE self, VALUE attribute)
201
197
  {
202
198
  return GINT322RVAL(g_file_info_get_attribute_int32(_SELF(self),
203
199
  RVAL2CSTR(attribute)));
204
200
  }
205
201
 
206
202
  static VALUE
207
- fileinfo_get_attribute_uint64(VALUE self, VALUE attribute)
203
+ rg_get_attribute_uint64(VALUE self, VALUE attribute)
208
204
  {
209
205
  return GUINT642RVAL(g_file_info_get_attribute_uint64(_SELF(self),
210
206
  RVAL2CSTR(attribute)));
211
207
  }
212
208
 
213
209
  static VALUE
214
- fileinfo_get_attribute_int64(VALUE self, VALUE attribute)
210
+ rg_get_attribute_int64(VALUE self, VALUE attribute)
215
211
  {
216
212
  return GINT642RVAL(g_file_info_get_attribute_int64(_SELF(self),
217
213
  RVAL2CSTR(attribute)));
218
214
  }
219
215
 
220
216
  static VALUE
221
- fileinfo_get_attribute_object(VALUE self, VALUE attribute)
217
+ rg_get_attribute_object(VALUE self, VALUE attribute)
222
218
  {
223
219
  return GOBJ2RVAL(g_file_info_get_attribute_object(_SELF(self),
224
220
  RVAL2CSTR(attribute)));
225
221
  }
226
222
 
227
223
  static VALUE
228
- fileinfo_get_attribute_value(VALUE self, VALUE attribute)
224
+ rg_get_attribute_value(VALUE self, VALUE attribute)
229
225
  {
230
226
  GFileAttributeType type;
231
227
  gpointer value;
@@ -242,7 +238,7 @@ fileinfo_get_attribute_value(VALUE self, VALUE attribute)
242
238
  }
243
239
 
244
240
  static VALUE
245
- fileinfo_set_attribute_string(VALUE self, VALUE attribute, VALUE value)
241
+ rg_set_attribute_string(VALUE self, VALUE attribute, VALUE value)
246
242
  {
247
243
  g_file_info_set_attribute_string(_SELF(self),
248
244
  RVAL2CSTR(attribute),
@@ -252,7 +248,7 @@ fileinfo_set_attribute_string(VALUE self, VALUE attribute, VALUE value)
252
248
  }
253
249
 
254
250
  static VALUE
255
- fileinfo_set_attribute_byte_string(VALUE self, VALUE attribute, VALUE value)
251
+ rg_set_attribute_byte_string(VALUE self, VALUE attribute, VALUE value)
256
252
  {
257
253
  g_file_info_set_attribute_byte_string(_SELF(self),
258
254
  RVAL2CSTR(attribute),
@@ -262,7 +258,7 @@ fileinfo_set_attribute_byte_string(VALUE self, VALUE attribute, VALUE value)
262
258
  }
263
259
 
264
260
  static VALUE
265
- fileinfo_set_attribute_boolean(VALUE self, VALUE attribute, VALUE value)
261
+ rg_set_attribute_boolean(VALUE self, VALUE attribute, VALUE value)
266
262
  {
267
263
  g_file_info_set_attribute_boolean(_SELF(self),
268
264
  RVAL2CSTR(attribute),
@@ -272,7 +268,7 @@ fileinfo_set_attribute_boolean(VALUE self, VALUE attribute, VALUE value)
272
268
  }
273
269
 
274
270
  static VALUE
275
- fileinfo_set_attribute_uint32(VALUE self, VALUE attribute, VALUE value)
271
+ rg_set_attribute_uint32(VALUE self, VALUE attribute, VALUE value)
276
272
  {
277
273
  g_file_info_set_attribute_uint32(_SELF(self),
278
274
  RVAL2CSTR(attribute),
@@ -282,7 +278,7 @@ fileinfo_set_attribute_uint32(VALUE self, VALUE attribute, VALUE value)
282
278
  }
283
279
 
284
280
  static VALUE
285
- fileinfo_set_attribute_int32(VALUE self, VALUE attribute, VALUE value)
281
+ rg_set_attribute_int32(VALUE self, VALUE attribute, VALUE value)
286
282
  {
287
283
  g_file_info_set_attribute_int32(_SELF(self),
288
284
  RVAL2CSTR(attribute),
@@ -292,7 +288,7 @@ fileinfo_set_attribute_int32(VALUE self, VALUE attribute, VALUE value)
292
288
  }
293
289
 
294
290
  static VALUE
295
- fileinfo_set_attribute_uint64(VALUE self, VALUE attribute, VALUE value)
291
+ rg_set_attribute_uint64(VALUE self, VALUE attribute, VALUE value)
296
292
  {
297
293
  g_file_info_set_attribute_uint64(_SELF(self),
298
294
  RVAL2CSTR(attribute),
@@ -302,7 +298,7 @@ fileinfo_set_attribute_uint64(VALUE self, VALUE attribute, VALUE value)
302
298
  }
303
299
 
304
300
  static VALUE
305
- fileinfo_set_attribute_int64(VALUE self, VALUE attribute, VALUE value)
301
+ rg_set_attribute_int64(VALUE self, VALUE attribute, VALUE value)
306
302
  {
307
303
  g_file_info_set_attribute_int64(_SELF(self),
308
304
  RVAL2CSTR(attribute),
@@ -312,7 +308,7 @@ fileinfo_set_attribute_int64(VALUE self, VALUE attribute, VALUE value)
312
308
  }
313
309
 
314
310
  static VALUE
315
- fileinfo_set_attribute_object(VALUE self, VALUE attribute, VALUE value)
311
+ rg_set_attribute_object(VALUE self, VALUE attribute, VALUE value)
316
312
  {
317
313
  g_file_info_set_attribute_object(_SELF(self),
318
314
  RVAL2CSTR(attribute),
@@ -322,7 +318,7 @@ fileinfo_set_attribute_object(VALUE self, VALUE attribute, VALUE value)
322
318
  }
323
319
 
324
320
  static VALUE
325
- fileinfo_clear_status(VALUE self)
321
+ rg_clear_status(VALUE self)
326
322
  {
327
323
  g_file_info_clear_status(_SELF(self));
328
324
 
@@ -330,67 +326,67 @@ fileinfo_clear_status(VALUE self)
330
326
  }
331
327
 
332
328
  static VALUE
333
- fileinfo_get_file_type(VALUE self)
329
+ rg_file_type(VALUE self)
334
330
  {
335
331
  return GFILETYPE2RVAL(g_file_info_get_file_type(_SELF(self)));
336
332
  }
337
333
 
338
334
  static VALUE
339
- fileinfo_is_hidden(VALUE self)
335
+ rg_hidden_p(VALUE self)
340
336
  {
341
337
  return CBOOL2RVAL(g_file_info_get_is_hidden(_SELF(self)));
342
338
  }
343
339
 
344
340
  static VALUE
345
- fileinfo_is_backup(VALUE self)
341
+ rg_backup_p(VALUE self)
346
342
  {
347
343
  return CBOOL2RVAL(g_file_info_get_is_backup(_SELF(self)));
348
344
  }
349
345
 
350
346
  static VALUE
351
- fileinfo_is_symlink(VALUE self)
347
+ rg_symlink_p(VALUE self)
352
348
  {
353
349
  return CBOOL2RVAL(g_file_info_get_is_symlink(_SELF(self)));
354
350
  }
355
351
 
356
352
  static VALUE
357
- fileinfo_get_name(VALUE self)
353
+ rg_name(VALUE self)
358
354
  {
359
355
  return CSTR2RVAL(g_file_info_get_name(_SELF(self)));
360
356
  }
361
357
 
362
358
  static VALUE
363
- fileinfo_get_display_name(VALUE self)
359
+ rg_display_name(VALUE self)
364
360
  {
365
361
  return CSTR2RVAL(g_file_info_get_display_name(_SELF(self)));
366
362
  }
367
363
 
368
364
  static VALUE
369
- fileinfo_get_edit_name(VALUE self)
365
+ rg_edit_name(VALUE self)
370
366
  {
371
367
  return CSTR2RVAL(g_file_info_get_edit_name(_SELF(self)));
372
368
  }
373
369
 
374
370
  static VALUE
375
- fileinfo_get_icon(VALUE self)
371
+ rg_icon(VALUE self)
376
372
  {
377
373
  return GOBJ2RVAL(g_file_info_get_icon(_SELF(self)));
378
374
  }
379
375
 
380
376
  static VALUE
381
- fileinfo_get_content_type(VALUE self)
377
+ rg_content_type(VALUE self)
382
378
  {
383
379
  return CSTR2RVAL(g_file_info_get_content_type(_SELF(self)));
384
380
  }
385
381
 
386
382
  static VALUE
387
- fileinfo_get_size(VALUE self)
383
+ rg_size(VALUE self)
388
384
  {
389
385
  return GOFFSET2RVAL(g_file_info_get_size(_SELF(self)));
390
386
  }
391
387
 
392
388
  static VALUE
393
- fileinfo_get_modification_time(VALUE self)
389
+ rg_modification_time(VALUE self)
394
390
  {
395
391
  GTimeVal time;
396
392
 
@@ -400,25 +396,25 @@ fileinfo_get_modification_time(VALUE self)
400
396
  }
401
397
 
402
398
  static VALUE
403
- fileinfo_get_symlink_target(VALUE self)
399
+ rg_symlink_target(VALUE self)
404
400
  {
405
401
  return CSTR2RVAL(g_file_info_get_symlink_target(_SELF(self)));
406
402
  }
407
403
 
408
404
  static VALUE
409
- fileinfo_get_etag(VALUE self)
405
+ rg_etag(VALUE self)
410
406
  {
411
407
  return CSTR2RVAL(g_file_info_get_etag(_SELF(self)));
412
408
  }
413
409
 
414
410
  static VALUE
415
- fileinfo_get_sort_order(VALUE self)
411
+ rg_sort_order(VALUE self)
416
412
  {
417
413
  return GINT322RVAL(g_file_info_get_sort_order(_SELF(self)));
418
414
  }
419
415
 
420
416
  static VALUE
421
- fileinfo_set_attribute_mask(VALUE self, VALUE rbmask)
417
+ rg_set_attribute_mask(VALUE self, VALUE rbmask)
422
418
  {
423
419
  gboolean should_unref;
424
420
  GFileAttributeMatcher *mask;
@@ -445,7 +441,7 @@ fileinfo_set_attribute_mask(VALUE self, VALUE rbmask)
445
441
  }
446
442
 
447
443
  static VALUE
448
- fileinfo_unset_attribute_mask(VALUE self)
444
+ rg_unset_attribute_mask(VALUE self)
449
445
  {
450
446
  g_file_info_unset_attribute_mask(_SELF(self));
451
447
 
@@ -453,7 +449,7 @@ fileinfo_unset_attribute_mask(VALUE self)
453
449
  }
454
450
 
455
451
  static VALUE
456
- fileinfo_set_file_type(VALUE self, VALUE value)
452
+ rg_set_file_type(VALUE self, VALUE value)
457
453
  {
458
454
  g_file_info_set_file_type(_SELF(self), RVAL2GFILETYPE(value));
459
455
 
@@ -461,7 +457,7 @@ fileinfo_set_file_type(VALUE self, VALUE value)
461
457
  }
462
458
 
463
459
  static VALUE
464
- fileinfo_set_is_hidden(VALUE self, VALUE value)
460
+ rg_set_hidden(VALUE self, VALUE value)
465
461
  {
466
462
  g_file_info_set_is_hidden(_SELF(self), RVAL2CBOOL(value));
467
463
 
@@ -469,7 +465,7 @@ fileinfo_set_is_hidden(VALUE self, VALUE value)
469
465
  }
470
466
 
471
467
  static VALUE
472
- fileinfo_set_is_symlink(VALUE self, VALUE value)
468
+ rg_set_symlink(VALUE self, VALUE value)
473
469
  {
474
470
  g_file_info_set_is_symlink(_SELF(self), RVAL2CBOOL(value));
475
471
 
@@ -477,7 +473,7 @@ fileinfo_set_is_symlink(VALUE self, VALUE value)
477
473
  }
478
474
 
479
475
  static VALUE
480
- fileinfo_set_name(VALUE self, VALUE value)
476
+ rg_set_name(VALUE self, VALUE value)
481
477
  {
482
478
  g_file_info_set_name(_SELF(self), RVAL2CSTR(value));
483
479
 
@@ -485,7 +481,7 @@ fileinfo_set_name(VALUE self, VALUE value)
485
481
  }
486
482
 
487
483
  static VALUE
488
- fileinfo_set_display_name(VALUE self, VALUE value)
484
+ rg_set_display_name(VALUE self, VALUE value)
489
485
  {
490
486
  g_file_info_set_display_name(_SELF(self), RVAL2CSTR(value));
491
487
 
@@ -493,7 +489,7 @@ fileinfo_set_display_name(VALUE self, VALUE value)
493
489
  }
494
490
 
495
491
  static VALUE
496
- fileinfo_set_edit_name(VALUE self, VALUE value)
492
+ rg_set_edit_name(VALUE self, VALUE value)
497
493
  {
498
494
  g_file_info_set_edit_name(_SELF(self), RVAL2CSTR(value));
499
495
 
@@ -501,7 +497,7 @@ fileinfo_set_edit_name(VALUE self, VALUE value)
501
497
  }
502
498
 
503
499
  static VALUE
504
- fileinfo_set_icon(VALUE self, VALUE value)
500
+ rg_set_icon(VALUE self, VALUE value)
505
501
  {
506
502
  g_file_info_set_icon(_SELF(self), RVAL2GICON(value));
507
503
 
@@ -509,7 +505,7 @@ fileinfo_set_icon(VALUE self, VALUE value)
509
505
  }
510
506
 
511
507
  static VALUE
512
- fileinfo_set_content_type(VALUE self, VALUE value)
508
+ rg_set_content_type(VALUE self, VALUE value)
513
509
  {
514
510
  g_file_info_set_content_type(_SELF(self), RVAL2CSTR(value));
515
511
 
@@ -517,7 +513,7 @@ fileinfo_set_content_type(VALUE self, VALUE value)
517
513
  }
518
514
 
519
515
  static VALUE
520
- fileinfo_set_size(VALUE self, VALUE value)
516
+ rg_set_size(VALUE self, VALUE value)
521
517
  {
522
518
  g_file_info_set_size(_SELF(self), RVAL2GOFFSET(value));
523
519
 
@@ -525,7 +521,7 @@ fileinfo_set_size(VALUE self, VALUE value)
525
521
  }
526
522
 
527
523
  static VALUE
528
- fileinfo_set_modification_time(VALUE self, VALUE rbtime)
524
+ rg_set_modification_time(VALUE self, VALUE rbtime)
529
525
  {
530
526
  GTimeVal time;
531
527
 
@@ -537,7 +533,7 @@ fileinfo_set_modification_time(VALUE self, VALUE rbtime)
537
533
  }
538
534
 
539
535
  static VALUE
540
- fileinfo_set_symlink_target(VALUE self, VALUE value)
536
+ rg_set_symlink_target(VALUE self, VALUE value)
541
537
  {
542
538
  g_file_info_set_symlink_target(_SELF(self), RVAL2CSTR(value));
543
539
 
@@ -545,7 +541,7 @@ fileinfo_set_symlink_target(VALUE self, VALUE value)
545
541
  }
546
542
 
547
543
  static VALUE
548
- fileinfo_set_sort_order(VALUE self, VALUE value)
544
+ rg_set_sort_order(VALUE self, VALUE value)
549
545
  {
550
546
  g_file_info_set_sort_order(_SELF(self), RVAL2GINT32(value));
551
547
 
@@ -553,82 +549,82 @@ fileinfo_set_sort_order(VALUE self, VALUE value)
553
549
  }
554
550
 
555
551
  void
556
- Init_gfileinfo(VALUE glib)
557
- {
558
- VALUE fileinfo = G_DEF_CLASS(G_TYPE_FILE_INFO, "FileInfo", glib);
559
-
560
- rb_define_method(fileinfo, "initialize", fileinfo_initialize, 0);
561
- rb_define_method(fileinfo, "dup", fileinfo_dup, 0);
562
- rb_define_method(fileinfo, "copy_into", fileinfo_copy_into, 1);
563
- rb_define_method(fileinfo, "has_attribute?", fileinfo_has_attribute, 1);
564
- rb_define_method(fileinfo, "has_namespace?", fileinfo_has_namespace, 1);
565
- rb_define_method(fileinfo, "list_attributes", fileinfo_list_attributes, -1);
566
- rb_define_alias(fileinfo, "attributes", "list_attributes");
567
- rb_define_method(fileinfo, "get_attribute_type", fileinfo_get_attribute_type, 1);
568
- rb_define_method(fileinfo, "remove_attribute", fileinfo_remove_attribute, 1);
569
- rb_define_method(fileinfo, "get_attribute_as_string", fileinfo_get_attribute_as_string, 1);
570
- rb_define_method(fileinfo, "get_attribute_data", fileinfo_get_attribute_data, 1);
571
- rb_define_method(fileinfo, "get_attribute_status", fileinfo_get_attribute_status, 1);
572
- rb_define_method(fileinfo, "get_attribute_string", fileinfo_get_attribute_string, 1);
573
- rb_define_method(fileinfo, "get_attribute_stringv", fileinfo_get_attribute_stringv, 1);
574
- rb_define_method(fileinfo, "get_attribute_byte_string", fileinfo_get_attribute_byte_string, 1);
575
- rb_define_method(fileinfo, "get_attribute_boolean", fileinfo_get_attribute_boolean, 1);
576
- rb_define_method(fileinfo, "get_attribute_uint32", fileinfo_get_attribute_uint32, 1);
577
- rb_define_method(fileinfo, "get_attribute_int32", fileinfo_get_attribute_int32, 1);
578
- rb_define_method(fileinfo, "get_attribute_uint64", fileinfo_get_attribute_uint64, 1);
579
- rb_define_method(fileinfo, "get_attribute_int64", fileinfo_get_attribute_int64, 1);
580
- rb_define_method(fileinfo, "get_attribute_object", fileinfo_get_attribute_object, 1);
581
- rb_define_method(fileinfo, "get_attribute_value", fileinfo_get_attribute_value, 1);
582
- rb_define_alias(fileinfo, "[]", "get_attribute_value");
583
- rb_define_method(fileinfo, "set_attribute_status", fileinfo_set_attribute_status, 2);
584
- rb_define_method(fileinfo, "set_attribute_string", fileinfo_set_attribute_string, 2);
585
- rb_define_method(fileinfo, "set_attribute_byte_string", fileinfo_set_attribute_byte_string, 2);
586
- rb_define_method(fileinfo, "set_attribute_boolean", fileinfo_set_attribute_boolean, 2);
587
- rb_define_method(fileinfo, "set_attribute_uint32", fileinfo_set_attribute_uint32, 2);
588
- rb_define_method(fileinfo, "set_attribute_int32", fileinfo_set_attribute_int32, 2);
589
- rb_define_method(fileinfo, "set_attribute_uint64", fileinfo_set_attribute_uint64, 2);
590
- rb_define_method(fileinfo, "set_attribute_int64", fileinfo_set_attribute_int64, 2);
591
- rb_define_method(fileinfo, "set_attribute_object", fileinfo_set_attribute_object, 2);
592
- rb_define_method(fileinfo, "clear_status", fileinfo_clear_status, 0);
593
- rb_define_method(fileinfo, "file_type", fileinfo_get_file_type, 0);
594
- rb_define_method(fileinfo, "hidden?", fileinfo_is_hidden, 0);
595
- rb_define_method(fileinfo, "backup?", fileinfo_is_backup, 0);
596
- rb_define_method(fileinfo, "symlink?", fileinfo_is_symlink, 0);
597
- rb_define_method(fileinfo, "name", fileinfo_get_name, 0);
598
- rb_define_method(fileinfo, "display_name", fileinfo_get_display_name, 0);
599
- rb_define_method(fileinfo, "edit_name", fileinfo_get_edit_name, 0);
600
- rb_define_method(fileinfo, "icon", fileinfo_get_icon, 0);
601
- rb_define_method(fileinfo, "content_type", fileinfo_get_content_type, 0);
602
- rb_define_method(fileinfo, "size", fileinfo_get_size, 0);
603
- rb_define_method(fileinfo, "modification_time", fileinfo_get_modification_time, 0);
604
- rb_define_method(fileinfo, "symlink_target", fileinfo_get_symlink_target, 0);
605
- rb_define_method(fileinfo, "etag", fileinfo_get_etag, 0);
606
- rb_define_method(fileinfo, "sort_order", fileinfo_get_sort_order, 0);
607
- rb_define_method(fileinfo, "set_attribute_mask", fileinfo_set_attribute_mask, 1);
608
- G_DEF_SETTER(fileinfo, "attribute_mask");
609
- rb_define_method(fileinfo, "unset_attribute_mask", fileinfo_unset_attribute_mask, 0);
610
- rb_define_method(fileinfo, "set_file_type", fileinfo_set_file_type, 1);
611
- G_DEF_SETTER(fileinfo, "file_type");
612
- rb_define_method(fileinfo, "set_hidden", fileinfo_set_is_hidden, 1);
613
- G_DEF_SETTER(fileinfo, "hidden");
614
- rb_define_method(fileinfo, "set_symlink", fileinfo_set_is_symlink, 1);
615
- G_DEF_SETTER(fileinfo, "symlink");
616
- rb_define_method(fileinfo, "set_name", fileinfo_set_name, 1);
617
- G_DEF_SETTER(fileinfo, "name");
618
- rb_define_method(fileinfo, "set_display_name", fileinfo_set_display_name, 1);
619
- G_DEF_SETTER(fileinfo, "display_name");
620
- rb_define_method(fileinfo, "set_edit_name", fileinfo_set_edit_name, 1);
621
- G_DEF_SETTER(fileinfo, "edit_name");
622
- rb_define_method(fileinfo, "set_icon", fileinfo_set_icon, 1);
623
- G_DEF_SETTER(fileinfo, "icon");
624
- rb_define_method(fileinfo, "set_content_type", fileinfo_set_content_type, 1);
625
- G_DEF_SETTER(fileinfo, "content_type");
626
- rb_define_method(fileinfo, "set_size", fileinfo_set_size, 1);
627
- G_DEF_SETTER(fileinfo, "size");
628
- rb_define_method(fileinfo, "set_modification_time", fileinfo_set_modification_time, 1);
629
- G_DEF_SETTER(fileinfo, "modification_time");
630
- rb_define_method(fileinfo, "set_symlink_target", fileinfo_set_symlink_target, 1);
631
- G_DEF_SETTER(fileinfo, "symlink_target");
632
- rb_define_method(fileinfo, "set_sort_order", fileinfo_set_sort_order, 1);
633
- G_DEF_SETTER(fileinfo, "sort_order");
552
+ Init_gfileinfo(VALUE mGio)
553
+ {
554
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(G_TYPE_FILE_INFO, "FileInfo", mGio);
555
+
556
+ RG_DEF_METHOD(initialize, 0);
557
+ RG_DEF_METHOD(dup, 0);
558
+ RG_DEF_METHOD(copy_into, 1);
559
+ RG_DEF_METHOD_P(has_attribute, 1);
560
+ RG_DEF_METHOD_P(has_namespace, 1);
561
+ RG_DEF_METHOD(list_attributes, -1);
562
+ RG_DEF_ALIAS("attributes", "list_attributes");
563
+ RG_DEF_METHOD(get_attribute_type, 1);
564
+ RG_DEF_METHOD(remove_attribute, 1);
565
+ RG_DEF_METHOD(get_attribute_as_string, 1);
566
+ RG_DEF_METHOD(get_attribute_data, 1);
567
+ RG_DEF_METHOD(get_attribute_status, 1);
568
+ RG_DEF_METHOD(get_attribute_string, 1);
569
+ RG_DEF_METHOD(get_attribute_stringv, 1);
570
+ RG_DEF_METHOD(get_attribute_byte_string, 1);
571
+ RG_DEF_METHOD(get_attribute_boolean, 1);
572
+ RG_DEF_METHOD(get_attribute_uint32, 1);
573
+ RG_DEF_METHOD(get_attribute_int32, 1);
574
+ RG_DEF_METHOD(get_attribute_uint64, 1);
575
+ RG_DEF_METHOD(get_attribute_int64, 1);
576
+ RG_DEF_METHOD(get_attribute_object, 1);
577
+ RG_DEF_METHOD(get_attribute_value, 1);
578
+ RG_DEF_ALIAS("[]", "get_attribute_value");
579
+ RG_DEF_METHOD(set_attribute_status, 2);
580
+ RG_DEF_METHOD(set_attribute_string, 2);
581
+ RG_DEF_METHOD(set_attribute_byte_string, 2);
582
+ RG_DEF_METHOD(set_attribute_boolean, 2);
583
+ RG_DEF_METHOD(set_attribute_uint32, 2);
584
+ RG_DEF_METHOD(set_attribute_int32, 2);
585
+ RG_DEF_METHOD(set_attribute_uint64, 2);
586
+ RG_DEF_METHOD(set_attribute_int64, 2);
587
+ RG_DEF_METHOD(set_attribute_object, 2);
588
+ RG_DEF_METHOD(clear_status, 0);
589
+ RG_DEF_METHOD(file_type, 0);
590
+ RG_DEF_METHOD_P(hidden, 0);
591
+ RG_DEF_METHOD_P(backup, 0);
592
+ RG_DEF_METHOD_P(symlink, 0);
593
+ RG_DEF_METHOD(name, 0);
594
+ RG_DEF_METHOD(display_name, 0);
595
+ RG_DEF_METHOD(edit_name, 0);
596
+ RG_DEF_METHOD(icon, 0);
597
+ RG_DEF_METHOD(content_type, 0);
598
+ RG_DEF_METHOD(size, 0);
599
+ RG_DEF_METHOD(modification_time, 0);
600
+ RG_DEF_METHOD(symlink_target, 0);
601
+ RG_DEF_METHOD(etag, 0);
602
+ RG_DEF_METHOD(sort_order, 0);
603
+ RG_DEF_METHOD(set_attribute_mask, 1);
604
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "attribute_mask");
605
+ RG_DEF_METHOD(unset_attribute_mask, 0);
606
+ RG_DEF_METHOD(set_file_type, 1);
607
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "file_type");
608
+ RG_DEF_METHOD(set_hidden, 1);
609
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "hidden");
610
+ RG_DEF_METHOD(set_symlink, 1);
611
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink");
612
+ RG_DEF_METHOD(set_name, 1);
613
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "name");
614
+ RG_DEF_METHOD(set_display_name, 1);
615
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_name");
616
+ RG_DEF_METHOD(set_edit_name, 1);
617
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "edit_name");
618
+ RG_DEF_METHOD(set_icon, 1);
619
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "icon");
620
+ RG_DEF_METHOD(set_content_type, 1);
621
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "content_type");
622
+ RG_DEF_METHOD(set_size, 1);
623
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "size");
624
+ RG_DEF_METHOD(set_modification_time, 1);
625
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "modification_time");
626
+ RG_DEF_METHOD(set_symlink_target, 1);
627
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink_target");
628
+ RG_DEF_METHOD(set_sort_order, 1);
629
+ G_DEF_SETTER(RG_TARGET_NAMESPACE, "sort_order");
634
630
  }