rsvg2 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/rsvg2/rbrsvg.c +15 -15
- data/ext/rsvg2/rbrsvgdimensiondata.c +0 -2
- data/ext/rsvg2/rbrsvghandle.c +4 -6
- data/lib/1.8/rsvg2.so +0 -0
- data/lib/1.9/rsvg2.so +0 -0
- metadata +8 -8
data/ext/rsvg2/rbrsvg.c
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
void Init_rsvg2(void);
|
32
32
|
|
33
33
|
static VALUE
|
34
|
-
|
34
|
+
rg_s_set_default_dpi(VALUE self, VALUE dpi)
|
35
35
|
{
|
36
36
|
#ifdef HAVE_RSVG_SET_DEFAULT_DPI
|
37
37
|
rsvg_set_default_dpi(NUM2DBL(dpi));
|
@@ -42,7 +42,7 @@ rg_m_set_default_dpi(VALUE self, VALUE dpi)
|
|
42
42
|
}
|
43
43
|
|
44
44
|
static VALUE
|
45
|
-
|
45
|
+
rg_s_set_default_dpi_x_y(VALUE self, VALUE dpi_x, VALUE dpi_y)
|
46
46
|
{
|
47
47
|
#ifdef HAVE_RSVG_SET_DEFAULT_DPI_X_Y
|
48
48
|
rsvg_set_default_dpi_x_y(NUM2DBL(dpi_x), NUM2DBL(dpi_y));
|
@@ -54,7 +54,7 @@ rg_m_set_default_dpi_x_y(VALUE self, VALUE dpi_x, VALUE dpi_y)
|
|
54
54
|
|
55
55
|
/* Convenience API */
|
56
56
|
static VALUE
|
57
|
-
|
57
|
+
rg_s_pixbuf_from_file(G_GNUC_UNUSED VALUE self, VALUE file_name)
|
58
58
|
{
|
59
59
|
VALUE rb_pixbuf;
|
60
60
|
GdkPixbuf *pixbuf;
|
@@ -70,7 +70,7 @@ rg_m_pixbuf_from_file(VALUE self, VALUE file_name)
|
|
70
70
|
}
|
71
71
|
|
72
72
|
static VALUE
|
73
|
-
|
73
|
+
rg_s_pixbuf_from_file_at_zoom(G_GNUC_UNUSED VALUE self, VALUE file_name,
|
74
74
|
VALUE x_zoom, VALUE y_zoom)
|
75
75
|
{
|
76
76
|
VALUE rb_pixbuf;
|
@@ -90,7 +90,7 @@ rg_m_pixbuf_from_file_at_zoom(VALUE self, VALUE file_name,
|
|
90
90
|
}
|
91
91
|
|
92
92
|
static VALUE
|
93
|
-
|
93
|
+
rg_s_pixbuf_from_file_at_size(G_GNUC_UNUSED VALUE self, VALUE file_name,
|
94
94
|
VALUE width, VALUE height)
|
95
95
|
{
|
96
96
|
VALUE rb_pixbuf;
|
@@ -110,7 +110,7 @@ rg_m_pixbuf_from_file_at_size(VALUE self, VALUE file_name,
|
|
110
110
|
}
|
111
111
|
|
112
112
|
static VALUE
|
113
|
-
|
113
|
+
rg_s_pixbuf_from_file_at_max_size(G_GNUC_UNUSED VALUE self, VALUE file_name,
|
114
114
|
VALUE max_width, VALUE max_height)
|
115
115
|
{
|
116
116
|
VALUE rb_pixbuf;
|
@@ -130,7 +130,7 @@ rg_m_pixbuf_from_file_at_max_size(VALUE self, VALUE file_name,
|
|
130
130
|
}
|
131
131
|
|
132
132
|
static VALUE
|
133
|
-
|
133
|
+
rg_s_pixbuf_from_file_at_zoom_with_max(G_GNUC_UNUSED VALUE self,
|
134
134
|
VALUE file_name,
|
135
135
|
VALUE x_zoom,
|
136
136
|
VALUE y_zoom,
|
@@ -156,7 +156,7 @@ rg_m_pixbuf_from_file_at_zoom_with_max(VALUE self,
|
|
156
156
|
}
|
157
157
|
|
158
158
|
static VALUE
|
159
|
-
rg_s_cairo_available_p(VALUE self)
|
159
|
+
rg_s_cairo_available_p(G_GNUC_UNUSED VALUE self)
|
160
160
|
{
|
161
161
|
#ifdef HAVE_LIBRSVG_RSVG_CAIRO_H
|
162
162
|
return Qtrue;
|
@@ -189,15 +189,15 @@ Init_rsvg2(void)
|
|
189
189
|
INT2FIX(LIBRSVG_MINOR_VERSION),
|
190
190
|
INT2FIX(LIBRSVG_MICRO_VERSION)));
|
191
191
|
|
192
|
-
|
193
|
-
|
192
|
+
RG_DEF_SMETHOD(set_default_dpi, 1);
|
193
|
+
RG_DEF_SMETHOD(set_default_dpi_x_y, 2);
|
194
194
|
|
195
195
|
/* Convenience API */
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
196
|
+
RG_DEF_SMETHOD(pixbuf_from_file, 1);
|
197
|
+
RG_DEF_SMETHOD(pixbuf_from_file_at_zoom, 3);
|
198
|
+
RG_DEF_SMETHOD(pixbuf_from_file_at_size, 3);
|
199
|
+
RG_DEF_SMETHOD(pixbuf_from_file_at_max_size, 3);
|
200
|
+
RG_DEF_SMETHOD(pixbuf_from_file_at_zoom_with_max, 5);
|
201
201
|
|
202
202
|
RG_DEF_SMETHOD_P(cairo_available, 0);
|
203
203
|
|
data/ext/rsvg2/rbrsvghandle.c
CHANGED
@@ -94,7 +94,7 @@ rb_rsvg_handle_alloc(VALUE klass)
|
|
94
94
|
|
95
95
|
#if LIBRSVG_CHECK_VERSION(2, 14, 0)
|
96
96
|
static VALUE
|
97
|
-
|
97
|
+
rg_s_new_from_data(G_GNUC_UNUSED VALUE self, VALUE data)
|
98
98
|
{
|
99
99
|
GError *error = NULL;
|
100
100
|
RsvgHandle *handle;
|
@@ -109,7 +109,7 @@ rg_m_new_from_data(VALUE self, VALUE data)
|
|
109
109
|
}
|
110
110
|
|
111
111
|
static VALUE
|
112
|
-
|
112
|
+
rg_s_new_from_file(G_GNUC_UNUSED VALUE self, VALUE file)
|
113
113
|
{
|
114
114
|
GError *error = NULL;
|
115
115
|
RsvgHandle *handle;
|
@@ -431,8 +431,8 @@ Init_rsvg_handle(VALUE mRSVG)
|
|
431
431
|
#endif
|
432
432
|
|
433
433
|
#if LIBRSVG_CHECK_VERSION(2, 14, 0)
|
434
|
-
|
435
|
-
|
434
|
+
RG_DEF_SMETHOD(new_from_data, 1);
|
435
|
+
RG_DEF_SMETHOD(new_from_file, 1);
|
436
436
|
#endif
|
437
437
|
|
438
438
|
RG_DEF_METHOD(initialize, -1);
|
@@ -472,6 +472,4 @@ Init_rsvg_handle(VALUE mRSVG)
|
|
472
472
|
#ifdef HAVE_LIBRSVG_RSVG_CAIRO_H
|
473
473
|
RG_DEF_METHOD(render_cairo, -1);
|
474
474
|
#endif
|
475
|
-
|
476
|
-
G_DEF_SETTERS(RG_TARGET_NAMESPACE);
|
477
475
|
}
|
data/lib/1.8/rsvg2.so
CHANGED
Binary file
|
data/lib/1.9/rsvg2.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsvg2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
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-
|
18
|
+
date: 2012-04-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: cairo
|
@@ -41,12 +41,12 @@ dependencies:
|
|
41
41
|
requirements:
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 21
|
45
45
|
segments:
|
46
46
|
- 1
|
47
47
|
- 1
|
48
|
-
-
|
49
|
-
version: 1.1.
|
48
|
+
- 3
|
49
|
+
version: 1.1.3
|
50
50
|
type: :runtime
|
51
51
|
version_requirements: *id002
|
52
52
|
description: Ruby/RSVG is a Ruby binding of librsvg-2.x.
|
@@ -422,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
422
422
|
requirements: []
|
423
423
|
|
424
424
|
rubyforge_project:
|
425
|
-
rubygems_version: 1.8.
|
425
|
+
rubygems_version: 1.8.15
|
426
426
|
signing_key:
|
427
427
|
specification_version: 3
|
428
428
|
summary: Ruby/RSVG is a Ruby binding of librsvg-2.x.
|