<br><div class="gmail_quote">2011/2/16 Alberto Garcia <span dir="ltr"><<a href="mailto:agarcia@igalia.com">agarcia@igalia.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Wed, Feb 16, 2011 at 11:01:04AM +0200, Max Usachev wrote:<br>
<br>
> I want to use StackableWindow in my program like dialogs<br>
<br>
</div>That's not the way to do it in GTK: you have to show the new window<br>
and connect to its 'destroyed' signal to do what you want to do after<br>
the window is destroyed.<br>
<br></blockquote><div>Agree, that is a right way to. But what do you propose, if I have the following situation:<br>
There is some framework, there is a controller, I call controller method, for example - foo:<br>
<font size="1"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">def foo:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â # some actions1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â calling CustomDialog</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Â Â Â # some actions2</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<font size="2"><span style="font-family: times new roman,serif;">My code implementing CustomDialog. In desktop environment gtk.Dialog().run() blocks code execution, and when dialog destroys, </span></font></font><font size="2"><span style="font-family: times new roman,serif;">'some actions2' executed. In Maemo using hildon.StackableWindows as replacement for gtk.Dialog, 'some actions2' executes immediately after window creation. I can't modify controller code, I can only implement CustomDialog.</span></font><br>
<br><br>Max.<br>
<br>Â
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Berto<br>
_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</blockquote></div><br>