aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-history.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-12-21 23:42:46 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-12-21 23:42:46 +0800
commita0da580e7e2355b6f6e084cbd968dd6176156082 (patch)
treed902eddfe5429b7d8dc2e0fa1055f136f880561f /shell/e-history.c
parent8cb1b7cf11da0d32a087f3f580fb76f0eb2aa212 (diff)
downloadgsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar.gz
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar.bz2
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar.lz
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar.xz
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.tar.zst
gsoc2013-evolution-a0da580e7e2355b6f6e084cbd968dd6176156082.zip
Convert to G_DEFINE_TYPE
2004-12-21 JP Rosevear <jpr@novell.com> * e-corba-config-page.c: Convert to G_DEFINE_TYPE * e-history.c: ditto * e-shell-folder-title-bar.c: ditto * e-shell-offline-handler.c: ditto * e-shell-settings-dialog.c: ditto * e-shell-window.c: ditto * e-sidebar.c: ditto * e-user-creatable-items-handler.c: ditto * e-component-registry.c: ditto * importer/evolution-importer-client.c: ditto svn path=/trunk/; revision=28164
Diffstat (limited to 'shell/e-history.c')
-rw-r--r--shell/e-history.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/shell/e-history.c b/shell/e-history.c
index d12a933241..ff4755bb8d 100644
--- a/shell/e-history.c
+++ b/shell/e-history.c
@@ -26,12 +26,6 @@
#include "e-history.h"
-#include <gal/util/e-util.h>
-
-
-#define PARENT_TYPE gtk_object_get_type ()
-static GtkObjectClass *parent_class = NULL;
-
struct _EHistoryPrivate {
EHistoryItemFreeFunc item_free_function;
@@ -39,6 +33,8 @@ struct _EHistoryPrivate {
GList *current_item;
};
+G_DEFINE_TYPE (EHistory, e_history, GTK_TYPE_OBJECT)
+
/* GObject methods. */
@@ -59,20 +55,21 @@ impl_finalize (GObject *object)
g_free (priv);
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+ (* G_OBJECT_CLASS (e_history_parent_class)->finalize) (object);
}
static void
-class_init (GObjectClass *object_class)
+e_history_class_init (EHistoryClass *klass)
{
- parent_class = g_type_class_ref(PARENT_TYPE);
-
+ GObjectClass *object_class;
+
+ object_class = G_OBJECT_CLASS (klass);
object_class->finalize = impl_finalize;
}
static void
-init (EHistory *history)
+e_history_init (EHistory *history)
{
EHistoryPrivate *priv;
@@ -257,5 +254,3 @@ e_history_remove_matching (EHistory *history,
}
}
-
-E_MAKE_TYPE (e_history, "EHistory", EHistory, class_init, init, GTK_TYPE_OBJECT)