[gnumeric] GdkGC: remove from item-grid where it was not really used.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GdkGC: remove from item-grid where it was not really used.
- Date: Wed, 28 Jul 2010 18:48:28 +0000 (UTC)
commit 64fd0ca02ff002c43583eb796254d5ac40f2638f
Author: Morten Welinder <terra gnome org>
Date: Wed Jul 28 14:24:02 2010 -0400
GdkGC: remove from item-grid where it was not really used.
ChangeLog | 5 +++++
src/item-grid.c | 8 --------
2 files changed, 5 insertions(+), 8 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 686a8d2..f739ebc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,11 @@
UNDERLINE_*_LOW
(wbc_gtk_init): add Font*LowUnderline
+2010-07-28 Morten Welinder <terra gnome org>
+
+ * src/item-grid.c (item_grid_init): Kill all GdkGCs which aren't
+ used anyway.
+
2010-07-27 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/dead-kittens.h (gtk_dialog_get_content_area): new
diff --git a/src/item-grid.c b/src/item-grid.c
index ab43ffe..9e9c59c 100644
--- a/src/item-grid.c
+++ b/src/item-grid.c
@@ -66,13 +66,6 @@ struct _ItemGrid {
ItemGridSelectionType selecting;
- struct {
- GdkGC *fill; /* Default background fill gc */
- GdkGC *cell; /* Color used for the cell */
- GdkGC *empty; /* GC used for drawing empty cells */
- GdkGC *bound; /* the dark line at the edge */
- } gc;
-
GnmRange bound;
/* information for the cursor motion handler */
@@ -1156,7 +1149,6 @@ item_grid_init (ItemGrid *ig)
item->y1 = 0;
ig->selecting = ITEM_GRID_NO_SELECTION;
- ig->gc.fill = ig->gc.cell = ig->gc.empty = ig->gc.bound = NULL;
/* We need something at least as big as any sheet. */
ig->bound.start.col = ig->bound.start.row = 0;
ig->bound.end.col = GNM_MAX_COLS - 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]