diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-02-12 14:11:14 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-02-12 14:11:14 +0800 |
commit | 9862306af9b5019372cbcb6693b5ae1d56297776 (patch) | |
tree | 25b7efb0d1b3478601a172e289f0360df96c0f0a /widgets/misc | |
parent | 0670e0a9070dac6359d34822f7433e9502fc1d22 (diff) | |
download | gsoc2013-evolution-9862306af9b5019372cbcb6693b5ae1d56297776.tar.gz gsoc2013-evolution-9862306af9b5019372cbcb6693b5ae1d56297776.tar.zst gsoc2013-evolution-9862306af9b5019372cbcb6693b5ae1d56297776.zip |
Print migration updates from Ebby Wiselyn.
svn path=/trunk/; revision=33201
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/misc/e-printable.c | 7 | ||||
-rw-r--r-- | widgets/misc/e-printable.h | 13 |
3 files changed, 19 insertions, 9 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 635a24c065..7763bc034a 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,11 @@ +2007-02-12 Srinivasa Ragavan <sragavan@novell.com> + + ** Print migration updates from Ebby Wiselyn + + * e-printable.c: (e_printable_print_page), (e_printable_height), + (e_printable_will_fit): + * e-printable.h: + 2007-01-08 Harish Krishnaswamy <kharish@novell.com> * e-filter-bar.c: (build_items): Initialize ESearchBarItem diff --git a/widgets/misc/e-printable.c b/widgets/misc/e-printable.c index ed12c9e488..b9d9221404 100644 --- a/widgets/misc/e-printable.c +++ b/widgets/misc/e-printable.c @@ -31,6 +31,7 @@ #include "e-printable.h" + #define EP_CLASS(e) ((EPrintableClass *)((GtkObject *)e)->klass) #define PARENT_TYPE GTK_TYPE_OBJECT @@ -126,7 +127,7 @@ e_printable_new(void) void e_printable_print_page (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble height, gboolean quantized) @@ -169,7 +170,7 @@ e_printable_reset (EPrintable *e_printable) gdouble e_printable_height (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized) @@ -192,7 +193,7 @@ e_printable_height (EPrintable *e_printable, gboolean e_printable_will_fit (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized) diff --git a/widgets/misc/e-printable.h b/widgets/misc/e-printable.h index 0c665f89c2..2d3140c99f 100644 --- a/widgets/misc/e-printable.h +++ b/widgets/misc/e-printable.h @@ -26,6 +26,7 @@ #include <gtk/gtkobject.h> #include <libgnomeprint/gnome-print.h> +#include <gtk/gtk.h> G_BEGIN_DECLS @@ -46,10 +47,10 @@ typedef struct { * Signals */ - void (*print_page) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble height, gboolean quantized); + void (*print_page) (EPrintable *etm, GtkPrintContext *context, gdouble width, gdouble height, gboolean quantized); gboolean (*data_left) (EPrintable *etm); void (*reset) (EPrintable *etm); - gdouble (*height) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized); + gdouble (*height) (EPrintable *etm, GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized); /* e_printable_will_fit (ep, ...) should be equal in value to * (e_printable_print_page (ep, ...), @@ -58,7 +59,7 @@ typedef struct { * position of the printable. */ - gboolean (*will_fit) (EPrintable *etm, GnomePrintContext *context, gdouble width, gdouble max_height, gboolean quantized); + gboolean (*will_fit) (EPrintable *etm, GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized); } EPrintableClass; GtkType e_printable_get_type (void); @@ -68,19 +69,19 @@ EPrintable *e_printable_new (void); /* * Routines for emitting signals on the e_table */ void e_printable_print_page (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble height, gboolean quantized); gboolean e_printable_data_left (EPrintable *e_printable); void e_printable_reset (EPrintable *e_printable); gdouble e_printable_height (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized); gboolean e_printable_will_fit (EPrintable *e_printable, - GnomePrintContext *context, + GtkPrintContext *context, gdouble width, gdouble max_height, gboolean quantized); |