On 11/26/2009 03:46 PM, K. Haley wrote:
walt wrote:
On 11/26/2009 10:33 AM, K. Haley wrote:
I've added a testing branch to my repo at
git://github.com/lostcoder/pan2.git
This branch adds console support on windows for test programs,
--help& --debug.
The part that needs testing is the auto import of nzb files. There
is a new option --nzb-watch-dir to specify which path to watch for
new files. While I think the code is correct for windows& linux, I
have no idea if it will even compile on a mac.
Oopsy, typo on line 10 of notify-source.cc:
#include "notify-source.h>
Thanks for helping with pan.
I don't know how I missed that. Ah well, I've pushed the fix out.
The attached patch fixes my compile problems, but I have no idea if
pan now works the way you want it to. Do my changes make sense?
Thanks.
diff --git a/pan/gui/notify-source.cc b/pan/gui/notify-source.cc
index 84dda0a..d431eee 100644
--- a/pan/gui/notify-source.cc
+++ b/pan/gui/notify-source.cc
@@ -9,7 +9,7 @@
#include <pan/general/log.h>
#include "notify-source.h"
-using namepsace pan;
+using namespace pan;
namespace
{
@@ -39,7 +39,7 @@ namespace
return ptr ? true : false;
}
- operator =( char *txt )
+ gtext operator= ( char *txt )
{
if ( ptr )
g_free( ptr );
@@ -129,7 +129,7 @@ NotifySource* pan::notify_source_new( const std::string &path )
nzb = g_utf8_casefold( ".nzb", 4 );
//does path exist?
- if ( !g_file_test ( path.c_str(), G_FILE_TEST_IS_DIR )
+ if ( !g_file_test ( path.c_str(), G_FILE_TEST_IS_DIR ))
return NULL;
NotifySource *src = static_cast<NotifySource*> ( g_source_new ( &funcs, sizeof( NotifySource ) ) );
_______________________________________________
Pan-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/pan-users