mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-05 23:50:07 +00:00
Implemented about menu
This commit is contained in:
parent
c211dcbfaa
commit
a46977f572
|
@ -161,7 +161,36 @@ public class Application : Gtk.Application
|
|||
|
||||
private void on_app_about_activated()
|
||||
{
|
||||
|
||||
string[] authors = {"Jesse van den Kieboom <jessevdk@gnome.org>",
|
||||
"Ignacio Casal Quinteiro <icq@gnome.org>"};
|
||||
|
||||
string copyright = "Copyright \xc2\xa9 2012 Jesse van den Kieboom";
|
||||
string comments = _("gitg is a git repository viewer for gtk+/GNOME");
|
||||
|
||||
Gdk.Pixbuf? logo = null;
|
||||
|
||||
try
|
||||
{
|
||||
logo = new Gdk.Pixbuf.from_file(Dirs.build_data_file("icons", "gitg.svg"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
try
|
||||
{
|
||||
logo = new Gdk.Pixbuf.from_file(Dirs.build_data_file("icons", "gitg128x128.png"));
|
||||
}
|
||||
catch {}
|
||||
}
|
||||
|
||||
Gtk.show_about_dialog(null,
|
||||
"authors", authors,
|
||||
"copyright", copyright,
|
||||
"comments", comments,
|
||||
"version", Config.VERSION,
|
||||
"website", Config.PACKAGE_URL,
|
||||
"website-label", _("gitg homepage"),
|
||||
"logo", logo,
|
||||
"license-type", Gtk.License.GPL_2_0);
|
||||
}
|
||||
|
||||
private void on_app_quit_activated()
|
||||
|
|
|
@ -4,6 +4,7 @@ namespace Gitg.Config
|
|||
public const string GETTEXT_PACKAGE;
|
||||
public const string PACKAGE_NAME;
|
||||
public const string PACKAGE_VERSION;
|
||||
public const string PACKAGE_URL;
|
||||
public const string GITG_DATADIR;
|
||||
public const string GITG_LOCALEDIR;
|
||||
public const string GITG_LIBDIR;
|
||||
|
|
Loading…
Reference in a new issue