diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 23:49:56 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-03-25 23:49:56 +0200 |
commit | 771925076fe7695e198b4c4279707ca4b028cebf (patch) | |
tree | ca10422e8fd7c4f22ed6c52e4457110540554b4d /src/service.c | |
parent | c00d3d13b07ed6fa60ac975c2e633e2e5a3cbee3 (diff) | |
download | ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.tar.gz ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.tar.bz2 ayatana-indicator-session-771925076fe7695e198b4c4279707ca4b028cebf.zip |
Add 'Report a bug...' item to the session menu.
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); } @@ -829,6 +830,14 @@ on_distro_help_activated (GSimpleAction * a G_GNUC_UNUSED, } 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, gpointer gself) @@ -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 }, |