* src/DisplayState.py: add standard function for using WATCH cursor
* src/PageView.py: enable watch cursor when it is necessary to rebuild a page. svn: r5866
This commit is contained in:
parent
2607f4180e
commit
2d9449b77e
@ -1,3 +1,8 @@
|
|||||||
|
2006-02-02 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DisplayState.py: add standard function for using WATCH cursor
|
||||||
|
* src/PageView.py: enable watch cursor when it is necessary to
|
||||||
|
rebuild a page.
|
||||||
|
|
||||||
2006-02-02 Alex Roitman <shura@gramps-project.org>
|
2006-02-02 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsBSDDB.py (transaction_begin,
|
* src/GrampsDb/_GrampsBSDDB.py (transaction_begin,
|
||||||
transaction_commit): only do secondary index magic if not
|
transaction_commit): only do secondary index magic if not
|
||||||
|
@ -584,6 +584,14 @@ class DisplayState(GrampsDb.GrampsDBCallback):
|
|||||||
self.log.setLevel(logging.WARN)
|
self.log.setLevel(logging.WARN)
|
||||||
self.log.addHandler(self.rh)
|
self.log.addHandler(self.rh)
|
||||||
|
|
||||||
|
def set_busy_cursor(self,value):
|
||||||
|
if value:
|
||||||
|
self.window.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
|
||||||
|
else:
|
||||||
|
self.window.window.set_cursor(None)
|
||||||
|
while gtk.events_pending():
|
||||||
|
gtk.main_iteration()
|
||||||
|
|
||||||
def set_open_widget(self,widget):
|
def set_open_widget(self,widget):
|
||||||
self.widget = widget
|
self.widget = widget
|
||||||
|
|
||||||
|
@ -54,7 +54,9 @@ class PageView:
|
|||||||
def set_active(self):
|
def set_active(self):
|
||||||
self.active = True
|
self.active = True
|
||||||
if self.dirty:
|
if self.dirty:
|
||||||
|
self.uistate.set_busy_cursor(True)
|
||||||
self.build_tree()
|
self.build_tree()
|
||||||
|
self.uistate.set_busy_cursor(False)
|
||||||
|
|
||||||
def set_inactive(self):
|
def set_inactive(self):
|
||||||
self.active = False
|
self.active = False
|
||||||
|
Loading…
Reference in New Issue
Block a user