[gnome-text-editor] build: remove use of deprecated API
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] build: remove use of deprecated API
- Date: Wed, 5 May 2021 15:43:23 +0000 (UTC)
commit ba2947137a8509834f89037b3579f60cad8fdcfe
Author: Christian Hergert <chergert redhat com>
Date: Wed May 5 08:42:25 2021 -0700
build: remove use of deprecated API
src/editor-language-row.c | 6 +++---
src/editor-sidebar-item.c | 2 +-
src/meson.build | 1 +
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/editor-language-row.c b/src/editor-language-row.c
index 3d2ba72..4bc3376 100644
--- a/src/editor-language-row.c
+++ b/src/editor-language-row.c
@@ -132,7 +132,7 @@ editor_language_row_class_init (EditorLanguageRowClass *klass)
"The language for the row",
GTK_SOURCE_TYPE_LANGUAGE,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
-
+
g_object_class_install_properties (object_class, N_PROPS, properties);
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/TextEditor/ui/editor-language-row.ui");
@@ -182,6 +182,6 @@ _editor_language_row_match (EditorLanguageRow *self,
if (spec == NULL)
return TRUE;
- return g_pattern_match_string (spec, self->id) ||
- g_pattern_match_string (spec, self->name);
+ return g_pattern_spec_match_string (spec, self->id) ||
+ g_pattern_spec_match_string (spec, self->name);
}
diff --git a/src/editor-sidebar-item.c b/src/editor-sidebar-item.c
index 96329b1..2873198 100644
--- a/src/editor-sidebar-item.c
+++ b/src/editor-sidebar-item.c
@@ -521,7 +521,7 @@ _editor_sidebar_item_matches (EditorSidebarItem *self,
self->search_text = g_strdup_printf ("%s %s", title_fold, subtitle_fold);
}
- return g_pattern_match_string (spec, self->search_text);
+ return g_pattern_spec_match_string (spec, self->search_text);
}
void
diff --git a/src/meson.build b/src/meson.build
index 93a9d2a..dcab019 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -42,6 +42,7 @@ editor_sources = [
editor_deps = [
cc.find_library('m', required: false),
+ dependency('glib-2.0', version: '>= 2.69.0'),
dependency('gtk4', version: '>= 4.0'),
dependency('gtksourceview-5', version: '>= 4.90'),
dependency('libadwaita-1'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]