After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 516600 - gtkmm-demo cannot locate resource files
gtkmm-demo cannot locate resource files
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.12.x
Other opensolaris
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-02-15 03:38 UTC by Chris Wang
Modified: 2008-02-19 03:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
patch to fix the gtkmm-demo cannot locate resource file (4.86 KB, patch)
2008-02-15 03:39 UTC, Chris Wang
none Details | Review

Description Chris Wang 2008-02-15 03:38:22 UTC
After make install the gtkmm, I run the gtkmm-demo which installed in /usr/bin. 
the application reports that image files open failed (gif,jpg,png)

I checked the source code in demo directory, and found most of example source that
require to open image file only hardcoded the image name, which means the gtk-demo will look for the image on current directory.

I doubt this is wrong, as there is a function defined in demo-common.h demo_find_file, by calling this function, the resource file can be located either in current directory or the user can define the environment variable DEMOCODEDIR to tell the application where can find the resource.
Comment 1 Chris Wang 2008-02-15 03:39:57 UTC
Created attachment 105300 [details] [review]
patch to fix the gtkmm-demo cannot locate resource file
Comment 2 Jonathon Jongsma 2008-02-19 03:03:34 UTC
Thanks, I've committed this to trunk.