diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-10-31 19:17:04 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-10-31 19:17:04 +0800 |
commit | 1a54303e49a9f870f48031ffe54fcf480ac56d6f (patch) | |
tree | 0dc700a2b082f570c9f803430222c516232cff82 /calendar/gui/gnome-cal.h | |
parent | dccfbb1fbf368a8edb2ab78fd07b69b767ec1997 (diff) | |
download | gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.gz gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.bz2 gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.lz gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.xz gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.tar.zst gsoc2013-evolution-1a54303e49a9f870f48031ffe54fcf480ac56d6f.zip |
Fix bug #13723.
2001-10-31 Federico Mena Quintero <federico@ximian.com>
Fix bug #13723.
* gui/gnome-cal.h (GnomeCalendarClass): New signals
"calendar_focus_change", "taskpad_focus_change", and
"taskpad_selection_changed". Renamed "selection_changed" to
"calendar_selection_changed".
* gui/gnome-cal.c (gnome_calendar_get_num_tasks_selected): New
function.
(setup_widgets): Connect to the focus event signals of the task
pad and the calendar view widgets.
(gnome_calendar_delete_selection): Renamed from
gnome_calendar_delete_event().
(gnome_calendar_cut_clipboard): Handle the current focus location.
(gnome_calendar_copy_clipboard): Likewise.
(gnome_calendar_paste_clipboard): Likewise.
(gnome_calendar_delete_selection): Likewise.
(table_selection_change_cb): New callback.
* gui/calendar-commands.c (sensitize_calendar_commands): Take in
whether we should unconditionally disable everything.
(sensitize_taskpad_commands): Analogous function to the above.
(gcal_calendar_focus_change_cb): New callback, used for calendar
views.
(gcal_taskpad_focus_change_cb): New callback, used for the
taskpad.
* gui/e-day-view.c (e_day_view_key_press): Use a better test for
keys that should start editing. Fixes bug #6447.
* gui/e-week-view.c (e_week_view_key_press): Likewise.
svn path=/trunk/; revision=14528
Diffstat (limited to 'calendar/gui/gnome-cal.h')
-rw-r--r-- | calendar/gui/gnome-cal.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h index 620dbc3553..64273277ec 100644 --- a/calendar/gui/gnome-cal.h +++ b/calendar/gui/gnome-cal.h @@ -68,7 +68,12 @@ struct _GnomeCalendarClass { /* Notification signals */ void (* dates_shown_changed) (GnomeCalendar *gcal); - void (* selection_changed) (GnomeCalendar *gcal); + + void (* calendar_selection_changed) (GnomeCalendar *gcal); + void (* taskpad_selection_changed) (GnomeCalendar *gcal); + + void (* calendar_focus_change) (GnomeCalendar *gcal, gboolean in); + void (* taskpad_focus_change) (GnomeCalendar *gcal, gboolean in); }; @@ -135,6 +140,9 @@ gboolean gnome_calendar_get_visible_time_range (GnomeCalendar *gcal, /* Returns the number of selected events (0 or 1 at present). */ gint gnome_calendar_get_num_events_selected (GnomeCalendar *gcal); +/* Returns the number of selected tasks */ +gint gnome_calendar_get_num_tasks_selected (GnomeCalendar *gcal); + /* Tells the calendar to reload all config settings. initializing should be TRUE when we are setting the config settings for the first time. */ void gnome_calendar_update_config_settings (GnomeCalendar *gcal, @@ -149,7 +157,7 @@ void gnome_calendar_cut_clipboard (GnomeCalendar *gcal); void gnome_calendar_copy_clipboard (GnomeCalendar *gcal); void gnome_calendar_paste_clipboard (GnomeCalendar *gcal); -void gnome_calendar_delete_event (GnomeCalendar *gcal); +void gnome_calendar_delete_selection (GnomeCalendar *gcal); |