GNOME Bugzilla – Bug 452570
Error while compiling pyGTK-2.10.4 with GTK-2.11.4
Last modified: 2007-06-30 14:36:07 UTC
Hi! I recently downloaded gtk+-2.11.4 and installed it. After that I try to (re)compile pygtk-2.10.4 with it. But the error is arisen: <COPY_AND_PASTE> ./gtk.override: In function `_wrap_gtk_tooltips__get_tips_data_list': ./gtk.override:3130: error: structure has no member named `tips_data_list' gtk.c: At top level: gtktreeview.override:2138: warning: 'pygtk_tree_foreach_marshal' defined but not used make[2]: *** [_gtk_la-gtk.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 </COPY_AND_PASTE> I search a bit in source of gtk+ and found in /usr/include/gtk-2.0/gtk/gtktooltips.h the following lines: <GTKTOOLTIPS_H> struct _GtkTooltips { GtkObject parent_instance; /*< private >*/ GtkWidget *tip_window; GtkWidget *tip_label; GtkTooltipsData *active_tips_data; GList *_tips_data_list; /* unused */ guint delay : 30; guint enabled : 1; guint have_grab : 1; guint use_sticky_delay : 1; gint timer_tag; GTimeVal last_popdown; }; </GTKTOOLTIPS_H> Ok, seems that in gtk+2.11.4 the data member if redefined into '_tips_data_list'. I check the gtk+-2.11.0 and the same struct member has name 'tips_data_list'. I don't know the reason of using structure member marked as 'private' in pygtk package and why GTK developers redefined this member, but I view two ways to work-around the problem: either to change name of member in pygtk sources (only in my copy of source or master repository) or change name of the member in GTK sources. Since the GTK+2.11.4 is development branch this may be error of the library developers but if this is a main-stream change then pygtk must something to do with this. P.S. Sorry, if my English is poor. --- WBR, VLadimir Lomov
*** This bug has been marked as a duplicate of 449318 ***