Re: is it possible to have a widget act as insensitive but look as it is sensitive?
- From: Tristan Van Berkom <tristan van berkom gmail com>
- To: Yiannis <odysseus lost gmail com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: is it possible to have a widget act as insensitive but look as it is sensitive?
- Date: Wed, 28 Dec 2005 14:14:59 -0500
Yiannis wrote:
[...]
GdkColor *sensitive_bg = widget->style.bg[GTK_STATE_NORMAL];
fails with the following error:
error: request for member `bg' in something not a structure or union
and the same error occurs with all the other members of the style
structure....
Any ideas?
Heh,
I was just jotting it down from memory; I didn't actually
expect it to compile out of the box ;-)
If it says "in something not a structure or union", then it's probably:
widget->style->bg[GTK_STATE_NORMAL];
if not, a closer look at gtkwidget.h & gtkstyle.h will clarify.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]