Totem plugin development

View: New views
2 Messages — Rating Filter:   Alert me  

Totem plugin development

by Giorgos Logiotatidis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

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?

Thanks in advance.

Cheers,
Giorgos

ps: If this post is not supposed to be here, please tell me which is the
right list. I checked gnome lists and since I found no totem mailing
list I though to post here :)


--


---------------------------------------
Giorgos Logiotatidis
http://www.sealabs.net/seadog

I support "I want my camera back"!
visit http://www.iwantmycameraback.com
---------------------------------------

_______________________________________________
gnome-multimedia mailing list
gnome-multimedia@...
http://mail.gnome.org/mailman/listinfo/gnome-multimedia

Re: Totem plugin development

by Bastien Nocera :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
gnome-multimedia mailing list
gnome-multimedia@...
http://mail.gnome.org/mailman/listinfo/gnome-multimedia