map_win.cc
branchgui
changeset 43 9fe6eebde1a8
parent 41 06f1f9a8d51f
child 48 b8ec84524fa2
equal deleted inserted replaced
9:5a7b682b6e2d 10:ddc738afe817
   257     //filling in combo box with choices
   257     //filling in combo box with choices
   258     std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings();
   258     std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings();
   259     listStrings.push_back(newmapname);
   259     listStrings.push_back(newmapname);
   260     e_combo_array[i].set_popdown_strings(listStrings);
   260     e_combo_array[i].set_popdown_strings(listStrings);
   261   }
   261   }
       
   262   //setting text property for the new map
   262   Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry();
   263   Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry();
   263   entry->set_text((Glib::ustring)newmapname);
   264   entry->set_text((Glib::ustring)newmapname);
   264 }
   265 }
   265 
   266 
   266 void MapWin::registerNewNodeMap(std::string newmapname)
   267 void MapWin::registerNewNodeMap(std::string newmapname)
   270     //filling in combo box with choices
   271     //filling in combo box with choices
   271     std::list<Glib::ustring> listStrings=n_combo_array[i].get_popdown_strings();
   272     std::list<Glib::ustring> listStrings=n_combo_array[i].get_popdown_strings();
   272     listStrings.push_back(newmapname);
   273     listStrings.push_back(newmapname);
   273     n_combo_array[i].set_popdown_strings(listStrings);
   274     n_combo_array[i].set_popdown_strings(listStrings);
   274   }
   275   }
       
   276   //setting text property for the new map
   275   Gtk::Entry* entry = n_combo_array[N_TEXT].get_entry();
   277   Gtk::Entry* entry = n_combo_array[N_TEXT].get_entry();
   276   entry->set_text((Glib::ustring)newmapname);
   278   entry->set_text((Glib::ustring)newmapname);
   277 }
   279 }