GNOME Bugzilla – Bug 394341
Add support for new GNOME 2.18 D-Bus media player keys interface
Last modified: 2007-01-19 00:24:07 UTC
See summary.
Created attachment 79775 [details] [review] Implementation
Comment on attachment 79775 [details] [review] Implementation >Index: configure.in >=================================================================== >--- configure.in (revision 3832) >+++ configure.in (working copy) >@@ -571,6 +571,32 @@ if test x$HAVE_NAUTILUS = "xyes"; then > fi > AM_CONDITIONAL(HAVE_NAUTILUS, test x$HAVE_NAUTILUS = "xyes") > >+dnl ***************** >+dnl Media player keys >+dnl ***************** >+ >+AC_ARG_ENABLE([media-player-keys], <snip> Missing the summary output at the end of configure.ac <snip> >+static void >+on_media_player_key_pressed (DBusGProxy *proxy, const gchar *application, const gchar *key, Totem *totem) >+{ >+ if (!strcmp ("Totem", application)) { Please use "strcmp () == 0". <snip> >+#ifdef HAVE_MEDIA_PLAYER_KEYS >+ bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error); There's a lot of code there. Wouldn't it be possible to integrate this into totem-remote instead? Rest looks good!
Created attachment 80659 [details] [review] Added summary output to configure, fixed strcmp, merged into totem-remote
Looks great, please commit.
2007-01-19 Jan Arne Petersen <jap@gnome.org> * configure.in: * src/Makefile.am: * src/totem-marshal.list: * src/totem-remote.c: (on_media_player_key_pressed), (totem_remote_finalize), (totem_remote_init), (totem_remote_window_activated): * src/totem-remote.h: * src/totem.c: (totem_action_exit), (on_window_focus_in_event), (totem_callback_connect): add support for media player keys (new D-Bus interface in GNOME 2.18) (Closes: #394341)