diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-12-27 06:15:25 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-12-27 06:15:25 +0000 |
commit | 8300e8a2acd39f8d044b4f1a2ffbd17c1c571f4f (patch) | |
tree | 71cb89acd1c32af13f0442364ca3785137cf6f47 /x11/xcurs/files/patch-gladew.py | |
parent | upgrade to 1.5 (diff) |
Add XCurs, an editor for new, XFree86/XOrg style full-color cursor
properties.
Notes
Notes:
svn path=/head/; revision=125260
Diffstat (limited to 'x11/xcurs/files/patch-gladew.py')
-rw-r--r-- | x11/xcurs/files/patch-gladew.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/x11/xcurs/files/patch-gladew.py b/x11/xcurs/files/patch-gladew.py new file mode 100644 index 000000000000..fa2241d7bc5e --- /dev/null +++ b/x11/xcurs/files/patch-gladew.py @@ -0,0 +1,24 @@ +--- gladew.py.orig Mon Dec 27 11:44:55 2004 ++++ gladew.py Mon Dec 27 11:44:39 2004 +@@ -2,7 +2,11 @@ + pygtk.require('2.0') + import gtk.glade + import gobject +-import new, types ++import os, sys, new, types ++ ++def find_datafile(filename): ++ prefix = os.path.split(os.path.dirname(sys.argv[0]))[0] ++ return os.path.join(prefix, 'share', 'xcurs', filename) + + class GladeWidget: + #if we are doing instance counting, this holds the variable +@@ -13,7 +17,7 @@ + + #initialize variables + self.autoclose = autoclose +- self.widgets = gtk.glade.XML(glade_file, widget_name) ++ self.widgets = gtk.glade.XML(find_datafile(glade_file), widget_name) + callbacks = {} + + #find and store methods as bound callbacks |