diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-07-25 12:59:35 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-07-25 12:59:35 -0500 |
commit | 909eac7b7007ed089596324d0df4485fbafb9e48 (patch) | |
tree | 6ce04f6f4d7a75aef19057a7d215b72dd470ae0d | |
parent | ae8c7f0a6191ea2c3578efea385cc8550d96c777 (diff) | |
download | ayatana-indicator-datetime-909eac7b7007ed089596324d0df4485fbafb9e48.tar.gz ayatana-indicator-datetime-909eac7b7007ed089596324d0df4485fbafb9e48.tar.bz2 ayatana-indicator-datetime-909eac7b7007ed089596324d0df4485fbafb9e48.zip |
add a (currently unimplemented) PROFILE_PHONE to our enum
-rw-r--r-- | src/service.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/service.c b/src/service.c index f0eed76..b270e89 100644 --- a/src/service.c +++ b/src/service.c @@ -59,6 +59,7 @@ enum enum { + PROFILE_PHONE, PROFILE_DESKTOP, PROFILE_GREETER, N_PROFILES @@ -66,6 +67,7 @@ enum static const char * const menu_names[N_PROFILES] = { + "phone", "desktop", "desktop_greeter" }; @@ -1151,16 +1153,21 @@ create_menu (IndicatorDatetimeService * self, int profile) g_assert (0<=profile && profile<N_PROFILES); g_assert (self->priv->menus[profile].menu == NULL); - if (profile == PROFILE_DESKTOP) + switch (profile) { - sections[n++] = create_calendar_section (self); - sections[n++] = create_appointments_section (self); - sections[n++] = create_locations_section (self); - sections[n++] = create_settings_section (self); - } - else if (profile == PROFILE_GREETER) - { - sections[n++] = create_calendar_section (self); + case PROFILE_PHONE: + break; + + case PROFILE_DESKTOP: + sections[n++] = create_calendar_section (self); + sections[n++] = create_appointments_section (self); + sections[n++] = create_locations_section (self); + sections[n++] = create_settings_section (self); + break; + + case PROFILE_GREETER: + sections[n++] = create_calendar_section (self); + break; } /* add sections to the submenu */ |