paragui-users
[Top][All Lists]
Advanced

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

Re: [paragui-users] Loading image problem.


From: Guillaume Schmid
Subject: Re: [paragui-users] Loading image problem.
Date: 12 Jun 2002 19:39:16 +0200

Le mer 12/06/2002 à 19:24, Andrew Ford a écrit :
> Hi Guillaume,
>   I what's going on is this:  when paragui starts up,
> the internal filesystem layer sets the base directory
> and search directories to particular things.  Then if
> you try to load "/home/guillaume/..." that filename is
> supposed to be relative to one of the application
> search path directories.  You can either add the
> directory to be searched to the search path and say
> LoadImage("Propaganda4.jpg");, or you can copy your
> image directory underneath one of the directories in
> the search path and then load with
> LoadImage("images/Propaganda4.jpg");
> 
> Andrew.
Thank you very mutch for your answer.
Was this information in a FAQ ? Is there a doc I should have read before
asking this question ?

a++
Guillaume.

> 
> --- Guillaume Schmid <address@hidden> wrote:
> > Hello again.
> > 
> > I have a small problem, I try to load an image in a
> > TemeWidget with
> > LoadImage (const char *) and all a get is a message:
> > WARNING [06/12/2002 18:41:23] > Unable to load
> > '/home/guillaume/dev/viewcam/images/Propaganda4.jpg'
> > 
> > of course, a stat on the file does:
> >  stat
> > /home/guillaume/dev/viewcam/images/Propaganda4.jpg
> >   File:
> > "/home/guillaume/dev/viewcam/images/Propaganda4.jpg"
> >   Size: 32050       Blocks: 64         IO Block: 4096
> >   Regular File
> > Device: 307h/775d   Inode: 611116      Links: 1    
> > Access: (0666/-rw-rw-rw-)  Uid: ( 1000/guillaume)  
> > Gid: (  100/  
> > users)
> > Access: Mon Jun 10 17:05:15 2002
> > Modify: Mon Apr 29 19:51:31 2002
> > Change: Wed Jun 12 18:20:22 2002
> > 
> > The app is linked with SDL_image (added by
> > paragui-config -libs).
> > 
> > Any idea on the subject ?
> > 
> > Anyways, I noticed a funny thing, I had to change
> > recently the line
> >  app_.LoadTheme("default");
> > to 
> >  app_.LoadTheme("/default");
> > in my app in order to properly load the theme and
> > start the app. Is that
> > something expected (or maybe I have broken something
> > in my code :) ?
> > 
> > Thank you for your attention.
> > 
> > Guillaume.
> > 
> > 
> > 
> > _______________________________________________
> > paragui-users mailing list
> > address@hidden
> >
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users
> 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]