[gnome-builder/wip/gtk4-port] libide/greeter: use IdePatternSpec



commit a0014dc63c2f3ac1d7e8b427efb5f75413ed2926
Author: Christian Hergert <chergert redhat com>
Date:   Tue Mar 29 03:39:10 2022 -0700

    libide/greeter: use IdePatternSpec
    
    This was moved from dazzle for uses like this.

 src/libide/greeter/ide-greeter-section.h | 26 +++++++++++++++-----------
 src/libide/greeter/meson.build           |  1 +
 2 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/src/libide/greeter/ide-greeter-section.h b/src/libide/greeter/ide-greeter-section.h
index 8dc0f939a..4b3050084 100644
--- a/src/libide/greeter/ide-greeter-section.h
+++ b/src/libide/greeter/ide-greeter-section.h
@@ -20,15 +20,19 @@
 
 #pragma once
 
-#include <dazzle.h>
+#if !defined (IDE_GREETER_INSIDE) && !defined (IDE_GREETER_COMPILATION)
+# error "Only <libide-greeter.h> can be included directly."
+#endif
+
 #include <libide-core.h>
 #include <libide-projects.h>
+#include <libide-search.h>
 
 G_BEGIN_DECLS
 
 #define IDE_TYPE_GREETER_SECTION (ide_greeter_section_get_type ())
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 G_DECLARE_INTERFACE (IdeGreeterSection, ide_greeter_section, IDE, GREETER_SECTION, GtkWidget)
 
 struct _IdeGreeterSectionInterface
@@ -39,7 +43,7 @@ struct _IdeGreeterSectionInterface
                                   IdeProjectInfo    *project_info);
   gint     (*get_priority)       (IdeGreeterSection *self);
   gboolean (*filter)             (IdeGreeterSection *self,
-                                  DzlPatternSpec    *spec);
+                                  IdePatternSpec    *spec);
   gboolean (*activate_first)     (IdeGreeterSection *self);
   void     (*set_selection_mode) (IdeGreeterSection *self,
                                   gboolean           selection_mode);
@@ -47,22 +51,22 @@ struct _IdeGreeterSectionInterface
   void     (*purge_selected)     (IdeGreeterSection *self);
 };
 
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gint     ide_greeter_section_get_priority           (IdeGreeterSection *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean ide_greeter_section_filter                 (IdeGreeterSection *self,
-                                                     DzlPatternSpec    *spec);
-IDE_AVAILABLE_IN_3_32
+                                                     IdePatternSpec    *spec);
+IDE_AVAILABLE_IN_ALL
 void     ide_greeter_section_emit_project_activated (IdeGreeterSection *self,
                                                      IdeProjectInfo    *project_info);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 gboolean ide_greeter_section_activate_first         (IdeGreeterSection *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void     ide_greeter_section_set_selection_mode     (IdeGreeterSection *self,
                                                      gboolean           selection_mode);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void     ide_greeter_section_delete_selected        (IdeGreeterSection *self);
-IDE_AVAILABLE_IN_3_32
+IDE_AVAILABLE_IN_ALL
 void     ide_greeter_section_purge_selected         (IdeGreeterSection *self);
 
 G_END_DECLS
diff --git a/src/libide/greeter/meson.build b/src/libide/greeter/meson.build
index 4825fd46f..130934457 100644
--- a/src/libide/greeter/meson.build
+++ b/src/libide/greeter/meson.build
@@ -65,6 +65,7 @@ libide_greeter_deps = [
   libide_core_dep,
   libide_gui_dep,
   libide_io_dep,
+  libide_search_dep,
   libide_threading_dep,
   libide_vcs_dep,
 ]


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