[gnome-builder] doc: add note about is-recent for the greeter



commit 63653c18e5c1b5685b3cd4307a5ba820f1a4fef0
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 6 16:45:09 2017 -0700

    doc: add note about is-recent for the greeter

 doc/plugins/greeter.rst |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/doc/plugins/greeter.rst b/doc/plugins/greeter.rst
index e178991..6ff539f 100644
--- a/doc/plugins/greeter.rst
+++ b/doc/plugins/greeter.rst
@@ -13,10 +13,10 @@ the top left along with existing projects in the main content area.
 Project Miners
 ==============
 
-To add projects to the "Other Projects" section of the greeter, you must
-implement a project miner. You might want one of these if you would like to
-show projects that are found through an external service such as gitlab or
-from mining the users home directory.
+To add projects to the project list section of the greeter, you must implement
+a project miner. You might want one of these if you would like to show projects
+that are found through an external service such as gitlab or from mining the
+users home directory.
 
 To do this, we must implement an ``Ide.ProjectMiner`` which emits the
 ``Ide.ProjectMiner::discovered()`` signal when a project has been discovered.
@@ -43,6 +43,10 @@ To do this, we must implement an ``Ide.ProjectMiner`` which emits the
            info.set_file(Gio.File.new_for_path('Projects/.secret_project'))
            info.set_languages(['C', 'Python'])
 
+           # If you set the project as recent, it will show up in the upper
+           # section rather than "Other Projects"
+           info.set_is_recent(True)
+
            # See libide/projects/ide-project-info.h for more options you
            # can provide on the Ide.ProjectInfo.
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]