Skip to content
  • Matthias Clasen's avatar
    Make the entry context menu work in editable text cells. The changes are · e387e7e6
    Matthias Clasen authored
    Sun Jun  6 23:57:21 2004  Matthias Clasen  <maclas@gmx.de>
    
    	Make the entry context menu work in editable text cells. The changes are
    	based on a patch by Kristian Rietveld, which implemented an approach outlined
    	by Owen Taylor.  (#50075)
    
    	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): Ignore
    	focus out if the entry menu is posted.
    	(gtk_cell_renderer_text_populate_popup): Mark the entry menu as posted, and
    	set up a signal handler to clear the flag if the menu is unmapped.
    	(gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, set up
    	a timeout to stop editing if the focus is lost.
    	(popdown_timeout): Stop editing if the entry doesn't have focus any more.
    	(gtk_cell_renderer_text_start_editing): Connect to the populate_popup signal
    	on the entry and keep a pointer to the entry.
    	(gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, clear
    	the pointer to the entry.
    e387e7e6
To find the state of this project's repository at the time of any of these versions, check out the tags.