Re: error compiling panel - no colormap member



| make[2]: Entering directory `/home/ricdude/Projects/gnome/gnome-core/panel'
| gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I. -DGNOMELOCALEDIR=\""/usr/local/share/locale"\"
| -I/usr/local/include -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/inclu
|de
| -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/glib/include -I/usr/X11R6/include -g -O2
| -D_DRAWER_ -c panel.c
| panel.c: In function `panel_session_save':
| panel.c:304: structure has no member named `colormap'
| panel.c: In function `panel_clean_applet':
| panel.c:437: structure has no member named `colormap'
| make[2]: *** [panel.o] Error 1
| -------------------------------------------------------
| /** the section of source code near line 304 **/
| if(info->widget && GTK_IS_SOCKET(info->applet_widget))
| 			((GdkWindowPrivate *)
| 
| 	GTK_SOCKET(info->applet_widget)->
| 		plug_window)->colormap = NULL;

I'm having this same problem.

GTK_SOCKET casts (info->applet_widget) as type GtkSocket, which contains
member plug_window.  plug_window is type GdkWindow*.

struct GdkWindow has one member: gpointer user_data.
struct GdkWindowAttr, however, has the requisite member GdkColormap
*colormap...

Someone who knows more about GTK/GDK than I do [at this point, at least]
will need to fix this.

And, yes, it needs to be fixed.

Take care,
...jsled



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