From: Jim Evins Date: Tue, 19 Feb 2008 01:41:28 +0000 (+0000) Subject: 2008-02-18 Jim Evins X-Git-Tag: glabels-2_3_0~271 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23cbe3a3256f0edd295a7d4fc0c92c2de23e5e9c;p=glabels 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 --- 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 */