[gtksourceview/wip/chergert/gsv-gtk4: 201/259] completion: fix access to ui files




commit 6e5f1b658a521b1062990a33c62b91a6f134f34f
Author: Christian Hergert <chergert redhat com>
Date:   Sun Aug 30 09:38:35 2020 -0700

    completion: fix access to ui files

 gtksourceview/gtksourcecompletionlist.c       | 2 +-
 gtksourceview/gtksourcecompletionlistboxrow.c | 2 +-
 gtksourceview/gtksourceview.gresource.xml     | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletionlist.c b/gtksourceview/gtksourcecompletionlist.c
index 64f69727..fb853098 100644
--- a/gtksourceview/gtksourcecompletionlist.c
+++ b/gtksourceview/gtksourcecompletionlist.c
@@ -397,7 +397,7 @@ _gtk_source_completion_list_class_init (GtkSourceCompletionListClass *klass)
 
        g_object_class_install_properties (object_class, N_PROPS, properties);
 
-       gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gtksourceview/gtksourcecompletionlist.ui");
+       gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gtksourceview/ui/gtksourcecompletionlist.ui");
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionList, alternate_label);
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionList, comments);
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionList, details);
diff --git a/gtksourceview/gtksourcecompletionlistboxrow.c b/gtksourceview/gtksourcecompletionlistboxrow.c
index 4092b6a6..6de79b6a 100644
--- a/gtksourceview/gtksourcecompletionlistboxrow.c
+++ b/gtksourceview/gtksourcecompletionlistboxrow.c
@@ -62,7 +62,7 @@ gtk_source_completion_list_box_row_class_init (GtkSourceCompletionListBoxRowClas
 
        object_class->finalize = gtk_source_completion_list_box_row_finalize;
 
-       gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gtksourceview/gtksourcecompletionlistboxrow.ui");
+       gtk_widget_class_set_template_from_resource (widget_class, 
"/org/gnome/gtksourceview/ui/gtksourcecompletionlistboxrow.ui");
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionListBoxRow, box);
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionListBoxRow, icon);
        gtk_widget_class_bind_template_child (widget_class, GtkSourceCompletionListBoxRow, before);
diff --git a/gtksourceview/gtksourceview.gresource.xml b/gtksourceview/gtksourceview.gresource.xml
index 208ab91b..182638ad 100644
--- a/gtksourceview/gtksourceview.gresource.xml
+++ b/gtksourceview/gtksourceview.gresource.xml
@@ -1,6 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <gresources>
   <gresource prefix="/org/gnome/gtksourceview/ui">
+    <file preprocess="xml-stripblanks">gtksourcecompletionlist.ui</file>
+    <file preprocess="xml-stripblanks">gtksourcecompletionlistboxrow.ui</file>
     <file preprocess="xml-stripblanks">gtksourcestyleschemechooserwidget.ui</file>
   </gresource>
 </gresources>


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