diff options
-rw-r--r-- | calendar/ChangeLog | 5 | ||||
-rw-r--r-- | calendar/gui/cal-search-bar.c | 15 |
2 files changed, 12 insertions, 8 deletions
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 <poincare@ikezoe.net> + + * gui/cal-search-bar.c: (cal_search_bar_class_init): Remove needless + EFilterBarClass. + 2007-07-18 Milan Crha <mcrha@redhat.com> ** 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; } |