| 1 | [33mcommit 248918e722d10d9ebe628ccd122311e0c9b407f6[m |
|---|
| 2 | Author: max ulidtko <ulidtko@gmail.com> |
|---|
| 3 | Date: Sat Sep 25 09:13:17 2010 +0300 |
|---|
| 4 | |
|---|
| 5 | Add "terminal reset" feature |
|---|
| 6 | |
|---|
| 7 | [1mdiff --git a/data/guake.glade b/data/guake.glade[m |
|---|
| 8 | [1mindex 08124d7..bf16569 100644[m |
|---|
| 9 | [1m--- a/data/guake.glade[m |
|---|
| 10 | [1m+++ b/data/guake.glade[m |
|---|
| 11 | [36m@@ -215,6 +215,14 @@[m |
|---|
| 12 | </widget>[m |
|---|
| 13 | </child>[m |
|---|
| 14 | <child>[m |
|---|
| 15 | [32m+[m[32m <widget class="GtkMenuItem" id="Terminal Reset">[m |
|---|
| 16 | [32m+[m[32m <property name="visible">True</property>[m |
|---|
| 17 | [32m+[m[32m <property name="label" translatable="yes">Terminal Reset</property>[m |
|---|
| 18 | [32m+[m[32m <property name="use_underline">True</property>[m |
|---|
| 19 | [32m+[m[32m <signal name="activate" handler="reset_terminal"/>[m |
|---|
| 20 | [32m+[m[32m </widget>[m |
|---|
| 21 | [32m+[m[32m </child>[m |
|---|
| 22 | [32m+[m[32m <child>[m |
|---|
| 23 | <widget class="GtkImageMenuItem" id="context_close_tab">[m |
|---|
| 24 | <property name="label" translatable="yes">Close Tab</property>[m |
|---|
| 25 | <property name="visible">True</property>[m |
|---|
| 26 | [1mdiff --git a/src/guake.py b/src/guake.py[m |
|---|
| 27 | [1mindex 6214fb2..322ca6c 100644[m |
|---|
| 28 | [1m--- a/src/guake.py[m |
|---|
| 29 | [1m+++ b/src/guake.py[m |
|---|
| 30 | [36m@@ -1025,6 +1025,14 @@[m [mclass Guake(SimpleGladeApp):[m |
|---|
| 31 | pagepos = tabs.index(self.selected_tab)[m |
|---|
| 32 | self.delete_tab(pagepos)[m |
|---|
| 33 | [m |
|---|
| 34 | [32m+[m[32m def reset_terminal(self, *args):[m |
|---|
| 35 | [32m+[m[32m """Performs reset on current vte, restoring as much as possible state[m |
|---|
| 36 | [32m+[m[32m to default[m |
|---|
| 37 | [32m+[m[32m """[m |
|---|
| 38 | [32m+[m[32m pagepos = self.notebook.get_current_page()[m |
|---|
| 39 | [32m+[m[32m self.term_list[pagepos].reset(True, True)[m |
|---|
| 40 | [32m+[m[32m return True[m |
|---|
| 41 | [32m+[m |
|---|
| 42 | # -- tab related functions --[m |
|---|
| 43 | [m |
|---|
| 44 | def close_tab(self, *args):[m |
|---|