Author: gs
Date: Thu May 7 17:17:18 2009
New Revision: 57102
URL: http://svn.opensuse.org/viewcvs/yast?rev=57102&view=rev
Log:
make NCursesEvent property 'widget' a YWidget *
(instead NCWidget *)
Modified:
trunk/ncurses/src/NCDialog.cc
trunk/ncurses/src/NCurses.h
Modified: trunk/ncurses/src/NCDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCDialog.cc?rev=57102&r1=57101&r2=57102&view=diff
==============================================================================
--- trunk/ncurses/src/NCDialog.cc (original)
+++ trunk/ncurses/src/NCDialog.cc Thu May 7 17:17:18 2009
@@ -1269,7 +1269,7 @@
if ( wActive->isValid() )
{
ret = wHandleInput( ch );
- ret.widget = wActive;
+ ret.widget = dynamic_cast(wActive);
}
return ret;
@@ -1289,7 +1289,7 @@
if ( wActive->isValid() )
{
ret = wHandleHotkey( key );
- ret.widget = wActive;
+ ret.widget = dynamic_cast(wActive);
}
return ret;
Modified: trunk/ncurses/src/NCurses.h
URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCurses.h?rev=57102&r1=57101&r2=57102&view=diff
==============================================================================
--- trunk/ncurses/src/NCurses.h (original)
+++ trunk/ncurses/src/NCurses.h Thu May 7 17:17:18 2009
@@ -86,7 +86,7 @@
};
Type type;
- NCWidget * widget;
+ YWidget * widget;
YMenuItem * selection; // used for MenuEvent (the menu selection)
string result; // can be used for any (string) result
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org