aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/schedule-page.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 22:22:12 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 22:22:12 +0800
commit4d0c841a0368793bee8b0d5a17ead69b3093b30b (patch)
tree1cb5ef945b063f5b5537b1e7105d3718fcd7a6b2 /calendar/gui/dialogs/schedule-page.c
parent9e6e6c7141a2cb29148ab9dc4f98ebcc40c2f02c (diff)
downloadgsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.gz
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.zst
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.zip
conver to G_DEFINE_TYPE
2004-10-14 JP Rosevear <jpr@novell.com> * gui/dialogs/comp-editor.c: conver to G_DEFINE_TYPE * gui/dialogs/meeting-page.c: ditto * gui/dialogs/recurrence-page.c: ditto * gui/dialogs/schedule-page.c: ditto * gui/dialogs/e-delegate-dialog.c: ditto * gui/dialogs/event-editor.c: ditto * gui/dialogs/task-editor.c: ditto * gui/dialogs/task-details-page.c: ditto * gui/dialogs/select-source-dialog.c (primary_selection_changed_cb): fix warning svn path=/trunk/; revision=27576
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r--calendar/gui/dialogs/schedule-page.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index c15b6582eb..83bc6d788a 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -67,8 +67,6 @@ struct _SchedulePagePrivate {
-static void schedule_page_class_init (SchedulePageClass *class);
-static void schedule_page_init (SchedulePage *spage);
static void schedule_page_finalize (GObject *object);
static GtkWidget *schedule_page_get_widget (CompEditorPage *page);
@@ -79,21 +77,7 @@ static void schedule_page_set_dates (CompEditorPage *page, CompEditorPageDates *
static void times_changed_cb (GtkWidget *widget, gpointer data);
-static CompEditorPageClass *parent_class = NULL;
-
-
-
-/**
- * schedule_page_get_type:
- *
- * Registers the #SchedulePage class if necessary, and returns the type ID
- * associated to it.
- *
- * Return value: The type ID of the #SchedulePage class.
- **/
-
-E_MAKE_TYPE (schedule_page, "SchedulePage", SchedulePage, schedule_page_class_init,
- schedule_page_init, TYPE_COMP_EDITOR_PAGE);
+G_DEFINE_TYPE (SchedulePage, schedule_page, TYPE_COMP_EDITOR_PAGE);
/* Class initialization function for the schedule page */
static void
@@ -105,8 +89,6 @@ schedule_page_class_init (SchedulePageClass *class)
editor_page_class = (CompEditorPageClass *) class;
object_class = (GObjectClass *) class;
- parent_class = g_type_class_ref (TYPE_COMP_EDITOR_PAGE);
-
editor_page_class->get_widget = schedule_page_get_widget;
editor_page_class->focus_main_widget = schedule_page_focus_main_widget;
editor_page_class->fill_widgets = schedule_page_fill_widgets;
@@ -161,8 +143,8 @@ schedule_page_finalize (GObject *object)
g_free (priv);
spage->priv = NULL;
- if (G_OBJECT_CLASS (parent_class)->finalize)
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+ if (G_OBJECT_CLASS (schedule_page_parent_class)->finalize)
+ (* G_OBJECT_CLASS (schedule_page_parent_class)->finalize) (object);
}
@@ -202,7 +184,7 @@ sensitize_widgets (SchedulePage *spage)
if (!e_cal_is_read_only (COMP_EDITOR_PAGE (spage)->client, &read_only, NULL))
read_only = TRUE;
- e_meeting_time_selector_set_read_only (GTK_WIDGET (priv->sel), read_only);
+ e_meeting_time_selector_set_read_only (priv->sel, read_only);
}
static void