Mercurial > geeqie.yaz
diff src/print.c @ 1000:4fe8f9656107
For the sake of consistency, use glib basic types everywhere.
author | zas_ |
---|---|
date | Tue, 26 Aug 2008 22:22:51 +0000 |
parents | a7289f9e8d29 |
children | 616b14da08c2 |
line wrap: on
line diff
--- a/src/print.c Tue Aug 26 21:19:33 2008 +0000 +++ b/src/print.c Tue Aug 26 22:22:51 2008 +0000 @@ -486,7 +486,7 @@ static PaperUnits paper_unit_default(void) { - const char *result; + const gchar *result; #if 0 /* this is not used because it is not even slightly portable */ #include <langinfo.h> @@ -520,7 +520,7 @@ static gint print_preview_unit(gdouble points) { - return (int)(points / PRINT_PREVIEW_SCALE); + return (gint)(points / PRINT_PREVIEW_SCALE); } static void print_proof_size(PrintWindow *pw, gdouble *width, gdouble *height) @@ -956,7 +956,7 @@ static sig_atomic_t pipe_handler_error = FALSE; static PipeError *pipe_handler_data = NULL; -static void pipe_handler_sigpipe_cb(int fd) +static void pipe_handler_sigpipe_cb(gint fd) { pipe_handler_error = TRUE; } @@ -1609,7 +1609,7 @@ klass = G_OBJECT_CLASS(GTK_SETTINGS_GET_CLASS(settings)); if (g_object_class_find_property(klass, "gtk-xft-dpi")) { - int int_dpi; + gint int_dpi; g_object_get(settings, "gtk-xft-dpi", &int_dpi, NULL); dpi = (gdouble)int_dpi / PANGO_SCALE; }