gui/map_win.cc
changeset 1594 0bd9e53c8b28
parent 1592 4708b716d2f4
child 1599 c2f95eac652b
equal deleted inserted replaced
9:8cc3205e533e 10:4f2af214145e
   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 }