From: Duilio J. P. <dp...@fc...> - 2004-07-08 03:00:59
|
> I've done the following commit: > > 2004-07-07 Dennis Smit <ds...@ne...> > > * libvisual/lv_actor.c: > (visual_actor_get_next_by_name_gl, > visual_actor_get_prev_by_name_gl, > visual_actor_get_next_by_name_nogl, > visual_actor_get_prev_by_name_nogl): > New methods. > > > > These methods can be used to filter out certain types of plugins. > > Duilio I suggest the following: > > Instead of a checkbox to 'disable gl plugins' > have three radio buttons grouped that do either: > > 'Only GL plugins' > 'Only non GL plugins' > 'All types of plugins' > > Or something likewise. > > I've updated the xmms plugin to use the API and remove the non GL hack. > > What do you think ? > > Cheers, > Dennis Good, is much clear this way. I have submitted the version with the three radiobuttons (along with the Glade file), but now I need a visual_actor_get_next_by_name_gl() function :-) I think about the visual_actor_get_next_by_name(), that it must return a pointer to a VisActor struct, and from this we can obtain info related to the actor (i.e. if it is a GL one). This way we can use get_next/get_prev functions for others things that just have the name of an actor, an we don't need to add functions for every new criteria for which we want to filter the list, but instead we just walk through the list and take what we want. Bye, Duilio. |