Changeset c047c21fd33ccb1baca8957e9a32afb46e24f015

Show
Ignore:
Timestamp:
06/19/08 06:07:54 (4 years ago)
Author:
Lincoln de Sousa <lincoln@…>
Children:
070479c830a0bb818bb628398b9d18934e4d393b
Parents:
f594ad2997b55e779f6fcdad3cdacaba080bf9ff
git-committer:
Lincoln de Sousa <lincoln@…> (06/19/08 06:07:54)
Message:

show_context_menu was stoping emission of other events because was
not returning false when it should, because of it, things as double/triple
click were not working. Closes #31

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rf594ad2 rc047c21  
    33        * src/guake.py: Fixing some gettext calls, patch by 
    44        infinito. Closes #27. 
     5 
     6        * src/guake.py: (Guake.show_context_menu): Making double/triple 
     7        click to select words as in gnome-terminal. Closes #31. 
    58 
    692008-06-19  Lincoln de Sousa  <lincoln@minaslivre.org> 
  • src/guake.py

    rf594ad2 rc047c21  
    657657        menu.popup(None, None, None, 3, gtk.get_current_event_time()) 
    658658 
    659     def show_context_menu(self, vte, event): 
     659    def show_context_menu(self, terminal, event): 
     660        if event.button != 3: 
     661            return False 
     662 
    660663        guake_clipboard = gtk.clipboard_get() 
    661664        if not guake_clipboard.wait_is_text_available(): 
     
    664667            self.get_widget('context_paste').set_sensitive(True) 
    665668        context_menu = self.get_widget('context-menu') 
    666         if event.button == 3: 
    667             context_menu.popup(None, None, None, 3, gtk.get_current_event_time()) 
     669        context_menu.popup(None, None, None, 3, gtk.get_current_event_time()) 
     670        return True 
    668671 
    669672    def show_tab_menu(self, target, event):