[nautilus] application: ensure bookmark list when it's first requested
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: ensure bookmark list when it's first requested
- Date: Wed, 30 Apr 2014 09:25:42 +0000 (UTC)
commit a66b363c0b1993a7594f6d19f63ddf895a481bcc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Apr 29 18:25:33 2014 +0200
application: ensure bookmark list when it's first requested
Instead of during startup()
src/nautilus-application.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 42c233c..2fb0297 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -100,6 +100,10 @@ struct _NautilusApplicationPriv {
NautilusBookmarkList *
nautilus_application_get_bookmarks (NautilusApplication *application)
{
+ if (!application->priv->bookmark_list) {
+ application->priv->bookmark_list = nautilus_bookmark_list_new ();
+ }
+
return application->priv->bookmark_list;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]