diff options
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 9ca2d03b2c..060912c235 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -148,7 +148,7 @@ event_page_class_init (EventPageClass *class) editor_page_class = (CompEditorPageClass *) class; object_class = (GtkObjectClass *) class; - parent_class = gtk_type_class (TYPE_COMP_EDITOR_PAGE); + parent_class = g_type_class_ref(TYPE_COMP_EDITOR_PAGE); editor_page_class->get_widget = event_page_get_widget; editor_page_class->focus_main_widget = event_page_focus_main_widget; @@ -219,7 +219,7 @@ event_page_destroy (GtkObject *object) } if (priv->xml) { - gtk_object_unref (GTK_OBJECT (priv->xml)); + g_object_unref((priv->xml)); priv->xml = NULL; } @@ -1290,8 +1290,8 @@ init_widgets (EventPage *epage) epage, NULL); /* Summary */ - gtk_signal_connect (GTK_OBJECT (priv->summary), "changed", - GTK_SIGNAL_FUNC (summary_changed_cb), epage); + g_signal_connect((priv->summary), "changed", + G_CALLBACK (summary_changed_cb), epage); /* Description - turn on word wrap. */ #if 0 @@ -1299,64 +1299,64 @@ init_widgets (EventPage *epage) #endif /* Start and end times */ - gtk_signal_connect (GTK_OBJECT (priv->start_time), "changed", - GTK_SIGNAL_FUNC (date_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->end_time), "changed", - GTK_SIGNAL_FUNC (date_changed_cb), epage); + g_signal_connect((priv->start_time), "changed", + G_CALLBACK (date_changed_cb), epage); + g_signal_connect((priv->end_time), "changed", + G_CALLBACK (date_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->start_timezone), "changed", - GTK_SIGNAL_FUNC (start_timezone_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->end_timezone), "changed", - GTK_SIGNAL_FUNC (end_timezone_changed_cb), epage); + g_signal_connect((priv->start_timezone), "changed", + G_CALLBACK (start_timezone_changed_cb), epage); + g_signal_connect((priv->end_timezone), "changed", + G_CALLBACK (end_timezone_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->all_day_event), "toggled", - GTK_SIGNAL_FUNC (all_day_event_toggled_cb), epage); + g_signal_connect((priv->all_day_event), "toggled", + G_CALLBACK (all_day_event_toggled_cb), epage); /* Contacts button */ - gtk_signal_connect (GTK_OBJECT (priv->contacts_btn), "clicked", - GTK_SIGNAL_FUNC (contacts_clicked_cb), epage); + g_signal_connect((priv->contacts_btn), "clicked", + G_CALLBACK (contacts_clicked_cb), epage); /* Categories button */ - gtk_signal_connect (GTK_OBJECT (priv->categories_btn), "clicked", - GTK_SIGNAL_FUNC (categories_clicked_cb), epage); + g_signal_connect((priv->categories_btn), "clicked", + G_CALLBACK (categories_clicked_cb), epage); /* Connect the default signal handler to use to make sure we notify * upstream of changes to the widget values. */ - gtk_signal_connect (GTK_OBJECT (priv->summary), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->location), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->start_time), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->end_time), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->start_timezone), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->end_timezone), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->all_day_event), "toggled", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->description), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->classification_public), - "toggled", GTK_SIGNAL_FUNC (field_changed_cb), + g_signal_connect((priv->summary), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->location), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->start_time), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->end_time), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->start_timezone), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->end_timezone), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->all_day_event), "toggled", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->description), "changed", + G_CALLBACK (field_changed_cb), epage); + g_signal_connect((priv->classification_public), + "toggled", G_CALLBACK (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->classification_private), - "toggled", GTK_SIGNAL_FUNC (field_changed_cb), + g_signal_connect((priv->classification_private), + "toggled", G_CALLBACK (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->classification_confidential), - "toggled", GTK_SIGNAL_FUNC (field_changed_cb), + g_signal_connect((priv->classification_confidential), + "toggled", G_CALLBACK (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->show_time_as_free), - "toggled", GTK_SIGNAL_FUNC (field_changed_cb), + g_signal_connect((priv->show_time_as_free), + "toggled", G_CALLBACK (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->show_time_as_busy), - "toggled", GTK_SIGNAL_FUNC (field_changed_cb), + g_signal_connect((priv->show_time_as_busy), + "toggled", G_CALLBACK (field_changed_cb), epage); - gtk_signal_connect (GTK_OBJECT (priv->categories), "changed", - GTK_SIGNAL_FUNC (field_changed_cb), epage); + g_signal_connect((priv->categories), "changed", + G_CALLBACK (field_changed_cb), epage); /* Create the contacts entry, a corba control from the address book. */ priv->corba_select_names = comp_editor_create_contacts_component (); @@ -1435,7 +1435,7 @@ event_page_new (void) epage = gtk_type_new (TYPE_EVENT_PAGE); if (!event_page_construct (epage)) { - gtk_object_unref (GTK_OBJECT (epage)); + g_object_unref((epage)); return NULL; } |