@@ -39,6 +39,15 @@ def __init__(self, guakeinstance):
39
39
def show_hide (self ):
40
40
self .guake .show_hide ()
41
41
42
+ @dbus .service .method (DBUS_NAME )
43
+ def show (self ):
44
+ self .guake .show ()
45
+ self .guake .set_terminal_focus ()
46
+
47
+ @dbus .service .method (DBUS_NAME )
48
+ def hide (self ):
49
+ self .guake .hide ()
50
+
42
51
@dbus .service .method (DBUS_NAME , in_signature = 's' )
43
52
def add_tab (self , directory = '' ):
44
53
self .guake .add_tab (directory )
@@ -51,10 +60,18 @@ def select_tab(self, tab_index=0):
51
60
def get_selected_tab (self ):
52
61
return self .guake .get_selected_tab ()
53
62
63
+ @dbus .service .method (DBUS_NAME , out_signature = 'i' )
64
+ def get_tab_count (self ):
65
+ return len (self .guake .term_list )
66
+
54
67
@dbus .service .method (DBUS_NAME , in_signature = 's' )
55
68
def execute_command (self , command ):
56
69
self .guake .execute_command (command )
57
70
71
+ @dbus .service .method (DBUS_NAME , in_signature = 'i' , out_signature = 's' )
72
+ def get_tab_name (self , tab_index = 0 ):
73
+ return self .guake .term_list [int (tab_index )].get_window_title ()
74
+
58
75
@dbus .service .method (DBUS_NAME , in_signature = 's' )
59
76
def rename_current_tab (self , new_text ):
60
77
self .guake .rename_current_tab (new_text )
0 commit comments