aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-day-view.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-15 23:21:08 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:27 +0800
commitd0f088d329977e9a5f8aa4d4cf1122596eb8704f (patch)
tree98a07deb70995661f871b0e85fe1b700ce1e7691 /calendar/gui/e-day-view.c
parentbd98a2d620a9403637db1010966cb0a707a547b7 (diff)
downloadgsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar.gz
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar.bz2
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar.lz
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar.xz
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.tar.zst
gsoc2013-evolution-d0f088d329977e9a5f8aa4d4cf1122596eb8704f.zip
Adapt EDayView + widgets to latest gtk+-3.0 API.
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r--calendar/gui/e-day-view.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index a183553456..a548b764c0 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -1262,7 +1262,7 @@ e_day_view_on_canvas_realized (GtkWidget *widget,
GdkWindow *window;
window = gtk_layout_get_bin_window (GTK_LAYOUT (widget));
- gdk_window_set_back_pixmap (window, NULL, FALSE);
+ gdk_window_set_background_pattern (window, NULL);
}
/**
@@ -1440,13 +1440,9 @@ e_day_view_get_text_color (EDayView *day_view, EDayViewEvent *event, GtkWidget *
if (is_comp_data_valid (event) && gdk_color_parse (e_cal_model_get_color_for_component (e_calendar_view_get_model (E_CALENDAR_VIEW (day_view)), event->comp_data),
&bg_color)) {
- GdkColormap *colormap;
- colormap = gtk_widget_get_colormap (GTK_WIDGET (day_view));
- if (gdk_colormap_alloc_color (colormap, &bg_color, TRUE, TRUE)) {
- red = bg_color.red;
- green = bg_color.green;
- blue = bg_color.blue;
- }
+ red = bg_color.red;
+ green = bg_color.green;
+ blue = bg_color.blue;
}
style = gtk_widget_get_style (widget);