[epiphany] Add sanity check warning for finding extensions
- From: Gustavo Noronha Silva <gns src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Add sanity check warning for finding extensions
- Date: Thu, 10 Jul 2014 12:54:27 +0000 (UTC)
commit 6892dd5bb45df1b0339797c68bc5a1079076c53f
Author: Gustavo Noronha Silva <gns gnome org>
Date: Wed Jul 9 15:03:48 2014 -0300
Add sanity check warning for finding extensions
That will help debugging future issues with extensions not being found.
https://bugzilla.gnome.org/show_bug.cgi?id=727139
embed/ephy-embed-shell.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 1122eaf..ddaae74 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -123,6 +123,9 @@ ephy_embed_shell_find_web_extension (EphyEmbedShell *shell,
l = g_list_find_custom (shell->priv->web_extensions, name_owner, (GCompareFunc)web_extension_compare);
+ if (!l)
+ g_warning ("Could not find extension with name owner `%s´.", name_owner);
+
return l ? EPHY_WEB_EXTENSION_PROXY (l->data) : NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]