Author: mvidner Date: Wed Aug 8 17:00:14 2007 New Revision: 40106 URL: http://svn.opensuse.org/viewcvs/yast?rev=40106&view=rev Log: Make the dummy UI instantiable for testsuite purposes. Modified: branches/tmp/mvidner/ui-as-namespace/core/VERSION branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.cc branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.h branches/tmp/mvidner/ui-as-namespace/core/libyui/src/YUIComponent.cc branches/tmp/mvidner/ui-as-namespace/core/package/yast2-core.changes Modified: branches/tmp/mvidner/ui-as-namespace/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/core/VERSION?rev=40106&r1=40105&r2=40106&view=diff ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/VERSION (original) +++ branches/tmp/mvidner/ui-as-namespace/core/VERSION Wed Aug 8 17:00:14 2007 @@ -1 +1 @@ -2.15.6.2 +2.15.6.3 Modified: branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.cc?rev=40106&r1=40105&r2=40106&view=diff ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.cc Wed Aug 8 17:00:14 2007 @@ -31,6 +31,12 @@ Y2Component* Y2CCDummyUI::provideNamespace(const char* name) { y2debug ("UI library namespace provider tries for '%s'", name); + // implementation shortcut: we only provide the UI namsepace and the UI component + return create(name); +} + +Y2Component* Y2CCDummyUI::create(const char* name) const +{ if (strcmp (name, "UI") == 0) { Y2Component* ret = YUIComponent::uiComponent (); Modified: branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.h?rev=40106&r1=40105&r2=40106&view=diff ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.h (original) +++ branches/tmp/mvidner/ui-as-namespace/core/libyui/src/Y2CCUI.h Wed Aug 8 17:00:14 2007 @@ -51,9 +51,15 @@ Y2CCDummyUI () : Y2CCUI (Y2ComponentBroker::PLUGIN) {} /** + * We provide the UI component + */ + virtual Y2Component *create(const char *name) const; + + /** * We provide the UI namespace */ virtual Y2Component *provideNamespace(const char *name); + }; Modified: branches/tmp/mvidner/ui-as-namespace/core/libyui/src/YUIComponent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/core/libyui/src/YUIComponent.cc?rev=40106&r1=40105&r2=40106&view=diff ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/libyui/src/YUIComponent.cc (original) +++ branches/tmp/mvidner/ui-as-namespace/core/libyui/src/YUIComponent.cc Wed Aug 8 17:00:14 2007 @@ -53,7 +53,7 @@ return; } - y2internal ("Setting UI component to '%s'", name().c_str()); + y2debug ("Setting UI component to '%s'", name().c_str()); _uiComponent = this; } Modified: branches/tmp/mvidner/ui-as-namespace/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/mvidner/ui-as-namespace/core/package/yast2-core.changes?rev=40106&r1=40105&r2=40106&view=diff ============================================================================== --- branches/tmp/mvidner/ui-as-namespace/core/package/yast2-core.changes (original) +++ branches/tmp/mvidner/ui-as-namespace/core/package/yast2-core.changes Wed Aug 8 17:00:14 2007 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Aug 8 16:59:33 CEST 2007 - mvidner@suse.cz + +- Make the dummy UI instantiable for testsuite purposes. +- 2.15.6.3 + +------------------------------------------------------------------- Mon Aug 6 15:16:00 CEST 2007 - mvidner@suse.cz - Increased the ag_background test suite timeout to prevent random -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org