57
57
dic = { "on_window_main_destroy": gtk.main_quit,
58
58
"on_quit_activate": gtk.main_quit,
59
59
"on_about_activate": handler.on_about_activate,
60
"on_menuitem_add_files_activate": handler.on_menuitem_add_files_activate,
61
"on_menuitem_remove_file_activate": handler.on_menuitem_remove_file_activate,
60
62
"on_menuitem_file_make_directory_activate": handler.not_implemented,
63
"on_menuitem_branch_initialize_activate": handler.on_menuitem_branch_initialize_activate,
61
64
"on_menuitem_branch_branch_activate": handler.on_menuitem_branch_branch_activate,
62
"on_menuitem_branch_commit_activate": handler.not_implemented,
65
"on_menuitem_branch_commit_activate": handler.on_menuitem_branch_commit_activate,
66
"on_menuitem_branch_push_activate": handler.on_menuitem_branch_push_activate,
67
"on_toolbutton_update_clicked": handler.not_implemented,
68
"on_toolbutton_commit_clicked": handler.on_menuitem_branch_commit_activate,
69
"on_toolbutton_pull_clicked": handler.not_implemented,
70
"on_toolbutton_push_clicked": handler.on_menuitem_branch_push_activate,
63
71
"on_treeview_right_row_activated": handler.on_treeview_right_row_activated }
65
73
# Connect the signals to the handlers
144
152
def get_path(self):
145
153
""" Get the current path. """
146
154
return self._path
156
def get_selected_right(self):
157
""" Get the selected filename. """
158
treeselection = self.treeview_right.get_selection()
159
(model, iter) = treeselection.get_selected()
164
return model.get_value(iter, 1)
148
166
def set_statusbar(self, message):
149
167
""" Set the statusbar message. """