diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-04-23 05:48:04 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-23 05:48:04 +0000 |
commit | 935482e3b2fceba53fea4725c18ec4923c340837 (patch) | |
tree | 280ca9cec2db19c3d50a0f873b3db34822ba78ab /gtk/gtkpagesetup.h | |
parent | 46548ae53ade695005ce254ce3df3649031c1966 (diff) | |
download | gtk+-935482e3b2fceba53fea4725c18ec4923c340837.tar.gz |
Add gtkprintutils.[hc]
2006-04-23 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am: Add gtkprintutils.[hc]
* gtk/gtkprintutils.[hc]: New files, move the unit conversion
functions here.
* gtk/gtkpagesetupunixdialog.c:
* gtk/gtkprintsettings.c:
* gtk/gtkpagesetup.c:
* gtk/gtkpapersize.c: Replace all static copies of to_mm/from_mm
by the copies in gtkprintutils.c.
* gtk/gtkpagesetup.[hc]: Use g types, add documentation.
Diffstat (limited to 'gtk/gtkpagesetup.h')
-rw-r--r-- | gtk/gtkpagesetup.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gtk/gtkpagesetup.h b/gtk/gtkpagesetup.h index db617a2c76..f52e0bfeda 100644 --- a/gtk/gtkpagesetup.h +++ b/gtk/gtkpagesetup.h @@ -42,41 +42,41 @@ void gtk_page_setup_set_orientation (GtkPageSetup *setup, GtkPaperSize * gtk_page_setup_get_paper_size (GtkPageSetup *setup); void gtk_page_setup_set_paper_size (GtkPageSetup *setup, GtkPaperSize *size); -double gtk_page_setup_get_top_margin (GtkPageSetup *setup, +gdouble gtk_page_setup_get_top_margin (GtkPageSetup *setup, GtkUnit unit); void gtk_page_setup_set_top_margin (GtkPageSetup *setup, - double margin, + gdouble margin, GtkUnit unit); -double gtk_page_setup_get_bottom_margin (GtkPageSetup *setup, +gdouble gtk_page_setup_get_bottom_margin (GtkPageSetup *setup, GtkUnit unit); void gtk_page_setup_set_bottom_margin (GtkPageSetup *setup, - double margin, + gdouble margin, GtkUnit unit); -double gtk_page_setup_get_left_margin (GtkPageSetup *setup, +gdouble gtk_page_setup_get_left_margin (GtkPageSetup *setup, GtkUnit unit); void gtk_page_setup_set_left_margin (GtkPageSetup *setup, - double margin, + gdouble margin, GtkUnit unit); -double gtk_page_setup_get_right_margin (GtkPageSetup *setup, +gdouble gtk_page_setup_get_right_margin (GtkPageSetup *setup, GtkUnit unit); void gtk_page_setup_set_right_margin (GtkPageSetup *setup, - double margin, + gdouble margin, GtkUnit unit); -void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup, - GtkPaperSize *size); +void gtk_page_setup_set_paper_size_and_default_margins (GtkPageSetup *setup, + GtkPaperSize *size); /* These take orientation, but not margins into consideration */ -double gtk_page_setup_get_paper_width (GtkPageSetup *setup, +gdouble gtk_page_setup_get_paper_width (GtkPageSetup *setup, GtkUnit unit); -double gtk_page_setup_get_paper_height (GtkPageSetup *setup, +gdouble gtk_page_setup_get_paper_height (GtkPageSetup *setup, GtkUnit unit); /* These take orientation, and margins into consideration */ -double gtk_page_setup_get_page_width (GtkPageSetup *setup, +gdouble gtk_page_setup_get_page_width (GtkPageSetup *setup, GtkUnit unit); -double gtk_page_setup_get_page_height (GtkPageSetup *setup, +gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup, GtkUnit unit); |