aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/default-source/ChangeLog8
-rw-r--r--plugins/default-source/default-source.c19
2 files changed, 25 insertions, 2 deletions
diff --git a/plugins/default-source/ChangeLog b/plugins/default-source/ChangeLog
index 08e8096613..e62c363bc2 100644
--- a/plugins/default-source/ChangeLog
+++ b/plugins/default-source/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-21 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #448863
+
+ * default-source.c: (org_gnome_default_book),
+ (get_calendar_option_caption), (org_gnome_default_cal):
+ Use better description of the option based on source type.
+
2007-09-10 Milan Crha <mcrha@redhat.com>
** Fix for bug #330223
diff --git a/plugins/default-source/default-source.c b/plugins/default-source/default-source.c
index 129c89a4d2..d53983320d 100644
--- a/plugins/default-source/default-source.c
+++ b/plugins/default-source/default-source.c
@@ -78,7 +78,7 @@ org_gnome_default_book (EPlugin *epl, EConfigHookItemFactoryData *data)
if (data->old)
return data->old;
- widget = gtk_check_button_new_with_mnemonic (_("Mark as _default folder"));
+ widget = gtk_check_button_new_with_mnemonic (_("Mark as _default address book"));
book_target = (EABConfigTargetSource *) data->target;
source = book_target->source;
@@ -93,6 +93,21 @@ org_gnome_default_book (EPlugin *epl, EConfigHookItemFactoryData *data)
return widget;
}
+static const char *
+get_calendar_option_caption (ECalSourceType source_type)
+{
+ const char *res = "???";
+
+ switch (source_type) {
+ case E_CAL_SOURCE_TYPE_EVENT: res = _("Mark as _default calendar"); break;
+ case E_CAL_SOURCE_TYPE_TODO: res = _("Mark as _default task list"); break;
+ case E_CAL_SOURCE_TYPE_JOURNAL: res = _("Mark as _default memo list"); break;
+ default: break;
+ }
+
+ return res;
+}
+
GtkWidget *org_gnome_default_cal (EPlugin *epl, EConfigHookItemFactoryData *data);
GtkWidget *
@@ -105,9 +120,9 @@ org_gnome_default_cal (EPlugin *epl, EConfigHookItemFactoryData *data)
if (data->old)
return data->old;
- widget = gtk_check_button_new_with_mnemonic (_("Mark as _default folder"));
cal_target = (ECalConfigTargetSource *) data->target;
source = cal_target->source;
+ widget = gtk_check_button_new_with_mnemonic (get_calendar_option_caption (cal_target->source_type));
if (e_source_get_property (source, "default"))
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), TRUE);