diff options
author | JP Rosevear <jpr@novell.com> | 2004-10-14 23:02:32 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-10-14 23:02:32 +0800 |
commit | 66152fe6537418489c2186a5e5c269c6e7c81db3 (patch) | |
tree | 8e65d0de151e07adb43a67c77a4e85c15d004bab /calendar/gui/cal-search-bar.c | |
parent | 979feab18eb378b4623f2edc6a357407e95e3493 (diff) | |
download | gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.gz gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.tar.zst gsoc2013-evolution-66152fe6537418489c2186a5e5c269c6e7c81db3.zip |
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com>
* gui/calendar-view.c: convert to G_DEFINE_TYPE
* gui/calendar-view-factory.c: ditto
* gui/cal-search-bar.c: ditto
* gui/e-cal-component-preview.c: ditto
svn path=/trunk/; revision=27579
Diffstat (limited to 'calendar/gui/cal-search-bar.c')
-rw-r--r-- | calendar/gui/cal-search-bar.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c index 3bdb542516..962b7e5eca 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -30,7 +30,6 @@ #include <gtk/gtkoptionmenu.h> #include <gtk/gtksignal.h> #include <libgnome/gnome-i18n.h> -#include <gal/util/e-util.h> #include "cal-search-bar.h" @@ -65,16 +64,10 @@ struct CalSearchBarPrivate { GPtrArray *categories; }; - - -static void cal_search_bar_class_init (CalSearchBarClass *class); -static void cal_search_bar_init (CalSearchBar *cal_search); static void cal_search_bar_destroy (GtkObject *object); static void cal_search_bar_search_activated (ESearchBar *search); -static ESearchBarClass *parent_class = NULL; - /* Signal IDs */ enum { SEXP_CHANGED, @@ -84,10 +77,7 @@ enum { static guint cal_search_bar_signals[LAST_SIGNAL] = { 0 }; - - -E_MAKE_TYPE (cal_search_bar, "CalSearchBar", CalSearchBar, cal_search_bar_class_init, - cal_search_bar_init, E_SEARCH_BAR_TYPE); +G_DEFINE_TYPE (CalSearchBar, cal_search_bar, E_SEARCH_BAR_TYPE); /* Class initialization function for the calendar search bar */ static void @@ -99,8 +89,6 @@ cal_search_bar_class_init (CalSearchBarClass *class) e_search_bar_class = (ESearchBarClass *) class; object_class = (GtkObjectClass *) class; - parent_class = g_type_class_peek_parent (class); - cal_search_bar_signals[SEXP_CHANGED] = gtk_signal_new ("sexp_changed", GTK_RUN_FIRST, @@ -177,8 +165,8 @@ cal_search_bar_destroy (GtkObject *object) cal_search->priv = NULL; } - if (GTK_OBJECT_CLASS (parent_class)->destroy) - (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); + if (GTK_OBJECT_CLASS (cal_search_bar_parent_class)->destroy) + (* GTK_OBJECT_CLASS (cal_search_bar_parent_class)->destroy) (object); } |