diff options
author | Marek Kasik <mkasik@redhat.com> | 2014-10-06 12:37:56 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2014-10-10 13:40:21 +0200 |
commit | 6bdaa95164119182dac0ef710aeb1dc13d9d11dc (patch) | |
tree | b20afc02dd4cb4906246020c4cc068beaba505e0 /gtk/gtkpapersize.h | |
parent | ccbb51dff1209ac3d5134c242b13b19fd08b4cc5 (diff) | |
download | gtk+-6bdaa95164119182dac0ef710aeb1dc13d9d11dc.tar.gz |
Create paper size from IPP media name
Add function gtk_paper_size_new_from_ipp() which looks for
given name in standard paper size names list and create appropriate
GtkPaperSize.
https://bugzilla.gnome.org/show_bug.cgi?id=725441
Diffstat (limited to 'gtk/gtkpapersize.h')
-rw-r--r-- | gtk/gtkpapersize.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkpapersize.h b/gtk/gtkpapersize.h index fcd038b578..1e9853ac5c 100644 --- a/gtk/gtkpapersize.h +++ b/gtk/gtkpapersize.h @@ -95,6 +95,10 @@ GtkPaperSize *gtk_paper_size_new_from_ppd (const gchar *ppd_name, gdouble width, gdouble height); GDK_AVAILABLE_IN_ALL +GtkPaperSize *gtk_paper_size_new_from_ipp (const gchar *ipd_name, + gdouble width, + gdouble height); +GDK_AVAILABLE_IN_ALL GtkPaperSize *gtk_paper_size_new_custom (const gchar *name, const gchar *display_name, gdouble width, @@ -125,6 +129,8 @@ GDK_AVAILABLE_IN_ALL gdouble gtk_paper_size_get_height (GtkPaperSize *size, GtkUnit unit); GDK_AVAILABLE_IN_ALL gboolean gtk_paper_size_is_custom (GtkPaperSize *size); +GDK_AVAILABLE_IN_ALL +gboolean gtk_paper_size_is_ipp (GtkPaperSize *size); /* Only for custom sizes: */ GDK_AVAILABLE_IN_ALL |