]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/puList.cxx
replace depreciated plib symbols with their new forms
[flightgear.git] / src / GUI / puList.cxx
index 17f654bfcfbb046cd13d09ce0da6703fa17fe05e..5902a68ca1fafead66bdba89d5f7578dbb8de54a 100644 (file)
@@ -53,12 +53,14 @@ handle_arrow (puObject * arrow)
 puList::puList (int x, int y, int w, int h)
     : puGroup(x, y)
 {
+    type |= PUCLASS_LIST;
     init(w, h);
 }
 
 puList::puList (int x, int y, int w, int h, char ** contents)
     : puGroup(x, y)
 {
+    type |= PUCLASS_LIST;
     init(w, h);
     newList(contents);
 }
@@ -75,11 +77,17 @@ puList::newList (char ** contents)
 }
 
 char *
-puList::getStringValue ()
+puList::getListStringValue ()
 {
     return _contents[_list_box->getIntegerValue()];
 }
 
+int
+puList::getListIntegerValue()
+{
+  return _list_box->getIntegerValue();
+}
+
 void
 puList::init (int w, int h)
 {