mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Revert "Use g_return_val_if_fail() for developer-only messages"
This reverts commit 00f0795a84
.
https://bugzilla.gnome.org/show_bug.cgi?id=569017
This commit is contained in:
committed by
Ryan Lortie
parent
d5e2a57741
commit
ed6ca39d3b
@@ -514,7 +514,17 @@ g_themed_icon_from_tokens (gchar **tokens,
|
||||
gchar **names;
|
||||
int n;
|
||||
|
||||
g_return_val_if_fail (version == 0, NULL);
|
||||
icon = NULL;
|
||||
|
||||
if (version != 0)
|
||||
{
|
||||
g_set_error (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_ARGUMENT,
|
||||
_("Can't handle version %d of GThemedIcon encoding"),
|
||||
version);
|
||||
goto out;
|
||||
}
|
||||
|
||||
names = g_new0 (gchar *, num_tokens + 1);
|
||||
for (n = 0; n < num_tokens; n++)
|
||||
@@ -524,6 +534,7 @@ g_themed_icon_from_tokens (gchar **tokens,
|
||||
icon = g_themed_icon_new_from_names (names, num_tokens);
|
||||
g_free (names);
|
||||
|
||||
out:
|
||||
return icon;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user