From 6060e5b80c402399a80165cc568405c3e22c4e4c Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 8 Sep 2009 15:48:58 +0200 Subject: Bug #594484 - Crashed when tried to open more than one memo --- calendar/gui/dialogs/comp-editor.c | 6 ++---- calendar/gui/dialogs/comp-editor.h | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 8995b0eddc..7f96b4bf8b 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -1887,15 +1887,13 @@ close_dialog (CompEditor *editor) gtk_widget_destroy (GTK_WIDGET (editor)); } -gint +static gint comp_editor_compare (CompEditor *editor_a, - CompEditor *editor_b) + const gchar *uid_b) { const gchar *uid_a = NULL; - const gchar *uid_b = NULL; e_cal_component_get_uid (editor_a->priv->comp, &uid_a); - e_cal_component_get_uid (editor_b->priv->comp, &uid_b); return g_strcmp0 (uid_a, uid_b); } diff --git a/calendar/gui/dialogs/comp-editor.h b/calendar/gui/dialogs/comp-editor.h index 454f02b2e6..0b3ea047e7 100644 --- a/calendar/gui/dialogs/comp-editor.h +++ b/calendar/gui/dialogs/comp-editor.h @@ -89,8 +89,6 @@ typedef enum { } CompEditorFlags; GType comp_editor_get_type (void); -gint comp_editor_compare (CompEditor *editor_a, - CompEditor *editor_b); void comp_editor_set_changed (CompEditor *editor, gboolean changed); gboolean comp_editor_get_changed (CompEditor *editor); -- cgit v1.2.3