Skip to content

Commit

Permalink
alarm: Add "Set Alarm" command to services menu. Closes: #372.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindgren90 committed Nov 24, 2013
1 parent d061fd7 commit 7917fd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/alarm/alarm.c
Expand Up @@ -775,6 +775,8 @@ static gboolean alarm_init (void)

timeout_source = g_timeout_add_seconds (10, alarm_timeout, NULL);

aud_plugin_menu_add (AUD_MENU_MAIN, alarm_configure, _("Set Alarm ..."), "appointment-new");

return TRUE;
}

Expand All @@ -785,6 +787,8 @@ static void alarm_cleanup(void)
{
AUDDBG("alarm_cleanup\n");

aud_plugin_menu_remove (AUD_MENU_MAIN, alarm_configure);

if (timeout_source)
{
g_source_remove (timeout_source);
Expand Down

0 comments on commit 7917fd0

Please sign in to comment.