[transmageddon/gtk3] Update to fix dotfile generation with 0.11/1.0



commit 5f06f7c86864186885b44257fbdc80612a6e0ff5
Author: Christian Fredrik Kalager Schaller <christian schaller collabora co uk>
Date:   Wed Jan 25 11:07:45 2012 +0000

    Update to fix dotfile generation with 0.11/1.0

 src/transmageddon.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/transmageddon.py b/src/transmageddon.py
index e89a153..39e8e8b 100644
--- a/src/transmageddon.py
+++ b/src/transmageddon.py
@@ -21,8 +21,8 @@
 import sys
 import os
 
-os.environ["Gst_DEBUG_DUMP_DOT_DIR"] = "/tmp"
-os.putenv('Gst_DEBUG_DUMP_DIR_DIR', '/tmp')
+os.environ["GST_DEBUG_DUMP_DOT_DIR"] = "/tmp"
+os.putenv('GST_DEBUG_DUMP_DIR_DIR', '/tmp')
 import which
 import time
 
@@ -1074,12 +1074,12 @@ class TransmageddonUI:
        if os.access(pngfile, os.F_OK):
            os.remove(pngfile)
        Gst.debug_bin_to_dot_file (self._transcoder.pipeline, \
-               Gst.DEBUG_GRAPH_SHOW_ALL, 'transmageddon-debug-graph')
+               Gst.DebugGraphDetails.ALL, 'transmageddon-debug-graph')
        # check if graphviz is installed with a simple test
        try:
            dot = which.which("dot")
            os.system(dot + " -Tpng -o " + pngfile + " " + dotfile)
-           Gtk.show_uri(Gdk.Screen(), "file://"+pngfile, 0)
+           Gtk.show_uri(GdkX11.X11Screen(), "file://"+pngfile, 0)
        except which.WhichError:
               print "The debug feature requires graphviz (dot) to be installed."
               print "Transmageddon can not find the (dot) binary."



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