aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/table/e-cell-toggle.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c
index 4a45ac614c..c59cffa081 100644
--- a/widgets/table/e-cell-toggle.c
+++ b/widgets/table/e-cell-toggle.c
@@ -58,7 +58,6 @@ G_DEFINE_TYPE (ECellToggle, e_cell_toggle, E_CELL_TYPE)
typedef struct {
ECellView cell_view;
- GdkGC *gc;
GnomeCanvas *canvas;
} ECellToggleView;
@@ -173,25 +172,6 @@ cell_toggle_kill_view (ECellView *ecell_view)
}
static void
-cell_toggle_realize (ECellView *ecell_view)
-{
- ECellToggleView *toggle_view = (ECellToggleView *) ecell_view;
- GdkWindow *window;
-
- window = gtk_widget_get_window (GTK_WIDGET (toggle_view->canvas));
- toggle_view->gc = gdk_gc_new (window);
-}
-
-static void
-cell_toggle_unrealize (ECellView *ecell_view)
-{
- ECellToggleView *toggle_view = (ECellToggleView *) ecell_view;
-
- g_object_unref (toggle_view->gc);
- toggle_view->gc = NULL;
-}
-
-static void
cell_toggle_draw (ECellView *ecell_view,
GdkDrawable *drawable,
gint model_col,
@@ -403,8 +383,6 @@ e_cell_toggle_class_init (ECellToggleClass *class)
cell_class = E_CELL_CLASS (class);
cell_class->new_view = cell_toggle_new_view;
cell_class->kill_view = cell_toggle_kill_view;
- cell_class->realize = cell_toggle_realize;
- cell_class->unrealize = cell_toggle_unrealize;
cell_class->draw = cell_toggle_draw;
cell_class->event = cell_toggle_event;
cell_class->height = cell_toggle_height;