diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-08-25 07:03:19 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-08-25 07:03:19 +0000 |
| commit | 5d6f51f32ca2356b0d6155015457a83e60b314e8 (patch) | |
| tree | 835131f8041d12103ea82dc6b23917443f61cd42 /src/sp-image.cpp | |
| parent | I peeled back my changes because of some deep error. (diff) | |
| download | inkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.tar.gz inkscape-5d6f51f32ca2356b0d6155015457a83e60b314e8.zip | |
peeled back the gboolean code as it hit on some complexity theory principles...
need to rethink and incrementally change gbooleans to bools
(bzr r1637)
Diffstat (limited to 'src/sp-image.cpp')
| -rw-r--r-- | src/sp-image.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sp-image.cpp b/src/sp-image.cpp index fe480b22b..5804089e6 100644 --- a/src/sp-image.cpp +++ b/src/sp-image.cpp @@ -119,7 +119,7 @@ namespace IO { class PushPull { public: - bool first; + gboolean first; FILE* fp; guchar* scratch; gsize size; @@ -135,9 +135,9 @@ public: offset(0), loader(0) {}; - bool readMore() + gboolean readMore() { - bool good = FALSE; + gboolean good = FALSE; if ( offset ) { g_memmove( scratch, scratch + offset, used - offset ); @@ -211,7 +211,7 @@ void user_read_data( png_structp png_ptr, png_bytep data, png_size_t length ) PushPull* youme = (PushPull*)png_get_io_ptr(png_ptr); gsize filled = 0; - bool canRead = TRUE; + gboolean canRead = TRUE; while ( filled < length && canRead ) { @@ -254,8 +254,8 @@ GdkPixbuf* pixbuf_new_from_file( const char *filename, GError **error ) // short buffer guchar scratch[1024]; - bool latter = FALSE; - bool isPng = FALSE; + gboolean latter = FALSE; + gboolean isPng = FALSE; png_structp pngPtr = NULL; png_infop infoPtr = NULL; //png_infop endPtr = NULL; @@ -375,7 +375,7 @@ GdkPixbuf* pixbuf_new_from_file( const char *filename, GError **error ) } } - bool ok = gdk_pixbuf_loader_close(loader, &err); + gboolean ok = gdk_pixbuf_loader_close(loader, &err); if ( ok ) { buf = gdk_pixbuf_loader_get_pixbuf( loader ); |
