GtkUIManager comment
- From: Alexander Larsson <alexl redhat com>
- To: "gtk-devel-list gnome org" <gtk-devel-list gnome org>
- Subject: GtkUIManager comment
- Date: Fri, 12 Nov 2004 08:58:45 +0100
I just wasted some time tracking down a bug due to the misstyping of a
GtkUIManager path. Any chance something like this could be applied to
avoid such problems in the future:
diff -u -p -r1.62 gtkuimanager.c
--- gtk/gtkuimanager.c 28 Oct 2004 15:00:05 -0000 1.62
+++ gtk/gtkuimanager.c 12 Nov 2004 07:55:17 -0000
@@ -1581,7 +1581,10 @@ gtk_ui_manager_add_ui (GtkUIManager
node = get_node (self, path, NODE_TYPE_UNDECIDED, FALSE);
if (node == NULL)
- return;
+ {
+ g_warning ("Trying to add UI to non-existing path '%s'", path);
+ return;
+ }
node_type = NODE_TYPE_UNDECIDED;
Or is there some reason why this is something that you would deliberately do?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an unconventional umbrella-wielding gentleman spy on a mission from God.
She's an enchanted nymphomaniac schoolgirl with the soul of a mighty warrior.
They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]