Content-Type: text/plain; charset="iso-8859-1" From: Stalkern 2 Reply-To: stalkern2 at tin.it To: glade-users at lists.ximian.com Subject: Re: [Glade-users] Glade and PATHS for GTK pixmaps Date: Wed, 12 Feb 2003 12:19:37 +0100 References: <200302120914.43172.stalkern2 at tin.it> In-Reply-To: <200302120914.43172.stalkern2 at tin.it> Cc: ocaml_beginners at yahoogroups.com, lablgtk at kaba.or.jp MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200302121219.37706.stalkern2 at tin.it> I have solved the issue by inserting in the makefile a sed 's/\.\.\///g' | sed 's/usr\/share\/pixmaps/\/usr\/share\/pixmaps/g' command that strips all "../"s away (in my file, they appear only for the pixmaps) and then puts a slash before usr/share/pixmaps Cheers Ernesto PS I'm converting glade stuff to Ocaml language with mlglade, this means a rule like: myprogram_glade_interface.ml myprogram_glade_callbacks.ml: myprogram.glade cat $< | sed 's/\.\.\///g' | sed 's/usr\/share\/pixmaps/\/usr\/share\/pixmaps/g' > $<.CORRECT $(MLGLADE) $<.CORRECT at the place where mlglade takes into account the _interface file. Il Wednesday 12 February 2003 09:14, Stalkern 2 ha scritto: > Hello to everybody > > I'm using Glade 0.6.4 and I would like to run programs that refer to > pixmaps in places that fit to pixmaps... as everybody seems to do > > so for instance I'd like to have the program in > > /usr/local/myprogram/bin/ > > and the pixmaps in > > /usr/share/pixmaps/myprogram/ > > But paths of pixmaps are relative. > If I tell glade that the pixmaps directory is > > /usr/share/pixmaps/myprogram/ > > and I am at > > /usr/local/myprogram/bin/ > > I can launch the program and find the pixmaps, because the program will > look at ../../../../usr/share/pixmaps/myprogram/. > > But if I am elsewhere and I launch > /usr/local/myprogram/bin/mycompiledprogram , the only result is a complain > about not finding > ../../../../usr/share/pixmaps/myprogram/ > > How do I fix that? I think that I need to fix that at Glade level, I mean, > what do you do to fix that? > > Any help will be appreciated > > TIA > Ernesto > > _______________________________________________ > Glade-users maillist - Glade-users@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/glade-users