diff --git a/ChangeLog b/ChangeLog index 09f5c69966..8a9b80b20e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-29 Matthias Clasen + + * 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 * gtk/gtkprintoperation.c (gtk_print_operation_run): Document diff --git a/gtk/gtkpapersize.c b/gtk/gtkpapersize.c index c5613275ab..c0045dc3df 100644 --- a/gtk/gtkpapersize.c +++ b/gtk/gtkpapersize.c @@ -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 + * PWG 5101.1-2002 * 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 {