diff options
author | Christian Dywan <christian@twotoasts.de> | 2019-01-03 23:01:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-03 23:01:56 +0100 |
commit | 2d2092b35136bd2181d1ce1a16077901fae4c003 (patch) | |
tree | 76fa958072def1ded5ebb2cf6f4e53ec88924e6d | |
parent | 31aa08031389442a71a0768f2017940477c281ce (diff) | |
download | midori-git-2d2092b35136bd2181d1ce1a16077901fae4c003.tar.gz |
Add Report Problem to About dialog (#235)
Fixes: #228
-rw-r--r-- | core/about.vala | 8 | ||||
-rw-r--r-- | ui/about.ui | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/core/about.vala b/core/about.vala index bfc87260..e63be5d9 100644 --- a/core/about.vala +++ b/core/about.vala @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Christian Dywan <christian@twotoats.de> + Copyright (C) 2018-2019 Christian Dywan <christian@twotoats.de> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -16,6 +16,12 @@ namespace Midori { Object (transient_for: parent, website: Config.PROJECT_WEBSITE, version: Config.CORE_VERSION); + var report = add_button (_("_Report a Problem…"), Gtk.ResponseType.HELP) as Gtk.Button; + report.clicked.connect (() => { + var files = new File[1]; + files[0] = File.new_for_uri (Config.PROJECT_BUGS); + Application.get_default ().open (files, ""); + }); } } } diff --git a/ui/about.ui b/ui/about.ui index 795d817b..8f2c5d2e 100644 --- a/ui/about.ui +++ b/ui/about.ui @@ -2,7 +2,7 @@ <template class="MidoriAbout" parent="GtkAboutDialog"> <property name="modal">yes</property> <property name="logo-icon-name">midori</property> - <property name="copyright">2007-2018 Christian Dywan</property> + <property name="copyright">2007-2019 Christian Dywan</property> <property name="license-type">GTK_LICENSE_LGPL_2_1</property> <property name="program-name" translatable="yes">Midori Web Browser</property> <property name="comments" translatable="yes">A lightweight web browser.</property> |