diff options
Diffstat (limited to 'src/foomatic/paper_sizes.c')
-rw-r--r-- | src/foomatic/paper_sizes.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/foomatic/paper_sizes.c b/src/foomatic/paper_sizes.c index 2165875..e22f5fd 100644 --- a/src/foomatic/paper_sizes.c +++ b/src/foomatic/paper_sizes.c @@ -1,5 +1,5 @@ /* - * "$Id: paper_sizes.c,v 1.4 2001/09/02 13:30:26 rlk Exp $" + * "$Id: paper_sizes.c,v 1.8 2004/09/17 18:38:12 rleigh Exp $" * * Dump the per-printer options for Grant Taylor's *-omatic database * @@ -24,23 +24,18 @@ #include <config.h> #endif #include <stdio.h> -#ifdef INCLUDE_GIMP_PRINT_H -#include INCLUDE_GIMP_PRINT_H -#else -#include <gimp-print/gimp-print.h> -#endif -#include "../../lib/libprintut.h" +#include <gutenprint/gutenprint.h> int main(int argc, char **argv) { int i; + + stp_init(); for (i = 0; i < stp_known_papersizes(); i++) { - const stp_papersize_t p = stp_get_papersize_by_index(i); - printf("%s %d %d\n", stp_papersize_get_name(p), - stp_papersize_get_width(p), - stp_papersize_get_height(p)); + const stp_papersize_t *p = stp_get_papersize_by_index(i); + printf("%s %d %d\n", p->name, p->width, p->height); } return 0; } |