Re: [Muine] QuitEvent for plugins and dbus (PATCH)



Would this event really be necessary? Given that plug-ins are classes,
you should just be able to stick on a destructor which performs the
same functions as an OnQuit handler.

OnQuit could be useful, though, if it had a boolean return value; true
continues with the quit, false stops it. This would allow a plug-in
for something like: "Would you like to save this playlist before
quitting? [No] [Cancel] [Yes]", or other stuff of that.

- Brian

On Mon, 17 Jan 2005 12:12:00 +0100, Javier Ruiz Hidalgo
<javier ruizhidalgo gmail com> wrote:
> Hi,
> 
> I think a quit event to notify plugins would be very useful (so
> plugins can delete files they may have created, etc.). Here is a small
> patch to add that functionality into the IPlayer interface and dbus.
> 
> http://gps-tsc.upc.es/imatge/_Jrh/muine/muine_quitevent.patch
> 
> --
> Javier Ruiz Hidalgo <javier ruizhidalgo gmail com>
> 
> 
> _______________________________________________
> muine-list mailing list
> muine-list gnome org
> http://mail.gnome.org/mailman/listinfo/muine-list



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