glib2 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.
- data/ChangeLog +68 -0
- data/ext/glib2/rbglib.c +51 -15
- data/ext/glib2/rbglib.h +10 -2
- data/ext/glib2/rbglib_bookmarkfile.c +37 -74
- data/ext/glib2/rbglib_completion.c +8 -16
- data/ext/glib2/rbglib_convert.c +8 -18
- data/ext/glib2/rbglib_error.c +2 -8
- data/ext/glib2/rbglib_i18n.c +1 -2
- data/ext/glib2/rbglib_iochannel.c +81 -127
- data/ext/glib2/rbglib_keyfile.c +38 -86
- data/ext/glib2/rbglib_maincontext.c +29 -64
- data/ext/glib2/rbglib_mainloop.c +4 -8
- data/ext/glib2/rbglib_messages.c +7 -17
- data/ext/glib2/rbglib_pollfd.c +7 -14
- data/ext/glib2/rbglib_shell.c +3 -6
- data/ext/glib2/rbglib_source.c +14 -28
- data/ext/glib2/rbglib_spawn.c +7 -14
- data/ext/glib2/rbglib_threads.c +2 -4
- data/ext/glib2/rbglib_timer.c +7 -14
- data/ext/glib2/rbglib_unicode.c +45 -16
- data/ext/glib2/rbglib_utils.c +25 -50
- data/ext/glib2/rbglib_win32.c +10 -17
- data/ext/glib2/rbgobj_boxed.c +9 -21
- data/ext/glib2/rbgobj_closure.c +5 -11
- data/ext/glib2/rbgobj_enums.c +1 -2
- data/ext/glib2/rbgobj_object.c +23 -59
- data/ext/glib2/rbgobj_param.c +7 -15
- data/ext/glib2/rbgobj_signal.c +25 -65
- data/ext/glib2/rbgobj_type.c +36 -81
- data/ext/glib2/rbgobj_typeinstance.c +3 -6
- data/ext/glib2/rbgobj_typeinterface.c +3 -6
- data/ext/glib2/rbgobj_typemodule.c +4 -8
- data/ext/glib2/rbgobj_typeplugin.c +2 -4
- data/ext/glib2/rbgobj_valuetypes.c +7 -15
- data/ext/glib2/rbgobject.c +8 -18
- data/ext/glib2/rbgobject.h +3 -0
- data/ext/glib2/rbgprivate.h +0 -1
- data/ext/glib2/rbgutil.c +3 -6
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/gnome2-raketask.rb +1 -0
- data/lib/mkmf-gnome2.rb +12 -9
- data/test-unit/History.txt +43 -1
- data/test-unit/Manifest.txt +1 -1
- data/test-unit/html/index.html +62 -24
- data/test-unit/html/index.html.ja +54 -25
- data/test-unit/html/test-unit.css +3 -3
- data/test-unit/lib/test/unit/assertions.rb +489 -36
- data/test-unit/lib/test/unit/autorunner.rb +40 -0
- data/test-unit/lib/test/unit/collector.rb +6 -4
- data/test-unit/lib/test/unit/collector/load.rb +48 -5
- data/test-unit/lib/test/unit/collector/xml.rb +250 -0
- data/test-unit/lib/test/unit/error.rb +4 -3
- data/test-unit/lib/test/unit/fixture.rb +12 -3
- data/test-unit/lib/test/unit/runner/xml.rb +15 -0
- data/test-unit/lib/test/unit/testcase.rb +48 -16
- data/test-unit/lib/test/unit/testresult.rb +6 -2
- data/test-unit/lib/test/unit/testsuite.rb +24 -2
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +65 -28
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +11 -2
- data/test-unit/lib/test/unit/ui/xml/testrunner.rb +224 -0
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/test/run-test.rb +7 -0
- data/test-unit/test/{test_assertions.rb → test-assertions.rb} +708 -77
- data/test-unit/test/test-fixture.rb +37 -0
- data/test-unit/test/test-testcase.rb +24 -7
- data/test-unit/test/test_testsuite.rb +19 -11
- data/test/test_iochannel.rb +9 -9
- data/test/test_unicode.rb +44 -31
- metadata +8 -5
data/ChangeLog
CHANGED
@@ -1,5 +1,73 @@
|
|
1
|
+
2011-03-04 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* ext/glib2/rbglib_win32.c
|
4
|
+
(rbglib_m_win32_locale_filename_from_utf8_deprecated): add missing
|
5
|
+
argument.
|
6
|
+
|
7
|
+
2011-03-03 Vincent Carmona
|
8
|
+
|
9
|
+
* glib2/lib/mkmf-gnome2.rb: clean pkg-config files.
|
10
|
+
|
11
|
+
2011-02-25 Kouhei Sutou <kou@cozmixng.org>
|
12
|
+
|
13
|
+
* ext/glib2/rbgobject.h, ext/glib2/rbgprivate.h
|
14
|
+
(rbgobj_gobject_initialize): export.
|
15
|
+
|
16
|
+
* ext/glib2/rbgobject.c (rbgobj_initialize_object): add missing break.
|
17
|
+
|
18
|
+
2011-02-13 Kouhei Sutou <kou@cozmixng.org>
|
19
|
+
|
20
|
+
* test/test_iochannel.rb: work on both Ruby 1.8 and 1.9.
|
21
|
+
|
22
|
+
* test/test_iochannel.rb: don't set $KCODE on Ruby 1.9.
|
23
|
+
|
24
|
+
* ext/glib2/rbglib_iochannel.c: set encoding.
|
25
|
+
|
26
|
+
* ext/glib2/rbglib.c (rbg_cstr2rval_len_with_encoding): use UTF-8
|
27
|
+
as the default encoding.
|
28
|
+
|
29
|
+
* ext/glib2/rbglib.h: fix a typo.
|
30
|
+
|
31
|
+
* ext/glib2/rbglib_unicode.c: use CSTR2RVAL_ENC() and
|
32
|
+
CSTR2RVAL_LEN_ENC().
|
33
|
+
|
34
|
+
* ext/glib2/rbglib.[ch] (CSTR2RVAL_ENC, CSTR2RVAL_LEN_ENC): add.
|
35
|
+
|
36
|
+
* ext/glib2/rbglib_unicode.c, test/test_unicode.rb: set UTF-16 and
|
37
|
+
UTF-32 encoding.
|
38
|
+
|
39
|
+
* ext/glib2/rbglib.c (rbg_cstr2rval_len): use len.
|
40
|
+
|
41
|
+
* ext/glib2/rbglib_unicode.c: set UTF-8 encoding.
|
42
|
+
|
43
|
+
* test/test_unicode.rb: don't require Uconv on Ruby 1.9.
|
44
|
+
|
45
|
+
* ext/glib2/rbglib.[ch] (CSTR2RVAL_LEN): add.
|
46
|
+
|
47
|
+
* test/test_unicode.rb (TestGLibUnicode#test_utf8_validate):
|
48
|
+
support Ruby 1.9.
|
49
|
+
|
50
|
+
2011-02-12 Kouhei Sutou <kou@cozmixng.org>
|
51
|
+
|
52
|
+
* lib/mkmf-gnome2.rb (#check_cairo): re-support non-gem rcairo
|
53
|
+
detection. #3178228
|
54
|
+
Patch by OBATA Akio. Thanks!!!
|
55
|
+
|
56
|
+
2011-02-05 Masaaki Aoyagi
|
57
|
+
|
58
|
+
* ext/glib2/*.c: change to ANSI C style.
|
59
|
+
|
60
|
+
2011-02-04 Masaaki Aoyagi
|
61
|
+
|
62
|
+
* ext/glib2/rbglib_iochannel.c: fix declaration.
|
63
|
+
|
1
64
|
2011-02-02 Kouhei Sutou <kou@cozmixng.org>
|
2
65
|
|
66
|
+
* lib/gnome2-raketask.rb (GNOME2Package#define_gem_tasks):
|
67
|
+
has_rdoc = false.
|
68
|
+
|
69
|
+
* ext/glib2/rbglib.h: 0.90.7 -> 0.90.8.
|
70
|
+
|
3
71
|
* lib/mkmf-gnome2.rb: remove "-Wl,--no-undefined" linker flag.
|
4
72
|
Reported by Dobai-Pataky Bálint.
|
5
73
|
|
data/ext/glib2/rbglib.c
CHANGED
@@ -65,8 +65,7 @@ rbg_rval_inspect(VALUE object)
|
|
65
65
|
}
|
66
66
|
|
67
67
|
char *
|
68
|
-
rbg_string_value_ptr(ptr)
|
69
|
-
volatile VALUE *ptr;
|
68
|
+
rbg_string_value_ptr(volatile VALUE *ptr)
|
70
69
|
{
|
71
70
|
return rb_string_value_ptr(ptr);
|
72
71
|
}
|
@@ -78,25 +77,65 @@ rbg_rval2cstr_accept_nil(VALUE *str)
|
|
78
77
|
}
|
79
78
|
|
80
79
|
VALUE
|
81
|
-
rbg_cstr2rval(const
|
80
|
+
rbg_cstr2rval(const gchar* str)
|
82
81
|
{
|
82
|
+
if (!str)
|
83
|
+
return Qnil;
|
84
|
+
|
85
|
+
return CSTR2RVAL_LEN(str, strlen(str));
|
86
|
+
}
|
87
|
+
|
88
|
+
VALUE
|
89
|
+
rbg_cstr2rval_len(const gchar* str, gsize len)
|
90
|
+
{
|
91
|
+
if (!str)
|
92
|
+
return Qnil;
|
93
|
+
|
83
94
|
#ifdef HAVE_RUBY_ENCODING_H
|
84
|
-
return
|
95
|
+
return rb_external_str_new_with_enc(str, len, rb_utf8_encoding());
|
85
96
|
#else
|
86
|
-
return str
|
97
|
+
return rb_str_new(str, len);
|
87
98
|
#endif
|
88
99
|
}
|
89
100
|
|
90
|
-
|
91
|
-
|
101
|
+
VALUE
|
102
|
+
rbg_cstr2rval_with_encoding(const gchar* str, const gchar *encoding)
|
92
103
|
{
|
104
|
+
if (!str)
|
105
|
+
return Qnil;
|
106
|
+
|
107
|
+
return CSTR2RVAL_LEN_ENC(str, strlen(str), encoding);
|
108
|
+
}
|
109
|
+
|
110
|
+
VALUE
|
111
|
+
rbg_cstr2rval_len_with_encoding(const gchar* str, gsize len,
|
112
|
+
const gchar *encoding)
|
113
|
+
{
|
114
|
+
if (!str)
|
115
|
+
return Qnil;
|
116
|
+
|
93
117
|
#ifdef HAVE_RUBY_ENCODING_H
|
94
|
-
|
118
|
+
{
|
119
|
+
rb_encoding *rb_encoding;
|
120
|
+
|
121
|
+
if (encoding) {
|
122
|
+
rb_encoding = rb_enc_find(encoding);
|
123
|
+
} else {
|
124
|
+
rb_encoding = rb_utf8_encoding();
|
125
|
+
}
|
126
|
+
return rb_external_str_new_with_enc(str, len, rb_encoding);
|
127
|
+
}
|
95
128
|
#else
|
96
|
-
return
|
129
|
+
return rb_str_new(str, len);
|
97
130
|
#endif
|
98
131
|
}
|
99
132
|
|
133
|
+
static VALUE
|
134
|
+
rbg_cstr2rval_with_free_body(VALUE str)
|
135
|
+
{
|
136
|
+
return CSTR2RVAL((const gchar *)str);
|
137
|
+
}
|
138
|
+
|
100
139
|
static VALUE
|
101
140
|
rbg_cstr2rval_with_free_ensure(VALUE str)
|
102
141
|
{
|
@@ -248,8 +287,7 @@ Init_mem()
|
|
248
287
|
#endif
|
249
288
|
|
250
289
|
static VALUE
|
251
|
-
rbg_s_os_win32(self)
|
252
|
-
VALUE self;
|
290
|
+
rbg_s_os_win32(VALUE self)
|
253
291
|
{
|
254
292
|
#ifdef G_OS_WIN32
|
255
293
|
return Qtrue;
|
@@ -259,8 +297,7 @@ rbg_s_os_win32(self)
|
|
259
297
|
}
|
260
298
|
|
261
299
|
static VALUE
|
262
|
-
rbg_s_os_beos(self)
|
263
|
-
VALUE self;
|
300
|
+
rbg_s_os_beos(VALUE self)
|
264
301
|
{
|
265
302
|
#ifdef G_OS_BEOS
|
266
303
|
return Qtrue;
|
@@ -270,8 +307,7 @@ rbg_s_os_beos(self)
|
|
270
307
|
}
|
271
308
|
|
272
309
|
static VALUE
|
273
|
-
rbg_s_os_unix(self)
|
274
|
-
VALUE self;
|
310
|
+
rbg_s_os_unix(VALUE self)
|
275
311
|
{
|
276
312
|
#ifdef G_OS_UNIX
|
277
313
|
return Qtrue;
|
data/ext/glib2/rbglib.h
CHANGED
@@ -23,7 +23,7 @@ extern "C" {
|
|
23
23
|
|
24
24
|
#define RBGLIB_MAJOR_VERSION 0
|
25
25
|
#define RBGLIB_MINOR_VERSION 90
|
26
|
-
#define RBGLIB_MICRO_VERSION
|
26
|
+
#define RBGLIB_MICRO_VERSION 8
|
27
27
|
|
28
28
|
#ifndef RSTRING_PTR
|
29
29
|
# define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
@@ -49,6 +49,9 @@ typedef int GPid;
|
|
49
49
|
#define RVAL2CSTR_ACCEPT_NIL(v) (rbg_rval2cstr_accept_nil(&v))
|
50
50
|
#define RVAL2CSTR2(v) (RVAL2CSTR_ACCEPT_NIL(v))
|
51
51
|
#define CSTR2RVAL(s) (rbg_cstr2rval(s))
|
52
|
+
#define CSTR2RVAL_LEN(s, l) (rbg_cstr2rval_len(s, l))
|
53
|
+
#define CSTR2RVAL_ENC(s, e) (rbg_cstr2rval_with_encoding(s, e))
|
54
|
+
#define CSTR2RVAL_LEN_ENC(s, l, e) (rbg_cstr2rval_len_with_encoding(s, l, e))
|
52
55
|
#define CSTR2RVAL_FREE(s) (rbg_cstr2rval_with_free(s))
|
53
56
|
#define CSTR2RVAL2(s) (CSTR2RVAL_FREE(s))
|
54
57
|
|
@@ -82,7 +85,12 @@ extern const gchar *rbg_rval_inspect(VALUE object);
|
|
82
85
|
extern gchar* rbg_string_value_ptr(volatile VALUE* ptr); /* no longer used */
|
83
86
|
extern gchar *rbg_rval2cstr(VALUE *str);
|
84
87
|
extern gchar *rbg_rval2cstr_accept_nil(VALUE *str);
|
85
|
-
extern VALUE rbg_cstr2rval(const
|
88
|
+
extern VALUE rbg_cstr2rval(const gchar* str);
|
89
|
+
extern VALUE rbg_cstr2rval_len(const gchar* str, gsize len);
|
90
|
+
extern VALUE rbg_cstr2rval_with_encoding(const gchar* str,
|
91
|
+
const gchar *encoding);
|
92
|
+
extern VALUE rbg_cstr2rval_len_with_encoding(const gchar* str, gsize len,
|
93
|
+
const gchar *encoding);
|
86
94
|
extern VALUE rbg_cstr2rval_with_free(gchar* str);
|
87
95
|
|
88
96
|
extern VALUE rbg_filename_to_ruby_free(gchar *filename);
|
@@ -43,16 +43,14 @@ g_bookmark_file_get_type(void)
|
|
43
43
|
#define _SELF(self) ((GBookmarkFile*)(RVAL2BOXED(self, G_TYPE_BOOKMARK_FILE)))
|
44
44
|
|
45
45
|
static VALUE
|
46
|
-
bf_initialize(self)
|
47
|
-
VALUE self;
|
46
|
+
bf_initialize(VALUE self)
|
48
47
|
{
|
49
48
|
G_INITIALIZE(self, g_bookmark_file_new());
|
50
49
|
return Qnil;
|
51
50
|
}
|
52
51
|
|
53
52
|
static VALUE
|
54
|
-
bf_load_from_file(self, filename)
|
55
|
-
VALUE self, filename;
|
53
|
+
bf_load_from_file(VALUE self, VALUE filename)
|
56
54
|
{
|
57
55
|
GError* error = NULL;
|
58
56
|
gboolean ret = g_bookmark_file_load_from_file(_SELF(self),
|
@@ -78,8 +76,7 @@ bf_load_from_data(VALUE self, VALUE data)
|
|
78
76
|
}
|
79
77
|
|
80
78
|
static VALUE
|
81
|
-
bf_load_from_data_dirs(self, file)
|
82
|
-
VALUE self, file;
|
79
|
+
bf_load_from_data_dirs(VALUE self, VALUE file)
|
83
80
|
{
|
84
81
|
GError* error = NULL;
|
85
82
|
gboolean ret;
|
@@ -95,8 +92,7 @@ bf_load_from_data_dirs(self, file)
|
|
95
92
|
}
|
96
93
|
|
97
94
|
static VALUE
|
98
|
-
bf_to_data(self)
|
99
|
-
VALUE self;
|
95
|
+
bf_to_data(VALUE self)
|
100
96
|
{
|
101
97
|
GError* error = NULL;
|
102
98
|
gchar* data = g_bookmark_file_to_data(_SELF(self), NULL, &error);
|
@@ -107,8 +103,7 @@ bf_to_data(self)
|
|
107
103
|
}
|
108
104
|
|
109
105
|
static VALUE
|
110
|
-
bf_to_file(self, filename)
|
111
|
-
VALUE self, filename;
|
106
|
+
bf_to_file(VALUE self, VALUE filename)
|
112
107
|
{
|
113
108
|
GError* error = NULL;
|
114
109
|
gboolean ret = g_bookmark_file_to_file(_SELF(self),
|
@@ -119,16 +114,14 @@ bf_to_file(self, filename)
|
|
119
114
|
}
|
120
115
|
|
121
116
|
static VALUE
|
122
|
-
bf_has_item(self, uri)
|
123
|
-
VALUE self, uri;
|
117
|
+
bf_has_item(VALUE self, VALUE uri)
|
124
118
|
{
|
125
119
|
return CBOOL2RVAL(g_bookmark_file_has_item(_SELF(self),
|
126
120
|
(const gchar *)RVAL2CSTR(uri)));
|
127
121
|
}
|
128
122
|
|
129
123
|
static VALUE
|
130
|
-
bf_has_group(self, uri, group)
|
131
|
-
VALUE self, uri, group;
|
124
|
+
bf_has_group(VALUE self, VALUE uri, VALUE group)
|
132
125
|
{
|
133
126
|
GError* error = NULL;
|
134
127
|
return CBOOL2RVAL(g_bookmark_file_has_group(_SELF(self),
|
@@ -138,8 +131,7 @@ bf_has_group(self, uri, group)
|
|
138
131
|
}
|
139
132
|
|
140
133
|
static VALUE
|
141
|
-
bf_has_application(self, uri, name)
|
142
|
-
VALUE self, uri, name;
|
134
|
+
bf_has_application(VALUE self, VALUE uri, VALUE name)
|
143
135
|
{
|
144
136
|
GError* error = NULL;
|
145
137
|
return CBOOL2RVAL(g_bookmark_file_has_application(_SELF(self),
|
@@ -149,15 +141,13 @@ bf_has_application(self, uri, name)
|
|
149
141
|
}
|
150
142
|
|
151
143
|
static VALUE
|
152
|
-
bf_get_size(self)
|
153
|
-
VALUE self;
|
144
|
+
bf_get_size(VALUE self)
|
154
145
|
{
|
155
146
|
return INT2NUM(g_bookmark_file_get_size(_SELF(self)));
|
156
147
|
}
|
157
148
|
|
158
149
|
static VALUE
|
159
|
-
bf_get_uris(self)
|
160
|
-
VALUE self;
|
150
|
+
bf_get_uris(VALUE self)
|
161
151
|
{
|
162
152
|
int i;
|
163
153
|
gsize len;
|
@@ -174,8 +164,7 @@ bf_get_uris(self)
|
|
174
164
|
}
|
175
165
|
|
176
166
|
static VALUE
|
177
|
-
bf_get_title(self, uri)
|
178
|
-
VALUE self, uri;
|
167
|
+
bf_get_title(VALUE self, VALUE uri)
|
179
168
|
{
|
180
169
|
GError *error = NULL;
|
181
170
|
gchar* ret = g_bookmark_file_get_title(_SELF(self),
|
@@ -186,8 +175,7 @@ bf_get_title(self, uri)
|
|
186
175
|
}
|
187
176
|
|
188
177
|
static VALUE
|
189
|
-
bf_get_description(self, uri)
|
190
|
-
VALUE self, uri;
|
178
|
+
bf_get_description(VALUE self, VALUE uri)
|
191
179
|
{
|
192
180
|
GError *error = NULL;
|
193
181
|
gchar* ret = g_bookmark_file_get_description(_SELF(self),
|
@@ -198,8 +186,7 @@ bf_get_description(self, uri)
|
|
198
186
|
}
|
199
187
|
|
200
188
|
static VALUE
|
201
|
-
bf_get_mime_type(self, uri)
|
202
|
-
VALUE self, uri;
|
189
|
+
bf_get_mime_type(VALUE self, VALUE uri)
|
203
190
|
{
|
204
191
|
GError *error = NULL;
|
205
192
|
gchar* ret = g_bookmark_file_get_mime_type(_SELF(self),
|
@@ -210,8 +197,7 @@ bf_get_mime_type(self, uri)
|
|
210
197
|
}
|
211
198
|
|
212
199
|
static VALUE
|
213
|
-
bf_get_is_private(self, uri)
|
214
|
-
VALUE self, uri;
|
200
|
+
bf_get_is_private(VALUE self, VALUE uri)
|
215
201
|
{
|
216
202
|
GError *error = NULL;
|
217
203
|
gboolean ret = g_bookmark_file_get_is_private(_SELF(self),
|
@@ -222,8 +208,7 @@ bf_get_is_private(self, uri)
|
|
222
208
|
}
|
223
209
|
|
224
210
|
static VALUE
|
225
|
-
bf_get_icon(self, uri)
|
226
|
-
VALUE self, uri;
|
211
|
+
bf_get_icon(VALUE self, VALUE uri)
|
227
212
|
{
|
228
213
|
gchar* href;
|
229
214
|
gchar* mime_type;
|
@@ -240,8 +225,7 @@ bf_get_icon(self, uri)
|
|
240
225
|
}
|
241
226
|
|
242
227
|
static VALUE
|
243
|
-
bf_get_added(self, uri)
|
244
|
-
VALUE self, uri;
|
228
|
+
bf_get_added(VALUE self, VALUE uri)
|
245
229
|
{
|
246
230
|
GError *error = NULL;
|
247
231
|
time_t ret = g_bookmark_file_get_added(_SELF(self),
|
@@ -253,8 +237,7 @@ bf_get_added(self, uri)
|
|
253
237
|
}
|
254
238
|
|
255
239
|
static VALUE
|
256
|
-
bf_get_modified(self, uri)
|
257
|
-
VALUE self, uri;
|
240
|
+
bf_get_modified(VALUE self, VALUE uri)
|
258
241
|
{
|
259
242
|
GError *error = NULL;
|
260
243
|
time_t ret = g_bookmark_file_get_modified(_SELF(self),
|
@@ -266,8 +249,7 @@ bf_get_modified(self, uri)
|
|
266
249
|
}
|
267
250
|
|
268
251
|
static VALUE
|
269
|
-
bf_get_visited(self, uri)
|
270
|
-
VALUE self, uri;
|
252
|
+
bf_get_visited(VALUE self, VALUE uri)
|
271
253
|
{
|
272
254
|
GError *error = NULL;
|
273
255
|
time_t ret = g_bookmark_file_get_visited(_SELF(self),
|
@@ -279,8 +261,7 @@ bf_get_visited(self, uri)
|
|
279
261
|
}
|
280
262
|
|
281
263
|
static VALUE
|
282
|
-
bf_get_groups(self, uri)
|
283
|
-
VALUE self, uri;
|
264
|
+
bf_get_groups(VALUE self, VALUE uri)
|
284
265
|
{
|
285
266
|
gsize length;
|
286
267
|
VALUE ary;
|
@@ -302,8 +283,7 @@ bf_get_groups(self, uri)
|
|
302
283
|
}
|
303
284
|
|
304
285
|
static VALUE
|
305
|
-
bf_get_applications(self, uri)
|
306
|
-
VALUE self, uri;
|
286
|
+
bf_get_applications(VALUE self, VALUE uri)
|
307
287
|
{
|
308
288
|
gsize length;
|
309
289
|
VALUE ary;
|
@@ -325,8 +305,7 @@ bf_get_applications(self, uri)
|
|
325
305
|
}
|
326
306
|
|
327
307
|
static VALUE
|
328
|
-
bf_get_app_info(self, uri, name)
|
329
|
-
VALUE self, uri, name;
|
308
|
+
bf_get_app_info(VALUE self, VALUE uri, VALUE name)
|
330
309
|
{
|
331
310
|
gchar* exec;
|
332
311
|
guint count;
|
@@ -343,8 +322,7 @@ bf_get_app_info(self, uri, name)
|
|
343
322
|
}
|
344
323
|
|
345
324
|
static VALUE
|
346
|
-
bf_set_title(self, uri, title)
|
347
|
-
VALUE self, uri, title;
|
325
|
+
bf_set_title(VALUE self, VALUE uri, VALUE title)
|
348
326
|
{
|
349
327
|
g_bookmark_file_set_title(_SELF(self),
|
350
328
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -353,8 +331,7 @@ bf_set_title(self, uri, title)
|
|
353
331
|
}
|
354
332
|
|
355
333
|
static VALUE
|
356
|
-
bf_set_description(self, uri, description)
|
357
|
-
VALUE self, uri, description;
|
334
|
+
bf_set_description(VALUE self, VALUE uri, VALUE description)
|
358
335
|
{
|
359
336
|
g_bookmark_file_set_description(_SELF(self),
|
360
337
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -363,8 +340,7 @@ bf_set_description(self, uri, description)
|
|
363
340
|
}
|
364
341
|
|
365
342
|
static VALUE
|
366
|
-
bf_set_mime_type(self, uri, mime_type)
|
367
|
-
VALUE self, uri, mime_type;
|
343
|
+
bf_set_mime_type(VALUE self, VALUE uri, VALUE mime_type)
|
368
344
|
{
|
369
345
|
g_bookmark_file_set_mime_type(_SELF(self),
|
370
346
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -373,8 +349,7 @@ bf_set_mime_type(self, uri, mime_type)
|
|
373
349
|
}
|
374
350
|
|
375
351
|
static VALUE
|
376
|
-
bf_set_is_private(self, uri, is_private)
|
377
|
-
VALUE self, uri, is_private;
|
352
|
+
bf_set_is_private(VALUE self, VALUE uri, VALUE is_private)
|
378
353
|
{
|
379
354
|
g_bookmark_file_set_is_private(_SELF(self),
|
380
355
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -383,8 +358,7 @@ bf_set_is_private(self, uri, is_private)
|
|
383
358
|
}
|
384
359
|
|
385
360
|
static VALUE
|
386
|
-
bf_set_icon(self, uri, href, mime_type)
|
387
|
-
VALUE self, uri, href, mime_type;
|
361
|
+
bf_set_icon(VALUE self, VALUE uri, VALUE href, VALUE mime_type)
|
388
362
|
{
|
389
363
|
g_bookmark_file_set_icon(_SELF(self),
|
390
364
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -394,8 +368,7 @@ bf_set_icon(self, uri, href, mime_type)
|
|
394
368
|
}
|
395
369
|
|
396
370
|
static VALUE
|
397
|
-
bf_set_added(self, uri, time)
|
398
|
-
VALUE self, uri, time;
|
371
|
+
bf_set_added(VALUE self, VALUE uri, VALUE time)
|
399
372
|
{
|
400
373
|
g_bookmark_file_set_added(_SELF(self),
|
401
374
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -404,8 +377,7 @@ bf_set_added(self, uri, time)
|
|
404
377
|
}
|
405
378
|
|
406
379
|
static VALUE
|
407
|
-
bf_set_groups(self, uri, groups)
|
408
|
-
VALUE self, uri, groups;
|
380
|
+
bf_set_groups(VALUE self, VALUE uri, VALUE groups)
|
409
381
|
{
|
410
382
|
gint len = RARRAY_LEN(groups);
|
411
383
|
gchar** glist = ALLOCA_N(gchar*, len);
|
@@ -422,8 +394,7 @@ bf_set_groups(self, uri, groups)
|
|
422
394
|
}
|
423
395
|
|
424
396
|
static VALUE
|
425
|
-
bf_set_modified(self, uri, time)
|
426
|
-
VALUE self, uri, time;
|
397
|
+
bf_set_modified(VALUE self, VALUE uri, VALUE time)
|
427
398
|
{
|
428
399
|
g_bookmark_file_set_modified(_SELF(self),
|
429
400
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -432,8 +403,7 @@ bf_set_modified(self, uri, time)
|
|
432
403
|
}
|
433
404
|
|
434
405
|
static VALUE
|
435
|
-
bf_set_visited(self, uri, time)
|
436
|
-
VALUE self, uri, time;
|
406
|
+
bf_set_visited(VALUE self, VALUE uri, VALUE time)
|
437
407
|
{
|
438
408
|
g_bookmark_file_set_visited(_SELF(self),
|
439
409
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -442,8 +412,7 @@ bf_set_visited(self, uri, time)
|
|
442
412
|
}
|
443
413
|
|
444
414
|
static VALUE
|
445
|
-
bf_set_app_info(self, uri, name, exec, count, stamp)
|
446
|
-
VALUE self,uri, name, exec, count, stamp;
|
415
|
+
bf_set_app_info(VALUE self, VALUE uri, VALUE name, VALUE exec, VALUE count, VALUE stamp)
|
447
416
|
{
|
448
417
|
GError* error = NULL;
|
449
418
|
gboolean ret = g_bookmark_file_set_app_info(_SELF(self),
|
@@ -460,8 +429,7 @@ bf_set_app_info(self, uri, name, exec, count, stamp)
|
|
460
429
|
}
|
461
430
|
|
462
431
|
static VALUE
|
463
|
-
bf_add_group(self, uri, group)
|
464
|
-
VALUE self, uri, group;
|
432
|
+
bf_add_group(VALUE self, VALUE uri, VALUE group)
|
465
433
|
{
|
466
434
|
g_bookmark_file_add_group(_SELF(self),
|
467
435
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -470,8 +438,7 @@ bf_add_group(self, uri, group)
|
|
470
438
|
}
|
471
439
|
|
472
440
|
static VALUE
|
473
|
-
bf_add_application(self, uri, name, exec)
|
474
|
-
VALUE self, uri, name, exec;
|
441
|
+
bf_add_application(VALUE self, VALUE uri, VALUE name, VALUE exec)
|
475
442
|
{
|
476
443
|
g_bookmark_file_add_application(_SELF(self),
|
477
444
|
(const gchar *)RVAL2CSTR(uri),
|
@@ -481,8 +448,7 @@ bf_add_application(self, uri, name, exec)
|
|
481
448
|
}
|
482
449
|
|
483
450
|
static VALUE
|
484
|
-
bf_remove_group(self, uri, group)
|
485
|
-
VALUE self, uri, group;
|
451
|
+
bf_remove_group(VALUE self, VALUE uri, VALUE group)
|
486
452
|
{
|
487
453
|
GError* error = NULL;
|
488
454
|
gboolean ret = g_bookmark_file_remove_group(_SELF(self),
|
@@ -495,8 +461,7 @@ bf_remove_group(self, uri, group)
|
|
495
461
|
}
|
496
462
|
|
497
463
|
static VALUE
|
498
|
-
bf_remove_application(self, uri, name)
|
499
|
-
VALUE self, uri, name;
|
464
|
+
bf_remove_application(VALUE self, VALUE uri, VALUE name)
|
500
465
|
{
|
501
466
|
GError *error = NULL;
|
502
467
|
gboolean ret = g_bookmark_file_remove_application(_SELF(self),
|
@@ -510,8 +475,7 @@ bf_remove_application(self, uri, name)
|
|
510
475
|
|
511
476
|
|
512
477
|
static VALUE
|
513
|
-
bf_remove_item(self, uri)
|
514
|
-
VALUE self, uri;
|
478
|
+
bf_remove_item(VALUE self, VALUE uri)
|
515
479
|
{
|
516
480
|
GError *error = NULL;
|
517
481
|
gboolean ret = g_bookmark_file_remove_item(_SELF(self),
|
@@ -523,8 +487,7 @@ bf_remove_item(self, uri)
|
|
523
487
|
}
|
524
488
|
|
525
489
|
static VALUE
|
526
|
-
bf_move_item(self, old_uri, new_uri)
|
527
|
-
VALUE self, old_uri, new_uri;
|
490
|
+
bf_move_item(VALUE self, VALUE old_uri, VALUE new_uri)
|
528
491
|
{
|
529
492
|
GError *error = NULL;
|
530
493
|
gboolean ret = g_bookmark_file_move_item(_SELF(self),
|