*/
#include <sstream>
-#include <fstream>
+#include "pbd/gstdio_compat.h"
#include "pbd/error.h"
#include "pbd/compose.h"
#include "gtkmm2ext/cursors.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace Gtkmm2ext;
int
CursorInfo::load_cursor_info (const std::string& path)
{
- std::ifstream infofile (path.c_str());
-
- if (!infofile) {
- return -1;
- }
+ gchar *buf = NULL;
+ if (!g_file_get_contents (path.c_str(), &buf, NULL, NULL)) {
+ return -1;
+ }
+ std::stringstream infofile (buf);
+ g_free (buf);
- std::stringstream s;
std::string name;
int x;
int y;