[gtk/matthiasc/for-master: 10/10] gtk-demo: Keep undisplayable resources out of view
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 10/10] gtk-demo: Keep undisplayable resources out of view
- Date: Fri, 9 Oct 2020 11:53:15 +0000 (UTC)
commit 8fcd4ac0f9ffb3513c4a55e9c018a43755bc7f4e
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 9 07:51:57 2020 -0400
gtk-demo: Keep undisplayable resources out of view
No point in showing an apologetic tab for a blob of binary data.
gtk4-demo shows the resources under /DEMONAME/ for each demo,
so move the data to /DEMONAME_data/.
demos/gtk-demo/demo.gresource.xml | 2 +-
demos/gtk-demo/listview_ucd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/demos/gtk-demo/demo.gresource.xml b/demos/gtk-demo/demo.gresource.xml
index e3f0a034c3..bcb2ebc3b5 100644
--- a/demos/gtk-demo/demo.gresource.xml
+++ b/demos/gtk-demo/demo.gresource.xml
@@ -184,7 +184,7 @@
<gresource prefix="/listview_settings">
<file>listview_settings.ui</file>
</gresource>
- <gresource prefix="/listview_ucd">
+ <gresource prefix="/listview_ucd_data/">
<file>ucdnames.data</file>
</gresource>
<gresource prefix="/listview_weather">
diff --git a/demos/gtk-demo/listview_ucd.c b/demos/gtk-demo/listview_ucd.c
index d6711a1aec..9fe85fcbd1 100644
--- a/demos/gtk-demo/listview_ucd.c
+++ b/demos/gtk-demo/listview_ucd.c
@@ -74,7 +74,7 @@ ucd_model_new (void)
guint u;
char *name;
- bytes = g_resources_lookup_data ("/listview_ucd/ucdnames.data", 0, NULL);
+ bytes = g_resources_lookup_data ("/listview_ucd_data/ucdnames.data", 0, NULL);
v = g_variant_ref_sink (g_variant_new_from_bytes (G_VARIANT_TYPE ("a(us)"), bytes, TRUE));
iter = g_variant_iter_new (v);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]