/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Evolution calendar - Commands for the calendar GUI control * * Copyright (C) 1998 The Free Software Foundation * Copyright (C) 2000 Ximian, Inc. * Copyright (C) 2000 Ximian, Inc. * * Authors: Miguel de Icaza * Federico Mena-Quintero * Seth Alves * Rodrigo Moya * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "shell/Evolution.h" #include "calendar-commands.h" #include "calendar-config.h" #include "e-day-view.h" #include "e-week-view.h" #include "gnome-cal.h" #include "goto.h" #include "print.h" #include "dialogs/cal-prefs-dialog.h" #include "itip-utils.h" #include "e-pub-utils.h" #include "e-cal-list-view.h" #include "evolution-shell-component-utils.h" #include "e-util/e-icon-factory.h" /* Focusing information for the calendar view. We have to keep track of this * ourselves because with Bonobo controls, we may get unpaired focus_out events. */ typedef struct { guint calendar_focused : 1; guint taskpad_focused : 1; } FocusData; static void file_open_event_cb (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); e_calendar_view_open_event (gnome_calendar_get_current_view_widget (gcal)); } /* Prints the calendar at its current view and time range */ static void print (GnomeCalendar *gcal, gboolean preview) { time_t start; GnomeCalendarViewType view_type; PrintView print_view; ECalListView *list_view; ETable *etable; gnome_calendar_get_current_time_range (gcal, &start, NULL); view_type = gnome_calendar_get_view (gcal); switch (view_type) { case GNOME_CAL_DAY_VIEW: print_view = PRINT_VIEW_DAY; break; case GNOME_CAL_WORK_WEEK_VIEW: case GNOME_CAL_WEEK_VIEW: print_view = PRINT_VIEW_WEEK; break; case GNOME_CAL_MONTH_VIEW: print_view = PRINT_VIEW_MONTH; break; case GNOME_CAL_LIST_VIEW: list_view = E_CAL_LIST_VIEW (gnome_calendar_get_current_view_widget (gcal)); etable = e_table_scrolled_get_table (list_view->table_scrolled); print_table (etable, _("Calendar"), preview); return; default: g_assert_not_reached (); return; } print_calendar (gcal, preview, start, print_view); } /* File/Print callback */ static void file_print_cb (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); print (gcal, FALSE); } static void file_print_preview_cb (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); print (gcal, TRUE); } /* Sets a clock cursor for the specified calendar window */ static void set_clock_cursor (GnomeCalendar *gcal) { GdkCursor *cursor; cursor = gdk_cursor_new (GDK_WATCH); gdk_window_set_cursor (GTK_WIDGET (gcal)->window, cursor); gdk_cursor_destroy (cursor); gdk_flush (); } /* Resets the normal cursor for the specified calendar window */ static void set_normal_cursor (GnomeCalendar *gcal) { gdk_window_set_cursor (GTK_WIDGET (gcal)->window, NULL); gdk_flush (); } static void previous_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_previous (gcal); set_normal_cursor (gcal); } static void next_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_next (gcal); set_normal_cursor (gcal); } void calendar_goto_today (GnomeCalendar *gcal) { set_clock_cursor (gcal); gnome_calendar_goto_today (gcal); set_normal_cursor (gcal); } static void today_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); calendar_goto_today (gcal); } static void goto_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); goto_dialog (gcal); } static void show_day_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); gnome_calendar_set_view (gcal, GNOME_CAL_DAY_VIEW); } static void show_work_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); gnome_calendar_set_view (gcal, GNOME_CAL_WORK_WEEK_VIEW); } static void show_week_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); gnome_calendar_set_view (gcal, GNOME_CAL_WEEK_VIEW); } static void show_month_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); gnome_calendar_set_view (gcal, GNOME_CAL_MONTH_VIEW); } static void show_list_view_clicked (BonoboUIComponent *uic, gpointer data, const char *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); gnome_calendar_set_view (gcal, GNOME_CAL_LIST_VIEW); } static void cut_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_cut_clipboard (gcal); set_normal_cursor (gcal); } static void copy_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_copy_clipboard (gcal); set_normal_cursor (gcal); } static void paste_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_paste_clipboard (gcal); set_normal_cursor (gcal); } static void delete_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_delete_selection (gcal); set_normal_cursor (gcal); } static void delete_occurrence_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; gcal = GNOME_CALENDAR (data); set_clock_cursor (gcal); gnome_calendar_delete_selected_occurrence (gcal); set_normal_cursor (gcal); } static void publish_freebusy_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { e_pub_publish (TRUE); } static void purge_cmd (BonoboUIComponent *uic, gpointer data, const gchar *path) { GnomeCalendar *gcal; GtkWidget *dialog, *parent, *box, *label, *spin; int response; gcal = GNOME_CALENDAR (data); /* create the dialog */ parent = gtk_widget_get_toplevel (GTK_WIDGET (gcal)); dialog = gtk_message_dialog_new ( (GtkWindow *)parent, GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK_CANCEL, _("This operation will permanently erase all events older than the selected amount of time. If you continue, you will not be able to recover these events.")); gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); box = gtk_hbox_new (FALSE, 6); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), box, TRUE, FALSE, 6); label = gtk_label_new (_("Purge events older than")); gtk_box_pack_start (GTK_BOX (box), label, TRUE, FALSE, 6); spin = gtk_spin_button_new_with_range (0.0, 1000.0, 1.0); gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin), 60.0); gtk_box_pack_start (GTK_BOX (box), spin, FALSE, FALSE, 6); label = gtk_label_new (_("days")); gtk_box_pack_start (GTK_BOX (box), label, TRUE, FALSE, 6); gtk_widget_show_all (box); /* run the dialog */ response = gtk_dialog_run (GTK_DIALOG (dialog)); if (response == GTK_RESPONSE_OK) { gint days; time_t tt; days = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (spin)); tt = time (NULL); tt -= (days * (24 * 3600)); gnome_calendar_purge (gcal, tt); } gtk_widget_destroy (dialog); } const gchar * calendar_get_text_for_folder_bar_label (GnomeCalendar *gcal) { icaltimezone *zone; struct icaltimetype start_tt, end_tt; time_t start_time, end_time; struct tm start_tm, end_tm; static char buffer[512]; char end_buffer[256]; GnomeCalendarViewType view; gnome_calendar_get_visible_time_range (gcal, &start_time, &end_time); zone = gnome_calendar_get_timezone (gcal); start_tt = icaltime_from_timet_with_zone (start_time, FALSE, zone); start_tm.tm_year = start_tt.year - 1900; start_tm.tm_mon = start_tt.month - 1; start_tm.tm_mday = start_tt.day; start_tm.tm_hour = start_tt.hour; start_tm.tm_min = start_tt.minute; start_tm.tm_sec = start_tt.second; start_tm.tm_isdst = -1; start_tm.tm_wday = time_day_of_week (start_tt.day, start_tt.month - 1, start_tt.year); /* Take one off end_time so we don't get an extra day. */ end_tt = icaltime_from_timet_with_zone (end_time - 1, FALSE, zone); end_tm.tm_year = end_tt.year - 1900; end_tm.tm_mon = end_tt.month - 1; end_tm.tm_mday = end_tt.day; end_tm.tm_hour = end_tt.hour; end_tm.tm_min = end_tt.minute; end_tm.tm_sec = end_tt.second; end_tm.tm_isdst = -1; end_tm.tm_wday = time_day_of_week (end_tt.day, end_tt.month - 1, end_tt.year); view = gnome_calendar_get_view (gcal); switch (view) { case GNOME_CAL_DAY_VIEW: case GNOME_CAL_WORK_WEEK_VIEW: case GNOME_CAL_WEEK_VIEW: if (start_tm.tm_year == end_tm.tm_year && start_tm.tm_mon == end_tm.tm_mon && start_tm.tm_mday == end_tm.tm_mday) { e_utf8_strftime (buffer, sizeof (buffer), _("%A %d %B %Y"), &start_tm); } else if (start_tm.tm_year == end_tm.tm_year) { e_utf8_strftime (buffer, sizeof (buffer), _("%a %d %b"), &start_tm); e_utf8_strftime (end_buffer, sizeof (end_buffer), _("%a %d %b %Y"), &end_tm); strcat (buffer, " - "); strcat (buffer, end_buffer); } else { e_utf8_strftime (buffer, sizeof (buffer), _("%a %d %b %Y"), &start_tm); e_utf8_strftime (end_buffer, sizeof (end_buffer), _("%a %d %b %Y"), &end_tm); strcat (buffer, " - "); strcat (buffer, end_buffer); } break; case GNOME_CAL_MONTH_VIEW: case GNOME_CAL_LIST_VIEW: if (start_tm.tm_year == end_tm.tm_year) { if (start_tm.tm_mon == end_tm.tm_mon) { if (start_tm.tm_mday == end_tm.tm_mday) { buffer [0] = '\0'; } else { e_utf8_strftime (buffer, sizeof (buffer), "%d", &start_tm); strcat (buffer, " - "); } e_utf8_strftime (end_buffer, sizeof (end_buffer), _("%d %B %Y"), &end_tm); strcat (buffer, end_buffer); } else { e_utf8_strftime (buffer, sizeof (buffer), _("%d %B"), &start_tm); e_utf8_strftime (end_buffer, sizeof (end_buffer), _("%d %B %Y"), &end_tm); strcat (buffer, " - "); strcat (buffer, end_buffer); } } else { e_utf8_strftime (buffer, sizeof (buffer), _("%d %B %Y"), &start_tm); e_utf8_strftime (end_buffer, sizeof (end_buffer), _("%d %B %Y"), &end_tm); strcat (buffer, " - "); strcat (buffer, end_buffer); } break; default: g_assert_not_reached (); return NULL; } return buffer; } /* Sensitizes the UI Component menu/toolbar calendar commands based on the * number of selected events. (This will always be 0 or 1 currently.) If enable * is FALSE, all will be disabled. Otherwise, the currently-selected number of * events will be used. */ void calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalendar *gcal, gboolean enable) { BonoboUIComponent *uic; ECalendarViewEvent *event; GList *list; int n_selected; GtkWidget *view; ECal *e_cal; gboolean selected_read_only = FALSE, default_read_only = FALSE, has_recurrences; uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); if (bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL) return; view = gnome_calendar_get_current_view_widget (gcal); list = e_calendar_view_get_selected_events (E_CALENDAR_VIEW (view)); n_selected = enable ? g_list_length (list) : 0; event = (ECalendarViewEvent *) list ? list->data : NULL; if (event && event->comp_data) e_cal_is_read_only (event->comp_data->client, &selected_read_only, NULL); else selected_read_only = TRUE; /* retrieve read-onlyness of the default client */ e_cal = e_cal_model_get_default_client (gnome_calendar_get_calendar_model (gcal)); if (e_cal) e_cal_is_read_only (e_cal, &default_read_only, NULL); else default_read_only = TRUE; bonobo_ui_component_set_prop (uic, "/commands/EventOpen", "sensitive", n_selected != 1 ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/Cut", "sensitive", n_selected == 0 || selected_read_only ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/Copy", "sensitive", n_selected == 0 ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/Paste", "sensitive", default_read_only ? "0" : "1", NULL); /* occurrence-related menu items */ has_recurrences = FALSE; if (n_selected > 0 && !selected_read_only) { if (list) { event = (ECalendarViewEvent *) list->data; if (e_cal_util_component_has_recurrences (event->comp_data->icalcomp)) has_recurrences = TRUE; } } bonobo_ui_component_set_prop (uic, "/commands/Delete", "sensitive", n_selected == 0 || selected_read_only || has_recurrences ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/DeleteOccurrence", "sensitive", has_recurrences ? "1" : "0", NULL); bonobo_ui_component_set_prop (uic, "/commands/DeleteAllOccurrences", "sensitive", has_recurrences ? "1" : "0", NULL); /* free memory */ if (list) g_list_free (list); } /* Sensitizes the UI Component menu/toolbar tasks commands based on the number * of selected tasks. If enable is FALSE, all will be disabled. Otherwise, the * currently-selected number of tasks will be used. */ static void sensitize_taskpad_commands (GnomeCalendar *gcal, BonoboControl *control, gboolean enable) { BonoboUIComponent *uic; int n_selected; ECalendarTable *task_pad; ECalModel *model; ECal *e_cal; gboolean read_only = TRUE; uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); n_selected = enable ? gnome_calendar_get_num_tasks_selected (gcal) : 0; task_pad = gnome_calendar_get_task_pad (gcal); model = e_calendar_table_get_model (task_pad); e_cal = e_cal_model_get_default_client (model); if (e_cal) e_cal_is_read_only (e_cal, &read_only, NULL); else read_only = TRUE; bonobo_ui_component_set_prop (uic, "/commands/Cut", "sensitive", n_selected == 0 || read_only ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/Copy", "sensitive", n_selected == 0 ? "0" : "1", NULL); bonobo_ui_component_set_prop (uic, "/commands/Paste", "sensitive", enable && !read_only ? "1" : "0", NULL); bonobo_ui_component_set_prop (uic, "/commands/Delete", "sensitive", n_selected == 0 || read_only ? "0" : "1", NULL); } /* Callback used when the selection in the calendar views changes */ static void gcal_calendar_selection_changed_cb (GnomeCalendar *gcal, gpointer data) { BonoboControl *control; control = BONOBO_CONTROL (data); calendar_control_sensitize_calendar_commands (control, gcal, TRUE); } /* Callback used when the selection in the taskpad changes */ static void gcal_taskpad_selection_changed_cb (GnomeCalendar *gcal, gpointer data) { BonoboControl *control; control = BONOBO_CONTROL (data); sensitize_taskpad_commands (gcal, control, TRUE); } /* Callback used when the focus changes for a calendar view */ static void gcal_calendar_focus_change_cb (GnomeCalendar *gcal, gboolean in, gpointer data) { BonoboControl *control; FocusData *focus; control = BONOBO_CONTROL (data); focus = g_object_get_data (G_OBJECT (control), "focus_data"); g_assert (focus != NULL); if (in) { g_signal_connect (gcal, "calendar_selection_changed", G_CALLBACK (gcal_calendar_selection_changed_cb), control); calendar_control_sensitize_calendar_commands (control, gcal, TRUE); focus->calendar_focused = TRUE; } else if (focus->calendar_focused) { gtk_signal_disconnect_by_func (GTK_OBJECT (gcal), G_CALLBACK (gcal_calendar_selection_changed_cb), control); calendar_control_sensitize_calendar_commands (control, gcal, FALSE); focus->calendar_focused = FALSE; } } /* Callback used when the taskpad focus changes */ static void gcal_taskpad_focus_change_cb (GnomeCalendar *gcal, gboolean in, gpointer data) { BonoboControl *control; FocusData *focus; control = BONOBO_CONTROL (data); focus = g_object_get_data (G_OBJECT (control), "focus_data"); g_assert (focus != NULL); if (in) { g_signal_connect (gcal, "taskpad_selection_changed", G_CALLBACK (gcal_taskpad_selection_changed_cb), control); sensitize_taskpad_commands (gcal, control, TRUE); focus->taskpad_focused = TRUE; } else if (focus->taskpad_focused) { /* With Bonobo controls, we may get unpaired focus_out events. * That is why we have to keep track of this ourselves instead * of blindly assumming that we are getting this event because * the taskpad was in fact focused. */ gtk_signal_disconnect_by_func (GTK_OBJECT (gcal), G_CALLBACK (gcal_taskpad_selection_changed_cb), control); sensitize_taskpad_commands (gcal, control, FALSE); focus->taskpad_focused = FALSE; } } static BonoboUIVerb verbs [] = { BONOBO_UI_VERB ("EventOpen", file_open_event_cb), BONOBO_UI_VERB ("CalendarPrint", file_print_cb), BONOBO_UI_VERB ("CalendarPrintPreview", file_print_preview_cb), BONOBO_UI_VERB ("Cut", cut_cmd), BONOBO_UI_VERB ("Copy", copy_cmd), BONOBO_UI_VERB ("Paste", paste_cmd), BONOBO_UI_VERB ("Delete", delete_cmd), BONOBO_UI_VERB ("DeleteOccurrence", delete_occurrence_cmd), BONOBO_UI_VERB ("DeleteAllOccurrences", delete_cmd), BONOBO_UI_VERB ("CalendarPrev", previous_clicked), BONOBO_UI_VERB ("CalendarToday", today_clicked), BONOBO_UI_VERB ("CalendarNext", next_clicked), BONOBO_UI_VERB ("CalendarGoto", goto_clicked), BONOBO_UI_VERB ("ShowDayView", show_day_view_clicked), BONOBO_UI_VERB ("ShowWorkWeekView", show_work_week_view_clicked), BONOBO_UI_VERB ("ShowWeekView", show_week_view_clicked), BONOBO_UI_VERB ("ShowMonthView", show_month_view_clicked), BONOBO_UI_VERB ("ShowListView", show_list_view_clicked), BONOBO_UI_VERB ("PublishFreeBusy", publish_freebusy_cmd), BONOBO_UI_VERB ("CalendarPurge", purge_cmd), BONOBO_UI_VERB_END }; static EPixmap pixmaps [] = { E_PIXMAP ("/Toolbar/DayView", "stock_calendar-view-day", E_ICON_SIZE_LARGE_TOOLBAR), E_PIXMAP ("/Toolbar/WorkWeekView", "stock_calendar-view-work-week", E_ICON_SIZE_LARGE_TOOLBAR), E_PIXMAP ("/Toolbar/WeekView", "stock_calendar-view-week", E_ICON_SIZE_LARGE_TOOLBAR), E_PIXMAP ("/Toolbar/MonthView", "stock_calendar-view-month", E_ICON_SIZE_LARGE_TOOLBAR), E_PIXMAP ("/Toolbar/ListView", "stock_calendar-view-list", E_ICON_SIZE_LARGE_TOOLBAR), E_PIXMAP_END }; void calendar_control_activate (BonoboControl *control, GnomeCalendar *gcal) { Bonobo_UIContainer remote_uih; BonoboUIComponent *uic; FocusData *focus; uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); remote_uih = bonobo_control_get_remote_ui_container (control, NULL); bonobo_ui_component_set_container (uic, remote_uih, NULL); bonobo_object_release_unref (remote_uih, NULL); gnome_calendar_set_ui_component (gcal, uic); bonobo_ui_component_add_verb_list_with_data (uic, verbs, gcal); bonobo_ui_component_freeze (uic, NULL); bonobo_ui_util_set_ui (uic, PREFIX, EVOLUTION_UIDIR "/evolution-calendar.xml", "evolution-calendar", NULL); e_pixmaps_update (uic, pixmaps); gnome_calendar_setup_view_menus (gcal, uic); g_signal_connect (gcal, "calendar_focus_change", G_CALLBACK (gcal_calendar_focus_change_cb), control); g_signal_connect (gcal, "taskpad_focus_change", G_CALLBACK (gcal_taskpad_focus_change_cb), control); calendar_control_sensitize_calendar_commands (control, gcal, TRUE); sensitize_taskpad_commands (gcal, control, TRUE); bonobo_ui_component_thaw (uic, NULL); /* Show the dialog for setting the timezone if the user hasn't chosen a default timezone already. This is done in the startup wizard now, so we don't do it here. */ #if 0 calendar_config_check_timezone_set (); #endif focus = g_new (FocusData, 1); focus->calendar_focused = FALSE; focus->taskpad_focused = FALSE; g_object_set_data (G_OBJECT (control), "focus_data", focus); } void calendar_control_deactivate (BonoboControl *control, GnomeCalendar *gcal) { FocusData *focus; BonoboUIComponent *uic; uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); gnome_calendar_set_ui_component (gcal, NULL); focus = g_object_get_data (G_OBJECT (control), "focus_data"); g_assert (focus != NULL); g_object_set_data (G_OBJECT (control), "focus_data", NULL); g_free (focus); gnome_calendar_discard_view_menus (gcal); g_signal_handlers_disconnect_matched (gcal, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, control); bonobo_ui_component_rm (uic, "/", NULL); bonobo_ui_component_unset_container (uic, NULL); } agavan2005-06-032-0/+8 * hack up so we dont include mail-component.h anymore, since it now reliesNot Zed2005-06-032-1/+12 * Show attachment bar when attachments are added e-msg-composer.cSrinivasa Ragavan2005-06-033-8/+42 * e-msg-composer-attachment.cSrinivasa Ragavan2005-05-272-0/+5 * Fixed a potential memory leak.Srinivasa Ragavan2005-05-242-3/+8 * Added attachment of remote URL. The dnd of url, downloads the files andSrininvasa Ragavan2005-05-238-40/+433 * composer/e-message-composer.c calendar/gui/dialogs/comp-editor.cSrinivasa Ragavan2005-05-162-83/+16 * moved e-error to e-util.Not Zed2005-05-164-3/+7 * Set a mnemonic for the "Attach" buttonRodney Dawes2005-05-092-1/+6 * Use "Attach" as the text for the "Open" action button in the file chooserRodney Dawes2005-05-072-1/+6 * renamed from mail-errors.xml, add i18n tags, fix some whitespace issues.Not Zed2005-05-065-135/+83 * put back e_msg_composer_set_enable_autosave which was removed by mistakeRadek Doulik2005-05-061-0/+8 * removed old unused function which was using low level gtkhtml APIsRadek Doulik2005-05-052-71/+5 * block gtkhtml's selection so that we don't set primary X selectionRadek Doulik2005-04-082-0/+9 * implement read-receipt functionality.ERDI Gergo2005-04-083-1/+82 * ** See bug #73347Not Zed2005-03-172-1/+7 * Set up c/c/p for To: Cc: Bcc: and Post To: entries too.Hans Petter Jansson2005-03-162-0/+21 * ** See bug #66592Not Zed2005-03-043-19/+63 * Fix previous patch for the !USE_GTKFILECHOOSER case.Jeffrey Stedfast2005-02-172-1/+6 * Add a11y name for attachment button and barsHarry Lu2005-02-163-0/+12 * declare a variable in the !USE_GTKFILECHOOSER code pathJeffrey Stedfast2005-02-151-1/+2 * ** See bug #66126.Not Zed2005-02-105-127/+173 * Set pointers to the contact editor creation functions in the entries, soHans Petter Jansson2005-01-252-0/+13 * initialise composer before using it. sigh.Not Zed2005-01-122-3/+6 * turn off debug, setup g private instance data structure. (setup_ui):Not Zed2005-01-052-3/+46 * kill warnings (map_default_cb): the to entry widget is now just a gtkJP Rosevear2004-12-242-13/+12 * Remove select-names from here.Hans Petter Jansson2004-12-233-6/+10 * Unref the name selector. (e_contact_list_editor_save_contact): Fix aHans Petter Jansson2004-12-233-92/+152 * svn path=/trunk/; revision=28178Not Zed2004-12-223-2/+8 * addressbook/gui/component/addressbook-migrate.cHans Petter Jansson2004-12-092-1/+6 * include camel-cipher-context.h so we build if nss isn't available.Not Zed2004-12-072-0/+6 * remove the old camel_multipart_encrypted api.Not Zed2004-12-033-9/+15 * get image from icon factory directlyJP Rosevear2004-11-262-4/+6 * fix the popup id.Not Zed2004-10-283-2/+15 * Close on Esc. (create_composer): Connect to the key-press-event signal.Jeffrey Stedfast2004-10-282-3/+27 * fix for bugzilla #44876mengjie yu2004-10-273-14/+31 * convert to org.gnome hook namesJP Rosevear2004-10-203-2/+7 * g_strdup() the gpg/smime keys into the recipients list or else we end upJeffrey Stedfast2004-10-122-2/+8 * updatedJeffrey Stedfast2004-10-091-0/+2 * e-popup api changes.Not Zed2004-10-073-2/+7 * set a GTKHTML_API_VERSION variableJP Rosevear2004-10-012-1/+6 * enable ask drop action and hook onto drag motion. (drag_motion):Not Zed2004-10-012-10/+169 * Use non-deprecated functions.Kjartan Maraas2004-09-302-3/+9 * handle 'attachment' as well, as per Mozilla's mangling, and the newMichael Meeks2004-09-202-2/+10 * Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-206-149/+113 * ** See bug #64454.Not Zed2004-09-093-4/+11 * set paragraph style to normal to avoid signature landing in PRE paragraphRadek Doulik2004-08-142-0/+6 * Optionally use GtkFileChooser if compiled against Gtk+ >= 2.4.0.Carlos Garnacho Parro2004-08-134-53/+139 * Fixes for api changes in mail/ for 61940.Not Zed2004-07-292-5/+9 * removed unused static variable listener_vepvRadek Doulik2004-07-285-19/+55 * removed body content + signature html concatenating and callRadek Doulik2004-07-232-22/+12 * include config.h. See #61395.Not Zed2004-07-222-0/+8 * ** Fix for #60387.Not Zed2004-06-184-42/+138 * clean up the code slightly.Not Zed2004-06-174-29/+48 * Don't connect to the key_pressed_event. (composer_key_pressed): Removed.Jeffrey Stedfast2004-06-152-16/+7 * fix the name of "stock_save-as" everywhereDan Winship2004-06-072-1/+5 * Use e_error_run() instead of the e_activation_error_dialog() stuff that noJeffrey Stedfast2004-06-054-18/+31 * always insert new paragraph for signatureRadek Doulik2004-06-032-2/+8 * s/${0}/{0}/gJeffrey Stedfast2004-05-283-11/+15 * Require e-error-toolRodney Dawes2004-05-282-0/+5 * use e-icon-factory sizes.Not Zed2004-05-252-6/+8 * if we have a cached icon, use it, don't just ignore it! #58831.Not Zed2004-05-252-2/+10 * don't dist the error .h fileJP Rosevear2004-05-202-1/+4 * set the default for exit-unsaved to save, as in 1.4. #57995.Not Zed2004-05-182-1/+4 * fix for folder selector api change.Not Zed2004-05-182-1/+6 * add for translators.Not Zed2004-05-125-60/+112 * Use CAMEL_EXCEPTION_SYSTEM instead of '1', also don't useJeffrey Stedfast2004-05-122-3/+13 * Fixing parts of #53466.Enver ALTIN2004-05-102-2/+6 * updateDan Winship2004-05-031-16/+9 * header cleanups.Not Zed2004-05-032-0/+12 * ** Changed error messages to EError.Not Zed2004-04-286-119/+75 * duh, pass the string not the content type to the warning message. AndNot Zed2004-04-272-3/+9 * Only unlink the original autosave draft file if we are successful inJeffrey Stedfast2004-04-272-9/+13 * forgot to save after i added bug #.Michael Zucci2004-04-231-1/+1 * fallback to stock attach if we can't ifnd the icon.Not Zed2004-04-232-11/+21 * Use the E_ICON_SIZE enums rather than specifying an absolute pixel size.Jeffrey Stedfast2004-04-202-3/+7 * Update the composer to use the icon theme via the EIconFactory object inMichael Terry2004-04-193-13/+31 * Work in progress, HIG'ing and de-coupling of errors.Michael Zucci2004-04-161-0/+35 * Same idea here as with build_mesage(), don't convert th gconf charsetJeffrey Stedfast2004-04-163-52/+82 * To be on the safe side (even though the real bug behind bug #51924 can'tJeffrey Stedfast2004-04-142-3/+11 * add missing debug wrapper back.Larry Ewing2004-04-131-1/+1 * accept text/calendar drops.Larry Ewing2004-04-132-2/+17 * EABDestination -> EDestination. (e_msg_composer_hdrs_to_message_internal):Chris Toshok2004-04-106-105/+172 * Reversed the logic for setting the signature menu to "None" (only set itJeffrey Stedfast2004-04-082-28/+34 * ops, saved it this timeRadek Doulik2004-04-071-3/+3 * (set_editor_text): added pad_signature parameter to tell if weRadek Doulik2004-04-072-6/+10 * added empty hbox so that we have 12pxs between account setting andRadek Doulik2004-04-072-1/+11 * Revert Radek's last change to fix bug #56381.Jeffrey Stedfast2004-04-032-1/+7 * dumb fixJeffrey Stedfast2004-04-021-3/+2 * Fixed some breakage I introduced in the changes below.Jeffrey Stedfast2004-04-022-2/+12 * simplify menu_item_set_label()Jeffrey Stedfast2004-04-021-10/+5 * Updated to use the new signature APIs. (signature_added): _()ify theJeffrey Stedfast2004-04-022-4/+27 * Updated to use the new signature APIs.Jeffrey Stedfast2004-04-023-149/+176 * Fixed missing headers now mail/* doesn't include gtk/*, camel/*, andNot Zed2004-03-317-1/+23 * do not add <br> between text and signatureRadek Doulik2004-03-302-2/+6 * do not set editor insensitive, use editable-off command insteadRadek Doulik2004-03-232-1/+13 * exclude non-viable folder targets for selection, related to #55089.Not Zed2004-03-222-1/+7 * delete event: if empty paragraph has signature == 1 then set it to 0Radek Doulik2004-03-192-2/+16 * If we select multi-attachments, the "properities" menu item in popup iconBill Zhu2004-03-182-1/+17 * If the subject is empty, use _("Untitled Message") as the subject instead.Jeffrey Stedfast2004-03-072-1/+6 * Fixes bug #55202Jeffrey Stedfast2004-03-062-10/+16 * add a key-press event handler, with which a little modification to PaoloBruce Tao2004-03-042-1/+33 * Add a <br> tag between the message text and the signature text (makes itJeffrey Stedfast2004-02-272-8/+16 * From www@reality.cz Tue Feb 17 11:52:51 2004REALiTY-ON-LINE2004-02-172-2/+6 * removed debug printfRadek Doulik2004-02-131-1/+0 * get default composer size from gconf, hook to unrealize event and saveRadek Doulik2004-02-132-7/+27 * add accel and icon for the "remove" item in the popup menu. Patch fromRodney Dawes2004-02-072-4/+11 * use FORCE_SLOW_MIME_TYPE so gnome-vfs actually sniffs the file contentsChris Toshok2004-02-042-0/+7 * add widgets/miscDan Winship2004-02-042-0/+6 * use g_ascii_strcasecmp rather than strcasecmp.Not Zed2004-02-023-13/+28 * reverted radek's patch below, it was already fixed (#53176). Changed theNot Zed2004-01-293-32/+46 * set body text after setting composer's signature, so that signature isRadek Doulik2004-01-282-1/+8 * ** See Bug #53176, probably fixes others too.Not Zed2004-01-282-11/+30 * ** See Bug #20017.Not Zed2004-01-142-25/+78 * bump version and requirementsJP Rosevear2004-01-131-0/+5 * fix compilation errorJP Rosevear2004-01-131-1/+1 * added "View To", "View Post To" menu items, made it possible to see bothMeilof Veeningen2004-01-135-65/+490 * Implemented #127527: the attachment bar is packed inside an EExpanderERDI Gergo2004-01-113-29/+91 * s/unsaved files/unsaved messages/ as per bug #45407.Jeffrey Stedfast2004-01-102-1/+6 * add an assertion for no account set. Discovered from bug #50786.Not Zed2004-01-082-0/+8 * Remove the 6-pixel border around the main window. That just looked ugly.Jeffrey Stedfast2004-01-082-1/+5 * Missing changelogJP Rosevear2004-01-071-0/+4 * missed this - remove disable deprecated flagJP Rosevear2004-01-071-1/+0 * Unifdef out the post-to code and fix it to use the new folder selectionJeffrey Stedfast2003-12-052-15/+19 * Do not depend on e-folder-list.Ettore Perazzoli2003-12-032-1/+11 * Use BASE_VERSION for repo_ids and OAFIIDs Update killev to kill theRodney Dawes2003-12-022-1/+5 * autosave fixRadek Doulik2003-12-01