mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Use g_variant_is_of_type()
... instead of strcmp()'ing the type strings. Bug #620954.
This commit is contained in:
@@ -407,7 +407,7 @@ g_application_register_with_data (GApplication *application,
|
||||
g_return_if_fail (application->priv->appid != NULL);
|
||||
g_return_if_fail (application->priv->is_remote);
|
||||
g_return_if_fail (platform_data == NULL
|
||||
|| strcmp (g_variant_get_type_string (platform_data), "a{sv}") == 0);
|
||||
|| g_variant_is_of_type (platform_data, G_VARIANT_TYPE ("a{sv}")) == 0);
|
||||
|
||||
if (!_g_application_platform_acquire_single_instance (application, NULL))
|
||||
{
|
||||
|
Reference in New Issue
Block a user