aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.h
diff options
context:
space:
mode:
authorBolian Yin <bolian.yin@sun.com>2003-07-02 09:35:29 +0800
committerBolian Yin <byin@src.gnome.org>2003-07-02 09:35:29 +0800
commit1e9a3832fd634237c97f8e5bd90bb68897b789ca (patch)
tree8da777dc63d939debab07e4175d42c8c7f3f05ee /calendar/gui/gnome-cal.h
parentee0d3c326ba3825b4c12a15d20d5c5692df2f629 (diff)
downloadgsoc2013-evolution-1e9a3832fd634237c97f8e5bd90bb68897b789ca.tar.gz
gsoc2013-evolution-1e9a3832fd634237c97f8e5bd90bb68897b789ca.tar.zst
gsoc2013-evolution-1e9a3832fd634237c97f8e5bd90bb68897b789ca.zip
Fixes #45328, #45329
2003-06-30 Bolian Yin <bolian.yin@sun.com> Fixes #45328, #45329 * gui/e-day-view.c (e_day_view_do_key_press): Do not process PageUp/PageDown, .. when the Alt key is pressed (give key binding set the chance). * gui/gnome-cal.h : define new enum type, GNOME_CAL_GOTO_DATE_TYPE. * gui/gnome-cal.c (gnome_calendar_class_init): define new signal "goto_date". Add key bindings for "Alt+PageUp/PageDown", "Alt+Home/End". (gnome_calendar_goto_date): Impl. signal handler for "goto_date". svn path=/trunk/; revision=21717
Diffstat (limited to 'calendar/gui/gnome-cal.h')
-rw-r--r--calendar/gui/gnome-cal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/calendar/gui/gnome-cal.h b/calendar/gui/gnome-cal.h
index 52c2cf5176..ce25f4544b 100644
--- a/calendar/gui/gnome-cal.h
+++ b/calendar/gui/gnome-cal.h
@@ -57,6 +57,16 @@ typedef enum {
GNOME_CAL_MONTH_VIEW
} GnomeCalendarViewType;
+typedef enum
+{
+ GNOME_CAL_GOTO_TODAY,
+ GNOME_CAL_GOTO_DATE,
+ GNOME_CAL_GOTO_FIRST_DAY_OF_MONTH,
+ GNOME_CAL_GOTO_LAST_DAY_OF_MONTH,
+ GNOME_CAL_GOTO_FIRST_DAY_OF_WEEK,
+ GNOME_CAL_GOTO_LAST_DAY_OF_WEEK,
+} GnomeCalendarGotoDateType;
+
struct _GnomeCalendar {
GtkVBox vbox;
@@ -75,6 +85,9 @@ struct _GnomeCalendarClass {
void (* calendar_focus_change) (GnomeCalendar *gcal, gboolean in);
void (* taskpad_focus_change) (GnomeCalendar *gcal, gboolean in);
+ void (* goto_date) (GnomeCalendar *day_view,
+ GnomeCalendarGotoDateType date);
+
};