From c43efa516fb4dfbed2fe210959d930523965a26a Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Thu, 18 Dec 2003 00:06:43 +0000 Subject: Migrating all cell renderers to use the new instance private data Thu Dec 18 00:57:18 2003 Kristian Rietveld Migrating all cell renderers to use the new instance private data construction. * gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no longer being used. * gtk/gtkcellrenderer.c (gtk_cell_renderer_init), (gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property), (set_cell_bg_color), (gtk_cell_renderer_render): remove old GtkCellRendererInfo handling, migrate to instance private data. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done), (gtk_cell_renderer_text_start_editing): moved focus_out_id from GtkCellRendererInfo to text renderer private data. * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init), (gtk_cell_renderer_pixbuf_class_init), (gtk_cell_renderer_pixbuf_finalize), (gtk_cell_renderer_pixbuf_get_property), (gtk_cell_renderer_pixbuf_set_property), (gtk_cell_renderer_pixbuf_create_stock_pixbuf), (gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render): migrate to instance private data. * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init), (gtk_cell_renderer_toggle_get_property), (gtk_cell_renderer_toggle_set_property), (gtk_cell_renderer_toggle_render): migrate to instance private data. --- gtk/gtktreeprivate.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'gtk/gtktreeprivate.h') diff --git a/gtk/gtktreeprivate.h b/gtk/gtktreeprivate.h index 820cfbdb3..9e1bcd832 100644 --- a/gtk/gtktreeprivate.h +++ b/gtk/gtktreeprivate.h @@ -212,21 +212,6 @@ struct _GtkTreeViewPrivate GtkDestroyNotify search_destroy; }; -/* cool ABI compat hack */ -#define GTK_CELL_RENDERER_INFO_KEY "gtk-cell-renderer-info" - -typedef struct _GtkCellRendererInfo GtkCellRendererInfo; -struct _GtkCellRendererInfo -{ - GdkColor cell_background; - - /* text renderer */ - gulong focus_out_id; - - /* toggle renderer */ - guint inconsistent :1; -}; - #ifdef __GNUC__ #define TREE_VIEW_INTERNAL_ASSERT(expr, ret) G_STMT_START{ \ -- cgit v1.2.1