[evolution] calendar: Remove now unused gcs and colormap handling from EWeekView



commit 08405c6950207b4ad663b3de4648b104a56dccf0
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 a575f90..4a84442 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -752,8 +752,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;
 
@@ -922,7 +920,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)
@@ -930,15 +927,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);
@@ -994,16 +986,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]