gedit r6378 - trunk/plugins/filebrowser
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6378 - trunk/plugins/filebrowser
- Date: Sun, 10 Aug 2008 14:48:41 +0000 (UTC)
Author: pborelli
Date: Sun Aug 10 14:48:40 2008
New Revision: 6378
URL: http://svn.gnome.org/viewvc/gedit?rev=6378&view=rev
Log:
yet one more
Modified:
trunk/plugins/filebrowser/gedit-file-bookmarks-store.c
Modified: trunk/plugins/filebrowser/gedit-file-bookmarks-store.c
==============================================================================
--- trunk/plugins/filebrowser/gedit-file-bookmarks-store.c (original)
+++ trunk/plugins/filebrowser/gedit-file-bookmarks-store.c Sun Aug 10 14:48:40 2008
@@ -378,7 +378,6 @@
gchar **lines;
gchar **line;
gboolean added = FALSE;
- GFile * file;
/* Read the bookmarks file */
bookmarks = g_build_filename (g_get_home_dir (),
@@ -416,8 +415,12 @@
/* Add a watch */
if (model->priv->bookmarks_monitor == NULL) {
+ GFile * file;
+
file = g_file_new_for_path (bookmarks);
model->priv->bookmarks_monitor = g_file_monitor_file (file, G_FILE_MONITOR_NONE, NULL, NULL);
+ g_object_unref (file);
+
g_signal_connect (model->priv->bookmarks_monitor,
"changed",
(GCallback)on_bookmarks_file_changed,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]