summaryrefslogtreecommitdiff
path: root/gtk/gtkprintsettings.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/gtkprintsettings.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/gtkprintsettings.h')
-rw-r--r--gtk/gtkprintsettings.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkprintsettings.h b/gtk/gtkprintsettings.h
index 50d7ef7f53..0e731187c8 100644
--- a/gtk/gtkprintsettings.h
+++ b/gtk/gtkprintsettings.h
@@ -46,6 +46,18 @@ GType gtk_print_settings_get_type (void) G_GNUC_CONST;
GtkPrintSettings *gtk_print_settings_new (void);
GtkPrintSettings *gtk_print_settings_copy (GtkPrintSettings *other);
+
+GtkPrintSettings *gtk_print_settings_new_from_file (const gchar *file_name,
+ GError **error);
+gboolean gtk_print_settings_to_file (GtkPrintSettings *settings,
+ const gchar *file_name,
+ GError **error);
+GtkPrintSettings *gtk_print_settings_new_from_key_file (GKeyFile *key_file,
+ const gchar *group_name,
+ GError **error);
+void gtk_print_settings_to_key_file (GtkPrintSettings *settings,
+ GKeyFile *key_file,
+ const gchar *group_name);
gboolean gtk_print_settings_has_key (GtkPrintSettings *settings,
const gchar *key);
G_CONST_RETURN gchar *gtk_print_settings_get (GtkPrintSettings *settings,