]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkpagesetup.h
treeview: fix a critical warning
[~andy/gtk] / gtk / gtkpagesetup.h
index f52e0bfedae83ee11eef81e64f099c82f46c18e9..86a414e7ab3a25d393621ac2aa28c3a8132bd1ab 100644 (file)
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef __GTK_PAGE_SETUP_H__
 #define __GTK_PAGE_SETUP_H__
 
-#include <glib-object.h>
-#include "gtkenums.h"
-#include "gtkpapersize.h"
+
+#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
+#error "Only <gtk/gtk.h> can be included directly."
+#endif
+
+#include <gtk/gtkpapersize.h>
+
 
 G_BEGIN_DECLS
 
@@ -79,6 +81,25 @@ 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_load_file         (GtkPageSetup        *setup,
+                                                    const char          *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);
+gboolean           gtk_page_setup_load_key_file     (GtkPageSetup        *setup,
+                                                    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