]> git.sur5r.net Git - glabels/blobdiff - glabels2/src/prefs.c
2007-09-27 Jim Evins <evins@snaught.com>
[glabels] / glabels2 / src / prefs.c
index 23636c89516d758fa1d90a523db9303018d71d57..c2ef4e3a40457f949505d6b46b55f24988721754 100644 (file)
@@ -80,7 +80,7 @@ gl_prefs_get_page_size (void)
 /****************************************************************************/
 /* Get desired units.                                                       */
 /****************************************************************************/
-glUnitsType
+lglUnitsType
 gl_prefs_get_units (void)
 {
        return gl_prefs->units;
@@ -94,11 +94,11 @@ gl_prefs_get_units_per_point (void)
 {
 
        switch (gl_prefs->units) {
-       case GL_UNITS_POINT:
+       case LGL_UNITS_POINT:
                return 1.0;     /* points */
-       case GL_UNITS_INCH:
+       case LGL_UNITS_INCH:
                return 1.0 / 72.0;      /* inches */
-       case GL_UNITS_MM:
+       case LGL_UNITS_MM:
                return 0.35277778;      /* mm */
        default:
                g_message ("Illegal units");    /* Should not happen */
@@ -114,11 +114,11 @@ gl_prefs_get_units_precision (void)
 {
 
        switch (gl_prefs->units) {
-       case GL_UNITS_POINT:
+       case LGL_UNITS_POINT:
                return 1;       /* points */
-       case GL_UNITS_INCH:
+       case LGL_UNITS_INCH:
                return 3;       /* inches */
-       case GL_UNITS_MM:
+       case LGL_UNITS_MM:
                return 1;       /* mm */
        default:
                g_message ("Illegal units");    /* Should not happen */
@@ -134,11 +134,11 @@ gl_prefs_get_units_step_size (void)
 {
 
        switch (gl_prefs->units) {
-       case GL_UNITS_POINT:
+       case LGL_UNITS_POINT:
                return 0.1;     /* points */
-       case GL_UNITS_INCH:
+       case LGL_UNITS_INCH:
                return 0.001;   /* inches */
-       case GL_UNITS_MM:
+       case LGL_UNITS_MM:
                return 0.1;     /* mm */
        default:
                g_message ("Illegal units");    /* Should not happen */
@@ -154,11 +154,11 @@ gl_prefs_get_units_string (void)
 {
 
        switch (gl_prefs->units) {
-       case GL_UNITS_POINT:
+       case LGL_UNITS_POINT:
                return _("points");
-       case GL_UNITS_INCH:
+       case LGL_UNITS_INCH:
                return _("inches");
-       case GL_UNITS_MM:
+       case LGL_UNITS_MM:
                return _("mm");
        default:
                g_message ("Illegal units");    /* Should not happen */