Re: Totem plugin development



On Sat, 2009-05-16 at 14:02 +0200, Giorgos Logiotatidis wrote:
> Hello,
> I 'm writing a quite simple plugin for totem so it can communicate
> through dbus with pidgin and change your status when you are watching
> fullscreen videos. I tried to create a callback when the fullscreen mode
> is entered, but there seems to be to fullscreen signal, only a variable
> and a is_fullscreen() function.

Wrong way of doing things. We used to have a galago plugin,
unfortunately it's not been developed in a long while.

What you'd want is:
1) a Totem plugin to set the gnome-session status
2) a Pidgin plugin to listen to the gnome-session status

That means that Totem could work with other instant messengers, and
Pidgin could work with other video players.

See this for 1):
http://bugzilla.gnome.org/show_bug.cgi?id=567909

Although to get into Totem itself, it would need to be in C. A prototype
in Python might help a bit.

> Since I'm a newcomer to pygtk and plugin development can you tell me
> which is the proper way to get informed when totem changes from window
> fullscreen more?

If you really want to know, take a look at the screensaver plugin (even
though it's in C, the modus operandi would be the same).

Cheers



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