Re: [Muine] QuitEvent for plugins and dbus (PATCH)
- From: Javier Ruiz Hidalgo <javier ruizhidalgo gmail com>
- To: Brian Nickel <brian nickel gmail com>
- Cc: muine-list gnome org
- Subject: Re: [Muine] QuitEvent for plugins and dbus (PATCH)
- Date: Mon, 17 Jan 2005 14:49:38 +0100
Hi,
> 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.
Well, I did the patch just for the dbus interface and it was easily
to extend it to the plugins, but I guess the destructor should do the
trick for the plugins. In any case, your comments just made me think
that I don't really know if dbus already implements a notification
when the interface is stopped. Does someone with dbus experience know
of it?
> 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.
>
Implementing the return value seems like a nice idea to me
but I don't know if the main muine window is able to wait for the
return value of a event interface for all plugins. What would happen
if there are 3 plugins that want to ask? will you get 3 popups asking
you?
> - 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
>
--
Javier Ruiz Hidalgo <javier ruizhidalgo gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]