[gedit] Changed ordering of FileBrowser's signals
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Changed ordering of FileBrowser's signals
- Date: Fri, 7 Aug 2009 10:18:36 +0000 (UTC)
commit 14dc28113cd7eecb9deeeea25ce67abf675f8432
Author: Robert Toscano <robert l toscano gmail com>
Date: Fri Aug 7 02:10:43 2009 +0200
Changed ordering of FileBrowser's signals
This patch ensures that root_changed signals come *before* inserted signals.
plugins/filebrowser/gedit-file-browser-store.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c
index 55d1149..b540b17 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -2539,12 +2539,15 @@ set_virtual_root_from_node (GeditFileBrowserStore * model,
/* Now finally, set the virtual root, and load it up! */
model->priv->virtual_root = node;
+
+ /* Notify that the virtual-root has changed before loading up new nodes so that the
+ "root_changed" signal can be emitted before any "inserted" signals */
+ g_object_notify (G_OBJECT (model), "virtual-root");
+
model_fill (model, NULL, &empty);
if (!NODE_LOADED (node))
model_load_directory (model, node);
-
- g_object_notify (G_OBJECT (model), "virtual-root");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]