diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-18 05:35:40 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-07-18 05:35:40 +0200 |
commit | e246fe0945c3e5b99b1aa0ed3cfb77c6a08ca01a (patch) | |
tree | 11bf16345d986ad0f098987b004093be80f0d890 /src/backend-dbus/actions.c | |
parent | 11ee7a561c21b7ea6446eb9a15001b264d1c05e6 (diff) | |
download | ayatana-indicator-session-e246fe0945c3e5b99b1aa0ed3cfb77c6a08ca01a.tar.gz ayatana-indicator-session-e246fe0945c3e5b99b1aa0ed3cfb77c6a08ca01a.tar.bz2 ayatana-indicator-session-e246fe0945c3e5b99b1aa0ed3cfb77c6a08ca01a.zip |
Provide to 'Help' menu items. One for Distro Help, one for Desktop Help.
Diffstat (limited to 'src/backend-dbus/actions.c')
-rw-r--r-- | src/backend-dbus/actions.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c index d2b7fbb..1836d94 100644 --- a/src/backend-dbus/actions.c +++ b/src/backend-dbus/actions.c @@ -914,7 +914,7 @@ my_power_off (IndicatorSessionActions * actions) ***/ static void -my_help (IndicatorSessionActions * self G_GNUC_UNUSED) +my_desktop_help (IndicatorSessionActions * self G_GNUC_UNUSED) { if (have_mate_program ("yelp")) run_outside_app ("yelp help:mate-user-guide"); @@ -922,6 +922,13 @@ my_help (IndicatorSessionActions * self G_GNUC_UNUSED) run_outside_app ("yelp"); } +static void +my_distro_help (IndicatorSessionActions * self G_GNUC_UNUSED) +{ + run_outside_app(g_strdup_printf("x-www-browser '%s'", get_distro_url())); +} + + static gboolean have_unity_control_center (void) { @@ -1164,7 +1171,8 @@ indicator_session_actions_dbus_class_init (IndicatorSessionActionsDbusClass * kl actions_class->power_off = my_power_off; actions_class->settings = my_settings; actions_class->online_accounts = my_online_accounts; - actions_class->help = my_help; + actions_class->desktop_help = my_desktop_help; + actions_class->distro_help = my_distro_help; actions_class->about = my_about; actions_class->switch_to_screensaver = my_switch_to_screensaver; actions_class->switch_to_greeter = my_switch_to_greeter; |