mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 02:32:11 +01:00
gsimpleproxyresolver: default_proxy should be consistently nullable
Currently it's nullable in g_simple_proxy_resolver_new(), but not in g_simple_proxy_resolver_set_default_proxy() nor the property. Fix these. (cherry-picked from commit 8a1f087a31c9fc0e50cd147d4ce11a4bfff647c0)
This commit is contained in:
parent
ad7617a528
commit
3be74cc6f6
@ -415,7 +415,7 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class)
|
||||
object_class->finalize = g_simple_proxy_resolver_finalize;
|
||||
|
||||
/**
|
||||
* GSimpleProxyResolver:default-proxy:
|
||||
* GSimpleProxyResolver:default-proxy: (nullable)
|
||||
*
|
||||
* The default proxy URI that will be used for any URI that doesn't
|
||||
* match #GSimpleProxyResolver:ignore-hosts, and doesn't match any
|
||||
@ -518,7 +518,7 @@ g_simple_proxy_resolver_new (const gchar *default_proxy,
|
||||
/**
|
||||
* g_simple_proxy_resolver_set_default_proxy:
|
||||
* @resolver: a #GSimpleProxyResolver
|
||||
* @default_proxy: the default proxy to use
|
||||
* @default_proxy: (nullable): the default proxy to use
|
||||
*
|
||||
* Sets the default proxy on @resolver, to be used for any URIs that
|
||||
* don't match #GSimpleProxyResolver:ignore-hosts or a proxy set
|
||||
|
Loading…
x
Reference in New Issue
Block a user