summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/cursors.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-10-05 21:43:44 +0200
committerRobin Gareus <robin@gareus.org>2015-10-05 22:15:17 +0200
commit97bd6db2b7c52d636fca9dc340aeb3f6cef7de4d (patch)
treeaa1d81caf3c4bbb83c4c4f0d225f4c2a3db22433 /libs/gtkmm2ext/cursors.cc
parentb9c8814959eb184fff3e5552e2928a156b62602d (diff)
remove i/ofstream from libardour
except: * audio-unit (ifstream is known to work on OSX) * evoral curve algorithm debugger * cycle-timer debug code * export_handler's CDMarker -> TODO
Diffstat (limited to 'libs/gtkmm2ext/cursors.cc')
-rw-r--r--libs/gtkmm2ext/cursors.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/gtkmm2ext/cursors.cc b/libs/gtkmm2ext/cursors.cc
index 9948fc667f..f8862835f6 100644
--- a/libs/gtkmm2ext/cursors.cc
+++ b/libs/gtkmm2ext/cursors.cc
@@ -18,8 +18,8 @@
*/
#include <sstream>
-#include <fstream>
+#include "pbd/gstdio_compat.h"
#include "pbd/error.h"
#include "pbd/compose.h"
@@ -41,13 +41,13 @@ CursorInfo::CursorInfo (const std::string& n, int hotspot_x, int hotspot_y)
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;