diff options
author | JP Rosevear <jpr@helixcode.com> | 2000-08-25 01:37:29 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2000-08-25 01:37:29 +0800 |
commit | 152d68ee68e875f9290742380dc1433ca18e8d91 (patch) | |
tree | c34b25bb46cae19882e5cac4cf44887a34e5ca89 /calendar/gui/event-editor.c | |
parent | 0b9b384a2bbd6257dae54ed1b5ee08f100fa32aa (diff) | |
download | gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar.gz gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar.bz2 gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar.lz gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar.xz gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.tar.zst gsoc2013-evolution-152d68ee68e875f9290742380dc1433ca18e8d91.zip |
Make signal names saner (released_event_object_cb): ditto
2000-08-24 JP Rosevear <jpr@helixcode.com>
* gui/gnome-cal.c (save_event_object_cb): Make signal
names saner
(released_event_object_cb): ditto
(gnome_calendar_edit_object): ditto
* gui/event-editor.h: Make signal names saner
* gui/event-editor.c (event_editor_class_init): Make signal
names saner now that we don't use ical object
(save_event_object): ditto with callback names
(file_save_cb): ditto
(tb_save_and_close_cb): ditto
(event_editor_set_ical_object): ditto
* gui/e-day-view.c (e_day_view_update_event): Umm,
!= CAL_COMPONENT_EVENT (I hope that wasn't me!)
svn path=/trunk/; revision=5006
Diffstat (limited to 'calendar/gui/event-editor.c')
-rw-r--r-- | calendar/gui/event-editor.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c index 60ff650553..da44b59148 100644 --- a/calendar/gui/event-editor.c +++ b/calendar/gui/event-editor.c @@ -119,8 +119,8 @@ typedef struct { /* Signal IDs */ enum { - SAVE_ICAL_OBJECT, - ICAL_OBJECT_RELEASED, + SAVE_EVENT_OBJECT, + RELEASED_EVENT_OBJECT, EDITOR_CLOSED, LAST_SIGNAL }; @@ -194,20 +194,20 @@ event_editor_class_init (EventEditorClass *class) parent_class = gtk_type_class (GTK_TYPE_OBJECT); - event_editor_signals[SAVE_ICAL_OBJECT] = - gtk_signal_new ("save_ical_object", + event_editor_signals[SAVE_EVENT_OBJECT] = + gtk_signal_new ("save_event_object", GTK_RUN_FIRST, object_class->type, - GTK_SIGNAL_OFFSET (EventEditorClass, save_ical_object), + GTK_SIGNAL_OFFSET (EventEditorClass, save_event_object), gtk_marshal_NONE__POINTER, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); - event_editor_signals[ICAL_OBJECT_RELEASED] = - gtk_signal_new ("ical_object_released", + event_editor_signals[RELEASED_EVENT_OBJECT] = + gtk_signal_new ("released_event_object", GTK_RUN_FIRST, object_class->type, - GTK_SIGNAL_OFFSET (EventEditorClass, ical_object_released), + GTK_SIGNAL_OFFSET (EventEditorClass, released_event_object), gtk_marshal_NONE__STRING, GTK_TYPE_NONE, 1, GTK_TYPE_POINTER); @@ -1083,11 +1083,13 @@ dialog_to_comp_object (EventEditor *ee) } cal_component_set_exdate_list (comp, list); cal_component_free_exdate_list (list); + + cal_component_commit_sequence (comp); } -/* Emits the "save_ical_object" signal if the event editor is editing an object. */ +/* Emits the "save_event_object" signal if the event editor is editing an object. */ static void -save_ical_object (EventEditor *ee) +save_event_object (EventEditor *ee) { EventEditorPrivate *priv; char *title; @@ -1103,7 +1105,7 @@ save_ical_object (EventEditor *ee) gtk_window_set_title (GTK_WINDOW (priv->app), title); g_free (title); - gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[SAVE_ICAL_OBJECT], + gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[SAVE_EVENT_OBJECT], priv->comp); } @@ -1126,7 +1128,7 @@ close_dialog (EventEditor *ee) const char *uid; cal_component_get_uid (priv->comp, &uid); - gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[ICAL_OBJECT_RELEASED], uid); + gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[RELEASED_EVENT_OBJECT], uid); gtk_object_unref (GTK_OBJECT (priv->comp)); priv->comp = NULL; } @@ -1143,7 +1145,7 @@ file_save_cb (GtkWidget *widget, gpointer data) EventEditor *ee; ee = EVENT_EDITOR (data); - save_ical_object (ee); + save_event_object (ee); } /* File/Close callback */ @@ -1356,7 +1358,7 @@ tb_save_and_close_cb (GtkWidget *widget, gpointer data) EventEditor *ee; ee = EVENT_EDITOR (data); - save_ical_object (ee); + save_event_object (ee); close_dialog (ee); } @@ -1541,7 +1543,7 @@ event_editor_set_ical_object (EventEditor *ee, CalComponent *comp) const char *uid; cal_component_get_uid (priv->comp, &uid); - gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[ICAL_OBJECT_RELEASED], uid); + gtk_signal_emit (GTK_OBJECT (ee), event_editor_signals[RELEASED_EVENT_OBJECT], uid); gtk_object_unref (GTK_OBJECT (priv->comp)); priv->comp = NULL; } |