From 771925076fe7695e198b4c4279707ca4b028cebf Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 25 Mar 2018 23:49:56 +0200 Subject: Add 'Report a bug...' item to the session menu. --- src/service.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/service.c') diff --git a/src/service.c b/src/service.c index 4fee574..30ba3bb 100644 --- a/src/service.c +++ b/src/service.c @@ -348,6 +348,7 @@ create_admin_section (void) g_menu_append (menu, distro_help_label, "indicator.distro_help"); g_free (desktop_help_label); g_free (distro_help_label); + g_menu_append (menu, _("Report a Bug…"), "indicator.bug"); return G_MENU_MODEL (menu); } @@ -828,6 +829,14 @@ on_distro_help_activated (GSimpleAction * a G_GNUC_UNUSED, indicator_session_actions_distro_help (get_backend_actions(gself)); } +static void +on_bug_activated (GSimpleAction * a G_GNUC_UNUSED, + GVariant * param G_GNUC_UNUSED, + gpointer gself) +{ + indicator_session_actions_bug (get_backend_actions(gself)); +} + static void on_settings_activated (GSimpleAction * a G_GNUC_UNUSED, GVariant * param G_GNUC_UNUSED, @@ -921,6 +930,7 @@ init_gactions (IndicatorSessionService * self) { "about", on_about_activated }, { "desktop_help", on_desktop_help_activated }, { "distro_help", on_distro_help_activated }, + { "bug", on_bug_activated }, { "hibernate", on_hibernate_activated }, { "logout", on_logout_activated }, { "online-accounts", on_online_accounts_activated }, -- cgit v1.2.3