From 21ff02a69331fbcd53dc93a1af9a93618225b4bf Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 18 Feb 2015 14:35:00 -0600 Subject: GUI: Support styles in xml to reduce xml file size Also allow sliders to have their own text label instead of requiring a whole separate text object for the label in the xml. Change-Id: I6e314efb4bb454d496555ff7e003d743063a1308 --- gui/partitionlist.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/partitionlist.cpp') diff --git a/gui/partitionlist.cpp b/gui/partitionlist.cpp index 8facfe7e5..ba8a94bb7 100644 --- a/gui/partitionlist.cpp +++ b/gui/partitionlist.cpp @@ -39,7 +39,7 @@ GUIPartitionList::GUIPartitionList(xml_node<>* node) : GUIScrollList(node) mUpdate = 0; updateList = false; - child = node->first_node("icon"); + child = FindNode(node, "icon"); if (child) { mIconSelected = LoadAttrImage(child, "selected"); @@ -47,7 +47,7 @@ GUIPartitionList::GUIPartitionList(xml_node<>* node) : GUIScrollList(node) } // Handle the result variable - child = node->first_node("data"); + child = FindNode(node, "data"); if (child) { attr = child->first_attribute("name"); @@ -62,7 +62,7 @@ GUIPartitionList::GUIPartitionList(xml_node<>* node) : GUIScrollList(node) int iconHeight = std::max(mIconSelected->GetHeight(), mIconUnselected->GetHeight()); SetMaxIconSize(iconWidth, iconHeight); - child = node->first_node("listtype"); + child = FindNode(node, "listtype"); if (child && (attr = child->first_attribute("name"))) { ListType = attr->value(); updateList = true; -- cgit v1.2.3