From 911442758eff80fd7a0284f794da463f1e0b0f92 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 16 Jul 2006 15:00:35 +0000 Subject: [PATCH] 2006-07-16 Alex Roitman * src/plugins/Checkpoint.py (Checkpoint.run_tool): Add busy cursor. svn: r7033 --- gramps2/ChangeLog | 3 +++ gramps2/src/plugins/Checkpoint.py | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 857084d91..8255dbe76 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2006-07-16 Alex Roitman + * src/plugins/Checkpoint.py (Checkpoint.run_tool): Add busy cursor. + 2006-07-16 Zsolt Foldvari * src/ViewManager.py: Custom name format support. * src/GrampsCfg.py: Custom name format support. diff --git a/gramps2/src/plugins/Checkpoint.py b/gramps2/src/plugins/Checkpoint.py index 47032572d..4d9866906 100644 --- a/gramps2/src/plugins/Checkpoint.py +++ b/gramps2/src/plugins/Checkpoint.py @@ -201,6 +201,9 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow): """ if not cli: self.uistate.status_text(_("Checkpointing database...")) + self.uistate.window.window.set_cursor( + gtk.gdk.Cursor(gtk.gdk.WATCH)) + self.window.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) if self.options.handler.options_dict['rcs']: self.rcs(archive,cli) @@ -210,6 +213,8 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow): self.custom(self.options.handler.options_dict['crcmd'],False,cli) if not cli: + self.uistate.window.window.set_cursor(None) + self.window.window.set_cursor(None) self.uistate.pulse_progressbar(0) self.uistate.modify_statusbar()