From 7ac5d5232dc0d8c05f392f717c56193b8ac9e222 Mon Sep 17 00:00:00 2001 From: Alex Valavanis Date: Thu, 31 May 2012 22:54:28 +0100 Subject: Gtkmm 3 fixes for licensor widget (bzr r11444) --- src/ui/widget/licensor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/ui/widget/licensor.cpp') 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(get_children()[i+1])->set_active(); +#else static_cast(children()[i+1].get_widget())->set_active(); +#endif } else { +#if WITH_GTKMM_3_0 + static_cast(get_children()[0])->set_active(); +#else static_cast(children()[0].get_widget())->set_active(); +#endif } /* update the URI */ -- cgit v1.2.3