(UndoHistory._selection_changed): Enable/disable buttons.
svn: r6624
This commit is contained in:
parent
2dcb40ab08
commit
159f9423d4
@ -1,5 +1,6 @@
|
|||||||
2006-05-11 Alex Roitman <shura@gramps-project.org>
|
2006-05-11 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/UndoHistory.py (gtk_color_to_str): Correct byte color.
|
* src/UndoHistory.py (gtk_color_to_str): Correct byte color.
|
||||||
|
(UndoHistory._selection_changed): Enable/disable buttons.
|
||||||
|
|
||||||
2006-05-11 Don Allingham <don@gramps-project.org>
|
2006-05-11 Don Allingham <don@gramps-project.org>
|
||||||
* src/PageView.py: fix search tuple
|
* src/PageView.py: fix search tuple
|
||||||
|
@ -123,6 +123,16 @@ class UndoHistory(ManagedWindow.ManagedWindow):
|
|||||||
self._paint_rows(0,len(self.model)-1,False)
|
self._paint_rows(0,len(self.model)-1,False)
|
||||||
self._paint_rows(start,end,True)
|
self._paint_rows(start,end,True)
|
||||||
|
|
||||||
|
if path[0] < self.db.undoindex+1:
|
||||||
|
self.redo_button.set_sensitive(False)
|
||||||
|
self.undo_button.set_sensitive(self.db.undo_available())
|
||||||
|
if path[0] > self.db.undoindex+1:
|
||||||
|
self.undo_button.set_sensitive(False)
|
||||||
|
self.redo_button.set_sensitive(self.db.redo_available())
|
||||||
|
if path[0] == self.db.undoindex+1:
|
||||||
|
self.undo_button.set_sensitive(self.db.undo_available())
|
||||||
|
self.redo_button.set_sensitive(self.db.redo_available())
|
||||||
|
|
||||||
def _paint_rows(self,start,end,selected=False):
|
def _paint_rows(self,start,end,selected=False):
|
||||||
if selected:
|
if selected:
|
||||||
(fg,bg) = get_colors(self.tree,gtk.STATE_SELECTED)
|
(fg,bg) = get_colors(self.tree,gtk.STATE_SELECTED)
|
||||||
|
Loading…
Reference in New Issue
Block a user