From: Jim Evins Date: Tue, 19 Feb 2008 01:39:53 +0000 (+0000) Subject: 2008-02-18 Jim Evins X-Git-Tag: glabels-2_2_5~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=104d0092d40b8bbfef6eb417fdf9ee9c568ab7e3;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/branches/glabels-2_2@751 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index 3b9ec6ff..efa9177f 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 */