From fcac1b77fc6bd48d7c03e1762e0dca66c1986d14 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Sun, 29 Jul 2007 15:29:23 +0000 Subject: Fixes #460825. svn path=/trunk/; revision=33886 --- calendar/ChangeLog | 5 +++++ calendar/gui/cal-search-bar.c | 15 +++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 48294a7fc8..14e87cc653 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2007-07-27 Hiroyuki Ikezoe + + * gui/cal-search-bar.c: (cal_search_bar_class_init): Remove needless + EFilterBarClass. + 2007-07-18 Milan Crha ** Fix for bug #326388 diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c index 7bfd4bbaa1..7d67799578 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -137,13 +137,11 @@ G_DEFINE_TYPE (CalSearchBar, cal_search_bar, E_FILTER_BAR_TYPE) /* Class initialization function for the calendar search bar */ static void -cal_search_bar_class_init (CalSearchBarClass *class) +cal_search_bar_class_init (CalSearchBarClass *klass) { - EFilterBarClass *e_search_bar_class; - GtkObjectClass *object_class; - e_search_bar_class = (EFilterBarClass *) class; - object_class = (GtkObjectClass *) class; + GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass); + ESearchBarClass *search_bar_class = E_SEARCH_BAR_CLASS (klass); cal_search_bar_signals[SEXP_CHANGED] = gtk_signal_new ("sexp_changed", @@ -163,9 +161,10 @@ cal_search_bar_class_init (CalSearchBarClass *class) GTK_TYPE_NONE, 1, GTK_TYPE_STRING); - class->sexp_changed = NULL; - class->category_changed = NULL; - ((ESearchBarClass *) e_search_bar_class)->search_activated = cal_search_bar_search_activated; + klass->sexp_changed = NULL; + klass->category_changed = NULL; + + search_bar_class->search_activated = cal_search_bar_search_activated; object_class->destroy = cal_search_bar_destroy; } -- cgit v1.2.3