[almanah] Remove import mode
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] Remove import mode
- Date: Mon, 17 May 2010 23:39:00 +0000 (UTC)
commit f2598064f0acca7a79dc8140a8f3a9bfbef115a3
Author: Philip Withnall <philip tecnocode co uk>
Date: Tue May 18 00:37:44 2010 +0100
Remove import mode
Remove the old command line import mode in favour of using the new import
dialogue.
src/entry.c | 4 ----
src/main.c | 4 +---
src/main.h | 1 -
3 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/entry.c b/src/entry.c
index 5dab3a0..e2d4bd8 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -287,10 +287,6 @@ almanah_entry_get_editability (AlmanahEntry *self)
GDate current_date;
gint days_between;
- /* Entries are always editable if we have import mode on */
- if (almanah->import_mode == TRUE)
- return ALMANAH_ENTRY_EDITABLE;
-
g_date_set_time_t (¤t_date, time (NULL));
/* Entries can't be edited before they've happened */
diff --git a/src/main.c b/src/main.c
index 93200af..6b9b45f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -92,12 +92,11 @@ main (int argc, char *argv[])
{
GOptionContext *context;
GError *error = NULL;
- gboolean debug = FALSE, import_mode = FALSE;
+ gboolean debug = FALSE;
gchar *db_filename;
const GOptionEntry options[] = {
{ "debug", 0, 0, G_OPTION_ARG_NONE, &debug, N_("Enable debug mode"), NULL },
- { "import-mode", 0, 0, G_OPTION_ARG_NONE, &import_mode, N_("Enable import mode"), NULL },
{ NULL }
};
@@ -138,7 +137,6 @@ main (int argc, char *argv[])
/* Setup */
almanah = g_new0 (Almanah, 1);
almanah->debug = debug;
- almanah->import_mode = import_mode;
/* Open GConf */
almanah->gconf_client = gconf_client_get_default ();
diff --git a/src/main.h b/src/main.h
index 08f9d50..3d55225 100644
--- a/src/main.h
+++ b/src/main.h
@@ -51,7 +51,6 @@ typedef struct {
#endif /* ENABLE_ENCRYPTION */
gboolean debug;
- gboolean import_mode;
} Almanah;
extern Almanah *almanah;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]