diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-02-20 13:24:33 +0000 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-05-03 18:30:48 -0700 |
commit | 88c63903a5eeac40ef2cd210468705c20f580596 (patch) | |
tree | 4baae0ab092059cd13105022e1faea8459167bfa /gtk/gtkpapersize.c | |
parent | 154ce014a8ff6961ace3a78359f3ca9aed2e681b (diff) | |
download | gtk+-88c63903a5eeac40ef2cd210468705c20f580596.tar.gz |
printing: Rename GTK_UNIT_PIXEL to GTK_UNIT_NONE
...and document that many functions don't accept "none" as a unit.
https://bugzilla.gnome.org/show_bug.cgi?id=460908
Diffstat (limited to 'gtk/gtkpapersize.c')
-rw-r--r-- | gtk/gtkpapersize.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk/gtkpapersize.c b/gtk/gtkpapersize.c index deb4ea3175..c4e7e0cd85 100644 --- a/gtk/gtkpapersize.c +++ b/gtk/gtkpapersize.c @@ -348,7 +348,7 @@ gtk_paper_size_new_from_ppd (const gchar *ppd_name, * @display_name: the human-readable name * @width: the paper width, in units of @unit * @height: the paper height, in units of @unit - * @unit: the unit for @width and @height + * @unit: the unit for @width and @height. not %GTK_UNIT_NONE. * * Creates a new #GtkPaperSize object with the * given parameters. @@ -367,7 +367,7 @@ gtk_paper_size_new_custom (const gchar *name, { GtkPaperSize *size; g_return_val_if_fail (name != NULL, NULL); - g_return_val_if_fail (unit != GTK_UNIT_PIXEL, NULL); + g_return_val_if_fail (unit != GTK_UNIT_NONE, NULL); size = g_slice_new0 (GtkPaperSize); @@ -570,7 +570,7 @@ gtk_paper_size_get_ppd_name (GtkPaperSize *size) /** * gtk_paper_size_get_width: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the paper width of the #GtkPaperSize, in * units of @unit. @@ -589,7 +589,7 @@ gtk_paper_size_get_width (GtkPaperSize *size, /** * gtk_paper_size_get_height: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the paper height of the #GtkPaperSize, in * units of @unit. @@ -717,7 +717,7 @@ gtk_paper_size_get_default (void) /** * gtk_paper_size_get_default_top_margin: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the default top margin for the #GtkPaperSize. * @@ -738,7 +738,7 @@ gtk_paper_size_get_default_top_margin (GtkPaperSize *size, /** * gtk_paper_size_get_default_bottom_margin: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the default bottom margin for the #GtkPaperSize. * @@ -767,7 +767,7 @@ gtk_paper_size_get_default_bottom_margin (GtkPaperSize *size, /** * gtk_paper_size_get_default_left_margin: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the default left margin for the #GtkPaperSize. * @@ -788,7 +788,7 @@ gtk_paper_size_get_default_left_margin (GtkPaperSize *size, /** * gtk_paper_size_get_default_right_margin: * @size: a #GtkPaperSize object - * @unit: the unit for the return value + * @unit: the unit for the return value, not %GTK_UNIT_NONE * * Gets the default right margin for the #GtkPaperSize. * |