[libglade] Show the function name that is not found in warning message
- From: Tor Lillqvist <tml src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libglade] Show the function name that is not found in warning message
- Date: Thu, 12 Nov 2009 11:20:08 +0000 (UTC)
commit 164eb26c87fb1fb333c7de1aeeeae103bf338f21
Author: Tor Lillqvist <tml iki fi>
Date: Thu Nov 12 13:17:28 2009 +0200
Show the function name that is not found in warning message
Makes the warning message much more useful. Use similar format as in
the warning message in autoconnect_foreach().
glade/glade-xml.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glade/glade-xml.c b/glade/glade-xml.c
index d90fe6e..dda63c8 100644
--- a/glade/glade-xml.c
+++ b/glade/glade-xml.c
@@ -966,7 +966,7 @@ default_custom_handler(GladeXML *xml, gchar *func_name, gchar *name,
allsymbols = g_module_open(NULL, 0);
if (g_module_symbol(allsymbols, func_name, (gpointer)&func))
return (* func)(name, string1, string2, int1, int2);
- g_warning("could not find widget creation function");
+ g_warning("could not find widget creation function '%s'.", func_name);
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]