From 1f1d70ba448db9198a6bd969032fb25c6644283c Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 20 Oct 2010 18:40:24 +0200 Subject: e-table: Remove unused GdkGC from ECellToggle --- widgets/table/e-cell-toggle.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'widgets/table') 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; @@ -172,25 +171,6 @@ cell_toggle_kill_view (ECellView *ecell_view) g_free (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, @@ -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; -- cgit