[anjuta] document-manager: use on_close_file_activate() when closing file using combo close button.
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] document-manager: use on_close_file_activate() when closing file using combo close button.
- Date: Sat, 17 Nov 2012 21:55:35 +0000 (UTC)
commit 2f66ed2d4d657de16530eee4c2f74251d8708318
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Fri Nov 16 11:00:04 2012 +0100
document-manager: use on_close_file_activate() when closing file using combo close button.
So that we get the save dialog if the file that is to be closed is dirty.
https://bugzilla.gnome.org/show_bug.cgi?id=688449
plugins/document-manager/anjuta-docman.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/plugins/document-manager/anjuta-docman.c b/plugins/document-manager/anjuta-docman.c
index 48256fc..88c5afa 100644
--- a/plugins/document-manager/anjuta-docman.c
+++ b/plugins/document-manager/anjuta-docman.c
@@ -485,11 +485,8 @@ static void
on_close_button_clicked (GtkButton *close_button, gpointer user_data)
{
AnjutaDocman *docman = user_data;
- IAnjutaDocument *current_document;
- current_document = anjuta_docman_get_current_document (docman);
- if (current_document)
- anjuta_docman_remove_document (docman, current_document);
+ on_close_file_activate (NULL, docman->priv->plugin);
}
static GdkPixbuf*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]