graph_displayer_canvas-event.cc
branchgui
changeset 57 1f158566c3bf
parent 53 e73d7540bd24
child 59 c38925cc6a4d
equal deleted inserted replaced
17:29e29f714e19 18:adc6101beacb
   620 			entry_coos.y=(edgetextmap[active_edge])->property_y().get_value();
   620 			entry_coos.y=(edgetextmap[active_edge])->property_y().get_value();
   621 			entry_coos.y-=edgetextmap[active_edge]->property_text_height().get_value()*1.5/2;
   621 			entry_coos.y-=edgetextmap[active_edge]->property_text_height().get_value()*1.5/2;
   622 			canvasentrywidget=new Gnome::Canvas::Widget(displayed_graph, entry_coos.x, entry_coos.y, entrywidget);
   622 			canvasentrywidget=new Gnome::Canvas::Widget(displayed_graph, entry_coos.x, entry_coos.y, entrywidget);
   623 			canvasentrywidget->property_width().set_value(edgetextmap[active_edge]->property_text_width().get_value()*4);
   623 			canvasentrywidget->property_width().set_value(edgetextmap[active_edge]->property_text_width().get_value()*4);
   624 			canvasentrywidget->property_height().set_value(edgetextmap[active_edge]->property_text_height().get_value()*1.5);
   624 			canvasentrywidget->property_height().set_value(edgetextmap[active_edge]->property_text_height().get_value()*1.5);
       
   625 
       
   626 			//setting the focus to newly created widget
       
   627 			parentwin->set_focus(entrywidget);
       
   628 			parentwin->activate_focus();
   625 		      }
   629 		      }
   626 		  }
   630 		  }
   627 	      }
   631 	      }
   628 	    //if it was not an edge...
   632 	    //if it was not an edge...
   629 	    else
   633 	    else