map_win.cc
branchgui
changeset 89 4042761b21e3
parent 82 ee009c0f4bcf
child 90 e9f8f44f12a3
equal deleted inserted replaced
16:1933cdbafb33 17:bc8a3678cdf1
    90   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    90   for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    91   {
    91   {
    92     //filling in combo box with choices
    92     //filling in combo box with choices
    93     e_combo_array[i]->append_text((Glib::ustring)newmapname);
    93     e_combo_array[i]->append_text((Glib::ustring)newmapname);
    94   }
    94   }
    95   //setting text property for the new map
       
    96   e_combo_array[N_TEXT]->set_active_text((Glib::ustring)newmapname);
       
    97 }
    95 }
    98 
    96 
    99 void MapWin::registerNewNodeMap(std::string newmapname)
    97 void MapWin::registerNewNodeMap(std::string newmapname)
   100 {
    98 {
   101   for(int i=0;i<NODE_PROPERTY_NUM;i++)
    99   for(int i=0;i<NODE_PROPERTY_NUM;i++)
   102   {
   100   {
   103     //filling in combo box with choices
   101     //filling in combo box with choices
   104     n_combo_array[i]->append_text((Glib::ustring)newmapname);
   102     n_combo_array[i]->append_text((Glib::ustring)newmapname);
   105   }
   103   }
   106   //setting text property for the new map
       
   107   n_combo_array[N_TEXT]->set_active_text((Glib::ustring)newmapname);
       
   108 }
   104 }