aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xcurs/files
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2004-12-27 14:15:25 +0800
committerdanfe <danfe@FreeBSD.org>2004-12-27 14:15:25 +0800
commitd5e59a39aead0c9935d6c589017c77e79ca03532 (patch)
treea062839ef211c334b3ee0da34d26f25b66bc79fd /x11/xcurs/files
parent094e72fd6e9240dadd9629331d3a6dcd7ceba5b0 (diff)
downloadfreebsd-ports-gnome-d5e59a39aead0c9935d6c589017c77e79ca03532.tar.gz
freebsd-ports-gnome-d5e59a39aead0c9935d6c589017c77e79ca03532.tar.zst
freebsd-ports-gnome-d5e59a39aead0c9935d6c589017c77e79ca03532.zip
Add XCurs, an editor for new, XFree86/XOrg style full-color cursor
properties.
Diffstat (limited to 'x11/xcurs/files')
-rw-r--r--x11/xcurs/files/patch-gladew.py24
-rw-r--r--x11/xcurs/files/patch-xcurs.py23
2 files changed, 47 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
diff --git a/x11/xcurs/files/patch-xcurs.py b/x11/xcurs/files/patch-xcurs.py
new file mode 100644
index 000000000000..d101a74e6e07
--- /dev/null
+++ b/x11/xcurs/files/patch-xcurs.py
@@ -0,0 +1,23 @@
+--- xcurs.py.orig Wed Sep 1 03:50:28 2004
++++ xcurs.py Mon Dec 27 11:24:46 2004
+@@ -1,6 +1,10 @@
+ #!/usr/bin/python -OO
+
+-import sys, re
++import os, sys, re
++
++prefix = os.path.split(os.path.dirname(sys.argv[0]))[0]
++sys.path.append(os.path.join(prefix, 'lib', 'xcurs'))
++
+ import pygtk
+ pygtk.require('2.0')
+ import gtk.glade
+@@ -8,7 +12,7 @@
+ import gladew
+ import Image
+
+-import os, new, types
++import new, types
+
+ # for xcurs
+ # import parsexcursor