[Aptitude-svn-commit] r3459 - in branches/aptitude-0.3/aptitude: . src/vscreen
Daniel Burrows
dburrows@costa.debian.org
Sun, 26 Jun 2005 16:56:23 +0000
Author: dburrows
Date: Sun Jun 26 16:56:21 2005
New Revision: 3459
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h
Log:
Accept wint_t values in the character dispatch mechanism.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sun Jun 26 16:56:21 2005
@@ -1,5 +1,10 @@
2005-06-26 Daniel Burrows <dburrows@debian.org>
+ * src/vscreen/vscreen_widget.cc, src/vscreen/vscreen_widget.h:
+
+ Modify the prototypes of dispatch_char and handle_char to
+ take wint_t values.
+
* src/vscreen/vs_button.h:
Doh, actually overload vs_button::vs_button.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.cc Sun Jun 26 16:56:21 2005
@@ -193,7 +193,7 @@
return !auxillary_bindings.empty();
}
-bool vscreen_widget::handle_char(chtype ch)
+bool vscreen_widget::handle_char(wint_t ch)
{
bool rval=false;
@@ -209,7 +209,7 @@
return rval;
}
-bool vscreen_widget::dispatch_char(chtype ch)
+bool vscreen_widget::dispatch_char(wint_t ch)
{
bool rval=false;
Modified: branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vscreen_widget.h Sun Jun 26 16:56:21 2005
@@ -127,7 +127,7 @@
// Returns true if it consumed the character (otherwise, it'll be processed
// further)
- virtual bool handle_char(chtype ch);
+ virtual bool handle_char(wint_t ch);
public:
static void handle_pending_deletes();
@@ -161,7 +161,7 @@
// This should be called when an arbitrary widget is to have a character
// sent to it.
- bool dispatch_char(chtype);
+ bool dispatch_char(wint_t);
// This should be called when an arbitrary widget is to have a mouse event
// sent to it. Override it to change mousing behavior.