diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-08-13 13:58:22 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-08-16 15:30:36 +0000 |
| commit | c45a81b10b1b75010e9b317dcdd0df102f16aeeb (patch) | |
| tree | f48a4b2df96970305a1f23251e978a28419dad59 /src/ui/dialog/aboutbox.cpp | |
| parent | Install AUTHORS & TRANSLATORS files and auto-generate credits in AboutBox (diff) | |
| download | inkscape-c45a81b10b1b75010e9b317dcdd0df102f16aeeb.tar.gz inkscape-c45a81b10b1b75010e9b317dcdd0df102f16aeeb.zip | |
AboutBox: Add metadata
Diffstat (limited to 'src/ui/dialog/aboutbox.cpp')
| -rw-r--r-- | src/ui/dialog/aboutbox.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/ui/dialog/aboutbox.cpp b/src/ui/dialog/aboutbox.cpp index 652ebd411..a4cb00812 100644 --- a/src/ui/dialog/aboutbox.cpp +++ b/src/ui/dialog/aboutbox.cpp @@ -68,29 +68,28 @@ void AboutBox::hide_about() { * Constructor */ AboutBox::AboutBox() { - // call this first initStrings(); + // Insert the Splash widget. This is placed directly into the + // content area of the dialog, whereas everything else is placed + // automatically by the Gtk::AboutDialog parent class Gtk::Widget *splash=build_splash_widget(); if (splash) { get_content_area()->pack_end(*manage(splash), true, true); splash->show_all(); } - set_logo_icon_name(INKSCAPE_ICON("inkscape")); + // Set Application metadata, which will be automatically + // inserted into text widgets by the Gtk::AboutDialog parent class set_program_name("Inkscape"); set_version(Inkscape::version_string); - + set_logo_icon_name(INKSCAPE_ICON("inkscape")); set_website("https://www.inkscape.org"); - - Gtk::Requisition minimum_size; - Gtk::Requisition natural_size; - get_preferred_size(minimum_size, natural_size); - - // allow window to shrink - set_size_request(0, 0); - set_default_size(minimum_size.width, minimum_size.height); + set_website_label(_("Inkscape website")); + set_license_type(Gtk::LICENSE_GPL_3_0); + set_comments(_("Open Source Scalable Vector Graphics Editor\n" + "Draw Freely.")); } Gtk::Widget *build_splash_widget() { @@ -203,8 +202,6 @@ void AboutBox::initStrings() { } set_translator_credits(translators_text); - set_license("GPL 3.0 or later"); // Overriden in next line - set_license_type(Gtk::LICENSE_GPL_3_0); } void AboutBox::on_response(int response_id) { |
