blob: a503e7bff310ffd4641695d672faa040f4662f15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
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
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
See the file COPYING for the full license text.
*/
namespace Midori {
[GtkTemplate (ui = "/ui/about.ui")]
class About : Gtk.AboutDialog {
public About (Gtk.Window parent) {
Object (transient_for: parent,
logo_icon_name: Config.PROJECT_DOMAIN,
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, "");
});
}
}
}
|