summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2021-04-07 18:14:16 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2021-04-07 18:14:16 +0200
commite12f6978ccdffe52f9d5ea692678420ab498d1d3 (patch)
treeac2855090576363f06b9f9a38eea65eb15ea134c
parentb77caccca5c8399a58536ba1eece97324277feb8 (diff)
downloadvala-wip/gtimezone.tar.gz
glib-2.0: Wrap TimeZone.identifier() constuctor for proper error supportwip/gtimezone
-rw-r--r--vapi/glib-2.0.vapi11
1 files changed, 10 insertions, 1 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 65ba798cc..98c0e7ea3 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3289,7 +3289,16 @@ namespace GLib {
[Version (deprecated = true, deprecated_since = "2.68", replacement = "TimeZone.identifier")]
public TimeZone (string identifier);
[Version (since = "2.68")]
- public TimeZone.identifier (string identifier);
+ [CCode (cname = "g_time_zone_new_identifier")]
+ TimeZone.new_identifier (string? identifier);
+ [Version (since = "2.68")]
+ [CCode (cname = "vala_g_time_zone_new_identifier")]
+ public TimeZone.identifier (string? identifier) throws Error {
+ this.new_identifier (identifier);
+ if ((TimeZone?) this == null) {
+ throw new ConvertError.ILLEGAL_SEQUENCE ("Invalid identifier");
+ }
+ }
public TimeZone.utc ();
public TimeZone.local ();
[Version (since = "2.58")]