Update of /cvsroot/pywin32/pywin32/Pythonwin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9479
Modified Files:
win32app.cpp Win32app.h win32uimodule.cpp
Log Message:
[ 1043734 ] Fixed win32ui.GetRecentFileList
Index: win32uimodule.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32uimodule.cpp,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** win32uimodule.cpp 7 Oct 2004 08:45:24 -0000 1.29
--- win32uimodule.cpp 10 Jan 2006 04:39:43 -0000 1.30
***************
*** 1155,1159 ****
CProtectedWinApp *pApp = GetProtectedApp();
if (!pApp) return NULL;
! int cnt = pApp->GetProfileInt("Settings", "Recent File List Size", _AFX_MRU_COUNT);
PyObject *list = PyList_New(cnt);
if (list==NULL) {
--- 1155,1159 ----
CProtectedWinApp *pApp = GetProtectedApp();
if (!pApp) return NULL;
! int cnt = pApp->GetRecentCount();
PyObject *list = PyList_New(cnt);
if (list==NULL) {
Index: win32app.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32app.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** win32app.cpp 20 Jan 2004 22:28:53 -0000 1.4
--- win32app.cpp 10 Jan 2006 04:39:43 -0000 1.5
***************
*** 29,32 ****
--- 29,37 ----
//
//////////////////////////////////////////////////////////////////////
+ int CProtectedWinApp::GetRecentCount()
+ {
+ return m_pRecentFileList->GetSize();
+ }
+
CString CProtectedWinApp::GetRecentFileName(int index)
{
Index: Win32app.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/Win32app.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Win32app.h 20 Jan 2004 22:28:50 -0000 1.3
--- Win32app.h 10 Jan 2006 04:39:43 -0000 1.4
***************
*** 47,50 ****
--- 47,51 ----
public:
// how do I change from protected to public?
+ int GetRecentCount();
CString GetRecentFileName(int index);
void RemoveRecentFile(int index);
|