diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-02-08 01:43:59 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-02-08 01:43:59 +0000 |
commit | 511b8ed5a686a49c5d0801e33ab240cc89cfb9f2 (patch) | |
tree | 9c518556dbcb4b7b6eb05ab6a1f8eaea16d463bd /examples/viewer-main.c | |
parent | e5d3dda3587222c7bbe43da45151ec17bbdb88e5 (diff) | |
download | pango-511b8ed5a686a49c5d0801e33ab240cc89cfb9f2.tar.gz |
Bug 330289 – Fix build with gcc 2.95 (pangox.c)
2006-02-07 Behdad Esfahbod <behdad@gnome.org>
Bug 330289 – Fix build with gcc 2.95 (pangox.c)
* pango/pangox.c (get_subfonts_foreach): Fixed.
Diffstat (limited to 'examples/viewer-main.c')
-rw-r--r-- | examples/viewer-main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/viewer-main.c b/examples/viewer-main.c index 7823025b..cba50564 100644 --- a/examples/viewer-main.c +++ b/examples/viewer-main.c @@ -62,13 +62,13 @@ main (int argc, if (opt_output) { - if (!view->save) - fail ("%s viewer backend does not support saving", view->name); + if (!view->write) + fail ("%s viewer backend does not support writing", view->name); else { FILE *stream; - if (view->save_suffix && g_str_has_suffix (opt_output, view->save_suffix)) + if (view->write_suffix && g_str_has_suffix (opt_output, view->write_suffix)) { stream = g_fopen (opt_output, "wb"); if (!stream) @@ -91,7 +91,7 @@ main (int argc, fail ("When running ImageMagick 'convert' command: %s\n", error->message); stream = fdopen (fd, "wb"); } - view->save (instance, surface, stream, width, height); + view->write (instance, surface, stream, width, height); fclose (stream); } } @@ -129,8 +129,8 @@ main (int argc, GError *error = NULL; GPid pid; - if (!view->save) - fail ("%s viewer backend does not support displaying or saving", view->name); + if (!view->write) + fail ("%s viewer backend does not support displaying or writing", view->name); display_argv[2] = title; if (!g_spawn_async_with_pipes (NULL, (gchar **)display_argv, NULL, @@ -141,7 +141,7 @@ main (int argc, NULL, NULL, &pid, &fd, NULL, NULL, &error)) fail ("When running ImageMagick 'display' command: %s\n", error->message); stream = fdopen (fd, "wb"); - view->save (instance, surface, stream, width, height); + view->write (instance, surface, stream, width, height); fclose (stream); #ifdef G_OS_UNIX waitpid (pid, NULL, 0); |