Update of /cvsroot/gtkpod/gtkpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv2236/src

Modified Files:
        prefs.c prefs.h 
Log Message:
        * src/prefs.[ch]: fixed typos ("prefrences") -- thanks to
          Daniele Forsi.
          Changed mkdir() to g_mkdir() and reduced number of #include
          headers.



Index: prefs.c
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/prefs.c,v
retrieving revision 1.282
retrieving revision 1.283
diff -u -d -r1.282 -r1.283
--- prefs.c     9 Apr 2007 11:58:01 -0000       1.282
+++ prefs.c     15 Apr 2007 11:31:39 -0000      1.283
@@ -73,13 +73,9 @@
 #  include <config.h>
 #endif
 
-#include <ctype.h>
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/types.h>
+#include <glib/gstdio.h>
 #ifdef HAVE_GETOPT_LONG_ONLY
 #  include <getopt.h>
 #else
@@ -106,7 +102,7 @@
     gboolean exists;
 };
 
-/* Pointer to prefrences hash table */
+/* Pointer to preferences hash table */
 static GHashTable *prefs_table = NULL;
 static GMutex *prefs_table_mutex = NULL;
 
@@ -156,7 +152,7 @@
 }
 
 
-/* Set default prefrences */
+/* Set default preferences */
 static void set_default_preferences()
 {
     int i;
@@ -219,7 +215,7 @@
     
     prefs_set_int("sort_tab_num", 2);
     
-    /* Set colum prefrences */
+    /* Set colum preferences */
     for (i = 0; i < TM_NUM_COLUMNS; i++)
     {
        prefs_set_int_index("tm_col_width", i, 80);
@@ -559,9 +555,9 @@
        
     if (!g_file_test(folder, G_FILE_TEST_IS_DIR))
     {
-       if ((mkdir(folder, 0755)) == -1)
+       if ((g_mkdir(folder, 0777)) == -1)
        {
-           printf("Couldn't create ~/.gtkpod");
+           printf(_("Couldn't create ~/.gtkpod\n"));
            return NULL;
        }
     }

Index: prefs.h
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/src/prefs.h,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- prefs.h     9 Apr 2007 11:58:01 -0000       1.196
+++ prefs.h     15 Apr 2007 11:31:40 -0000      1.197
@@ -60,10 +60,10 @@
 /* New prefs backend. Will replace the stuff above */
 
 /* 
- * Wrapper data types for temp prefrences
+ * Wrapper data types for temp preferences
  */
 
-/* A wrapper around a GTree for regular temporary prefrences */
+/* A wrapper around a GTree for regular temporary preferences */
 typedef struct 
 {
        GTree *tree;
@@ -81,11 +81,11 @@
 void prefs_shutdown (void);
 
 /*
- * Functions that are used to manipulate prefrences.
- * The prefrences table shouldn't be modified directly.
+ * Functions that are used to manipulate preferences.
+ * The preferences table shouldn't be modified directly.
  */
 
-/* Functions that set prefrence values */
+/* Functions that set preference values */
 
 void prefs_set_string(const gchar *key, const gchar *value);
 void prefs_set_int(const gchar *key, const gint value);
@@ -103,7 +103,7 @@
 void prefs_set_double_index(const gchar *key, guint index,
                            gdouble value);
 
-/* Functions that get prefrence values */
+/* Functions that get preference values */
 gchar *prefs_get_string(const gchar *key);
 gboolean prefs_get_string_value(const gchar *key, gchar **value);
 gint prefs_get_int(const gchar *key);
@@ -173,7 +173,7 @@
 gboolean temp_prefs_get_double_value(TempPrefs *temp_prefs, const gchar *key,
                                    gdouble *value);
 
-/* Numbered prefrences functions */
+/* Numbered preferences functions */
 void temp_prefs_set_string_index(TempPrefs *temp_prefs, const gchar *key,
                                 const guint index, const gchar *value);
 void temp_prefs_set_int_index(TempPrefs *temp_prefs, const gchar *key,


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to