From fb18e3a037c1ca1ed1c32d7a9f4f33621d94b63d Mon Sep 17 00:00:00 2001 From: kidproto Date: Sun, 22 Oct 2006 18:42:04 +0000 Subject: [PATCH] Added "Other" radio toggle for the URI field on our license dialog --- src/ui/widget/licensor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.30.2