projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update fr.po
[ardour.git]
/
gtk2_ardour
/
nag.cc
diff --git
a/gtk2_ardour/nag.cc
b/gtk2_ardour/nag.cc
index 4502c3c8a2289f25df0a0120187ea2e6017f4ca6..61a8e1a9a475036f839e32b42b6c8aa7266d4e24 100644
(file)
--- a/
gtk2_ardour/nag.cc
+++ b/
gtk2_ardour/nag.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2012 Paul Davis
+ Copyright (C) 2012 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-21,7
+21,7
@@
#include "gtk2ardour-config.h"
#endif
#include "gtk2ardour-config.h"
#endif
-#include
<fstream>
+#include
"pbd/gstdio_compat.h"
#include <gtkmm/stock.h>
#include "pbd/openuri.h"
#include <gtkmm/stock.h>
#include "pbd/openuri.h"
@@
-136,7
+136,7
@@
NagScreen::mark_never_again ()
path = Glib::build_filename (user_config_directory(), ".nevernag");
path = Glib::build_filename (user_config_directory(), ".nevernag");
-
ofstream nagfile (path.c_str()
);
+
g_file_set_contents (path.c_str(), "", -1, NULL
);
}
void
}
void
@@
-146,7
+146,7
@@
NagScreen::mark_subscriber ()
path = Glib::build_filename (user_config_directory(), ".askedaboutsub");
path = Glib::build_filename (user_config_directory(), ".askedaboutsub");
-
ofstream subsfile (path.c_str()
);
+
g_file_set_contents (path.c_str(), "", -1, NULL
);
}
void
}
void
@@
-156,7
+156,7
@@
NagScreen::mark_affirmed_subscriber ()
path = Glib::build_filename (user_config_directory(), ".isubscribe");
path = Glib::build_filename (user_config_directory(), ".isubscribe");
-
ofstream subsfile (path.c_str()
);
+
g_file_set_contents (path.c_str(), "", -1, NULL
);
}
bool
}
bool