Re: path for icon
- From: Michael Cronenworth <mike cchtml com>
- To: gtk-app-devel-list gnome org
- Subject: Re: path for icon
- Date: Wed, 05 Sep 2012 00:03:33 -0500
On 09/04/2012 11:58 PM, Frank Cox wrote:
Here is the answer:
https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg00002.html
Depending on your needs, here is a different answer:
https://mail.gnome.org/archives/gtk-app-devel-list/2012-September/msg00004.html
I myself went with the first solution.
A third answer is to define a string that is your path:
#if defined( WINDOWS )
#define ICON_PATH "../images/"
#else
#define ICON_PATH "/foo/bar/images/"
#endif
foo()
{
gtk_image_new_from_file( ICON_PATH "mkb3.png" );
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]