aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-22 19:58:12 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-30 01:50:05 +0800
commit08405c6950207b4ad663b3de4648b104a56dccf0 (patch)
tree8b112096698bbafd6b61a9efa2adaeced321c3e6 /calendar/gui/e-week-view.c
parent2cb8ee8d454245c10e1430dc97f10715d6db84b6 (diff)
downloadgsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.gz
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.bz2
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.lz
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.xz
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.zst
gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.zip
calendar: Remove now unused gcs and colormap handling from EWeekView
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index a575f90ef4..4a844429e4 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);