Commit a hack^wworkaround for the missing accessor function to the column

element in GtkTreeView when building with GSEAL.

svn path=/trunk/; revision=38238
This commit is contained in:
Jörg Mayer 2011-07-28 14:11:21 +00:00
parent 716766aa27
commit 0b68e60aaf
1 changed files with 10 additions and 1 deletions

View File

@ -79,7 +79,16 @@
# define gtk_widget_get_style_context(x) gtk_widget_get_style(x)
# define gtk_style_context_get_color(x,y,z) gdkcolor_to_color_t(&z, &x->text[y])
# define gtk_style_context_get_color_background(x,y,z) gdkcolor_to_color_t(&z, &x->base[y])
# define gtk_tree_view_column_get_button(x) x->button
# if GTK_CHECK_VERSION (2, 22, 0) && defined(GSEAL_ENABLE)
/* This is too late, see https://bugzilla.gnome.org/show_bug.cgi?id=641089
* They also admit that they missed a use case and thus failed to provide
* an accessor function:
* http://mail.gnome.org/archives/commits-list/2010-December/msg00578.html
*/
# define gtk_tree_view_column_get_button(x) x->_g_sealed__button
# else
# define gtk_tree_view_column_get_button(x) x->button
# endif
#endif
#endif