glib2 3.4.0 → 3.4.1
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.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbglib_keyfile.c +17 -8
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84cc021a2795944294c8735a12ef6c1c549bef81c750c59132e8d4350f75d878
|
4
|
+
data.tar.gz: 290b3d6a4e2f90857a95af36b78c45a414f37cdf2f9ae1f3871a44e65b4adcac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1962da1a1326f2d52af78b11935023bf7dd0e79d99ee0c554f04fddecf3fd4f473122cf9ddd25bcc49ead47e0d5c3e949f78e9dcf5764d14cf959a49744fba2
|
7
|
+
data.tar.gz: 317700b1cd2cde45273779cc6161efec4e23086e834375b5aad6821923a2bf56fd700ff7ab90a858956bc87a56775b2372f3affb355e471c5c685cb3e03a8beb
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbglib_keyfile.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
2
|
/*
|
3
|
-
* Copyright (C) 2011 Ruby-
|
3
|
+
* Copyright (C) 2011-2019 Ruby-GNOME Project Team
|
4
4
|
* Copyright (C) 2006 Masao Mutoh
|
5
5
|
*
|
6
6
|
* This library is free software; you can redistribute it and/or
|
@@ -148,7 +148,7 @@ rg_load_from_dirs(int argc, VALUE *argv, VALUE self)
|
|
148
148
|
GError* error = NULL;
|
149
149
|
gboolean success;
|
150
150
|
const gchar *file;
|
151
|
-
|
151
|
+
gchar **search_dirs;
|
152
152
|
gchar* full_path;
|
153
153
|
GKeyFileFlags flags;
|
154
154
|
|
@@ -162,7 +162,7 @@ rg_load_from_dirs(int argc, VALUE *argv, VALUE self)
|
|
162
162
|
|
163
163
|
if (search_dirs != NULL)
|
164
164
|
success = g_key_file_load_from_dirs(_SELF(self), file,
|
165
|
-
search_dirs,
|
165
|
+
(const gchar **)search_dirs,
|
166
166
|
&full_path, flags, &error);
|
167
167
|
else
|
168
168
|
success = g_key_file_load_from_data_dirs(_SELF(self), file,
|
@@ -516,9 +516,13 @@ rg_set_string_list(VALUE self, VALUE rbgroup_name, VALUE rbkey, VALUE rblist)
|
|
516
516
|
const gchar *group_name = RVAL2CSTR(rbgroup_name);
|
517
517
|
const gchar *key = RVAL2CSTR(rbkey);
|
518
518
|
long n;
|
519
|
-
|
519
|
+
gchar **list = RVAL2STRS(rblist, n);
|
520
520
|
|
521
|
-
g_key_file_set_string_list(key_file,
|
521
|
+
g_key_file_set_string_list(key_file,
|
522
|
+
group_name,
|
523
|
+
key,
|
524
|
+
(const gchar * const *)list,
|
525
|
+
n);
|
522
526
|
|
523
527
|
g_free(list);
|
524
528
|
|
@@ -533,9 +537,14 @@ rg_set_locale_string_list(VALUE self, VALUE rbgroup_name, VALUE rbkey, VALUE rbl
|
|
533
537
|
const gchar *key = RVAL2CSTR(rbkey);
|
534
538
|
const gchar *locale = RVAL2CSTR(rblocale);
|
535
539
|
long n;
|
536
|
-
|
537
|
-
|
538
|
-
g_key_file_set_locale_string_list(key_file,
|
540
|
+
gchar **list = RVAL2STRS(rblist, n);
|
541
|
+
|
542
|
+
g_key_file_set_locale_string_list(key_file,
|
543
|
+
group_name,
|
544
|
+
key,
|
545
|
+
locale,
|
546
|
+
(const gchar * const *)list,
|
547
|
+
n);
|
539
548
|
|
540
549
|
g_free(list);
|
541
550
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|
@@ -223,7 +223,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
|
-
|
226
|
+
rubyforge_project:
|
227
|
+
rubygems_version: 2.7.6.2
|
227
228
|
signing_key:
|
228
229
|
specification_version: 4
|
229
230
|
summary: Ruby/GLib2 is a Ruby binding of GLib-2.x.
|