[gnome-builder] recent-projects: drop use of project miners
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] recent-projects: drop use of project miners
- Date: Thu, 9 Nov 2017 07:48:52 +0000 (UTC)
commit a277313edf35b676fd1e7db8326bdbc3b34fdca9
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 8 22:17:13 2017 -0800
recent-projects: drop use of project miners
This removes the miners and the "Other Projects" section from
the greeter. We won't be using this stuff going forward, so
this gets us into a state to start adding the new design.
src/libide/application/ide-application.c | 22 +-
src/libide/greeter/ide-greeter-perspective.c | 59 +--
src/libide/greeter/ide-greeter-perspective.ui | 104 -----
src/libide/ide.h | 1 -
src/libide/projects/ide-recent-projects.c | 193 +--------
src/libide/projects/ide-recent-projects.h | 26 +-
src/libide/projects/meson.build | 2 -
src/plugins/autotools/autotools-plugin.c | 2 -
.../autotools/ide-autotools-project-miner.c | 489 --------------------
.../autotools/ide-autotools-project-miner.h | 33 --
src/plugins/autotools/meson.build | 2 -
11 files changed, 29 insertions(+), 904 deletions(-)
---
diff --git a/src/libide/application/ide-application.c b/src/libide/application/ide-application.c
index fe23260..20b07ea 100644
--- a/src/libide/application/ide-application.c
+++ b/src/libide/application/ide-application.c
@@ -700,12 +700,7 @@ ide_application_get_worker_finish (IdeApplication *self,
* @self: An #IdeApplication.
*
* This method will retreive an #IdeRecentProjects for the application that
- * represents recent and discover projects on the system. The first time
- * the #IdeRecentProjects is loaded, discovery of projects will occur. There
- * is no need to call ide_recent_projects_discover_async().
- *
- * If you would like to display a spinner while discovery is in process, simply
- * connect to the #IdeRecentProjects:busy: property notification.
+ * represents recent and discover projects on the system.
*
* Returns: (transfer none): An #IdeRecentProjects.
*/
@@ -714,19 +709,10 @@ ide_application_get_recent_projects (IdeApplication *self)
{
g_return_val_if_fail (IDE_IS_APPLICATION (self), NULL);
- if (self->mode != IDE_APPLICATION_MODE_PRIMARY)
- return NULL;
-
- if (self->recent_projects == NULL)
+ if (self->mode == IDE_APPLICATION_MODE_PRIMARY)
{
- g_autoptr(GSettings) settings = NULL;
- gboolean recent_only;
-
- settings = g_settings_new ("org.gnome.builder");
- recent_only = !g_settings_get_boolean (settings, "enable-project-miners");
-
- self->recent_projects = ide_recent_projects_new ();
- ide_recent_projects_discover_async (self->recent_projects, recent_only, NULL, NULL, NULL);
+ if (self->recent_projects == NULL)
+ self->recent_projects = ide_recent_projects_new ();
}
return self->recent_projects;
diff --git a/src/libide/greeter/ide-greeter-perspective.c b/src/libide/greeter/ide-greeter-perspective.c
index f161e61..32cc8e3 100644
--- a/src/libide/greeter/ide-greeter-perspective.c
+++ b/src/libide/greeter/ide-greeter-perspective.c
@@ -60,14 +60,11 @@ struct _IdeGreeterPerspective
GtkListBox *my_projects_list_box;
GtkButton *open_button;
GtkButton *cancel_button;
- GtkBox *other_projects_container;
- GtkListBox *other_projects_list_box;
GtkButton *remove_button;
GtkSearchEntry *search_entry;
DzlStateMachine *state_machine;
GtkScrolledWindow *scrolled_window;
DzlPriorityBox *genesis_buttons;
- DzlEmptyState *no_projects_found;
gint selected_count;
};
@@ -135,10 +132,6 @@ ide_greeter_perspective__search_entry_activate (IdeGreeterPerspective *self,
gtk_container_foreach (GTK_CONTAINER (self->my_projects_list_box),
ide_greeter_perspective_first_visible_cb,
&row);
- if (row == NULL)
- gtk_container_foreach (GTK_CONTAINER (self->other_projects_list_box),
- ide_greeter_perspective_first_visible_cb,
- &row);
if (row != NULL)
g_signal_emit_by_name (row, "activate");
@@ -192,21 +185,8 @@ ide_greeter_perspective_apply_filter_all (IdeGreeterPerspective *self)
self->pattern_spec = dzl_pattern_spec_new (text);
ide_greeter_perspective_apply_filter (self,
- self->my_projects_list_box,
- GTK_WIDGET (self->my_projects_container));
- ide_greeter_perspective_apply_filter (self,
- self->other_projects_list_box,
- GTK_WIDGET (self->other_projects_container));
-
- if (gtk_widget_get_visible (GTK_WIDGET (self->my_projects_container)) == FALSE &&
- gtk_widget_get_visible (GTK_WIDGET (self->other_projects_container)) == FALSE)
- {
- gtk_widget_set_visible (GTK_WIDGET (self->no_projects_found), TRUE);
- }
- else
- {
- gtk_widget_set_visible (GTK_WIDGET (self->no_projects_found), FALSE);
- }
+ self->my_projects_list_box,
+ GTK_WIDGET (self->my_projects_container));
}
static void
@@ -334,7 +314,6 @@ recent_projects_items_changed (IdeGreeterPerspective *self,
for (i = 0; i < added; i++)
{
IdeProjectInfo *project_info;
- GtkListBox *list_box;
project_info = g_list_model_get_item (list_model, position + i);
@@ -355,19 +334,15 @@ recent_projects_items_changed (IdeGreeterPerspective *self,
if (ide_project_info_get_is_recent (project_info))
{
- list_box = self->my_projects_list_box;
+ GtkListBox *list_box = self->my_projects_list_box;
+
g_object_bind_property_full (self->state_machine, "state",
row, "selection-mode",
G_BINDING_SYNC_CREATE,
selection_to_true, NULL,
NULL, NULL);
+ gtk_container_add (GTK_CONTAINER (list_box), GTK_WIDGET (row));
}
- else
- {
- list_box = self->other_projects_list_box;
- }
-
- gtk_container_add (GTK_CONTAINER (list_box), GTK_WIDGET (row));
}
ide_greeter_perspective_apply_filter_all (self);
@@ -542,6 +517,8 @@ ide_greeter_perspective__keynav_failed (IdeGreeterPerspective *self,
g_assert (IDE_IS_GREETER_PERSPECTIVE (self));
g_assert (GTK_IS_LIST_BOX (list_box));
+#if 0
+ /* TODO: Navigate to icon grid */
if ((list_box == self->my_projects_list_box) && (dir == GTK_DIR_DOWN))
{
gtk_widget_child_focus (GTK_WIDGET (self->other_projects_list_box), GTK_DIR_DOWN);
@@ -552,6 +529,7 @@ ide_greeter_perspective__keynav_failed (IdeGreeterPerspective *self,
gtk_widget_child_focus (GTK_WIDGET (self->my_projects_list_box), GTK_DIR_UP);
return GDK_EVENT_STOP;
}
+#endif
return GDK_EVENT_PROPAGATE;
}
@@ -1201,8 +1179,6 @@ ide_greeter_perspective_class_init (IdeGreeterPerspectiveClass *klass)
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, my_projects_list_box);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, open_button);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, cancel_button);
- gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, other_projects_container);
- gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, other_projects_list_box);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, remove_button);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, scrolled_window);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, search_entry);
@@ -1211,7 +1187,6 @@ ide_greeter_perspective_class_init (IdeGreeterPerspectiveClass *klass)
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, titlebar);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, top_stack);
gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, viewport);
- gtk_widget_class_bind_template_child (widget_class, IdeGreeterPerspective, no_projects_found);
}
static const GActionEntry actions[] = {
@@ -1262,18 +1237,6 @@ ide_greeter_perspective_init (IdeGreeterPerspective *self)
self,
G_CONNECT_SWAPPED);
- g_signal_connect_object (self->other_projects_list_box,
- "row-activated",
- G_CALLBACK (ide_greeter_perspective__row_activated),
- self,
- G_CONNECT_SWAPPED);
-
- g_signal_connect_object (self->other_projects_list_box,
- "keynav-failed",
- G_CALLBACK (ide_greeter_perspective__keynav_failed),
- self,
- G_CONNECT_SWAPPED);
-
g_signal_connect_object (self->top_stack,
"notify::visible-child",
G_CALLBACK (ide_greeter_perspective_genesis_changed),
@@ -1313,16 +1276,10 @@ ide_greeter_perspective_init (IdeGreeterPerspective *self)
gtk_list_box_set_sort_func (self->my_projects_list_box,
ide_greeter_perspective_sort_rows,
NULL, NULL);
- gtk_list_box_set_sort_func (self->other_projects_list_box,
- ide_greeter_perspective_sort_rows,
- NULL, NULL);
gtk_list_box_set_filter_func (self->my_projects_list_box,
ide_greeter_perspective_filter_row,
self, NULL);
- gtk_list_box_set_filter_func (self->other_projects_list_box,
- ide_greeter_perspective_filter_row,
- self, NULL);
group = g_simple_action_group_new ();
state = dzl_state_machine_create_action (self->state_machine, "state");
diff --git a/src/libide/greeter/ide-greeter-perspective.ui b/src/libide/greeter/ide-greeter-perspective.ui
index fe144ff..15653dc 100644
--- a/src/libide/greeter/ide-greeter-perspective.ui
+++ b/src/libide/greeter/ide-greeter-perspective.ui
@@ -137,65 +137,6 @@
</child>
</object>
</child>
- <child>
- <object class="GtkBox" id="other_projects_container">
- <property name="orientation">vertical</property>
- <property name="spacing">6</property>
- <property name="visible">true</property>
- <child>
- <object class="GtkBox">
- <property name="visible">true</property>
- <child>
- <object class="GtkLabel" id="other_projects_label">
- <property name="label" translatable="yes">Other
Projects</property>
- <property name="visible">true</property>
- <property name="xalign">0.0</property>
- <property name="hexpand">true</property>
- <style>
- <class name="dim-label"/>
- </style>
- <attributes>
- <attribute name="weight" value="bold"/>
- </attributes>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="visible">true</property>
- <property name="label" translatable="yes">Updated</property>
- <property name="margin-end">10</property>
- <property name="halign">end</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkFrame">
- <property name="halign">center</property>
- <property name="visible">true</property>
- <property name="width-request">600</property>
- <child>
- <object class="GtkListBox" id="other_projects_list_box">
- <property name="visible">true</property>
- <property name="selection-mode">none</property>
- </object>
- </child>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="DzlEmptyState" id="no_projects_found">
- <property name="icon-name">org.gnome.Builder-symbolic</property>
- <property name="title" translatable="yes">No projects
found</property>
- <property name="visible">false</property>
- <property name="vexpand">true</property>
- <property name="valign">center</property>
- </object>
- </child>
</object>
</child>
</object>
@@ -228,45 +169,6 @@
<property name="name">projects</property>
</packing>
</child>
- <child>
- <object class="GtkFrame">
- <property name="visible">true</property>
- <child>
- <object class="GtkListBox">
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="visible">true</property>
- <child>
- <object class="GtkListBoxRow">
- <property name="visible">true</property>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes">Create from existing
project</property>
- <property name="visible">true</property>
- <property name="xalign">0.0</property>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkListBoxRow">
- <property name="visible">true</property>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes">Create a new project</property>
- <property name="visible">true</property>
- <property name="xalign">0.0</property>
- </object>
- </child>
- </object>
- </child>
- </object>
- </child>
- </object>
- <packing>
- <property name="name">assistants</property>
- </packing>
- </child>
</object>
</child>
</object>
@@ -418,9 +320,6 @@
<object id="action_bar">
<property name="visible">false</property>
</object>
- <object id="other_projects_container">
- <property name="visible">true</property>
- </object>
<object id="search_entry">
<property name="visible">true</property>
</object>
@@ -456,9 +355,6 @@
<object id="genesis_buttons">
<property name="visible">false</property>
</object>
- <object id="other_projects_container">
- <property name="visible">false</property>
- </object>
<object id="search_entry">
<property name="visible">false</property>
</object>
diff --git a/src/libide/ide.h b/src/libide/ide.h
index c5ded99..bb3692a 100644
--- a/src/libide/ide.h
+++ b/src/libide/ide.h
@@ -128,7 +128,6 @@ G_BEGIN_DECLS
#include "projects/ide-project-file.h"
#include "projects/ide-project-files.h"
#include "projects/ide-project-item.h"
-#include "projects/ide-project-miner.h"
#include "projects/ide-project.h"
#include "projects/ide-recent-projects.h"
#include "rename/ide-rename-provider.h"
diff --git a/src/libide/projects/ide-recent-projects.c b/src/libide/projects/ide-recent-projects.c
index dbb44ec..e14617d 100644
--- a/src/libide/projects/ide-recent-projects.c
+++ b/src/libide/projects/ide-recent-projects.c
@@ -18,24 +18,19 @@
#include <glib/gi18n.h>
#include <gtk/gtk.h>
-#include <libpeas/peas.h>
#include "ide-global.h"
-#include "projects/ide-project-miner.h"
+
#include "projects/ide-recent-projects.h"
struct _IdeRecentProjects
{
GObject parent_instance;
- GCancellable *cancellable;
- GPtrArray *miners;
GSequence *projects;
GHashTable *recent_uris;
gchar *file_uri;
- gint active;
-
guint discovered : 1;
};
@@ -44,8 +39,7 @@ struct _IdeRecentProjects
static void list_model_iface_init (GListModelInterface *iface);
G_DEFINE_TYPE_WITH_CODE (IdeRecentProjects, ide_recent_projects, G_TYPE_OBJECT,
- G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL,
- list_model_iface_init))
+ G_IMPLEMENT_INTERFACE (G_TYPE_LIST_MODEL, list_model_iface_init))
IdeRecentProjects *
ide_recent_projects_new (void)
@@ -83,54 +77,6 @@ ide_recent_projects_added (IdeRecentProjects *self,
}
}
-static void
-ide_recent_projects__miner_discovered (IdeRecentProjects *self,
- IdeProjectInfo *project_info,
- IdeProjectMiner *miner)
-{
- g_assert (IDE_IS_PROJECT_MINER (miner));
- g_assert (IDE_IS_RECENT_PROJECTS (self));
- g_assert (IDE_IS_PROJECT_INFO (project_info));
-
- ide_recent_projects_added (self, project_info);
-}
-
-static void
-ide_recent_projects__miner_mine_cb (GObject *object,
- GAsyncResult *result,
- gpointer user_data)
-{
- IdeRecentProjects *self;
- g_autoptr(GTask) task = user_data;
- IdeProjectMiner *miner = (IdeProjectMiner *)object;
-
- g_assert (G_IS_TASK (task));
- g_assert (IDE_IS_PROJECT_MINER (miner));
- self = g_task_get_source_object (task);
- g_assert (IDE_IS_RECENT_PROJECTS (self));
-
- ide_project_miner_mine_finish (miner, result, NULL);
-
- if (--self->active == 0)
- g_task_return_boolean (task, TRUE);
-}
-
-static void
-ide_recent_projects_add_miner (IdeRecentProjects *self,
- IdeProjectMiner *miner)
-{
- g_assert (IDE_IS_RECENT_PROJECTS (self));
- g_assert (IDE_IS_PROJECT_MINER (miner));
-
- g_signal_connect_object (miner,
- "discovered",
- G_CALLBACK (ide_recent_projects__miner_discovered),
- self,
- G_CONNECT_SWAPPED);
-
- g_ptr_array_add (self->miners, g_object_ref (miner));
-}
-
static GBookmarkFile *
ide_recent_projects_get_bookmarks (IdeRecentProjects *self,
GError **error)
@@ -258,11 +204,9 @@ ide_recent_projects_get_item_type (GListModel *model)
static guint
ide_recent_projects_get_n_items (GListModel *model)
{
- IdeRecentProjects *self = (IdeRecentProjects *)model;
+ g_assert (IDE_IS_RECENT_PROJECTS (model));
- g_assert (IDE_IS_RECENT_PROJECTS (self));
-
- return g_sequence_get_length (self->projects);
+ return g_sequence_get_length (IDE_RECENT_PROJECTS (model)->projects);
}
static gpointer
@@ -281,19 +225,13 @@ ide_recent_projects_get_item (GListModel *model,
}
static void
-foreach_miner_func (PeasExtensionSet *set,
- PeasPluginInfo *plugin_info,
- PeasExtension *exten,
- gpointer user_data)
+ide_recent_projects_constructed (GObject *object)
{
- IdeRecentProjects *self = user_data;
+ IdeRecentProjects *self = IDE_RECENT_PROJECTS (object);
- g_assert (PEAS_IS_EXTENSION_SET (set));
- g_assert (plugin_info != NULL);
- g_assert (IDE_IS_PROJECT_MINER (exten));
- g_assert (IDE_IS_RECENT_PROJECTS (self));
+ G_OBJECT_CLASS (ide_recent_projects_parent_class)->constructed (object);
- ide_recent_projects_add_miner (self, IDE_PROJECT_MINER (exten));
+ ide_recent_projects_load_recent (self);
}
static void
@@ -301,10 +239,8 @@ ide_recent_projects_finalize (GObject *object)
{
IdeRecentProjects *self = (IdeRecentProjects *)object;
- g_clear_pointer (&self->miners, g_ptr_array_unref);
g_clear_pointer (&self->projects, g_sequence_free);
g_clear_pointer (&self->recent_uris, g_hash_table_unref);
- g_clear_object (&self->cancellable);
g_clear_pointer (&self->file_uri, g_free);
G_OBJECT_CLASS (ide_recent_projects_parent_class)->finalize (object);
@@ -323,134 +259,25 @@ ide_recent_projects_class_init (IdeRecentProjectsClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
+ object_class->constructed = ide_recent_projects_constructed;
object_class->finalize = ide_recent_projects_finalize;
}
static void
ide_recent_projects_init (IdeRecentProjects *self)
{
- PeasExtensionSet *set;
- PeasEngine *engine;
-
self->projects = g_sequence_new (g_object_unref);
- self->miners = g_ptr_array_new_with_free_func (g_object_unref);
- self->cancellable = g_cancellable_new ();
self->recent_uris = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
self->file_uri = g_build_filename (g_get_user_data_dir (),
ide_get_program_name (),
IDE_RECENT_PROJECTS_BOOKMARK_FILENAME,
NULL);
-
- engine = peas_engine_get_default ();
- set = peas_extension_set_new (engine, IDE_TYPE_PROJECT_MINER, NULL);
- peas_extension_set_foreach (set, foreach_miner_func, self);
- g_clear_object (&set);
-}
-
-/**
- * ide_recent_projects_get_projects:
- *
- * Gets a #GPtrArray containing the #IdeProjectInfo that have been discovered.
- *
- * Returns: (transfer container) (element-type IdeProjectInfo*): a #GPtrArray of #IdeProjectInfo.
- */
-GPtrArray *
-ide_recent_projects_get_projects (IdeRecentProjects *self)
-{
- GSequenceIter *iter;
- GPtrArray *ret;
-
- g_return_val_if_fail (IDE_IS_RECENT_PROJECTS (self), NULL);
-
- ret = g_ptr_array_new_with_free_func (g_object_unref);
-
- for (iter = g_sequence_get_begin_iter (self->projects);
- !g_sequence_iter_is_end (iter);
- g_sequence_iter_next (iter))
- {
- IdeProjectInfo *project_info;
-
- project_info = g_sequence_get (iter);
- g_ptr_array_add (ret, g_object_ref (project_info));
- }
-
- return ret;
-}
-
-void
-ide_recent_projects_discover_async (IdeRecentProjects *self,
- gboolean recent_only,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data)
-{
- g_autoptr(GTask) task = NULL;
- gsize i;
-
- g_return_if_fail (IDE_IS_RECENT_PROJECTS (self));
- g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
-
- task = g_task_new (self, cancellable, callback, user_data);
- g_task_set_source_tag (task, ide_recent_projects_discover_async);
- g_task_set_priority (task, G_PRIORITY_LOW);
-
- if (self->discovered)
- {
- g_task_return_new_error (task,
- G_IO_ERROR,
- G_IO_ERROR_FAILED,
- _("%s() may only be executed once"),
- G_STRFUNC);
- return;
- }
-
- self->discovered = TRUE;
-
- ide_recent_projects_load_recent (self);
-
- if (recent_only || g_getenv ("IDE_DO_NOT_SCAN_PROJECTS") != NULL)
- {
- g_task_return_boolean (task, TRUE);
- return;
- }
-
- self->active = self->miners->len;
-
- if (self->active == 0)
- {
- g_task_return_boolean (task, TRUE);
- return;
- }
-
- for (i = 0; i < self->miners->len; i++)
- {
- IdeProjectMiner *miner;
-
- miner = g_ptr_array_index (self->miners, i);
- ide_project_miner_mine_async (miner,
- self->cancellable,
- ide_recent_projects__miner_mine_cb,
- g_object_ref (task));
- }
-}
-
-gboolean
-ide_recent_projects_discover_finish (IdeRecentProjects *self,
- GAsyncResult *result,
- GError **error)
-{
- GTask *task = (GTask *)result;
-
- g_return_val_if_fail (IDE_IS_RECENT_PROJECTS (self), FALSE);
- g_return_val_if_fail (G_IS_TASK (task), FALSE);
-
- return g_task_propagate_boolean (task, error);
}
/**
* ide_recent_projects_remove:
* @self: An #IdeRecentProjects
- * @project_infos: (transfer none) (element-type IdeProjectInfo): a #GList of #IdeProjectInfo.
+ * @project_infos: (transfer none) (element-type Ide.ProjectInfo): a #GList of #IdeProjectInfo.
*
* Removes the provided projects from the recent projects file.
*/
diff --git a/src/libide/projects/ide-recent-projects.h b/src/libide/projects/ide-recent-projects.h
index 23db21f..f18c83f 100644
--- a/src/libide/projects/ide-recent-projects.h
+++ b/src/libide/projects/ide-recent-projects.h
@@ -26,31 +26,19 @@ G_BEGIN_DECLS
#define IDE_TYPE_RECENT_PROJECTS (ide_recent_projects_get_type())
-#define IDE_RECENT_PROJECTS_GROUP "X-GNOME-Builder-Project"
-#define IDE_RECENT_PROJECTS_LANGUAGE_GROUP_PREFIX "X-GNOME-Builder-Language:"
+#define IDE_RECENT_PROJECTS_GROUP "X-GNOME-Builder-Project"
+#define IDE_RECENT_PROJECTS_LANGUAGE_GROUP_PREFIX "X-GNOME-Builder-Language:"
#define IDE_RECENT_PROJECTS_BUILD_SYSTEM_GROUP_PREFIX "X-GNOME-Builder-Build-System:"
-#define IDE_RECENT_PROJECTS_BOOKMARK_FILENAME "recent-projects.xbel"
+#define IDE_RECENT_PROJECTS_BOOKMARK_FILENAME "recent-projects.xbel"
G_DECLARE_FINAL_TYPE (IdeRecentProjects, ide_recent_projects, IDE, RECENT_PROJECTS, GObject)
IDE_AVAILABLE_IN_ALL
-IdeRecentProjects *ide_recent_projects_new (void);
+IdeRecentProjects *ide_recent_projects_new (void);
IDE_AVAILABLE_IN_ALL
-GPtrArray *ide_recent_projects_get_projects (IdeRecentProjects *self);
+GPtrArray *ide_recent_projects_get_projects (IdeRecentProjects *self);
IDE_AVAILABLE_IN_ALL
-gboolean ide_recent_projects_get_busy (IdeRecentProjects *self);
-IDE_AVAILABLE_IN_ALL
-void ide_recent_projects_remove (IdeRecentProjects *self,
- GList *project_infos);
-IDE_AVAILABLE_IN_ALL
-void ide_recent_projects_discover_async (IdeRecentProjects *self,
- gboolean recent_only,
- GCancellable *cancellable,
- GAsyncReadyCallback callback,
- gpointer user_data);
-IDE_AVAILABLE_IN_ALL
-gboolean ide_recent_projects_discover_finish (IdeRecentProjects *self,
- GAsyncResult *result,
- GError **error);
+void ide_recent_projects_remove (IdeRecentProjects *self,
+ GList *project_infos);
G_END_DECLS
diff --git a/src/libide/projects/meson.build b/src/libide/projects/meson.build
index 71761f6..d5fc351 100644
--- a/src/libide/projects/meson.build
+++ b/src/libide/projects/meson.build
@@ -4,7 +4,6 @@ projects_headers = [
'ide-project-files.h',
'ide-project-info.h',
'ide-project-item.h',
- 'ide-project-miner.h',
'ide-project.h',
'ide-recent-projects.h',
]
@@ -15,7 +14,6 @@ projects_sources = [
'ide-project-files.c',
'ide-project-info.c',
'ide-project-item.c',
- 'ide-project-miner.c',
'ide-project.c',
'ide-recent-projects.c',
]
diff --git a/src/plugins/autotools/autotools-plugin.c b/src/plugins/autotools/autotools-plugin.c
index bd35755..9a0b677 100644
--- a/src/plugins/autotools/autotools-plugin.c
+++ b/src/plugins/autotools/autotools-plugin.c
@@ -22,7 +22,6 @@
#include "ide-autotools-application-addin.h"
#include "ide-autotools-build-system.h"
#include "ide-autotools-pipeline-addin.h"
-#include "ide-autotools-project-miner.h"
void
ide_autotools_register_types (PeasObjectModule *module)
@@ -30,5 +29,4 @@ ide_autotools_register_types (PeasObjectModule *module)
peas_object_module_register_extension_type (module, IDE_TYPE_APPLICATION_ADDIN,
IDE_TYPE_AUTOTOOLS_APPLICATION_ADDIN);
peas_object_module_register_extension_type (module, IDE_TYPE_BUILD_PIPELINE_ADDIN,
IDE_TYPE_AUTOTOOLS_PIPELINE_ADDIN);
peas_object_module_register_extension_type (module, IDE_TYPE_BUILD_SYSTEM,
IDE_TYPE_AUTOTOOLS_BUILD_SYSTEM);
- peas_object_module_register_extension_type (module, IDE_TYPE_PROJECT_MINER,
IDE_TYPE_AUTOTOOLS_PROJECT_MINER);
}
diff --git a/src/plugins/autotools/meson.build b/src/plugins/autotools/meson.build
index c9b1c27..9653fab 100644
--- a/src/plugins/autotools/meson.build
+++ b/src/plugins/autotools/meson.build
@@ -22,8 +22,6 @@ autotools_sources = [
'ide-autotools-makecache-stage.h',
'ide-autotools-pipeline-addin.c',
'ide-autotools-pipeline-addin.h',
- 'ide-autotools-project-miner.c',
- 'ide-autotools-project-miner.h',
'ide-makecache.c',
'ide-makecache.h',
'ide-makecache-target.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]