Re: [Gtk-osx-users] pygtk and NSApplicationBlockTermination



Well, I've resolved #1 on my own.  It seems that a thread within the client was hanging around, though only when quit was invoked via integration (weird!).

However, I'm then unsure how the Application "Quit" entry is integrated without me specifying which callback to use....

--phil

On Aug 24, 2010, at 4:15 PM, Phillip Heller wrote:

> 1) When I invoke "Quit" from the application menu within the window itself, no problem.  However, when Quit is invoked via gtk_osxapplication integration, the application blocks, and must be killed.  I suspect I need to handle the NSApplicationBlockTermination, though I'm admittedly a novice with pygtk, and unsure how to do this.
> 
> 2) I understand that the Application menu "Quit" entry is automatically integrated under gtk_osxapplication.  How is the proper binding chosen for this integration?  I ask because within the Tryton client, the quit action is bound to a callback which opens an "are you sure" message.  I'm guessing the answer might simply be that Quit is automatically bound to gtk.main_quit(), though the user must handle NSApplicationBlockTermination - which renders this question moot, and the previous question more important :-)

Attachment: smime.p7s
Description: S/MIME cryptographic signature







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]