[nautilus-actions] na_iprefs_set_import_mode(): removed function
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] na_iprefs_set_import_mode(): removed function
- Date: Fri, 6 Jan 2012 07:32:00 +0000 (UTC)
commit edbf3e190563a31c79892b29aebd859f2c0de73f
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jan 5 17:30:45 2012 +0100
na_iprefs_set_import_mode(): removed function
ChangeLog | 5 +++++
src/core/na-iprefs.c | 32 --------------------------------
src/core/na-iprefs.h | 2 --
3 files changed, 5 insertions(+), 34 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 94a6a31..c604fd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-05 Pierre Wieser <pwieser trychlos org>
+
+ * src/core/na-iprefs.c:
+ * src/core/na-iprefs.h (na_iprefs_set_import_mode): Removed function.
+
2012-01-04 Pierre Wieser <pwieser trychlos org>
Move 'Ask' export format to NAExporter.
diff --git a/src/core/na-iprefs.c b/src/core/na-iprefs.c
index 0c994e4..092344a 100644
--- a/src/core/na-iprefs.c
+++ b/src/core/na-iprefs.c
@@ -46,22 +46,6 @@ typedef struct {
}
EnumMap;
-/* import mode: what to do when the imported id already exists ?
- * enum is defined in api/na-iimporter.h
- */
-#define IMPORT_MODE_NOIMPORT_STR "NoImport"
-#define IMPORT_MODE_RENUMBER_STR "Renumber"
-#define IMPORT_MODE_OVERRIDE_STR "Override"
-#define IMPORT_MODE_ASK_STR "Ask"
-
-static EnumMap st_import_mode[] = {
- { IMPORTER_MODE_NO_IMPORT, IMPORT_MODE_NOIMPORT_STR },
- { IMPORTER_MODE_RENUMBER, IMPORT_MODE_RENUMBER_STR },
- { IMPORTER_MODE_OVERRIDE, IMPORT_MODE_OVERRIDE_STR },
- { IMPORTER_MODE_ASK, IMPORT_MODE_ASK_STR },
- { 0 }
-};
-
/* sort mode of the items in the file manager context menu
* enum is defined in core/na-iprefs.h
*/
@@ -80,22 +64,6 @@ static const gchar *enum_map_string_from_id( const EnumMap *map, guint id );
static guint enum_map_id_from_string( const EnumMap *map, const gchar *str );
/*
- * na_iprefs_set_import_mode:
- * @pref: name of the import key to be written.
- * @mode: the new value to be written.
- *
- * Writes the current status of 'import mode' to the preferences system.
- */
-void
-na_iprefs_set_import_mode( const gchar *pref, guint mode )
-{
- const gchar *import_str;
-
- import_str = enum_map_string_from_id( st_import_mode, mode );
- na_settings_set_string( pref, import_str );
-}
-
-/*
* na_iprefs_get_order_mode:
* @mandatory: if not %NULL, a pointer to a boolean which will receive the
* mandatory property.
diff --git a/src/core/na-iprefs.h b/src/core/na-iprefs.h
index 5a670ac..e54f5c8 100644
--- a/src/core/na-iprefs.h
+++ b/src/core/na-iprefs.h
@@ -52,8 +52,6 @@ enum {
IPREFS_ORDER_MANUAL
};
-void na_iprefs_set_import_mode ( const gchar *pref, guint mode );
-
guint na_iprefs_get_order_mode ( gboolean *mandatory );
guint na_iprefs_get_order_mode_by_label( const gchar *label );
void na_iprefs_set_order_mode ( guint mode );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]