[gnome-builder/wip/greeter] recent-projects: load description with recent info
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/greeter] recent-projects: load description with recent info
- Date: Sun, 10 May 2015 21:43:55 +0000 (UTC)
commit 9bc23da10243ba2b3a859c1c1e699ed361052f18
Author: Christian Hergert <christian hergert me>
Date: Sun May 10 14:42:54 2015 -0700
recent-projects: load description with recent info
libide/ide-recent-projects.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-recent-projects.c b/libide/ide-recent-projects.c
index c285b46..448abb3 100644
--- a/libide/ide-recent-projects.c
+++ b/libide/ide-recent-projects.c
@@ -142,6 +142,7 @@ ide_recent_projects_load_recent (IdeRecentProjects *self,
g_autoptr(GFile) directory = NULL;
g_autoptr(IdeProjectInfo) project_info = NULL;
GtkRecentInfo *recent_info = iter->data;
+ const gchar *description;
const gchar *uri;
const gchar *name;
time_t modified;
@@ -161,6 +162,7 @@ ide_recent_projects_load_recent (IdeRecentProjects *self,
is_project:
name = gtk_recent_info_get_display_name (recent_info);
+ description = gtk_recent_info_get_description (recent_info);
modified = gtk_recent_info_get_modified (recent_info);
last_modified_at = g_date_time_new_from_unix_local (modified);
uri = gtk_recent_info_get_uri (recent_info);
@@ -168,6 +170,7 @@ ide_recent_projects_load_recent (IdeRecentProjects *self,
directory = g_file_get_parent (project_file);
project_info = g_object_new (IDE_TYPE_PROJECT_INFO,
+ "description", description,
"directory", directory,
"file", project_file,
"is-recent", TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]