summaryrefslogtreecommitdiffstats
path: root/gtk/src/create_resources.py
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2010-06-17 22:59:19 +0000
committerjstebbins <[email protected]>2010-06-17 22:59:19 +0000
commit66e0b095b658b047bb155ec9cdcb0a3d1b4fa466 (patch)
tree6e98da80c6ffd30832b89cd3ef55bba4c64ead7e /gtk/src/create_resources.py
parent39628d490ff1c87c8ec45f24bb128a52e7fd2fbd (diff)
LinGui: revert part of the resource management changes of r3382
Since fedora's pygtk is broken, I can't parse gdk_pixbuf's with python. So revert to doing this in C code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3386 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/create_resources.py')
-rw-r--r--gtk/src/create_resources.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/src/create_resources.py b/gtk/src/create_resources.py
index 69d9e7d30..5d21ba809 100644
--- a/gtk/src/create_resources.py
+++ b/gtk/src/create_resources.py
@@ -1,7 +1,6 @@
#! /bin/python
#
-import gtk
import types
import os
import sys
@@ -10,7 +9,7 @@ import datetime
import plistlib
import getopt
from xml.parsers import expat
-
+from gtk import gdk
pl = dict()
stack = list()
@@ -41,7 +40,7 @@ def start_element_handler(tag, attr):
key = attr["name"]
if fname != None and key != None:
val = dict()
- pb = gtk.gdk.pixbuf_new_from_file(fname)
+ pb = gdk.pixbuf_new_from_file(fname)
val["colorspace"] = pb.get_colorspace()
val["alpha"] = pb.get_has_alpha()
val["bps"] = pb.get_bits_per_sample()