summaryrefslogtreecommitdiff
path: root/gtk/gtkpagesetup.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-04-29 06:23:58 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-04-29 06:23:58 +0000
commit3c5bd522b36383afa704d39bf12963683a4663ea (patch)
tree0c3222b44bb43e6224c94e932620f740d990de85 /gtk/gtkpagesetup.h
parentea3667c49ca6ee6c692bc6fbf00d8769c80deca3 (diff)
downloadgtk+-3c5bd522b36383afa704d39bf12963683a4663ea.tar.gz
Add a new error code
2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintoperation.h: Add a new error code * gtk/gtk.symbols: * gtk/gtkpagesetup.[hc]: * gtk/gtkpapersize.[hc]: * gtk/gtkprintsettings.[hc]: Add functions to serialize and deserialize page setups and print settings to files and key files. (#344515, Christian Persch) * gtk/gtkpagesetupunixdialog.c: Adapt to the new functions. * tests/print-editor.c: Use the new functions to persist page setup and print settings. svn path=/trunk/; revision=17697
Diffstat (limited to 'gtk/gtkpagesetup.h')
-rw-r--r--gtk/gtkpagesetup.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkpagesetup.h b/gtk/gtkpagesetup.h
index f52e0bfeda..6de2ef5f3f 100644
--- a/gtk/gtkpagesetup.h
+++ b/gtk/gtkpagesetup.h
@@ -79,6 +79,18 @@ gdouble gtk_page_setup_get_page_width (GtkPageSetup *setup,
gdouble gtk_page_setup_get_page_height (GtkPageSetup *setup,
GtkUnit unit);
+/* Saving and restoring page setup */
+GtkPageSetup *gtk_page_setup_new_from_file (const gchar *file_name,
+ GError **error);
+gboolean gtk_page_setup_to_file (GtkPageSetup *setup,
+ const char *file_name,
+ GError **error);
+GtkPageSetup *gtk_page_setup_new_from_key_file (GKeyFile *key_file,
+ const gchar *group_name,
+ GError **error);
+void gtk_page_setup_to_key_file (GtkPageSetup *setup,
+ GKeyFile *key_file,
+ const gchar *group_name);
G_END_DECLS