glib2 0.90.9-x86-mingw32 → 1.0.0-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 +10 -0
- data/ext/glib2/rbglib.h +3 -3
- data/ext/glib2/rbglib_error.c +1 -1
- data/ext/glib2/rbglib_iochannel.c +28 -0
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- metadata +5 -5
data/ChangeLog
CHANGED
@@ -1,5 +1,15 @@
|
|
1
|
+
2011-06-30 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* ext/glib2/rbglib_iochannel.c: bind g_io_channel_win32_new_socket().
|
4
|
+
|
1
5
|
2011-06-11 Kouhei Sutou <kou@cozmixng.org>
|
2
6
|
|
7
|
+
* ext/glib2/rbglib_error.c (rbgerr_gerror2exception): add missing
|
8
|
+
parentheses. [#3312572]
|
9
|
+
Patch by Evan Phoenix. Thanks!!!
|
10
|
+
|
11
|
+
* ext/glib2/rbglib.h: 0.90.9 -> 1.0.0.
|
12
|
+
|
3
13
|
* lib/gnome2-raketask.rb: suppress deprecation warnings.
|
4
14
|
|
5
15
|
* Rakefile, test/: use test-unit 2 gem. don't bundle it.
|
data/ext/glib2/rbglib.h
CHANGED
@@ -21,9 +21,9 @@
|
|
21
21
|
extern "C" {
|
22
22
|
#endif /* __cplusplus */
|
23
23
|
|
24
|
-
#define RBGLIB_MAJOR_VERSION
|
25
|
-
#define RBGLIB_MINOR_VERSION
|
26
|
-
#define RBGLIB_MICRO_VERSION
|
24
|
+
#define RBGLIB_MAJOR_VERSION 1
|
25
|
+
#define RBGLIB_MINOR_VERSION 0
|
26
|
+
#define RBGLIB_MICRO_VERSION 0
|
27
27
|
|
28
28
|
#ifndef RSTRING_PTR
|
29
29
|
# define RSTRING_PTR(s) (RSTRING(s)->ptr)
|
data/ext/glib2/rbglib_error.c
CHANGED
@@ -28,7 +28,7 @@ rbgerr_gerror2exception(GError *error)
|
|
28
28
|
}
|
29
29
|
|
30
30
|
klass = rb_hash_aref(gerror_table, UINT2NUM(error->domain));
|
31
|
-
if NIL_P(klass){
|
31
|
+
if (NIL_P(klass)) {
|
32
32
|
exc = rb_exc_new2(generic_error, error->message);
|
33
33
|
rb_ivar_set(exc, id_domain, CSTR2RVAL(g_quark_to_string(error->domain)));
|
34
34
|
rb_ivar_set(exc, id_code, INT2NUM(error->code));
|
@@ -646,6 +646,21 @@ GIOError g_io_channel_seek (GIOChannel *channel,
|
|
646
646
|
void g_io_channel_close (GIOChannel *channel);
|
647
647
|
*/
|
648
648
|
|
649
|
+
#ifdef G_OS_WIN32
|
650
|
+
static VALUE
|
651
|
+
ioc_win32_socket_initialize(VALUE self, VALUE socket)
|
652
|
+
{
|
653
|
+
GIOChannel *io = NULL;
|
654
|
+
|
655
|
+
rb_secure(4);
|
656
|
+
/* TODO: support IO object */
|
657
|
+
io = g_io_channel_win32_new_socket(NUM2INT(socket));
|
658
|
+
G_INITIALIZE(self, io);
|
659
|
+
|
660
|
+
return Qnil;
|
661
|
+
}
|
662
|
+
#endif
|
663
|
+
|
649
664
|
static VALUE
|
650
665
|
ioc_error_s_from_errno(VALUE self, VALUE errno_)
|
651
666
|
{
|
@@ -801,6 +816,19 @@ Init_glib_io_channel()
|
|
801
816
|
|
802
817
|
G_DEF_SETTERS(io);
|
803
818
|
|
819
|
+
#ifdef G_OS_WIN32
|
820
|
+
{
|
821
|
+
/* GIOWin32Channel */
|
822
|
+
VALUE io_channel_win32_socket;
|
823
|
+
io_channel_win32_socket =
|
824
|
+
rb_define_class_under(mGLib,
|
825
|
+
"IOChannelWin32Socket",
|
826
|
+
io);
|
827
|
+
rb_define_method(io_channel_win32_socket, "initialize",
|
828
|
+
ioc_win32_socket_initialize, 1);
|
829
|
+
}
|
830
|
+
#endif
|
831
|
+
|
804
832
|
/* GSeekType */
|
805
833
|
rb_define_const(io, "SEEK_CUR", INT2NUM(G_SEEK_CUR));
|
806
834
|
rb_define_const(io, "SEEK_SET", INT2NUM(G_SEEK_SET));
|
data/lib/1.8/glib2.so
CHANGED
Binary file
|
data/lib/1.9/glib2.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.90.9
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- The Ruby-GNOME2 Proejct Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-13 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: pkg-config
|