gio2 1.1.2-x86-mingw32 → 1.1.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/ext/gio2/rbgio.c CHANGED
@@ -23,7 +23,7 @@
23
23
  #define RG_TARGET_NAMESPACE mGio
24
24
 
25
25
  static VALUE
26
- rg_m_has_unix_p(G_GNUC_UNUSED VALUE self)
26
+ rg_s_has_unix_p(G_GNUC_UNUSED VALUE self)
27
27
  {
28
28
  #ifdef HAVE_GIO_UNIX
29
29
  return Qtrue;
@@ -42,7 +42,7 @@ Init_gio(void)
42
42
  G_DEF_CLASS(G_TYPE_ASK_PASSWORD_FLAGS, "AskPasswordFlags", RG_TARGET_NAMESPACE);
43
43
  G_DEF_CLASS(G_TYPE_PASSWORD_SAVE, "PasswordSave", RG_TARGET_NAMESPACE);
44
44
 
45
- RG_DEF_MODFUNC_P(has_unix, 0);
45
+ RG_DEF_SMETHOD_P(has_unix, 0);
46
46
 
47
47
  Init_gappinfo(RG_TARGET_NAMESPACE);
48
48
  Init_gapplaunchcontext(RG_TARGET_NAMESPACE);
@@ -24,55 +24,55 @@
24
24
  #define RG_TARGET_NAMESPACE mContentType
25
25
 
26
26
  static VALUE
27
- rg_m_equals_p(G_GNUC_UNUSED VALUE self, VALUE arg1, VALUE arg2)
27
+ rg_s_equals_p(G_GNUC_UNUSED VALUE self, VALUE arg1, VALUE arg2)
28
28
  {
29
29
  return CBOOL2RVAL(g_content_type_equals(RVAL2CSTR(arg1), RVAL2CSTR(arg2)));
30
30
  }
31
31
 
32
32
  static VALUE
33
- rg_m_is_a_p(G_GNUC_UNUSED VALUE self, VALUE arg1, VALUE arg2)
33
+ rg_s_is_a_p(G_GNUC_UNUSED VALUE self, VALUE arg1, VALUE arg2)
34
34
  {
35
35
  return CBOOL2RVAL(g_content_type_is_a(RVAL2CSTR(arg1), RVAL2CSTR(arg2)));
36
36
  }
37
37
 
38
38
  static VALUE
39
- rg_m_unknown_p(G_GNUC_UNUSED VALUE type)
39
+ rg_s_unknown_p(G_GNUC_UNUSED VALUE type)
40
40
  {
41
41
  return CBOOL2RVAL(g_content_type_is_unknown(RVAL2CSTR(type)));
42
42
  }
43
43
 
44
44
  static VALUE
45
- rg_m_get_description(G_GNUC_UNUSED VALUE type)
45
+ rg_s_get_description(G_GNUC_UNUSED VALUE type)
46
46
  {
47
47
  return CSTR2RVAL_FREE(g_content_type_get_description(RVAL2CSTR(type)));
48
48
  }
49
49
 
50
50
  static VALUE
51
- rg_m_get_mime_type(G_GNUC_UNUSED VALUE type)
51
+ rg_s_get_mime_type(G_GNUC_UNUSED VALUE type)
52
52
  {
53
53
  return CSTR2RVAL_FREE(g_content_type_get_mime_type(RVAL2CSTR(type)));
54
54
  }
55
55
 
56
56
  static VALUE
57
- rg_m_get_icon(G_GNUC_UNUSED VALUE type)
57
+ rg_s_get_icon(G_GNUC_UNUSED VALUE type)
58
58
  {
59
59
  return GOBJ2RVAL_UNREF(g_content_type_get_icon(RVAL2CSTR(type)));
60
60
  }
61
61
 
62
62
  static VALUE
63
- rg_m_can_be_executable_p(G_GNUC_UNUSED VALUE type)
63
+ rg_s_can_be_executable_p(G_GNUC_UNUSED VALUE type)
64
64
  {
65
65
  return CBOOL2RVAL(g_content_type_can_be_executable(RVAL2CSTR(type)));
66
66
  }
67
67
 
68
68
  static VALUE
69
- rg_m_from_mime_type(G_GNUC_UNUSED VALUE type)
69
+ rg_s_from_mime_type(G_GNUC_UNUSED VALUE type)
70
70
  {
71
71
  return CSTR2RVAL(g_content_type_from_mime_type(RVAL2CSTR(type)));
72
72
  }
73
73
 
74
74
  static VALUE
75
- rg_m_guess(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
75
+ rg_s_guess(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
76
76
  {
77
77
  VALUE rbfilename,
78
78
  rbdata;
@@ -99,13 +99,13 @@ rg_m_guess(int argc, VALUE *argv, G_GNUC_UNUSED VALUE self)
99
99
  }
100
100
 
101
101
  static VALUE
102
- rg_m_guess_for_tree(G_GNUC_UNUSED VALUE self, VALUE root)
102
+ rg_s_guess_for_tree(G_GNUC_UNUSED VALUE self, VALUE root)
103
103
  {
104
104
  return STRV2RVAL_FREE(g_content_type_guess_for_tree(RVAL2GFILE(root)));
105
105
  }
106
106
 
107
107
  static VALUE
108
- rg_m_registered(G_GNUC_UNUSED VALUE self)
108
+ rg_s_registered(G_GNUC_UNUSED VALUE self)
109
109
  {
110
110
  return GLIST2ARY_STR_FREE(g_content_types_get_registered());
111
111
  }
@@ -116,16 +116,16 @@ Init_gcontenttype(VALUE mGio)
116
116
  VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mGio, "ContentType");
117
117
 
118
118
  /* TODO: Should wrap this in a class. */
119
- RG_DEF_MODFUNC_P(equals, 2);
119
+ RG_DEF_SMETHOD_P(equals, 2);
120
120
  /* TODO: This name isn't great. */
121
- RG_DEF_MODFUNC_P(is_a, 2);
122
- RG_DEF_MODFUNC_P(unknown, 1);
123
- RG_DEF_MODFUNC(get_description, 1);
124
- RG_DEF_MODFUNC(get_mime_type, 1);
125
- RG_DEF_MODFUNC(get_icon, 1);
126
- RG_DEF_MODFUNC_P(can_be_executable, 1);
127
- RG_DEF_MODFUNC(from_mime_type, 1);
128
- RG_DEF_MODFUNC(guess, -1);
129
- RG_DEF_MODFUNC(guess_for_tree, 1);
130
- RG_DEF_MODFUNC(registered, 0);
121
+ RG_DEF_SMETHOD_P(is_a, 2);
122
+ RG_DEF_SMETHOD_P(unknown, 1);
123
+ RG_DEF_SMETHOD(get_description, 1);
124
+ RG_DEF_SMETHOD(get_mime_type, 1);
125
+ RG_DEF_SMETHOD(get_icon, 1);
126
+ RG_DEF_SMETHOD_P(can_be_executable, 1);
127
+ RG_DEF_SMETHOD(from_mime_type, 1);
128
+ RG_DEF_SMETHOD(guess, -1);
129
+ RG_DEF_SMETHOD(guess_for_tree, 1);
130
+ RG_DEF_SMETHOD(registered, 0);
131
131
  }
data/ext/gio2/rbgiofile.c CHANGED
@@ -1983,7 +1983,6 @@ Init_gfile(VALUE mGio)
1983
1983
  RG_DEF_METHOD(enumerate_children_async, -1);
1984
1984
  RG_DEF_METHOD(enumerate_children_finish, 1);
1985
1985
  RG_DEF_METHOD(set_display_name, -1);
1986
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_name");
1987
1986
  RG_DEF_METHOD(set_display_name_async, -1);
1988
1987
  RG_DEF_METHOD(set_display_name_finish, 1);
1989
1988
  RG_DEF_METHOD(delete, -1);
@@ -1999,7 +1998,6 @@ Init_gfile(VALUE mGio)
1999
1998
  RG_DEF_METHOD(query_writable_namespaces, -1);
2000
1999
  RG_DEF_METHOD(set_attribute, -1);
2001
2000
  RG_DEF_METHOD(set_attributes_from_info, -1);
2002
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "attributes_from_info");
2003
2001
  RG_DEF_METHOD(set_attributes_async, -1);
2004
2002
  RG_DEF_METHOD(set_attributes_finish, 1);
2005
2003
  RG_DEF_METHOD(set_attribute_string, -1);
@@ -162,6 +162,5 @@ Init_gfileenumerator(VALUE mGio)
162
162
  RG_DEF_METHOD_P(closed, 0);
163
163
  RG_DEF_METHOD_P(has_pending, 0);
164
164
  RG_DEF_METHOD(set_pending, 1);
165
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "pending");
166
165
  RG_DEF_METHOD(container, 0);
167
166
  }
@@ -601,30 +601,17 @@ Init_gfileinfo(VALUE mGio)
601
601
  RG_DEF_METHOD(etag, 0);
602
602
  RG_DEF_METHOD(sort_order, 0);
603
603
  RG_DEF_METHOD(set_attribute_mask, 1);
604
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "attribute_mask");
605
604
  RG_DEF_METHOD(unset_attribute_mask, 0);
606
605
  RG_DEF_METHOD(set_file_type, 1);
607
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "file_type");
608
606
  RG_DEF_METHOD(set_hidden, 1);
609
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "hidden");
610
607
  RG_DEF_METHOD(set_symlink, 1);
611
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink");
612
608
  RG_DEF_METHOD(set_name, 1);
613
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "name");
614
609
  RG_DEF_METHOD(set_display_name, 1);
615
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "display_name");
616
610
  RG_DEF_METHOD(set_edit_name, 1);
617
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "edit_name");
618
611
  RG_DEF_METHOD(set_icon, 1);
619
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "icon");
620
612
  RG_DEF_METHOD(set_content_type, 1);
621
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "content_type");
622
613
  RG_DEF_METHOD(set_size, 1);
623
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "size");
624
614
  RG_DEF_METHOD(set_modification_time, 1);
625
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "modification_time");
626
615
  RG_DEF_METHOD(set_symlink_target, 1);
627
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "symlink_target");
628
616
  RG_DEF_METHOD(set_sort_order, 1);
629
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "sort_order");
630
617
  }
@@ -70,5 +70,4 @@ Init_gfilenamecompleter(VALUE mGio)
70
70
  RG_DEF_METHOD(get_completion_suffix, 1);
71
71
  RG_DEF_METHOD(get_completions, 1);
72
72
  RG_DEF_METHOD(set_dirs_only, 1);
73
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "dirs_only");
74
73
  }
@@ -166,7 +166,7 @@ rbgio_ginitable_new(GType type, VALUE parameters, VALUE cancellable)
166
166
  /* NOTE: We don't implement g_initable_new_valist. */
167
167
 
168
168
  static VALUE
169
- rg_m_new(int argc, VALUE *argv, VALUE self)
169
+ rg_s_new(int argc, VALUE *argv, VALUE self)
170
170
  {
171
171
  const RGObjClassInfo* info;
172
172
  VALUE cancellable, parameters;
@@ -193,7 +193,7 @@ Init_ginitable(VALUE mGio)
193
193
  {
194
194
  VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(G_TYPE_INITABLE, "Initable", mGio);
195
195
 
196
- RG_DEF_MODFUNC(new, -1);
196
+ RG_DEF_SMETHOD(new, -1);
197
197
 
198
198
  RG_DEF_METHOD(init, -1);
199
199
  }
@@ -24,13 +24,13 @@
24
24
  #define RG_TARGET_NAMESPACE mIOModules
25
25
 
26
26
  static VALUE
27
- rg_m_load_all_in_directory(G_GNUC_UNUSED VALUE self, VALUE dirname)
27
+ rg_s_load_all_in_directory(G_GNUC_UNUSED VALUE self, VALUE dirname)
28
28
  {
29
29
  return GLIST2ARY_FREE(g_io_modules_load_all_in_directory(RVAL2CSTR(dirname)));
30
30
  }
31
31
 
32
32
  static VALUE
33
- rg_m_scan_all_in_directory(VALUE self, VALUE dirname)
33
+ rg_s_scan_all_in_directory(VALUE self, VALUE dirname)
34
34
  {
35
35
  g_io_modules_scan_all_in_directory(RVAL2CSTR(dirname));
36
36
 
@@ -42,6 +42,6 @@ Init_giomodules(VALUE mGio)
42
42
  {
43
43
  VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mGio, "IOModules");
44
44
 
45
- RG_DEF_MODFUNC(load_all_in_directory, 1);
46
- RG_DEF_MODFUNC(scan_all_in_directory, 1);
45
+ RG_DEF_SMETHOD(load_all_in_directory, 1);
46
+ RG_DEF_SMETHOD(scan_all_in_directory, 1);
47
47
  }
@@ -103,6 +103,5 @@ Init_giostream(VALUE mGio)
103
103
  RG_DEF_METHOD(close_finish, 1);
104
104
  RG_DEF_METHOD_P(has_pending, 0);
105
105
  RG_DEF_METHOD(set_pending, 0);
106
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "pending");
107
106
  RG_DEF_METHOD(clear_pending, 0);
108
107
  }
@@ -327,6 +327,5 @@ Init_goutputstream(VALUE mGio)
327
327
  RG_DEF_METHOD_P(closed, 0);
328
328
  RG_DEF_METHOD_P(has_pending, 0);
329
329
  RG_DEF_METHOD(set_pending, 0);
330
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "pending");
331
330
  RG_DEF_METHOD(clear_pending, 0);
332
331
  }
@@ -141,15 +141,12 @@ Init_gsimpleasyncresult(VALUE mGio)
141
141
 
142
142
  RG_DEF_METHOD(initialize, 1);
143
143
  RG_DEF_METHOD(set_op_res_gssize, 1);
144
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "op_res_gssize");
145
144
  RG_DEF_METHOD(op_res_gssize, 0);
146
145
  RG_DEF_METHOD(set_op_res_gboolean, 1);
147
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "op_res_gboolean");
148
146
  RG_DEF_METHOD(op_res_gboolean, 0);
149
147
  RG_DEF_METHOD(source_tag, 0);
150
148
  RG_DEF_METHOD_P(valid, 2);
151
149
  RG_DEF_METHOD(set_handle_cancellation, 1);
152
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "handle_cancellation");
153
150
  RG_DEF_METHOD(complete, 0);
154
151
  RG_DEF_METHOD(complete_in_idle, 0);
155
152
  }
@@ -24,7 +24,7 @@
24
24
  #define RG_TARGET_NAMESPACE mSocketConnectionFactory
25
25
 
26
26
  static VALUE
27
- rg_m_create_connection(G_GNUC_UNUSED VALUE self, VALUE socket)
27
+ rg_s_create_connection(G_GNUC_UNUSED VALUE self, VALUE socket)
28
28
  {
29
29
  return GOBJ2RVAL_UNREF(g_socket_connection_factory_create_connection(RVAL2GSOCKET(socket)));
30
30
  }
@@ -35,5 +35,5 @@ Init_gsocketconnectionfactory(VALUE mGio)
35
35
  /* TODO: Perhaps just move this to SocketConnection? */
36
36
  VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mGio, "SocketConnectionFactory");
37
37
 
38
- RG_DEF_MODFUNC(create_connection, 1);
38
+ RG_DEF_SMETHOD(create_connection, 1);
39
39
  }
@@ -243,5 +243,4 @@ Init_gsocketlistener(VALUE mGio)
243
243
  RG_DEF_METHOD(accept_socket_finish, 1);
244
244
  RG_DEF_METHOD(close, 0);
245
245
  RG_DEF_METHOD(set_backlog, 1);
246
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "backlog");
247
246
  }
@@ -61,6 +61,5 @@ Init_gunixmountmonitor(G_GNUC_UNUSED VALUE mGio)
61
61
 
62
62
  RG_DEF_METHOD(initialize, -1);
63
63
  RG_DEF_METHOD(set_rate_limit, 1);
64
- G_DEF_SETTER(RG_TARGET_NAMESPACE, "rate_limit");
65
64
  #endif
66
65
  }
@@ -27,7 +27,7 @@
27
27
  #define RG_TARGET_NAMESPACE mUnixMountPoints
28
28
 
29
29
  static VALUE
30
- rg_m_get(G_GNUC_UNUSED VALUE self)
30
+ rg_s_get(G_GNUC_UNUSED VALUE self)
31
31
  {
32
32
  guint64 time_read;
33
33
  GList *mount_points;
@@ -39,7 +39,7 @@ rg_m_get(G_GNUC_UNUSED VALUE self)
39
39
  }
40
40
 
41
41
  static VALUE
42
- rg_m_changed_since_p(G_GNUC_UNUSED VALUE self, VALUE time_read)
42
+ rg_s_changed_since_p(G_GNUC_UNUSED VALUE self, VALUE time_read)
43
43
  {
44
44
  return CBOOL2RVAL(g_unix_mount_points_changed_since(RVAL2GUINT64(time_read)));
45
45
  }
@@ -52,7 +52,7 @@ Init_gunixmountpoints(G_GNUC_UNUSED VALUE mGio)
52
52
  #ifdef HAVE_GIO_UNIX
53
53
  VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mGio, "UnixMountPoints");
54
54
 
55
- RG_DEF_MODFUNC(get, 0);
56
- RG_DEF_MODFUNC_P(changed_since, 1);
55
+ RG_DEF_SMETHOD(get, 0);
56
+ RG_DEF_SMETHOD_P(changed_since, 1);
57
57
  #endif
58
58
  }
@@ -27,7 +27,7 @@
27
27
  #define RG_TARGET_NAMESPACE mUnixMounts
28
28
 
29
29
  static VALUE
30
- rg_m_get(G_GNUC_UNUSED VALUE self)
30
+ rg_s_get(G_GNUC_UNUSED VALUE self)
31
31
  {
32
32
  guint64 time_read;
33
33
  GList *mounts;
@@ -39,7 +39,7 @@ rg_m_get(G_GNUC_UNUSED VALUE self)
39
39
  }
40
40
 
41
41
  static VALUE
42
- rg_m_changed_since_p(G_GNUC_UNUSED VALUE self, VALUE time_read)
42
+ rg_s_changed_since_p(G_GNUC_UNUSED VALUE self, VALUE time_read)
43
43
  {
44
44
  return CBOOL2RVAL(g_unix_mounts_changed_since(RVAL2GUINT64(time_read)));
45
45
  }
@@ -52,7 +52,7 @@ Init_gunixmounts(G_GNUC_UNUSED VALUE mGio)
52
52
  #ifdef HAVE_GIO_UNIX
53
53
  VALUE RG_TARGET_NAMESPACE = rb_define_module_under(mGio, "UnixMounts");
54
54
 
55
- RG_DEF_MODFUNC(get, 0);
56
- RG_DEF_MODFUNC_P(changed_since, 1);
55
+ RG_DEF_SMETHOD(get, 0);
56
+ RG_DEF_SMETHOD_P(changed_since, 1);
57
57
  #endif
58
58
  }
data/lib/1.8/gio2.so CHANGED
Binary file
data/lib/1.9/gio2.so CHANGED
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gio2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - The Ruby-GNOME2 Project Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-15 00:00:00 Z
18
+ date: 2012-04-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: glib2
@@ -25,12 +25,12 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: 23
28
+ hash: 21
29
29
  segments:
30
30
  - 1
31
31
  - 1
32
- - 2
33
- version: 1.1.2
32
+ - 3
33
+ version: 1.1.3
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Ruby/GIO2 is a Ruby binding of gio-2.x.
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  requirements: []
184
184
 
185
185
  rubyforge_project:
186
- rubygems_version: 1.8.12
186
+ rubygems_version: 1.8.15
187
187
  signing_key:
188
188
  specification_version: 3
189
189
  summary: Ruby/GIO2 is a Ruby binding of gio-2.x.