diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-10-22 18:42:04 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-10-22 18:42:04 +0000 |
| commit | c2a5e17104f719913f982f7ea58834a777b9a19e (patch) | |
| tree | 4d955274c45118e3ce8c2bba6ee76d0767b3daaf | |
| parent | Key, tab and focus refinement (diff) | |
| download | inkscape-c2a5e17104f719913f982f7ea58834a777b9a19e.tar.gz inkscape-c2a5e17104f719913f982f7ea58834a777b9a19e.zip | |
Added "Other" radio toggle for the URI field on our license dialog
(bzr r1829)
| -rw-r--r-- | src/ui/widget/licensor.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/widget/licensor.cpp b/src/ui/widget/licensor.cpp index 50c49e912..c872c06df 100644 --- a/src/ui/widget/licensor.cpp +++ b/src/ui/widget/licensor.cpp @@ -34,6 +34,9 @@ namespace Widget { const struct rdf_license_t _proprietary_license = {_("Proprietary"), "", 0}; +const struct rdf_license_t _other_license = + {_("Other"), "", 0}; + class LicenseItem : public Gtk::RadioButton { public: LicenseItem (struct rdf_license_t const* license, EntityEntry* entity, Registry &wr); @@ -92,12 +95,17 @@ Licensor::init (Gtk::Tooltips& tt, Registry& wr) i = manage (new LicenseItem (&_proprietary_license, _eentry, wr)); add (*i); LicenseItem *pd = i; + for (struct rdf_license_t * license = rdf_licenses; license && license->name; license++) { i = manage (new LicenseItem (license, _eentry, wr)); add(*i); } + // add Other at the end before the URI field for the confused ppl. + LicenseItem *io = manage (new LicenseItem (&_other_license, _eentry, wr)); + add (*io); + pd->set_active(); wr.setUpdating (false); |
