From 23cbe3a3256f0edd295a7d4fc0c92c2de23e5e9c Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 19 Feb 2008 01:41:28 +0000 Subject: [PATCH] 2008-02-18 Jim Evins * src/prefs-model.c: (gl_prefs_model_save_settings), (gl_prefs_model_load_settings): Set default units for file output. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@752 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/ChangeLog | 6 ++++++ glabels2/src/prefs-model.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index e5b44aab..10cdc3f3 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,9 @@ +2008-02-18 Jim Evins + + * src/prefs-model.c: (gl_prefs_model_save_settings), + (gl_prefs_model_load_settings): + Set default units for file output. + 2008-02-18 Jim Evins * help/C/glabels.xml: diff --git a/glabels2/src/prefs-model.c b/glabels2/src/prefs-model.c index b67f92f4..72b61792 100644 --- a/glabels2/src/prefs-model.c +++ b/glabels2/src/prefs-model.c @@ -26,6 +26,7 @@ #include "prefs-model.h" #include +#include #include "marshal.h" #include "util.h" @@ -247,6 +248,7 @@ gl_prefs_model_save_settings (glPrefsModel *prefs_model) BASE_KEY PREF_UNITS, units_to_string(prefs_model->units), NULL); + lgl_xml_set_default_units (prefs_model->units); /* Default page size */ gconf_client_set_string (prefs_model->gconf_client, @@ -399,6 +401,7 @@ gl_prefs_model_load_settings (glPrefsModel *prefs_model) DEFAULT_UNITS_STRING); prefs_model->units = string_to_units( string ); g_free( string ); + lgl_xml_set_default_units (prefs_model->units); /* Page size */ -- 2.39.5