On Friday 16 of March 2007 20:07:36 Daniel Mróz wrote:
> > wim - gadałem z wiarą co to zrobiła na ircu i oni tak chcą. Ja po prostu
> > zpaczkowałem pakiet, ale nie bardzo czuję się mocny w pythonie, żeby
> > teraz to naprawiać.
> Mogę napisać odpowiedniego patcha, tylko muszę wiedzieć gdzie jest
> "opowiednie miejsce" na plik .glade :)
Patch w załączniku. Wystarczy go nałożyć, a następnie przejechać po plikach:
qemulator.py, qml_configuration.py i qml_controlmon.py np. sed'em i zamienić
ciąg @gladedir@ czymś bardziej odpowiednim (będzie można wykorzystać makra
RPMa). Niestety, nie mogę przetestować, bo nie używam qemu, ale powinno
działać.
Pozdrawiam
Beorn
--
Daniel 'Beorn' Mróz <[EMAIL PROTECTED]> http://127.0.0.1/beorn
[GIT d s:- a-@ C++++ UL++++$ P+ L++++ E--- W+ N+++ o? K- w---]
[O- M- V! PS+ PE++ Y+ PGP++ t- 5 X R !tv b+ DI D++ G++ e h*]
[ r++ y+ ]
diff -Nrub usr/local/lib/qemulator.orig/qemulator.py usr/local/lib/qemulator/qemulator.py
--- usr/local/lib/qemulator.orig/qemulator.py 2007-03-03 08:41:28.000000000 +0100
+++ usr/local/lib/qemulator/qemulator.py 2007-03-16 20:18:14.021216750 +0100
@@ -96,6 +96,7 @@
configdir = homedir + "/config"
#print "configdir: " + configdir
icondirs = [sharedir + "/icons",homedir + "/icons"]
+gladedir = "@gladedir@"
## Import all Qemulator classes
import qml_network
@@ -144,7 +145,7 @@
def __init__ (self):
Thread.__init__(self)
- self.gladefile = libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
def init_gui(self):
logo_file = None
@@ -213,7 +214,7 @@
self.statefiles_dir = homedir + "/statefiles"
self.screenshot_dir = homedir + "/screenshots"
self.capture_dir = homedir + "/capture"
- self.gladefile = self.libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
self.restoreaction = False
self.currimage_settings.cdrmedium = ""
self.imagespath = ""
@@ -4370,7 +4371,7 @@
self.title = title
self. returnfunc = returnfunc
self.return_args = ",".join(return_args)
- self.gladefile = libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
#self.run()
self.init_dialog()
@@ -4444,7 +4445,7 @@
def __init__ (self):
Thread.__init__(self)
self.traymenu_item = {}
- self.gladefile = libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
def run(self):
self.init_tray()
diff -Nrub usr/local/lib/qemulator.orig/qml_configuration.py usr/local/lib/qemulator/qml_configuration.py
--- usr/local/lib/qemulator.orig/qml_configuration.py 2007-03-02 08:49:26.000000000 +0100
+++ usr/local/lib/qemulator/qml_configuration.py 2007-03-16 20:18:39.674820000 +0100
@@ -55,6 +55,7 @@
basedir = basedir.replace ( '/bin', '' )
basedir = basedir.replace ( '/lib/qemulator', '' )
+gladedir = "@gladedir@"
APP = 'Qemulator'
#DIR = 'locale'
@@ -115,7 +116,7 @@
if self.settings.has_key("controlmon_autostart"):
self.settings_controlmon_autostart = self.settings["controlmon_autostart"]
- self.gladefile = libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
self.dialog_settings = gtk.glade.XML(self.gladefile, "dialog_settings", APP)
self.treeview_cdromdrives = self.dialog_settings.get_widget("treeview_cdromdrives")
diff -Nrub usr/local/lib/qemulator.orig/qml_controlmon.py usr/local/lib/qemulator/qml_controlmon.py
--- usr/local/lib/qemulator.orig/qml_controlmon.py 2007-03-07 10:16:21.000000000 +0100
+++ usr/local/lib/qemulator/qml_controlmon.py 2007-03-16 20:18:53.015653750 +0100
@@ -72,6 +72,7 @@
sharedir = basedir + "/share/qemulator"
#print "sharedir: " + sharedir
pixmapdir = basedir + "/share/pixmaps/qemulator"
+gladedir = "@gladedir@"
APP = 'Qemulator'
DIR = basedir + '/share/locale'
@@ -149,7 +150,7 @@
self.configdir = self.homedir + "/config"
print "configdir: " + self.configdir
- self.gladefile = self.libdir + "/qemulator.glade"
+ self.gladefile = gladedir + "/qemulator.glade"
def run(self):
self.preload_gui()
_______________________________________________
pld-devel-pl mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl