diff options
author | Milan Crha <mcrha@redhat.com> | 2012-04-11 22:58:05 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-04-11 22:58:05 +0800 |
commit | 49787d04feef8ff699326e54d5991a36d8ef74bb (patch) | |
tree | 17129ce5082dd431865c8afc01290dbac4dc3524 /modules/calendar/e-cal-shell-view-actions.c | |
parent | e3295b4d11bca23980472f1d54f4a52927c41539 (diff) | |
download | gsoc2013-evolution-49787d04feef8ff699326e54d5991a36d8ef74bb.tar.gz gsoc2013-evolution-49787d04feef8ff699326e54d5991a36d8ef74bb.tar.zst gsoc2013-evolution-49787d04feef8ff699326e54d5991a36d8ef74bb.zip |
Bug #584143 - Global Search Function withing Calendar
Diffstat (limited to 'modules/calendar/e-cal-shell-view-actions.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view-actions.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c index 956766571a..d73feef25e 100644 --- a/modules/calendar/e-cal-shell-view-actions.c +++ b/modules/calendar/e-cal-shell-view-actions.c @@ -421,6 +421,27 @@ action_calendar_rename_cb (GtkAction *action, } static void +action_calendar_search_next_cb (GtkAction *action, + ECalShellView *cal_shell_view) +{ + e_cal_shell_view_search_events (cal_shell_view, TRUE); +} + +static void +action_calendar_search_prev_cb (GtkAction *action, + ECalShellView *cal_shell_view) +{ + e_cal_shell_view_search_events (cal_shell_view, FALSE); +} + +static void +action_calendar_search_stop_cb (GtkAction *action, + ECalShellView *cal_shell_view) +{ + e_cal_shell_view_search_stop (cal_shell_view); +} + +static void action_calendar_select_one_cb (GtkAction *action, ECalShellView *cal_shell_view) { @@ -1407,6 +1428,27 @@ static GtkActionEntry calendar_entries[] = { N_("Rename the selected calendar"), G_CALLBACK (action_calendar_rename_cb) }, + { "calendar-search-next", + GTK_STOCK_GO_FORWARD, + N_("Find _next"), + "<Control><Shift>n", + N_("Find next occurrence of the current search string"), + G_CALLBACK (action_calendar_search_next_cb) }, + + { "calendar-search-prev", + GTK_STOCK_GO_BACK, + N_("Find _previous"), + "<Control><Shift>p", + N_("Find previous occurrence of the current search string"), + G_CALLBACK (action_calendar_search_prev_cb) }, + + { "calendar-search-stop", + GTK_STOCK_STOP, + N_("Stop _running search"), + NULL, + N_("Stop currently running search"), + G_CALLBACK (action_calendar_search_stop_cb) }, + { "calendar-select-one", "stock_check-filled", N_("Show _Only This Calendar"), |