diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-31 21:54:28 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-05-31 21:54:28 +0000 |
| commit | 7ac5d5232dc0d8c05f392f717c56193b8ac9e222 (patch) | |
| tree | c00fda17f0e029ed25fe4349390114dbf2ce6c5d /src/ui/widget/licensor.cpp | |
| parent | Replace deprecated GDK key symbols in mesh-context (diff) | |
| download | inkscape-7ac5d5232dc0d8c05f392f717c56193b8ac9e222.tar.gz inkscape-7ac5d5232dc0d8c05f392f717c56193b8ac9e222.zip | |
Gtkmm 3 fixes for licensor widget
(bzr r11444)
Diffstat (limited to 'src/ui/widget/licensor.cpp')
| -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 98a5808d6..7fff7d87f 100644 --- a/src/ui/widget/licensor.cpp +++ b/src/ui/widget/licensor.cpp @@ -133,10 +133,18 @@ void Licensor::update (SPDocument *doc) for (i=0; rdf_licenses[i].name; i++) if (license == &rdf_licenses[i]) break; +#if WITH_GTKMM_3_0 + static_cast<LicenseItem*>(get_children()[i+1])->set_active(); +#else static_cast<LicenseItem*>(children()[i+1].get_widget())->set_active(); +#endif } else { +#if WITH_GTKMM_3_0 + static_cast<LicenseItem*>(get_children()[0])->set_active(); +#else static_cast<LicenseItem*>(children()[0].get_widget())->set_active(); +#endif } /* update the URI */ |
