aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-timezone-entry.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 23:53:29 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 23:53:29 +0800
commitdce3735025a16ac72151b751a061120fe4209648 (patch)
treef3c60bed93fe807fbeccbbde1cce6c2599852610 /calendar/gui/e-timezone-entry.c
parent086338bb035c96491b792bd93f65a94d1f236916 (diff)
downloadgsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.tar.gz
gsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.tar.zst
gsoc2013-evolution-dce3735025a16ac72151b751a061120fe4209648.zip
convert to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/e-meeting-attendee.c: convert to G_DEFINE_TYPE * gui/e-meeting-list-view.c: ditto * gui/e-meeting-time-sel.c: ditto * gui/e-meeting-time-sel-item.c: ditto * gui/e-select-names-renderer.c: ditto * gui/e-timezone-entry.c: ditto * gui/e-tasks.c: ditto * gui/gnome-cal.c: ditto * gui/weekday-picker.c: ditto svn path=/trunk/; revision=27584
Diffstat (limited to 'calendar/gui/e-timezone-entry.c')
-rw-r--r--calendar/gui/e-timezone-entry.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/calendar/gui/e-timezone-entry.c b/calendar/gui/e-timezone-entry.c
index 0c2c795bf3..8e4c65e64d 100644
--- a/calendar/gui/e-timezone-entry.c
+++ b/calendar/gui/e-timezone-entry.c
@@ -34,7 +34,6 @@
#include <gtk/gtkentry.h>
#include <gtk/gtksignal.h>
#include <gnome.h>
-#include <gal/util/e-util.h>
#include <widgets/e-timezone-dialog/e-timezone-dialog.h>
#include <libgnome/gnome-i18n.h>
#include "e-timezone-entry.h"
@@ -62,9 +61,6 @@ enum {
LAST_SIGNAL
};
-
-static void e_timezone_entry_class_init (ETimezoneEntryClass *class);
-static void e_timezone_entry_init (ETimezoneEntry *tentry);
static void e_timezone_entry_destroy (GtkObject *object);
static gboolean e_timezone_entry_mnemonic_activate (GtkWidget *widget,
@@ -79,11 +75,9 @@ static void on_button_clicked (GtkWidget *widget,
static void e_timezone_entry_set_entry (ETimezoneEntry *tentry);
-static GtkHBoxClass *parent_class;
static guint timezone_entry_signals[LAST_SIGNAL] = { 0 };
-E_MAKE_TYPE (e_timezone_entry, "ETimezoneEntry", ETimezoneEntry,
- e_timezone_entry_class_init, e_timezone_entry_init, GTK_TYPE_HBOX);
+G_DEFINE_TYPE (ETimezoneEntry, e_timezone_entry, GTK_TYPE_HBOX);
static void
e_timezone_entry_class_init (ETimezoneEntryClass *class)
@@ -93,8 +87,6 @@ e_timezone_entry_class_init (ETimezoneEntryClass *class)
object_class = (GtkObjectClass*) class;
- parent_class = g_type_class_peek_parent (class);
-
widget_class->mnemonic_activate = e_timezone_entry_mnemonic_activate;
widget_class->focus = e_timezone_entry_focus;
timezone_entry_signals[CHANGED] =
@@ -186,8 +178,8 @@ e_timezone_entry_destroy (GtkObject *object)
g_free (tentry->priv);
tentry->priv = NULL;
- if (GTK_OBJECT_CLASS (parent_class)->destroy)
- (* GTK_OBJECT_CLASS (parent_class)->destroy) (object);
+ if (GTK_OBJECT_CLASS (e_timezone_entry_parent_class)->destroy)
+ (* GTK_OBJECT_CLASS (e_timezone_entry_parent_class)->destroy) (object);
}