totem r5171 - in trunk: . data
- From: pwithnall svn gnome org
- To: svn-commits-list gnome org
- Subject: totem r5171 - in trunk: . data
- Date: Sun, 24 Feb 2008 18:10:48 +0000 (GMT)
Author: pwithnall
Date: Sun Feb 24 18:10:48 2008
New Revision: 5171
URL: http://svn.gnome.org/viewvc/totem?rev=5171&view=rev
Log:
2008-02-24 Philip Withnall <pwithnall svn gnome org>
* data/Makefile.am:
* data/totem-bugreport.py:
* data/totem.desktop.in.in.in: Add a custom Bug Buddy script
to get the format of the file last played if using GStreamer.
Adapted from a patch by Fernando Herrera
<fherrera onirica com>. (Closes: #382074)
Added:
trunk/data/totem-bugreport.py
Modified:
trunk/ChangeLog
trunk/data/Makefile.am
trunk/data/totem.desktop.in.in.in
Modified: trunk/data/Makefile.am
==============================================================================
--- trunk/data/Makefile.am (original)
+++ trunk/data/Makefile.am Sun Feb 24 18:10:48 2008
@@ -1,5 +1,8 @@
SUBDIRS = icons
+bugreportdir = $(libexecdir)/totem
+bugreport_SCRIPTS = totem-bugreport.sh
+
man_MANS = totem.1 totem-video-thumbnailer.1
stuffdir = $(pkgdatadir)
Added: trunk/data/totem-bugreport.py
==============================================================================
--- (empty file)
+++ trunk/data/totem-bugreport.py Sun Feb 24 18:10:48 2008
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+import gtk
+import os
+from datetime import datetime
+
+# Get the GStreamer version
+if os.system ('gst-typefind-0.10 --version') == 0:
+ # List the formats of the last files played
+ last_visited = 0
+ recent_manager = gtk.recent_manager_get_default ()
+ for recent in recent_manager.get_items ():
+ if recent.has_group ("Totem"):
+ if recent.get_visited () > last_visited:
+ last_visited = recent.get_visited ()
+ last = recent.get_uri_display ()
+
+ if last != None:
+ file_handle = os.popen ('gst-typefind-0.10 "%s"' % (last))
+ parts = file_handle.read ().split (' ')
+ date = datetime.fromtimestamp (last_visited)
+ print 'Listened to a "%s" file on %s' % (parts.pop ().strip (), date.isoformat ())
Modified: trunk/data/totem.desktop.in.in.in
==============================================================================
--- trunk/data/totem.desktop.in.in.in (original)
+++ trunk/data/totem.desktop.in.in.in Sun Feb 24 18:10:48 2008
@@ -12,4 +12,5 @@
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version= VERSION@
X-GNOME-Bugzilla-OtherBinaries=totem-video-indexer;totem-video-thumbnailer;totem-audio-preview;
+X-GNOME-Bugzilla-ExtraInfoScript= FULL_LIBEXECDIR@/totem/totem-bugreport.py
StartupNotify=true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]