Author: sh-sh-sh
Date: Wed Dec 5 19:17:22 2007
New Revision: 42724
URL: http://svn.opensuse.org/viewcvs/yast?rev=42724&view=rev
Log:
more logging
Modified:
trunk/core/libyui/src/YUI_builtins.cc
Modified: trunk/core/libyui/src/YUI_builtins.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/libyui/src/YUI_builtins.cc?rev=42724&r1=42723&r2=42724&view=diff
==============================================================================
--- trunk/core/libyui/src/YUI_builtins.cc (original)
+++ trunk/core/libyui/src/YUI_builtins.cc Wed Dec 5 19:17:22 2007
@@ -23,6 +23,7 @@
#define VERBOSE_REPLACE_WIDGET 0
#define VERBOSE_EVENTS 0
+#define VERBOSE_DISCARDED_EVENTS 0
#include
#include // pipe()
@@ -666,6 +667,18 @@
// Yes, really y2debug() - this may legitimately happen.
y2debug( "Discarding event from widget from foreign dialog" );
+#if VERBOSE_DISCARDED_EVENTS
+ y2debug( "Expected: %p (widgetRep %p), received: %p (widgetRep %p)",
+ YDialog::currentDialog(),
+ YDialog::currentDialog()->widgetRep(),
+ widgetEvent->widget()->findDialog(),
+ widgetEvent->widget()->findDialog()->widgetRep() );
+ y2debug( "Event widget: " );
+ widgetEvent->widget()->findDialog()->dumpWidgetTree();
+ y2debug( "Current dialog:" );
+ YDialog::currentDialog()->dumpWidgetTree();
+#endif
+
delete widgetEvent;
return 0;
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org