anjuta r4603 - in trunk: . plugins/document-manager
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4603 - in trunk: . plugins/document-manager
- Date: Sat, 17 Jan 2009 15:42:59 +0000 (UTC)
Author: jhs
Date: Sat Jan 17 15:42:59 2009
New Revision: 4603
URL: http://svn.gnome.org/viewvc/anjuta?rev=4603&view=rev
Log:
2009-01-17 Johannes Schmid <jhs gnome org>
* plugins/document-manager/anjuta-bookmarks.c
(anjuta_bookmarks_add_file), (anjuta_bookmarks_session_save):
Clear the bookmarks panel when the session is save to avoid adding too many
bookmarks to the old session.
Modified:
trunk/ChangeLog
trunk/plugins/document-manager/anjuta-bookmarks.c
Modified: trunk/plugins/document-manager/anjuta-bookmarks.c
==============================================================================
--- trunk/plugins/document-manager/anjuta-bookmarks.c (original)
+++ trunk/plugins/document-manager/anjuta-bookmarks.c Sat Jan 17 15:42:59 2009
@@ -466,6 +466,7 @@
AnjutaBookmarksPrivate* priv = BOOKMARKS_GET_PRIVATE(bookmarks);
IAnjutaDocument* doc;
GtkTreeIter iter;
+
if ((doc = anjuta_docman_get_document_for_file (ANJUTA_DOCMAN(priv->docman->docman), file)))
{
anjuta_bookmarks_add (bookmarks, IANJUTA_EDITOR(doc), line, NULL, FALSE);
@@ -601,8 +602,10 @@
"Document Manager",
"bookmarks",
(const gchar*) buf->content);
-
xmlBufferFree(buf);
+
+ /* Clear the model */
+ gtk_list_store_clear (GTK_LIST_STORE (priv->model));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]