aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/delete-comp.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2009-05-21 16:42:04 +0800
committerChenthill Palanisamy <pchenthill@novell.com>2009-05-21 16:42:04 +0800
commitceb57eb3a8bc04eca26d859ff766130d06cb0e54 (patch)
tree67a8d7c4913e01fb6180f0ab6df71537597390c2 /calendar/gui/dialogs/delete-comp.c
parent3b946037007857c3d2be0c39db0782f9dbaef461 (diff)
downloadgsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar.gz
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar.bz2
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar.lz
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar.xz
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.tar.zst
gsoc2013-evolution-ceb57eb3a8bc04eca26d859ff766130d06cb0e54.zip
Fixes bug 498712 (bnc) - deleting meetings sometimes does not work properly.
Diffstat (limited to 'calendar/gui/dialogs/delete-comp.c')
-rw-r--r--calendar/gui/dialogs/delete-comp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c
index 3508f38f02..e5ae1e6cdc 100644
--- a/calendar/gui/dialogs/delete-comp.c
+++ b/calendar/gui/dialogs/delete-comp.c
@@ -167,7 +167,7 @@ cb_toggled_cb (GtkWidget *toggle, gpointer data)
}
gboolean
-prompt_retract_dialog (ECalComponent *comp, char **retract_text, GtkWidget *parent)
+prompt_retract_dialog (ECalComponent *comp, char **retract_text, GtkWidget *parent, gboolean *retract)
{
char *message = NULL;
ECalComponentVType type = E_CAL_COMPONENT_NO_TYPE;
@@ -232,13 +232,15 @@ prompt_retract_dialog (ECalComponent *comp, char **retract_text, GtkWidget *pare
GtkTextIter text_iter_start, text_iter_end;
GtkTextBuffer *text_buffer;
+ *retract = TRUE;
text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (entry));
gtk_text_buffer_get_start_iter (text_buffer, &text_iter_start);
gtk_text_buffer_get_end_iter (text_buffer, &text_iter_end);
*retract_text = gtk_text_buffer_get_text (text_buffer, &text_iter_start,
&text_iter_end, FALSE);
- }
+ } else
+ *retract = FALSE;
}
gtk_widget_destroy ((GtkWidget *) dialog);