From 0cc56c014f68be35e3ac12ccc500ee3528cceea0 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 6 Feb 2010 20:48:27 -0500 Subject: Bug 602416 - Changing shell views emits many runtime warnings --- widgets/misc/e-calendar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'widgets/misc/e-calendar.c') diff --git a/widgets/misc/e-calendar.c b/widgets/misc/e-calendar.c index 384d4ce664..9673db812c 100644 --- a/widgets/misc/e-calendar.c +++ b/widgets/misc/e-calendar.c @@ -267,8 +267,7 @@ e_calendar_style_set (GtkWidget *widget, /* Set the background of the canvas window to the normal color, or the arrow buttons are not displayed properly. */ - parent = gtk_widget_get_parent (widget); - if (GTK_WIDGET_REALIZED (parent)) { + if (GTK_WIDGET_REALIZED (widget)) { GtkStyle *style; GdkWindow *window; -- cgit