aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-page.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-10-14 02:37:05 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-10-14 02:37:05 +0800
commit6637268444f29f397df8f90086696500febfa17f (patch)
tree2d17f95ea03fd9386b7c009c928cbc22653b72a2 /calendar/gui/dialogs/task-page.c
parentee79ced9e8dcf05d634da8037b19bf9273cffd7a (diff)
downloadgsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar.gz
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar.bz2
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar.lz
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar.xz
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.tar.zst
gsoc2013-evolution-6637268444f29f397df8f90086696500febfa17f.zip
ditto
2004-10-13 JP Rosevear <jpr@novell.com> * gui/dialogs/task-page.c: ditto * gui/calendar-component.h: remove e-source-selector include * gui/tasks-component.h: ditto * gui/calendar-component.c: update include to libedataserverui for source selector and option menus * gui/e-cal-popup.c: ditto * gui/dialogs/url-editor-dialog.h: ditto * gui/dialogs/select-source-dialog.c: ditto * gui/tasks-component.c: ditto * importers/icalendar-importer.c: ditto * gui/e-itip-control.c: ditto; use G_DEFINE_TYPE instead of E_MAKE_TYPE * gui/dialogs/event-page.c: ditto * gui/dialogs/task-page.c: ditto svn path=/trunk/; revision=27569
Diffstat (limited to 'calendar/gui/dialogs/task-page.c')
-rw-r--r--calendar/gui/dialogs/task-page.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index 2779c0f2a2..661eb452e3 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -35,8 +35,8 @@
#include <libgnome/gnome-i18n.h>
#include <glade/glade.h>
#include <gal/widgets/e-categories.h>
+#include <libedataserverui/e-source-option-menu.h>
#include <widgets/misc/e-dateedit.h>
-#include "widgets/misc/e-source-option-menu.h"
#include "common/authentication.h"
#include "e-util/e-dialog-widgets.h"
#include "e-util/e-categories-config.h"
@@ -85,8 +85,6 @@ static const int classification_map[] = {
-static void task_page_class_init (TaskPageClass *class);
-static void task_page_init (TaskPage *tpage);
static void task_page_finalize (GObject *object);
static GtkWidget *task_page_get_widget (CompEditorPage *page);
@@ -97,21 +95,7 @@ static gboolean task_page_fill_timezones (CompEditorPage *page, GHashTable *time
static void task_page_set_summary (CompEditorPage *page, const char *summary);
static void task_page_set_dates (CompEditorPage *page, CompEditorPageDates *dates);
-static CompEditorPageClass *parent_class = NULL;
-
-
-
-/**
- * task_page_get_type:
- *
- * Registers the #TaskPage class if necessary, and returns the type ID
- * associated to it.
- *
- * Return value: The type ID of the #TaskPage class.
- **/
-
-E_MAKE_TYPE (task_page, "TaskPage", TaskPage, task_page_class_init, task_page_init,
- TYPE_COMP_EDITOR_PAGE);
+G_DEFINE_TYPE (TaskPage, task_page, TYPE_COMP_EDITOR_PAGE);
/* Class initialization function for the task page */
static void
@@ -123,8 +107,6 @@ task_page_class_init (TaskPageClass *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 = task_page_get_widget;
editor_page_class->focus_main_widget = task_page_focus_main_widget;
editor_page_class->fill_widgets = task_page_fill_widgets;
@@ -186,8 +168,8 @@ task_page_finalize (GObject *object)
g_free (priv);
tpage->priv = NULL;
- if (G_OBJECT_CLASS (parent_class)->finalize)
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+ if (G_OBJECT_CLASS (task_page_parent_class)->finalize)
+ (* G_OBJECT_CLASS (task_page_parent_class)->finalize) (object);
}