[evolution/rendering-cleanup] calendar: Remove now unused gcs and colormap handling from EWeekView



commit dcb402940b748b49731eaa00121ca1b41dd19b1b
Author: Benjamin Otte <otte redhat com>
Date:   Fri Oct 22 13:58:12 2010 +0200

    calendar: Remove now unused gcs and colormap handling from EWeekView

 calendar/gui/e-week-view.c |   15 ---------------
 calendar/gui/e-week-view.h |    3 ---
 2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 765f7f5..ba08927 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -753,8 +753,6 @@ e_week_view_init (EWeekView *week_view)
 
 	week_view->last_edited_comp_string = NULL;
 
-	week_view->main_gc = NULL;
-
 	/* Create the small font. */
 	week_view->use_small_font = TRUE;
 
@@ -923,7 +921,6 @@ static void
 e_week_view_realize (GtkWidget *widget)
 {
 	EWeekView *week_view;
-	GdkColormap *colormap;
 	GdkWindow *window;
 
 	if (GTK_WIDGET_CLASS (e_week_view_parent_class)->realize)
@@ -931,15 +928,10 @@ e_week_view_realize (GtkWidget *widget)
 
 	week_view = E_WEEK_VIEW (widget);
 	window = gtk_widget_get_window (widget);
-	week_view->main_gc = gdk_gc_new (window);
-
-	colormap = gtk_widget_get_colormap (widget);
 
 	/* Allocate the colors. */
 	e_week_view_set_colors (week_view, widget);
 
-	gdk_gc_set_colormap (week_view->main_gc, colormap);
-
 	/* Create the pixmaps. */
 	week_view->reminder_icon = e_icon_factory_get_icon ("stock_bell", GTK_ICON_SIZE_MENU);
 	week_view->recurrence_icon = e_icon_factory_get_icon ("view-refresh", GTK_ICON_SIZE_MENU);
@@ -995,16 +987,9 @@ static void
 e_week_view_unrealize (GtkWidget *widget)
 {
 	EWeekView *week_view;
-	GdkColormap *colormap;
 
 	week_view = E_WEEK_VIEW (widget);
 
-	g_object_unref (week_view->main_gc);
-	week_view->main_gc = NULL;
-
-	colormap = gtk_widget_get_colormap (widget);
-	gdk_colormap_free_colors (colormap, week_view->colors, E_WEEK_VIEW_COLOR_LAST);
-
 	g_object_unref (week_view->reminder_icon);
 	week_view->reminder_icon = NULL;
 	g_object_unref (week_view->recurrence_icon);
diff --git a/calendar/gui/e-week-view.h b/calendar/gui/e-week-view.h
index 8f4da55..3f65149 100644
--- a/calendar/gui/e-week-view.h
+++ b/calendar/gui/e-week-view.h
@@ -291,9 +291,6 @@ struct _EWeekView {
 	   on how much room is available. */
 	EWeekViewTimeFormat time_format;
 
-	/* The GC used for painting in different colors. */
-	GdkGC *main_gc;
-
 	/* The icons. */
 	GdkPixbuf *reminder_icon;
 	GdkPixbuf *recurrence_icon;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]