diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-06-12 04:39:55 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-12 04:39:55 +0000 |
commit | 01e3463f91fa8d4d83742a043a0685205fc8ae65 (patch) | |
tree | 74c1e9899c444cb88fc902f9ece98db49c56633e /gtk/gtkprintjob.c | |
parent | 4d01cb2ca437f6a78d49c63bf0fc461fc3da9f59 (diff) | |
download | gtk+-01e3463f91fa8d4d83742a043a0685205fc8ae65.tar.gz |
Cosmetic cleanups.
2006-06-12 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintjob.c:
* gtk/gtkprintbackend.c:
* gtk/gtkpagesetupunixdialog.c:
* gtk/gtkprintunixdialog.c: Cosmetic cleanups.
Diffstat (limited to 'gtk/gtkprintjob.c')
-rw-r--r-- | gtk/gtkprintjob.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gtk/gtkprintjob.c b/gtk/gtkprintjob.c index 522256df34..534b78dbd9 100644 --- a/gtk/gtkprintjob.c +++ b/gtk/gtkprintjob.c @@ -47,7 +47,7 @@ struct _GtkPrintJobPrivate { gchar *title; - int spool_file_fd; + gint spool_file_fd; cairo_surface_t *surface; GtkPrintStatus status; @@ -457,8 +457,8 @@ gtk_print_job_get_surface (GtkPrintJob *job, g_return_val_if_fail (priv->spool_file_fd == -1, NULL); priv->spool_file_fd = g_file_open_tmp ("gtkprint_XXXXXX", - &filename, - error); + &filename, + error); if (priv->spool_file_fd == -1) return NULL; @@ -470,8 +470,8 @@ gtk_print_job_get_surface (GtkPrintJob *job, height = gtk_paper_size_get_height (paper_size, GTK_UNIT_POINTS); priv->surface = _gtk_printer_create_cairo_surface (priv->printer, - width, height, - priv->spool_file_fd); + width, height, + priv->spool_file_fd); return priv->surface; } @@ -493,7 +493,7 @@ gtk_print_job_get_surface (GtkPrintJob *job, */ void gtk_print_job_set_track_print_status (GtkPrintJob *job, - gboolean track_status) + gboolean track_status) { GtkPrintJobPrivate *priv; @@ -501,7 +501,14 @@ gtk_print_job_set_track_print_status (GtkPrintJob *job, priv = job->priv; - priv->track_print_status = track_status; + track_status = track_status != FALSE; + + if (priv->track_print_status != track_status) + { + priv->track_print_status = track_status; + + g_object_notify (job, "track-status"); + } } /** |