Changeset c047c21fd33ccb1baca8957e9a32afb46e24f015
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
rf594ad2
|
rc047c21
|
|
| 3 | 3 | * src/guake.py: Fixing some gettext calls, patch by |
| 4 | 4 | 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. |
| 5 | 8 | |
| 6 | 9 | 2008-06-19 Lincoln de Sousa <lincoln@minaslivre.org> |
-
|
rf594ad2
|
rc047c21
|
|
| 657 | 657 | menu.popup(None, None, None, 3, gtk.get_current_event_time()) |
| 658 | 658 | |
| 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 | |
| 660 | 663 | guake_clipboard = gtk.clipboard_get() |
| 661 | 664 | if not guake_clipboard.wait_is_text_available(): |
| … |
… |
|
| 664 | 667 | self.get_widget('context_paste').set_sensitive(True) |
| 665 | 668 | 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 |
| 668 | 671 | |
| 669 | 672 | def show_tab_menu(self, target, event): |