diff options
| author | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-26 10:33:19 +0000 |
|---|---|---|
| committer | Alex Valavanis <valavanisalex@gmail.com> | 2012-11-26 10:33:19 +0000 |
| commit | 4af19c56cf90e31a0d800821e8daf7fb08108e94 (patch) | |
| tree | 4ca77fb82df33bbc9aef4660f7b2da51ff32122d /src/ui/widget/unit-menu.cpp | |
| parent | Updated Russian translation (diff) | |
| download | inkscape-4af19c56cf90e31a0d800821e8daf7fb08108e94.tar.gz inkscape-4af19c56cf90e31a0d800821e8daf7fb08108e94.zip | |
Drop support for GTK+ < 2.24
Fixed bugs:
- https://launchpad.net/bugs/1069024
(bzr r11907)
Diffstat (limited to 'src/ui/widget/unit-menu.cpp')
| -rw-r--r-- | src/ui/widget/unit-menu.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/ui/widget/unit-menu.cpp b/src/ui/widget/unit-menu.cpp index 86e8c9e58..18b7bcab9 100644 --- a/src/ui/widget/unit-menu.cpp +++ b/src/ui/widget/unit-menu.cpp @@ -34,11 +34,7 @@ bool UnitMenu::setUnitType(UnitType unit_type) UnitTable::UnitMap::iterator iter = m.begin(); while(iter != m.end()) { Glib::ustring text = (*iter).first; -#if WITH_GTKMM_2_24 append(text); -#else - append_text(text); -#endif ++iter; } _type = unit_type; @@ -49,11 +45,7 @@ bool UnitMenu::setUnitType(UnitType unit_type) bool UnitMenu::resetUnitType(UnitType unit_type) { -#if WITH_GTKMM_2_24 - remove_all(); -#else - clear_items(); -#endif + remove_all(); return setUnitType(unit_type); } @@ -61,11 +53,7 @@ bool UnitMenu::resetUnitType(UnitType unit_type) void UnitMenu::addUnit(Unit const& u) { _unit_table.addUnit(u, false); -#if WITH_GTKMM_2_24 append(u.abbr); -#else - append_text(u.abbr); -#endif } Unit UnitMenu::getUnit() const |
