]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/prefs-model.h
2009-02-21 JimEvins <evins@snaught.com>
[glabels] / glabels2 / src / prefs-model.h
index b2983097eaafa3cee08b69f4e01354b91bbda04f..23937fd9736607c68ee41e563e492f39617cde78 100644 (file)
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
+
 /*
  *  (GLABELS) Label and Business Card Creation program for GNOME
  *
@@ -23,9 +25,8 @@
 #define __PREFS_MODEL_H__
 
 #include <glib-object.h>
-#include <gtk/gtkenums.h>
 #include <gconf/gconf-client.h>
-#include <libgnomeprint/gnome-font.h>
+#include <pango/pango.h>
 #include <libglabels/enums.h>
 
 G_BEGIN_DECLS
@@ -56,7 +57,7 @@ struct _glPrefsModel {
        GConfClient      *gconf_client;
 
        /* Units */
-       glUnitsType       units;
+       lglUnitsType      units;
 
        /* Page size */
        gchar            *default_page_size;
@@ -64,10 +65,10 @@ struct _glPrefsModel {
        /* Text properties */
        gchar            *default_font_family;
        gdouble           default_font_size;
-       GnomeFontWeight   default_font_weight;
+       PangoWeight       default_font_weight;
        gboolean          default_font_italic_flag;
        guint             default_text_color;
-       GtkJustification  default_text_alignment;
+       PangoAlignment    default_text_alignment;
        gdouble           default_text_line_spacing;
        
        /* Line properties */
@@ -80,15 +81,12 @@ struct _glPrefsModel {
        /* User Interface/Main Toolbar */
        gboolean          main_toolbar_visible;
        glToolbarSetting  main_toolbar_buttons_style; 
-       gboolean          main_toolbar_view_tooltips;
 
        /* User Interface/Drawing Toolbar */
        gboolean          drawing_toolbar_visible;
-       gboolean          drawing_toolbar_view_tooltips;
 
        /* User Interface/Property Toolbar */
        gboolean          property_toolbar_visible;
-       gboolean          property_toolbar_view_tooltips;
 
        /* View properties */
        gboolean          grid_visible;
@@ -96,6 +94,10 @@ struct _glPrefsModel {
 
        /* Recent files */
        gint              max_recents;
+
+       /* Recent templates */
+        GSList           *recent_templates;
+       gint              max_recent_templates;
 };
 
 struct _glPrefsModelClass {