mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
69b57df8ce
commit
177f9aec9c
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user