SF.net SVN: geany:[3418] trunk/src/stash.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Dec 22 16:14:48 UTC 2008
Revision: 3418
http://geany.svn.sourceforge.net/geany/?rev=3418&view=rev
Author: ntrel
Date: 2008-12-22 16:14:48 +0000 (Mon, 22 Dec 2008)
Log Message:
-----------
Rename GeanyPrefEntry::type -> setting_type for clarity.
Modified Paths:
--------------
trunk/src/stash.c
Modified: trunk/src/stash.c
===================================================================
--- trunk/src/stash.c 2008-12-22 16:03:16 UTC (rev 3417)
+++ trunk/src/stash.c 2008-12-22 16:14:48 UTC (rev 3418)
@@ -27,7 +27,11 @@
/* Memory Usage
* Stash will not duplicate strings if they are normally static arrays, such as
- * keyfile group names and key names. */
+ * keyfile group names and key names.
+ *
+ * Terms
+ * 'Setting' is used for data stored on disk or in memory.
+ * 'Pref' is used mainly for visual widget information. */
#include <gtk/gtk.h>
@@ -41,7 +45,7 @@
struct GeanyPrefEntry
{
- GType type; /* e.g. G_TYPE_INT */
+ GType setting_type; /* e.g. G_TYPE_INT */
gpointer setting;
const gchar *key_name;
gpointer default_value;
@@ -145,7 +149,7 @@
g_key_file_has_key(keyfile, group->name, entry->key_name, NULL))
continue; /* don't overwrite write_once prefs */
- switch (entry->type)
+ switch (entry->setting_type)
{
case G_TYPE_BOOLEAN:
handle_boolean_setting(group, entry, keyfile, action); break;
@@ -262,7 +266,7 @@
{
gint *setting = entry->setting;
- g_assert(entry->type == G_TYPE_INT); /* only int spin prefs */
+ g_assert(entry->setting_type == G_TYPE_INT); /* only int spin prefs */
switch (action)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list