aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-21 00:40:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:03 +0800
commit1f1d70ba448db9198a6bd969032fb25c6644283c (patch)
treee841e20f801bdc9171ebe694b41a2dd1e34a20c4 /widgets
parenteab0fac0cc6bdc0db3065b7764c895472a4aaf5a (diff)
downloadgsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar.gz
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar.bz2
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar.lz
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar.xz
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.tar.zst
gsoc2013-evolution-1f1d70ba448db9198a6bd969032fb25c6644283c.zip
e-table: Remove unused GdkGC from ECellToggle
Diffstat (limited to 'widgets')
-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;