[evolution/rendering-cleanup: 83/97] e-table: Remove unused GdkGC from ECellToggle
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/rendering-cleanup: 83/97] e-table: Remove unused GdkGC from ECellToggle
- Date: Thu, 21 Oct 2010 09:51:01 +0000 (UTC)
commit bbbedf6dff9c448e0820a38552d8d2ec308bb592
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 20 18:40:24 2010 +0200
e-table: Remove unused GdkGC from ECellToggle
widgets/table/e-cell-toggle.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/widgets/table/e-cell-toggle.c b/widgets/table/e-cell-toggle.c
index 4a45ac6..c59cffa 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]