[Pkg-bazaar-commits] ./bzr-gtk/unstable r102: Show current path in the statusbar.
Szilveszter Farkas (Phanatic)
Szilveszter.Farkas at gmail.com
Fri Apr 10 07:45:46 UTC 2009
------------------------------------------------------------
revno: 102
committer: Szilveszter Farkas (Phanatic) <Szilveszter.Farkas at gmail.com>
branch nick: bzr-gtk
timestamp: Fri 2006-10-20 13:59:27 +0200
message:
Show current path in the statusbar.
modified:
olive/__init__.py
-------------- next part --------------
=== modified file 'olive/__init__.py'
--- a/olive/__init__.py 2006-10-20 11:39:14 +0000
+++ b/olive/__init__.py 2006-10-20 11:59:27 +0000
@@ -65,6 +65,8 @@
self.window = self.toplevel.get_widget('window_main')
self.pref = OlivePreferences()
+
+ self.path = None
# Initialize the statusbar
self.statusbar = self.toplevel.get_widget('statusbar')
@@ -186,10 +188,13 @@
def set_path(self, path):
self.path = path
self.notbranch = False
+
try:
self.wt, self.wtpath = WorkingTree.open_containing(self.path)
except errors.NotBranchError:
self.notbranch = True
+
+ self.statusbar.push(self.context_id, path)
def get_path(self):
return self.path
@@ -382,7 +387,8 @@
def on_menuitem_view_show_hidden_files_activate(self, widget):
""" View/Show hidden files menu handler. """
self.pref.set_preference('dotted_files', widget.get_active())
- self.refresh_right()
+ if self.path is not None:
+ self.refresh_right()
def on_treeview_left_button_press_event(self, widget, event):
""" Occurs when somebody right-clicks in the bookmark list. """
More information about the Pkg-bazaar-commits
mailing list