From e415f609d213e8fe175251e71d51ec39acdd3862 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Wed, 11 Jul 2001 05:32:14 +0000 Subject: [Fix bug #4389: ETableSpecification still in .c file] 2001-07-11 Jason Leach [Fix bug #4389: ETableSpecification still in .c file] * gui/e-calendar-table.etspec: New file containing the spec that was in e-calendar-table.c as a big string. * gui/e-calendar-table.c (e_calendar_table_init): Use the spec file instead of a string. (e_calendar_table_get_spec): Removed this function, we don't need it anymore. * gui/e-tasks.c (e_tasks_setup_menus): Don't load from string, from file instead. * gui/Makefile.am: Necessary changes to get the new .etspec file installed. svn path=/trunk/; revision=10986 --- calendar/gui/e-calendar-table.c | 93 ++--------------------------------------- 1 file changed, 4 insertions(+), 89 deletions(-) (limited to 'calendar/gui/e-calendar-table.c') diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index c5a66fccde..de320786c7 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -243,87 +243,6 @@ task_compare_cb (gconstpointer a, gconstpointer b) return retval; } -#ifdef JUST_FOR_TRANSLATORS -static char *list [] = { - N_("Categories"), - N_("Classification"), - N_("Completion Date"), - N_("End Date"), - N_("Start Date"), - N_("Due Date"), - N_("Geographical Position"), - N_("Percent complete"), - N_("Priority"), - N_("Summary"), - N_("Transparency"), - N_("URL"), - N_("Alarms"), - N_("Click here to add a task") -}; -#endif - -#define E_CALENDAR_TABLE_SPEC \ - "" \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - " " \ - "" - static void e_calendar_table_init (ECalendarTable *cal_table) { @@ -553,8 +472,10 @@ e_calendar_table_init (ECalendarTable *cal_table) /* Create the table */ - table = e_table_scrolled_new (cal_table->subset_model, extras, - E_CALENDAR_TABLE_SPEC, NULL); + table = e_table_scrolled_new_from_spec_file (cal_table->subset_model, + extras, + EVOLUTION_ETSPECDIR "/e-calendar-table.etspec", + NULL); gtk_object_unref (GTK_OBJECT (extras)); cal_table->etable = table; @@ -1218,12 +1139,6 @@ e_calendar_table_on_rows_deleted (ETableModel *model, e_calendar_table_apply_filter (cal_table); } -const gchar * -e_calendar_table_get_spec (void) -{ - return E_CALENDAR_TABLE_SPEC; -} - static void invisible_destroyed (GtkWidget *invisible, ECalendarTable *cal_table) { -- cgit v1.2.3