diff options
author | JP Rosevear <jpr@ximian.com> | 2002-04-19 03:00:25 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2002-04-19 03:00:25 +0800 |
commit | 90710b285fcb24c3a6b7a6d78fd1746bcaff2256 (patch) | |
tree | 84bb16e4c51763463d6640d6a1bd7a94f0a88c99 /calendar/gui/e-day-view.c | |
parent | bd6359c660895ea0765c216563957c3a2f44e112 (diff) | |
download | gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.gz gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.tar.zst gsoc2013-evolution-90710b285fcb24c3a6b7a6d78fd1746bcaff2256.zip |
show the settings
2002-04-18 JP Rosevear <jpr@ximian.com>
* gui/e-day-view.c (e_day_view_on_settings): show the settings
* gui/e-week-view.c (e_week_view_on_settings): ditto
* gui/calendar-commands.c (control_util_show_settings): show the
settings dialog
* gui/calendar-commands.h: new proto
* gui/control-factory.c (control_factory_new_control): set the
control as object data on the calendar
svn path=/trunk/; revision=16511
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 29d7c97393..4f73dccd55 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -355,6 +355,8 @@ static void e_day_view_on_forward (GtkWidget *widget, gpointer data); static void e_day_view_on_publish (GtkWidget *widget, gpointer data); +static void e_day_view_on_settings (GtkWidget *widget, + gpointer data); static void e_day_view_on_delete_occurrence (GtkWidget *widget, gpointer data); static void e_day_view_on_delete_appointment (GtkWidget *widget, @@ -3539,6 +3541,17 @@ enum { MASK_EDITING = 8 }; +#if 0 +static EPopupMenu view_items [] = { + E_POPUP_RADIO_ITEM (N_("Day View"), e_day_view_on_goto_date, 0, 0), + E_POPUP_RADIO_ITEM (N_("Work Week View"), e_day_view_on_goto_date, 0, 0), + E_POPUP_RADIO_ITEM (N_("Week View"), e_day_view_on_goto_date, 0, 0), + E_POPUP_RADIO_ITEM (N_("Month View"), e_day_view_on_goto_date, 0, 0), + + E_POPUP_TERMINATOR +}; +#endif + static EPopupMenu main_items [] = { E_POPUP_ITEM (N_("New _Appointment"), e_day_view_on_new_appointment, 0), @@ -3561,6 +3574,11 @@ static EPopupMenu main_items [] = { E_POPUP_SEPARATOR, +#if 0 + E_POPUP_SUBMENU (N_("Current View"), + view_items, 0), +#endif + E_POPUP_ITEM (N_("Go to _Today"), e_day_view_on_goto_today, 0), E_POPUP_ITEM (N_("_Go to Date..."), @@ -3574,15 +3592,16 @@ static EPopupMenu main_items [] = { E_POPUP_SEPARATOR, E_POPUP_ITEM (N_("_Configure..."), - e_day_view_on_paste, 0), + e_day_view_on_settings, 0), E_POPUP_TERMINATOR }; static EPopupMenu child_items [] = { + E_POPUP_ITEM (N_("_Open"), e_day_view_on_edit_appointment, MASK_EDITABLE | MASK_EDITING), - E_POPUP_ITEM (N_("_Save As..."), e_day_view_on_save_as, MASK_EDITABLE | MASK_SINGLE | MASK_EDITING), - E_POPUP_ITEM (N_("_Print..."), e_day_view_on_print_event, MASK_EDITABLE | MASK_SINGLE | MASK_EDITING), + E_POPUP_ITEM (N_("_Save As..."), e_day_view_on_save_as, MASK_EDITABLE | MASK_EDITING), + E_POPUP_ITEM (N_("_Print..."), e_day_view_on_print_event, MASK_EDITABLE | MASK_EDITING), /* Only show this separator if one of the above is shown. */ E_POPUP_SEPARATOR, @@ -3917,6 +3936,16 @@ e_day_view_on_publish (GtkWidget *widget, gpointer data) } static void +e_day_view_on_settings (GtkWidget *widget, gpointer data) +{ + EDayView *day_view; + + day_view = E_DAY_VIEW (data); + + control_util_show_settings (day_view->calendar); +} + +static void e_day_view_on_delete_occurrence (GtkWidget *widget, gpointer data) { EDayView *day_view; |