aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/task-details-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/task-details-page.c
parent9e6e6c7141a2cb29148ab9dc4f98ebcc40c2f02c (diff)
downloadgsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.gz
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.bz2
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.lz
gsoc2013-evolution-4d0c841a0368793bee8b0d5a17ead69b3093b30b.tar.xz
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/task-details-page.c')
-rw-r--r--calendar/gui/dialogs/task-details-page.c26
1 files changed, 4 insertions, 22 deletions
diff --git a/calendar/gui/dialogs/task-details-page.c b/calendar/gui/dialogs/task-details-page.c
index 9e88e915b8..b7814142f9 100644
--- a/calendar/gui/dialogs/task-details-page.c
+++ b/calendar/gui/dialogs/task-details-page.c
@@ -87,8 +87,6 @@ static const int priority_map[] = {
-static void task_details_page_class_init (TaskDetailsPageClass *class);
-static void task_details_page_init (TaskDetailsPage *tdpage);
static void task_details_page_finalize (GObject *object);
static GtkWidget *task_details_page_get_widget (CompEditorPage *page);
@@ -97,21 +95,7 @@ static gboolean task_details_page_fill_widgets (CompEditorPage *page, ECalCompon
static gboolean task_details_page_fill_component (CompEditorPage *page, ECalComponent *comp);
static gboolean task_details_page_fill_timezones (CompEditorPage *page, GHashTable *timezones);
-static CompEditorPageClass *parent_class = NULL;
-
-
-
-/**
- * task_details_page_get_type:
- *
- * Registers the #TaskDetailsPage class if necessary, and returns the type ID
- * associated to it.
- *
- * Return value: The type ID of the #TaskDetailsPage class.
- **/
-
-E_MAKE_TYPE (task_details_page, "TaskDetailsPage", TaskDetailsPage, task_details_page_class_init,
- task_details_page_init, TYPE_COMP_EDITOR_PAGE);
+G_DEFINE_TYPE (TaskDetailsPage, task_details_page, TYPE_COMP_EDITOR_PAGE);
/* Class initialization function for the task page */
static void
@@ -123,8 +107,6 @@ task_details_page_class_init (TaskDetailsPageClass *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_details_page_get_widget;
editor_page_class->focus_main_widget = task_details_page_focus_main_widget;
editor_page_class->fill_widgets = task_details_page_fill_widgets;
@@ -185,8 +167,8 @@ task_details_page_finalize (GObject *object)
g_free (priv);
tdpage->priv = NULL;
- if (G_OBJECT_CLASS (parent_class)->finalize)
- (* G_OBJECT_CLASS (parent_class)->finalize) (object);
+ if (G_OBJECT_CLASS (task_details_page_parent_class)->finalize)
+ (* G_OBJECT_CLASS (task_details_page_parent_class)->finalize) (object);
}
@@ -293,7 +275,7 @@ sensitize_widgets (TaskDetailsPage *tdpage)
gtk_widget_set_sensitive (priv->percent_complete, !read_only);
gtk_widget_set_sensitive (priv->completed_date, !read_only);
gtk_widget_set_sensitive (priv->url_label, !read_only);
- gtk_entry_set_editable (GTK_ENTRY (e_url_entry_get_entry (priv->url_entry)), !read_only);
+ gtk_entry_set_editable (GTK_ENTRY (e_url_entry_get_entry (E_URL_ENTRY (priv->url_entry))), !read_only);
}
/* fill_widgets handler for the task page */