From 43f84a5a22423b831b1d3a4b3572546803324dd4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Oct 2012 02:00:19 +0300 Subject: Extend dropdown theming. New options in dropdown.xml: padding - text padding from all sides imagePadding - image padding from right frameSize - frame size --- src/gui/setup_relations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/setup_relations.cpp') diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index e57a74561..05f6ecb26 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -160,7 +160,7 @@ public: gcn::Widget *const widget = new Label(name); mWidgets.push_back(widget); - gcn::DropDown *const choicebox = new DropDown(mListModel); + DropDown *const choicebox = new DropDown(mListModel); choicebox->setSelected(player_relations.getRelation(name)); mWidgets.push_back(choicebox); } @@ -170,7 +170,7 @@ public: virtual void updateModelInRow(const int row) { - const gcn::DropDown *const choicebox = static_cast( + const DropDown *const choicebox = static_cast( getElementAt(row, RELATION_CHOICE_COLUMN)); player_relations.setRelation(getPlayerAt(row), static_cast( -- cgit v1.2.3-70-g09d2