diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-22 19:58:12 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-30 01:50:05 +0800 |
commit | 08405c6950207b4ad663b3de4648b104a56dccf0 (patch) | |
tree | 8b112096698bbafd6b61a9efa2adaeced321c3e6 | |
parent | 2cb8ee8d454245c10e1430dc97f10715d6db84b6 (diff) | |
download | gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.gz gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.tar.zst gsoc2013-evolution-08405c6950207b4ad663b3de4648b104a56dccf0.zip |
calendar: Remove now unused gcs and colormap handling from EWeekView
-rw-r--r-- | calendar/gui/e-week-view.c | 15 | ||||
-rw-r--r-- | 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 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); diff --git a/calendar/gui/e-week-view.h b/calendar/gui/e-week-view.h index 8f4da55933..3f65149f19 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; |