|
From: CVS C. to T. <the...@li...> - 2011-10-08 19:44:37
|
Revision: 666
http://themis.svn.sourceforge.net/themis/?rev=666&view=rev
Author: mark_hellegers
Date: 2011-10-08 19:44:30 +0000 (Sat, 08 Oct 2011)
Log Message:
-----------
Moved the actual setting of the history depth to the app
Modified Paths:
--------------
trunk/themis/framework/PrefsWin.cpp
trunk/themis/framework/app.cpp
Modified: trunk/themis/framework/PrefsWin.cpp
===================================================================
--- trunk/themis/framework/PrefsWin.cpp 2011-10-08 19:18:10 UTC (rev 665)
+++ trunk/themis/framework/PrefsWin.cpp 2011-10-08 19:44:30 UTC (rev 666)
@@ -15,7 +15,6 @@
// Themis headers
#include "app.h"
-#include "win.h"
#include "commondefs.h"
#include "plugclass.h"
#include "GlobalHistory.h"
@@ -304,23 +303,8 @@
}
else {
/* tell all windows to update their tab history depths */
- Win* win = ((App*)be_app)->FirstWindow();
-
- if(win == NULL) {
- printf("PREFS: First Window not valid anymore!\n");
- break;
- }
-
- BMessenger* msgr = new BMessenger(NULL, win, NULL);
- msgr->SendMessage(RE_INIT_TABHISTORY);
-
- while(win->NextWindow() != NULL) {
- win = win->NextWindow();
- delete msgr;
- msgr = new BMessenger(NULL, win, NULL);
- msgr->SendMessage(RE_INIT_TABHISTORY);
- }
- delete msgr;
+ /* use the app to do this*/
+ be_app_messenger.SendMessage(RE_INIT_TABHISTORY);
}
break;
Modified: trunk/themis/framework/app.cpp
===================================================================
--- trunk/themis/framework/app.cpp 2011-10-08 19:18:10 UTC (rev 665)
+++ trunk/themis/framework/app.cpp 2011-10-08 19:44:30 UTC (rev 666)
@@ -279,6 +279,17 @@
break;
}
+ case RE_INIT_TABHISTORY :
+ {
+ Win * win = FirstWindow();
+
+ while (win != NULL) {
+ BMessenger msgr(NULL, win, NULL);
+ msgr.SendMessage(RE_INIT_TABHISTORY);
+ win = win->NextWindow();
+ }
+ break;
+ }
case PREFSWIN_CLOSE :
{
printf( "APP PREFSWIN_CLOSE\n" );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|