]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-metadata-manager.c
Setup window size and position before showing it. Fixes bug #401711.
[evince.git] / shell / ev-metadata-manager.c
index f5ab0407b62fee42f21ea874c5f60e745f05a628..c3fc4226e317616c733d9d0ca40c2cbd187c4ee8 100644 (file)
@@ -268,7 +268,7 @@ load_values ()
        cur = xmlDocGetRootElement (doc);
        if (cur == NULL) 
        {
-               g_message ("The metadata file '%s' is empty", METADATA_FILE);
+               g_message ("The metadata file ā€œ%sā€ is empty", METADATA_FILE);
                xmlFreeDoc (doc);
        
                return FALSE;
@@ -276,7 +276,7 @@ load_values ()
 
        if (xmlStrcmp (cur->name, (const xmlChar *) "metadata")) 
        {
-               g_message ("File '%s' is of the wrong type", METADATA_FILE);
+               g_message ("File ā€œ%sā€ is of the wrong type", METADATA_FILE);
                xmlFreeDoc (doc);
                
                return FALSE;
@@ -539,8 +539,12 @@ save_values (const gchar *key, GValue *value, xmlNodePtr parent)
                        string_value = g_strdup_printf ("%d", g_value_get_int (value));
                         break;
                 case G_TYPE_DOUBLE:
-                       string_value = g_strdup_printf ("%f", g_value_get_double (value));
-                        break;
+                       {
+                               gchar buf[G_ASCII_DTOSTR_BUF_SIZE];
+                               g_ascii_dtostr (buf, G_ASCII_DTOSTR_BUF_SIZE, g_value_get_double (value));
+                               string_value = g_strdup_printf ("%s", buf);
+                       }
+                       break;
                 case G_TYPE_BOOLEAN:
                        string_value = g_strdup_printf ("%d", g_value_get_boolean (value));
                         break;