Mark paper sizes in the PWG "custom" namespace as custom. Add a link to

2007-04-29  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
        in the PWG "custom" namespace as custom. Add a link to
        the spec in the docs.  (#426416, Andreas Guelzow)



svn path=/trunk/; revision=17718
This commit is contained in:
Matthias Clasen 2007-04-30 00:19:19 +00:00 committed by Matthias Clasen
parent 69b57df8ce
commit 177f9aec9c
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpapersize.c (gtk_paper_size_new): Mark paper sizes
in the PWG "custom" namespace as custom. Add a link to
the spec in the docs. (#426416, Andreas Guelzow)
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkprintoperation.c (gtk_print_operation_run): Document

View File

@ -193,7 +193,7 @@ gtk_paper_size_new_from_info (const PaperInfo *info)
* @name: a paper size name, or %NULL
*
* Creates a new #GtkPaperSize object by parsing a
* PWG 5101.1-2002 PWG <!-- FIXME link here -->
* <ulink url="ftp://ftp.pwg.org/pub/pwg/candidates/cs-pwgmsn10-20020226-5101.1.pdf">PWG 5101.1-2002</ulink>
* paper name.
*
* If @name is %NULL, the default paper size is returned,
@ -223,6 +223,8 @@ gtk_paper_size_new (const gchar *name)
size->height = height;
size->name = short_name;
size->display_name = g_strdup (short_name);
if (strncmp (short_name, "custom", 6) == 0)
size->is_custom = TRUE;
}
else
{