On Sun, Oct 4, 2009 at 00:43, Sune Foldager <sune.folda...@me.com> wrote:
> This is one way of solving the problem. Not sure it's the best, but have a 
> look.
> I also removed some code I couldn't for the life of me see what would be good 
> for :-p.

Ah, this issue was introduced by me...  Clone dialog may also has same issue.
Archive dialog's response handling works correctly.
So please refer archive.py (e82682f54ffc) file or I'll submit new
patch for this.
Sorry for confusing.

My intent is that all dialog actions (execute something, close dialog,
cancel operation...)
are putted together in 'response' signal handler.  As you pointed in
patch comment,
dialog response let closing itself, but there is a way to prevent closing;
calling run() method recursively.  See this description:
http://library.gnome.org/devel/pygtk/stable/class-gtkdialog.html#method-gtkdialog--run

In case of gtk.Window, we can subscribe 'delete-event' signal and return True in
that signal handler.  However, in case of gtk.Dialog, returning True
is no effect.

P.S. when bitbucket comes back? X0

-- 
Yuki KODAMA

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to