[gnome-builder] glade: be more lenient in GTK 4 detection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] glade: be more lenient in GTK 4 detection
- Date: Sun, 28 Nov 2021 19:27:11 +0000 (UTC)
commit 8d70c01db7a1a593b8f0f85d0f678372eb71c5af
Author: Christian Hergert <chergert redhat com>
Date: Sun Nov 28 11:26:02 2021 -0800
glade: be more lenient in GTK 4 detection
We just care that 4 is there as the prefix.
src/plugins/glade/gbp-glade-workbench-addin.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/glade/gbp-glade-workbench-addin.c b/src/plugins/glade/gbp-glade-workbench-addin.c
index 35f40b0d5..8ceca78e5 100644
--- a/src/plugins/glade/gbp-glade-workbench-addin.c
+++ b/src/plugins/glade/gbp-glade-workbench-addin.c
@@ -94,8 +94,8 @@ is_gtk4_template (GFile *file)
{
page[MIN (len, 4095)] = 0;
- if (strstr (page, "<requires lib=\"gtk\" version=\"4.0\"/>") != NULL ||
- strstr (page, "<requires lib='gtk' version='4.0'/>") != NULL)
+ if (strstr (page, "<requires lib=\"gtk\" version=\"4") != NULL ||
+ strstr (page, "<requires lib='gtk' version='4") != NULL)
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]