[Glade-users] Relative filenames



Hey,
Are relative filenames allowed in glade-3? I guess it depends on GTK
XML, does anyone know? The GTK documentation says:

"Pixbufs can be specified as a filename of an image file to load."

Glade seems to copy the images to whichever folder I save the glade
file. Which works, but it's turning my resources folder a bit of a
dumping ground.

I tried editing the glade file manually, and it works, even correctly
translates into the GTK XML. But since I used Linux path separators it's
a gamble if it's going to work in windows.

From: main.glade
<property name="pixbuf">ingredient.png</property>
To:
<property name="pixbuf">../pixmaps/ingredient.png</property>

Directory Tree:
data/
    gtk/
        main.glade
        main.xml
        ...
    pixmaps/
        ingredient.png
        ...
    ...

Cheers,
James





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]