aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-04-21 16:47:43 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-04-21 16:47:43 +0800
commitbf869bebd46d01bc6eb81979846373782d9add92 (patch)
treef7e48e107639182f2d308088d9a6ba7860b55e66 /plugins
parent4a1c3b9aba20635705cb5a76f11c793ad597a6d4 (diff)
downloadgsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar.gz
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar.bz2
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar.lz
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar.xz
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.tar.zst
gsoc2013-evolution-bf869bebd46d01bc6eb81979846373782d9add92.zip
** Fix for bug #448863
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. svn path=/trunk/; revision=35396
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);