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.
- data/ext/gio2/extconf.rb +4 -42
- data/ext/gio2/gio2.c +18 -117
- data/ext/gio2/gio2.h +20 -339
- data/ext/gio2/rbgio.c +132 -0
- data/ext/gio2/rbgio2.h +156 -0
- data/ext/gio2/rbgio2conversions.h +154 -0
- data/ext/gio2/rbgio2private.h +147 -0
- data/ext/gio2/{gappinfo.c → rbgioappinfo.c} +81 -82
- data/ext/gio2/rbgioapplaunchcontext.c +81 -0
- data/ext/gio2/{gasyncinitable.c → rbgioasyncinitable.c} +33 -30
- data/ext/gio2/rbgioasyncresult.c +41 -0
- data/ext/gio2/{gbufferedinputstream.c → rbgiobufferedinputstream.c} +37 -35
- data/ext/gio2/rbgiobufferedoutputstream.c +50 -0
- data/ext/gio2/rbgiocancellable.c +180 -0
- data/ext/gio2/rbgiocharsetconverter.c +57 -0
- data/ext/gio2/rbgiocontenttype.c +131 -0
- data/ext/gio2/{gconverter.c → rbgioconverter.c} +24 -28
- data/ext/gio2/rbgioconverterinputstream.c +43 -0
- data/ext/gio2/rbgioconverteroutputstream.c +43 -0
- data/ext/gio2/{gdatainputstream.c → rbgiodatainputstream.c} +49 -58
- data/ext/gio2/{gdataoutputstream.c → rbgiodataoutputstream.c} +39 -37
- data/ext/gio2/rbgiodesktopappinfo.c +87 -0
- data/ext/gio2/{gdrive.c → rbgiodrive.c} +75 -76
- data/ext/gio2/rbgioemblem.c +52 -0
- data/ext/gio2/rbgioemblemedicon.c +65 -0
- data/ext/gio2/{gfile.c → rbgiofile.c} +256 -266
- data/ext/gio2/rbgiofileattribute.c +114 -0
- data/ext/gio2/rbgiofileattributeinfo.c +86 -0
- data/ext/gio2/rbgiofileattributeinfolist.c +106 -0
- data/ext/gio2/rbgiofileattributematcher.c +93 -0
- data/ext/gio2/rbgiofiledescriptorbased.c +45 -0
- data/ext/gio2/{gfileenumerator.c → rbgiofileenumerator.c} +42 -40
- data/ext/gio2/rbgiofileicon.c +41 -0
- data/ext/gio2/{gfileinfo.c → rbgiofileinfo.c} +159 -163
- data/ext/gio2/{gfileinputstream.c → rbgiofileinputstream.c} +26 -25
- data/ext/gio2/{gfileiostream.c → rbgiofileiostream.c} +28 -26
- data/ext/gio2/rbgiofilemonitor.c +46 -0
- data/ext/gio2/rbgiofilenamecompleter.c +74 -0
- data/ext/gio2/{gfileoutputstream.c → rbgiofileoutputstream.c} +28 -26
- data/ext/gio2/rbgiofilterinputstream.c +28 -0
- data/ext/gio2/rbgiofilteroutputstream.c +28 -0
- data/ext/gio2/rbgioicon.c +69 -0
- data/ext/gio2/rbgioinetaddress.c +118 -0
- data/ext/gio2/rbgioinetsocketaddress.c +41 -0
- data/ext/gio2/{ginitable.c → rbgioinitable.c} +29 -25
- data/ext/gio2/{ginputstream.c → rbgioinputstream.c} +50 -48
- data/ext/gio2/rbgioio.c +73 -0
- data/ext/gio2/rbgioiomodule.c +45 -0
- data/ext/gio2/rbgioiomodules.c +47 -0
- data/ext/gio2/rbgioioscheduler.c +102 -0
- data/ext/gio2/rbgioioschedulerjob.c +121 -0
- data/ext/gio2/rbgioiostream.c +108 -0
- data/ext/gio2/{gloadableicon.c → rbgioloadableicon.c} +26 -24
- data/ext/gio2/rbgiomemoryinputstream.c +67 -0
- data/ext/gio2/rbgiomemoryoutputstream.c +44 -0
- data/ext/gio2/{gmount.c → rbgiomount.c} +70 -68
- data/ext/gio2/rbgiomountoperation.c +53 -0
- data/ext/gio2/rbgionetworkaddress.c +59 -0
- data/ext/gio2/rbgionetworkservice.c +45 -0
- data/ext/gio2/{goutputstream.c → rbgiooutputstream.c} +61 -62
- data/ext/gio2/{gresolver.c → rbgioresolver.c} +50 -48
- data/ext/gio2/rbgioseekable.c +91 -0
- data/ext/gio2/rbgiosimpleasyncresult.c +155 -0
- data/ext/gio2/{gsocket.c → rbgiosocket.c} +74 -76
- data/ext/gio2/rbgiosocketaddress.c +34 -0
- data/ext/gio2/rbgiosocketaddressenumerator.c +83 -0
- data/ext/gio2/{gsocketclient.c → rbgiosocketclient.c} +41 -39
- data/ext/gio2/rbgiosocketconnectable.c +41 -0
- data/ext/gio2/rbgiosocketconnection.c +66 -0
- data/ext/gio2/rbgiosocketconnectionfactory.c +39 -0
- data/ext/gio2/rbgiosocketcontrolmessage.c +82 -0
- data/ext/gio2/{gsocketlistener.c → rbgiosocketlistener.c} +49 -47
- data/ext/gio2/rbgiosocketservice.c +66 -0
- data/ext/gio2/rbgiosrvtarget.c +76 -0
- data/ext/gio2/rbgiotcpconnection.c +28 -0
- data/ext/gio2/rbgiothemedicon.c +83 -0
- data/ext/gio2/rbgiothreadedsocketservice.c +43 -0
- data/ext/gio2/rbgiounixconnection.c +71 -0
- data/ext/gio2/rbgiounixfdlist.c +115 -0
- data/ext/gio2/rbgiounixfdmessage.c +74 -0
- data/ext/gio2/rbgiounixinputstream.c +51 -0
- data/ext/gio2/rbgiounixmount.c +164 -0
- data/ext/gio2/rbgiounixmountmonitor.c +66 -0
- data/ext/gio2/rbgiounixmountpoint.c +136 -0
- data/ext/gio2/rbgiounixmountpoints.c +58 -0
- data/ext/gio2/rbgiounixmounts.c +58 -0
- data/ext/gio2/rbgiounixoutputstream.c +51 -0
- data/ext/gio2/rbgiounixsocketaddress.c +69 -0
- data/ext/gio2/rbgiovfs.c +84 -0
- data/ext/gio2/rbgiovolume.c +193 -0
- data/ext/gio2/rbgiovolumemonitor.c +77 -0
- data/ext/gio2/rbgiozlibcompressor.c +52 -0
- data/ext/gio2/rbgiozlibdecompressor.c +45 -0
- data/ext/gio2/util.c +57 -60
- data/lib/1.8/gio2.so +0 -0
- data/lib/1.9/gio2.so +0 -0
- data/lib/gio2/deprecated.rb +102 -0
- data/lib/gio2.rb +14 -12
- metadata +100 -88
- data/ChangeLog +0 -129
- data/ext/gio2/gapplaunchcontext.c +0 -79
- data/ext/gio2/gasyncresult.c +0 -39
- data/ext/gio2/gbufferedoutputstream.c +0 -48
- data/ext/gio2/gcancellable.c +0 -177
- data/ext/gio2/gcharsetconverter.c +0 -55
- data/ext/gio2/gcontenttype.c +0 -128
- data/ext/gio2/gconverterinputstream.c +0 -41
- data/ext/gio2/gconverteroutputstream.c +0 -41
- data/ext/gio2/gdesktopappinfo.c +0 -88
- data/ext/gio2/gemblem.c +0 -52
- data/ext/gio2/gemblemedicon.c +0 -63
- data/ext/gio2/gfileattribute.c +0 -111
- data/ext/gio2/gfileattributeinfo.c +0 -89
- data/ext/gio2/gfileattributeinfolist.c +0 -109
- data/ext/gio2/gfileattributematcher.c +0 -90
- data/ext/gio2/gfiledescriptorbased.c +0 -42
- data/ext/gio2/gfileicon.c +0 -39
- data/ext/gio2/gfilemonitor.c +0 -44
- data/ext/gio2/gfilenamecompleter.c +0 -72
- data/ext/gio2/gfilterinputstream.c +0 -27
- data/ext/gio2/gfilteroutputstream.c +0 -27
- data/ext/gio2/gicon.c +0 -67
- data/ext/gio2/ginetaddress.c +0 -116
- data/ext/gio2/ginetsocketaddress.c +0 -38
- data/ext/gio2/gioerror.c +0 -70
- data/ext/gio2/giomodule.c +0 -63
- data/ext/gio2/gioscheduler.c +0 -193
- data/ext/gio2/giostream.c +0 -106
- data/ext/gio2/gmemoryinputstream.c +0 -65
- data/ext/gio2/gmemoryoutputstream.c +0 -41
- data/ext/gio2/gmountoperation.c +0 -66
- data/ext/gio2/gnetworkaddress.c +0 -57
- data/ext/gio2/gnetworkservice.c +0 -43
- data/ext/gio2/gseekable.c +0 -89
- data/ext/gio2/gsimpleasyncresult.c +0 -153
- data/ext/gio2/gsocketaddress.c +0 -33
- data/ext/gio2/gsocketconnectable.c +0 -97
- data/ext/gio2/gsocketconnection.c +0 -75
- data/ext/gio2/gsocketcontrolmessage.c +0 -80
- data/ext/gio2/gsocketservice.c +0 -64
- data/ext/gio2/gsrvtarget.c +0 -77
- data/ext/gio2/gtcpconnection.c +0 -27
- data/ext/gio2/gthemedicon.c +0 -81
- data/ext/gio2/gthreadedsocketservice.c +0 -40
- data/ext/gio2/gunixconnection.c +0 -69
- data/ext/gio2/gunixfdlist.c +0 -112
- data/ext/gio2/gunixfdmessage.c +0 -72
- data/ext/gio2/gunixinputstream.c +0 -49
- data/ext/gio2/gunixmounts.c +0 -343
- data/ext/gio2/gunixoutputstream.c +0 -49
- data/ext/gio2/gunixsocketaddress.c +0 -67
- data/ext/gio2/gvfs.c +0 -82
- data/ext/gio2/gvolume.c +0 -191
- data/ext/gio2/gvolumemonitor.c +0 -75
- data/ext/gio2/gzlibcompressor.c +0 -50
- data/ext/gio2/gzlibdecompressor.c +0 -43
data/ext/gio2/util.c
CHANGED
@@ -1,30 +1,38 @@
|
|
1
|
-
/* -*- c-file-style: "ruby" -*- */
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
*
|
4
|
-
*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2008-2009 Ruby-GNOME2 Project Team
|
5
5
|
*
|
6
|
-
*
|
7
|
-
*
|
8
|
-
*
|
9
|
-
*
|
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
|
-
*
|
12
|
-
*
|
13
|
-
*
|
14
|
-
*
|
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
|
-
*
|
17
|
-
*
|
18
|
-
*
|
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 "
|
22
|
+
#include "rbgio2private.h"
|
23
|
+
|
24
|
+
|
25
|
+
#ifndef HAVE_RB_ERRINFO
|
26
|
+
# define rb_errinfo() (ruby_errinfo)
|
27
|
+
#endif
|
28
|
+
|
22
29
|
|
23
30
|
static ID s_id_enum_name;
|
24
31
|
static ID s_id_errors;
|
25
32
|
|
26
33
|
static VALUE s_errors;
|
27
34
|
|
35
|
+
|
28
36
|
VALUE
|
29
37
|
rbgio_cstr_to_rval_tainted(const char *string, gsize length)
|
30
38
|
{
|
@@ -117,23 +125,45 @@ rbgio_fds_to_ary_free(gint *fds)
|
|
117
125
|
rbgio_fds_to_ary_free_ensure, (VALUE)fds);
|
118
126
|
}
|
119
127
|
|
120
|
-
|
121
|
-
|
128
|
+
struct rbgio_gfile_ary_to_glist_args {
|
129
|
+
VALUE ary;
|
130
|
+
long n;
|
131
|
+
GList *result;
|
132
|
+
};
|
133
|
+
|
134
|
+
static VALUE
|
135
|
+
rbgio_gfile_ary_to_glist_body(VALUE value)
|
122
136
|
{
|
123
|
-
|
124
|
-
|
125
|
-
GList *list = NULL;
|
137
|
+
long i;
|
138
|
+
struct rbgio_gfile_ary_to_glist_args *args = (struct rbgio_gfile_ary_to_glist_args *)value;
|
126
139
|
|
127
|
-
|
128
|
-
|
140
|
+
for (i = 0; i < args->n; i++)
|
141
|
+
args->result = g_list_append(args->result, RVAL2GFILE(RARRAY_PTR(args->ary)[i]));
|
129
142
|
|
130
|
-
|
131
|
-
|
143
|
+
return Qnil;
|
144
|
+
}
|
132
145
|
|
133
|
-
|
134
|
-
|
146
|
+
static G_GNUC_NORETURN VALUE
|
147
|
+
rbgio_gfile_ary_to_glist_rescue(VALUE value)
|
148
|
+
{
|
149
|
+
g_list_free(((struct rbgio_gfile_ary_to_glist_args *)value)->result);
|
135
150
|
|
136
|
-
|
151
|
+
rb_exc_raise(rb_errinfo());
|
152
|
+
}
|
153
|
+
|
154
|
+
GList *
|
155
|
+
rbgio_gfile_ary_to_glist(VALUE value)
|
156
|
+
{
|
157
|
+
struct rbgio_gfile_ary_to_glist_args args;
|
158
|
+
|
159
|
+
args.ary = rb_ary_to_ary(value);
|
160
|
+
args.n = RARRAY_LEN(args.ary);
|
161
|
+
args.result = NULL;
|
162
|
+
|
163
|
+
rb_rescue(rbgio_gfile_ary_to_glist_body, (VALUE)&args,
|
164
|
+
rbgio_gfile_ary_to_glist_rescue, (VALUE)&args);
|
165
|
+
|
166
|
+
return args.result;
|
137
167
|
}
|
138
168
|
|
139
169
|
GList *
|
@@ -165,39 +195,6 @@ rbgio_rval_to_gtimeval(VALUE value, GTimeVal *time)
|
|
165
195
|
}
|
166
196
|
}
|
167
197
|
|
168
|
-
VALUE
|
169
|
-
rbgio_str_vector_to_ary(const gchar * const *vector)
|
170
|
-
{
|
171
|
-
int i, n;
|
172
|
-
VALUE ary;
|
173
|
-
|
174
|
-
if (vector == NULL)
|
175
|
-
return Qnil;
|
176
|
-
|
177
|
-
for (i = n = 0; vector[i] != NULL; i++)
|
178
|
-
n++;
|
179
|
-
ary = rb_ary_new2(n);
|
180
|
-
for (i = 0; i < n; i++)
|
181
|
-
RARRAY_PTR(ary)[i] = CSTR2RVAL(vector[i]);
|
182
|
-
|
183
|
-
return ary;
|
184
|
-
}
|
185
|
-
|
186
|
-
static VALUE
|
187
|
-
rbgio_str_vector_to_ary_free_ensure(gchar **vector)
|
188
|
-
{
|
189
|
-
g_strfreev(vector);
|
190
|
-
|
191
|
-
return Qnil;
|
192
|
-
}
|
193
|
-
|
194
|
-
VALUE
|
195
|
-
rbgio_str_vector_to_ary_free(gchar **vector)
|
196
|
-
{
|
197
|
-
return rb_ensure(rbgio_str_vector_to_ary, (VALUE)vector,
|
198
|
-
rbgio_str_vector_to_ary_free_ensure, (VALUE)vector);
|
199
|
-
}
|
200
|
-
|
201
198
|
struct async_ready_callback_data
|
202
199
|
{
|
203
200
|
GAsyncResult *result;
|
data/lib/1.8/gio2.so
CHANGED
Binary file
|
data/lib/1.9/gio2.so
CHANGED
Binary file
|
@@ -0,0 +1,102 @@
|
|
1
|
+
module GLib
|
2
|
+
extend GLib::Deprecatable
|
3
|
+
define_deprecated_const :AppInfo, 'Gio::AppInfo'
|
4
|
+
define_deprecated_const :AppLaunchContext, 'Gio::AppLaunchContext'
|
5
|
+
define_deprecated_const :AskPasswordFlags, 'Gio::AskPasswordFlags'
|
6
|
+
define_deprecated_const :AsyncInitable, 'Gio::AsyncInitable'
|
7
|
+
define_deprecated_const :AsyncResult, 'Gio::AsyncResult'
|
8
|
+
define_deprecated_const :BufferedInputStream, 'Gio::BufferedInputStream'
|
9
|
+
define_deprecated_const :BufferedOutputStream, 'Gio::BufferedOutputStream'
|
10
|
+
define_deprecated_const :Cancellable, 'Gio::Cancellable'
|
11
|
+
define_deprecated_const :CharsetConverter, 'Gio::CharsetConverter'
|
12
|
+
define_deprecated_const :ContentType, 'Gio::ContentType'
|
13
|
+
define_deprecated_const :Converter, 'Gio::Converter'
|
14
|
+
define_deprecated_const :ConverterInputStream, 'Gio::ConverterInputStream'
|
15
|
+
define_deprecated_const :ConverterOutputStream, 'Gio::ConverterOutputStream'
|
16
|
+
define_deprecated_const :DataInputStream, 'Gio::DataInputStream'
|
17
|
+
define_deprecated_const :DataOutputStream, 'Gio::DataOutputStream'
|
18
|
+
define_deprecated_const :DataStreamByteOrder, 'Gio::DataStreamByteOrder'
|
19
|
+
define_deprecated_const :DataStreamNewlineType, 'Gio::DataStreamNewlineType'
|
20
|
+
define_deprecated_const :DesktopAppInfo, 'Gio::DesktopAppInfo'
|
21
|
+
define_deprecated_const :Drive, 'Gio::Drive'
|
22
|
+
define_deprecated_const :Emblem, 'Gio::Emblem'
|
23
|
+
define_deprecated_const :EmblemedIcon, 'Gio::EmblemedIcon'
|
24
|
+
define_deprecated_const :File, 'Gio::File'
|
25
|
+
define_deprecated_const :FileAttribute, 'Gio::FileAttribute'
|
26
|
+
define_deprecated_const :FileAttributeInfo, 'Gio::FileAttributeInfo'
|
27
|
+
define_deprecated_const :FileAttributeMatcher, 'Gio::FileAttributeMatcher'
|
28
|
+
define_deprecated_const :FileDescriptorBased, 'Gio::FileDescriptorBased'
|
29
|
+
define_deprecated_const :FileEnumerator, 'Gio::FileEnumerator'
|
30
|
+
define_deprecated_const :FileIOStream, 'Gio::FileIOStream'
|
31
|
+
define_deprecated_const :FileIcon, 'Gio::FileIcon'
|
32
|
+
define_deprecated_const :FileInfo, 'Gio::FileInfo'
|
33
|
+
define_deprecated_const :FileInputStream, 'Gio::FileInputStream'
|
34
|
+
define_deprecated_const :FileMonitor, 'Gio::FileMonitor'
|
35
|
+
define_deprecated_const :FileOutputStream, 'Gio::FileOutputStream'
|
36
|
+
define_deprecated_const :FilenameCompleter, 'Gio::FilenameCompleter'
|
37
|
+
define_deprecated_const :FilesystemPreviewType, 'Gio::FilesystemPreviewType'
|
38
|
+
define_deprecated_const :FilterInputStream, 'Gio::FilterInputStream'
|
39
|
+
define_deprecated_const :FilterOutputStream, 'Gio::FilterOutputStream'
|
40
|
+
define_deprecated_const :IO, 'Gio::IO'
|
41
|
+
define_deprecated_const :IOModule, 'Gio::IOModule'
|
42
|
+
define_deprecated_const :IOModules, 'Gio::IOModules'
|
43
|
+
define_deprecated_const :IOScheduler, 'Gio::IOScheduler'
|
44
|
+
define_deprecated_const :IOSchedulerJob, 'Gio::IOSchedulerJob'
|
45
|
+
define_deprecated_const :IOStream, 'Gio::IOStream'
|
46
|
+
define_deprecated_const :Icon, 'Gio::Icon'
|
47
|
+
define_deprecated_const :InetAddress, 'Gio::InetAddress'
|
48
|
+
define_deprecated_const :InetSocketAddress, 'Gio::InetSocketAddress'
|
49
|
+
define_deprecated_const :Initable, 'Gio::Initable'
|
50
|
+
define_deprecated_const :InputStream, 'Gio::InputStream'
|
51
|
+
define_deprecated_const :LoadableIcon, 'Gio::LoadableIcon'
|
52
|
+
define_deprecated_const :MemoryInputStream, 'Gio::MemoryInputStream'
|
53
|
+
define_deprecated_const :MemoryOutputStream, 'Gio::MemoryOutputStream'
|
54
|
+
define_deprecated_const :Mount, 'Gio::Mount'
|
55
|
+
define_deprecated_const :MountOperation, 'Gio::MountOperation'
|
56
|
+
define_deprecated_const :NetworkAddress, 'Gio::NetworkAddress'
|
57
|
+
define_deprecated_const :NetworkService, 'Gio::NetworkService'
|
58
|
+
define_deprecated_const :OutputStream, 'Gio::OutputStream'
|
59
|
+
define_deprecated_const :PasswordSave, 'Gio::PasswordSave'
|
60
|
+
define_deprecated_const :Resolver, 'Gio::Resolver'
|
61
|
+
define_deprecated_const :Seekable, 'Gio::Seekable'
|
62
|
+
define_deprecated_const :SimpleAsyncResult, 'Gio::SimpleAsyncResult'
|
63
|
+
define_deprecated_const :Socket, 'Gio::Socket'
|
64
|
+
define_deprecated_const :SocketAddress, 'Gio::SocketAddress'
|
65
|
+
define_deprecated_const :SocketAddressEnumerator, 'Gio::SocketAddressEnumerator'
|
66
|
+
define_deprecated_const :SocketClient, 'Gio::SocketClient'
|
67
|
+
define_deprecated_const :SocketConnectable, 'Gio::SocketConnectable'
|
68
|
+
define_deprecated_const :SocketConnection, 'Gio::SocketConnection'
|
69
|
+
define_deprecated_const :SocketConnectionFactory, 'Gio::SocketConnectionFactory'
|
70
|
+
define_deprecated_const :SocketControlMessage, 'Gio::SocketControlMessage'
|
71
|
+
define_deprecated_const :SocketListener, 'Gio::SocketListener'
|
72
|
+
define_deprecated_const :SocketService, 'Gio::SocketService'
|
73
|
+
define_deprecated_const :SrvTarget, 'Gio::SrvTarget'
|
74
|
+
define_deprecated_const :TcpConnection, 'Gio::TcpConnection'
|
75
|
+
define_deprecated_const :ThemedIcon, 'Gio::ThemedIcon'
|
76
|
+
define_deprecated_const :ThreadedSocketService, 'Gio::ThreadedSocketService'
|
77
|
+
define_deprecated_const :UnixConnection, 'Gio::UnixConnection'
|
78
|
+
define_deprecated_const :UnixFDList, 'Gio::UnixFDList'
|
79
|
+
define_deprecated_const :UnixFDMessage, 'Gio::UnixFDMessage'
|
80
|
+
define_deprecated_const :UnixInputStream, 'Gio::UnixInputStream'
|
81
|
+
define_deprecated_const :UnixMount, 'Gio::UnixMount'
|
82
|
+
define_deprecated_const :UnixMountMonitor, 'Gio::UnixMountMonitor'
|
83
|
+
define_deprecated_const :UnixMountPoint, 'Gio::UnixMountPoint'
|
84
|
+
define_deprecated_const :UnixMountPoints, 'Gio::UnixMountPoints'
|
85
|
+
define_deprecated_const :UnixMounts, 'Gio::UnixMounts'
|
86
|
+
define_deprecated_const :UnixOutputStream, 'Gio::UnixOutputStream'
|
87
|
+
define_deprecated_const :UnixSocketAddress, 'Gio::UnixSocketAddress'
|
88
|
+
define_deprecated_const :Vfs, 'Gio::Vfs'
|
89
|
+
define_deprecated_const :Volume, 'Gio::Volume'
|
90
|
+
define_deprecated_const :VolumeMonitor, 'Gio::VolumeMonitor'
|
91
|
+
define_deprecated_const :ZlibCompressor, 'Gio::ZlibCompressor'
|
92
|
+
define_deprecated_const :ZlibDecompressor, 'Gio::ZlibDecompressor'
|
93
|
+
define_deprecated_enums 'Gio::FilesystemPreviewType', 'FILESYSTEM_PREVIEW_TYPE'
|
94
|
+
define_deprecated_enums 'Gio::DataStreamByteOrder', 'DATA_STREAM_BYTE_ORDER'
|
95
|
+
define_deprecated_enums 'Gio::DataStreamNewlineType', 'DATA_STREAM_NEWLINE_TYPE'
|
96
|
+
define_deprecated_flags 'Gio::AskPasswordFlags', 'ASK_PASSWORD'
|
97
|
+
define_deprecated_enums 'Gio::PasswordSave', 'PASSWORD_SAVE'
|
98
|
+
define_deprecated_singleton_method :gio_has_unix?, :warn => "Use 'Gio.has_unix?'." do |_self|
|
99
|
+
Gio.has_unix?
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
data/lib/gio2.rb
CHANGED
@@ -11,7 +11,9 @@ rescue LoadError
|
|
11
11
|
require "gio2.so"
|
12
12
|
end
|
13
13
|
|
14
|
-
|
14
|
+
require "gio2/deprecated"
|
15
|
+
|
16
|
+
class Gio::DataInputStream
|
15
17
|
include Enumerable
|
16
18
|
|
17
19
|
def each
|
@@ -45,8 +47,8 @@ private
|
|
45
47
|
# TODO: Add #each_byte?
|
46
48
|
end
|
47
49
|
|
48
|
-
if
|
49
|
-
class
|
50
|
+
if Gio.const_defined? :DesktopAppInfo
|
51
|
+
class Gio::DesktopAppInfo
|
50
52
|
class << self
|
51
53
|
def desktop_env=(desktop_env)
|
52
54
|
set_desktop_env desktop_env
|
@@ -56,7 +58,7 @@ if GLib.const_defined? :DesktopAppInfo
|
|
56
58
|
end
|
57
59
|
end
|
58
60
|
|
59
|
-
module
|
61
|
+
module Gio::File
|
60
62
|
include Enumerable
|
61
63
|
|
62
64
|
def eql?(other)
|
@@ -75,7 +77,7 @@ module GLib::File
|
|
75
77
|
end
|
76
78
|
end
|
77
79
|
|
78
|
-
class
|
80
|
+
class Gio::FileEnumerator
|
79
81
|
include Enumerable
|
80
82
|
|
81
83
|
def each(cancellable = nil)
|
@@ -109,25 +111,25 @@ private
|
|
109
111
|
end
|
110
112
|
end
|
111
113
|
|
112
|
-
class
|
114
|
+
class Gio::FileInfo
|
113
115
|
def directory?
|
114
|
-
file_type ==
|
116
|
+
file_type == Gio::File::Type::DIRECTORY
|
115
117
|
end
|
116
118
|
end
|
117
119
|
|
118
|
-
module
|
120
|
+
module Gio::Icon
|
119
121
|
def eql?(other)
|
120
122
|
self === other and self == other
|
121
123
|
end
|
122
124
|
end
|
123
125
|
|
124
|
-
class
|
126
|
+
class Gio::InputStream
|
125
127
|
def pending=(pending)
|
126
128
|
pending ? set_pending : clear_pending
|
127
129
|
end
|
128
130
|
end
|
129
131
|
|
130
|
-
class
|
132
|
+
class Gio::Resolver
|
131
133
|
class << self
|
132
134
|
def default=(default)
|
133
135
|
set_default default
|
@@ -136,7 +138,7 @@ class GLib::Resolver
|
|
136
138
|
end
|
137
139
|
end
|
138
140
|
|
139
|
-
module
|
141
|
+
module Gio::SocketConnectable
|
140
142
|
include Enumerable
|
141
143
|
|
142
144
|
def each(cancellable = nil)
|
@@ -147,7 +149,7 @@ module GLib::SocketConnectable
|
|
147
149
|
end
|
148
150
|
end
|
149
151
|
|
150
|
-
class
|
152
|
+
class Gio::UnixFDList
|
151
153
|
include Enumerable
|
152
154
|
|
153
155
|
def each
|
metadata
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gio2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.3
|
10
|
+
version: 1.1.0
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
|
-
- The Ruby-GNOME2
|
13
|
+
- The Ruby-GNOME2 Project Team
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-05 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:
|
28
|
+
hash: 19
|
29
29
|
segments:
|
30
30
|
- 1
|
31
|
+
- 1
|
31
32
|
- 0
|
32
|
-
|
33
|
-
version: 1.0.3
|
33
|
+
version: 1.1.0
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
description: Ruby/GIO2 is a Ruby binding of gio-2.x.
|
@@ -42,95 +42,107 @@ extensions: []
|
|
42
42
|
extra_rdoc_files: []
|
43
43
|
|
44
44
|
files:
|
45
|
-
- ChangeLog
|
46
45
|
- README
|
47
46
|
- Rakefile
|
48
47
|
- extconf.rb
|
49
48
|
- lib/gio2.rb
|
50
|
-
-
|
51
|
-
- ext/gio2/
|
52
|
-
- ext/gio2/
|
53
|
-
- ext/gio2/
|
54
|
-
- ext/gio2/
|
55
|
-
- ext/gio2/
|
56
|
-
- ext/gio2/
|
57
|
-
- ext/gio2/
|
58
|
-
- ext/gio2/
|
59
|
-
- ext/gio2/
|
60
|
-
- ext/gio2/
|
61
|
-
- ext/gio2/
|
62
|
-
- ext/gio2/
|
63
|
-
- ext/gio2/
|
64
|
-
- ext/gio2/
|
65
|
-
- ext/gio2/
|
66
|
-
- ext/gio2/
|
67
|
-
- ext/gio2/
|
68
|
-
- ext/gio2/
|
69
|
-
- ext/gio2/
|
70
|
-
- ext/gio2/
|
71
|
-
- ext/gio2/
|
72
|
-
- ext/gio2/
|
73
|
-
- ext/gio2/
|
74
|
-
- ext/gio2/
|
75
|
-
- ext/gio2/
|
76
|
-
- ext/gio2/
|
77
|
-
- ext/gio2/
|
78
|
-
- ext/gio2/
|
79
|
-
- ext/gio2/
|
80
|
-
- ext/gio2/
|
81
|
-
- ext/gio2/
|
82
|
-
- ext/gio2/
|
49
|
+
- lib/gio2/deprecated.rb
|
50
|
+
- ext/gio2/rbgiosocketcontrolmessage.c
|
51
|
+
- ext/gio2/rbgioasyncresult.c
|
52
|
+
- ext/gio2/rbgioiomodules.c
|
53
|
+
- ext/gio2/rbgiozlibdecompressor.c
|
54
|
+
- ext/gio2/rbgioconverteroutputstream.c
|
55
|
+
- ext/gio2/rbgiosrvtarget.c
|
56
|
+
- ext/gio2/rbgioloadableicon.c
|
57
|
+
- ext/gio2/rbgiofilemonitor.c
|
58
|
+
- ext/gio2/rbgiofilteroutputstream.c
|
59
|
+
- ext/gio2/rbgio2conversions.h
|
60
|
+
- ext/gio2/rbgio2private.h
|
61
|
+
- ext/gio2/rbgioconverter.c
|
62
|
+
- ext/gio2/rbgiofileattribute.c
|
63
|
+
- ext/gio2/rbgioinitable.c
|
64
|
+
- ext/gio2/rbgiomountoperation.c
|
65
|
+
- ext/gio2/rbgiofilenamecompleter.c
|
66
|
+
- ext/gio2/rbgiounixfdlist.c
|
67
|
+
- ext/gio2/rbgiothemedicon.c
|
68
|
+
- ext/gio2/rbgioasyncinitable.c
|
69
|
+
- ext/gio2/rbgiofileenumerator.c
|
70
|
+
- ext/gio2/rbgioicon.c
|
71
|
+
- ext/gio2/rbgiosocketaddressenumerator.c
|
72
|
+
- ext/gio2/rbgiounixmounts.c
|
73
|
+
- ext/gio2/rbgiocancellable.c
|
74
|
+
- ext/gio2/rbgiovolumemonitor.c
|
75
|
+
- ext/gio2/rbgiounixfdmessage.c
|
76
|
+
- ext/gio2/rbgioinputstream.c
|
77
|
+
- ext/gio2/rbgiosocketclient.c
|
78
|
+
- ext/gio2/rbgioapplaunchcontext.c
|
79
|
+
- ext/gio2/rbgiothreadedsocketservice.c
|
80
|
+
- ext/gio2/rbgiodesktopappinfo.c
|
81
|
+
- ext/gio2/rbgiovfs.c
|
82
|
+
- ext/gio2/rbgiofile.c
|
83
|
+
- ext/gio2/rbgioioscheduler.c
|
84
|
+
- ext/gio2/rbgiofileinputstream.c
|
85
|
+
- ext/gio2/rbgiounixmountpoints.c
|
86
|
+
- ext/gio2/rbgiosocketconnection.c
|
87
|
+
- ext/gio2/rbgiofileicon.c
|
88
|
+
- ext/gio2/rbgiobufferedinputstream.c
|
89
|
+
- ext/gio2/rbgio2.h
|
90
|
+
- ext/gio2/rbgiovolume.c
|
91
|
+
- ext/gio2/rbgioresolver.c
|
92
|
+
- ext/gio2/rbgiobufferedoutputstream.c
|
93
|
+
- ext/gio2/rbgiosimpleasyncresult.c
|
94
|
+
- ext/gio2/rbgiounixconnection.c
|
83
95
|
- ext/gio2/gio2.h
|
84
|
-
- ext/gio2/
|
85
|
-
- ext/gio2/
|
86
|
-
- ext/gio2/
|
87
|
-
- ext/gio2/
|
88
|
-
- ext/gio2/
|
89
|
-
- ext/gio2/
|
90
|
-
- ext/gio2/
|
91
|
-
- ext/gio2/
|
96
|
+
- ext/gio2/rbgiounixmountpoint.c
|
97
|
+
- ext/gio2/rbgiomount.c
|
98
|
+
- ext/gio2/rbgiofileoutputstream.c
|
99
|
+
- ext/gio2/rbgiounixsocketaddress.c
|
100
|
+
- ext/gio2/rbgiofiledescriptorbased.c
|
101
|
+
- ext/gio2/rbgiosocketconnectable.c
|
102
|
+
- ext/gio2/rbgiofileinfo.c
|
103
|
+
- ext/gio2/rbgiocharsetconverter.c
|
104
|
+
- ext/gio2/rbgioemblemedicon.c
|
105
|
+
- ext/gio2/rbgiosocketaddress.c
|
106
|
+
- ext/gio2/rbgiofileattributeinfo.c
|
92
107
|
- ext/gio2/gio2.c
|
93
|
-
- ext/gio2/
|
108
|
+
- ext/gio2/rbgionetworkaddress.c
|
109
|
+
- ext/gio2/rbgioiostream.c
|
94
110
|
- ext/gio2/extconf.rb
|
95
|
-
- ext/gio2/
|
96
|
-
- ext/gio2/
|
97
|
-
- ext/gio2/
|
98
|
-
- ext/gio2/
|
99
|
-
- ext/gio2/
|
100
|
-
- ext/gio2/
|
101
|
-
- ext/gio2/
|
102
|
-
- ext/gio2/
|
103
|
-
- ext/gio2/
|
104
|
-
- ext/gio2/
|
105
|
-
- ext/gio2/
|
106
|
-
- ext/gio2/
|
107
|
-
- ext/gio2/
|
108
|
-
- ext/gio2/
|
109
|
-
- ext/gio2/
|
110
|
-
- ext/gio2/gtcpconnection.c
|
111
|
-
- ext/gio2/gfileoutputstream.c
|
112
|
-
- ext/gio2/giostream.c
|
113
|
-
- ext/gio2/gunixfdmessage.c
|
111
|
+
- ext/gio2/rbgiomemoryoutputstream.c
|
112
|
+
- ext/gio2/rbgiofileattributeinfolist.c
|
113
|
+
- ext/gio2/rbgionetworkservice.c
|
114
|
+
- ext/gio2/rbgiosocketlistener.c
|
115
|
+
- ext/gio2/rbgiocontenttype.c
|
116
|
+
- ext/gio2/rbgioinetsocketaddress.c
|
117
|
+
- ext/gio2/rbgiodrive.c
|
118
|
+
- ext/gio2/rbgioinetaddress.c
|
119
|
+
- ext/gio2/rbgiofileiostream.c
|
120
|
+
- ext/gio2/rbgiodataoutputstream.c
|
121
|
+
- ext/gio2/rbgioemblem.c
|
122
|
+
- ext/gio2/rbgioio.c
|
123
|
+
- ext/gio2/rbgiosocketconnectionfactory.c
|
124
|
+
- ext/gio2/rbgiotcpconnection.c
|
125
|
+
- ext/gio2/rbgioconverterinputstream.c
|
114
126
|
- ext/gio2/util.c
|
115
|
-
- ext/gio2/
|
116
|
-
- ext/gio2/
|
117
|
-
- ext/gio2/
|
118
|
-
- ext/gio2/
|
119
|
-
- ext/gio2/
|
120
|
-
- ext/gio2/
|
121
|
-
- ext/gio2/
|
122
|
-
- ext/gio2/
|
123
|
-
- ext/gio2/
|
124
|
-
- ext/gio2/giomodule.c
|
127
|
+
- ext/gio2/rbgiounixmountmonitor.c
|
128
|
+
- ext/gio2/rbgiounixoutputstream.c
|
129
|
+
- ext/gio2/rbgiosocket.c
|
130
|
+
- ext/gio2/rbgiozlibcompressor.c
|
131
|
+
- ext/gio2/rbgiounixmount.c
|
132
|
+
- ext/gio2/rbgio.c
|
133
|
+
- ext/gio2/rbgioseekable.c
|
134
|
+
- ext/gio2/rbgiofilterinputstream.c
|
135
|
+
- ext/gio2/rbgiofileattributematcher.c
|
125
136
|
- ext/gio2/depend
|
126
|
-
- ext/gio2/ginputstream.c
|
127
|
-
- ext/gio2/gbufferedoutputstream.c
|
128
|
-
- ext/gio2/gfileicon.c
|
129
|
-
- ext/gio2/gunixinputstream.c
|
130
137
|
- ext/gio2/gio2.def
|
131
|
-
- ext/gio2/
|
132
|
-
- ext/gio2/
|
133
|
-
- ext/gio2/
|
138
|
+
- ext/gio2/rbgioiomodule.c
|
139
|
+
- ext/gio2/rbgiodatainputstream.c
|
140
|
+
- ext/gio2/rbgiooutputstream.c
|
141
|
+
- ext/gio2/rbgiosocketservice.c
|
142
|
+
- ext/gio2/rbgiomemoryinputstream.c
|
143
|
+
- ext/gio2/rbgiounixinputstream.c
|
144
|
+
- ext/gio2/rbgioioschedulerjob.c
|
145
|
+
- ext/gio2/rbgioappinfo.c
|
134
146
|
- test/test_bufferedinputstream.rb
|
135
147
|
- test/test_filemonitor.rb
|
136
148
|
- test/test_inetaddress.rb
|
@@ -171,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
183
|
requirements: []
|
172
184
|
|
173
185
|
rubyforge_project:
|
174
|
-
rubygems_version: 1.
|
186
|
+
rubygems_version: 1.8.12
|
175
187
|
signing_key:
|
176
188
|
specification_version: 3
|
177
189
|
summary: Ruby/GIO2 is a Ruby binding of gio-2.x.
|