How do I get GTK to recognize the templates I create?


Tristan 957

The repo is here : https://gitlab.com/tristan957/tllt-cp

The program compiles smoothly. I have some unused variables, but this is fine. When running, I see the following warning and the GUI I'm running is not the same as the template provided.

(tllt-cp:28723): Gtk-CRITICAL **: 22:18:00.249: Unable to load resource for composite template for type 'TlltCpWindow': The resource at “/com/gitlab/tristan957/TlltCp/tllt-cp-window.ui” does not exist

(tllt-cp:28723): Gtk-CRITICAL **: 22:18:00.249: gtk_widget_class_bind_template_child_full: assertion 'widget_class->priv->template != NULL' failed

(tllt-cp:28723): Gtk-CRITICAL **: 22:18:00.249: gtk_widget_class_bind_template_child_full: assertion 'widget_class->priv->template != NULL' failed
Initializing object

(tllt-cp:28723): Gtk-CRITICAL **: 22:18:00.249: gtk_widget_init_template: assertion 'template != NULL' failed

I am not sure what I am missing.

Tristan 957

I need to add the following function

static void
tllt_cp_application_startup(GApplication *self)
{
    g_resources_register(tllt_cp_get_resource());
    g_application_set_resource_base_path(self, "/com/gitlab/tristan957/TlltCp");

    G_APPLICATION_CLASS(tllt_cp_application_parent_class)->startup(self);
}

Related


How do I get GTK to recognize the templates I create?

Tristan 957 The repo is here : https://gitlab.com/tristan957/tllt-cp The program compiles smoothly. I have some unused variables, but this is fine. When running, I see the following warning and the GUI I'm running is not the same as the template provided. (tll

How do I create templates for functions in python?

in unison I have some functions in python that share the same structure: Load data from path Do some processing with pandas save the results in a csv file A few examples: def generate_report_1(eval_path, output_path): df = pd.read_csv(eval_path) misscla

How do I get python to recognize that there is no input

username I want to create a program where if the user presses enter without typing anything, python will recognize the lack of input and relocate it to the appropriate action. E.g: some = int(input("Enter a number")) if not some: print("You didn't enter a

How do I get eclipse to recognize preprocessor statements?

Jay Chou: I've managed to get the IDE to compile the Java project correctly by modifying the config.ini, but the IDE itself still shows errors related to the processor statement: //#ifdef VER_X public class Video extends FirstCanvas { //#else public class Vide

How do I get IIS to recognize the OWIN startup class?

LSpencer777 My OWIN web service works fine in Visual Studio 2013, but when I publish it to a real IIS site it acts like the Configuration method in the startup class is not running. I can do "normal" things like browse to the app and see the directory structur

How do I get eclipse to recognize preprocessor statements?

Jay Chou: I've managed to get the IDE to compile the Java project correctly by modifying the config.ini, but the IDE itself still shows errors related to the processor statement: //#ifdef VER_X public class Video extends FirstCanvas { //#else public class Vide

How do I get Windows 10 to recognize bluetooth devices

srboisvert I want to connect my laptop (Acer spin3) to bluetooth headphones (a cheap pair of Totu headphones). When I turn on bluetooth and go to "Add Device", I get a list of about 30 unknown devices (the apartment I live in! I only have 3 devices that work w

How do I get Typescript to recognize my custom global filter?

Dub 60 I created a custom global Vue.js filter to format Markdown syntax. This works great, but typescript (or my PhpStorm IDE of choice) doesn't recognize the "markdown" filter in the component template. It doesn't throw errors, but I don't get intellisense.

How do I get Xcode to recognize GraphQL files?

Ahmed F When adding a file (containing a graph query) to my project in .grapghalXcode it shows up as: As shown, it is not formatted/colored. Also, if I try to select the query and re-indent ( ^+ I), nothing happens. Is there a way to make Xcode recognize this

How do I get Typescript to recognize my custom global filter?

Dub 60 I created a custom global Vue.js filter to format Markdown syntax. This works great, but typescript (or my PhpStorm IDE of choice) doesn't recognize the "markdown" filter in the component template. It doesn't throw errors, but I don't get intellisense.

How do I get Typescript to recognize my custom global filter?

Dub 60 I created a custom global Vue.js filter to format Markdown syntax. This works great, but typescript (or my PhpStorm IDE of choice) doesn't recognize the "markdown" filter in the component template. It doesn't throw errors, but I don't get intellisense.

How do I get numpy select to recognize my column variables?

Jordan I ran a decision tree and wanted to label each bin by its predictions. I extracted the unique predictions from the prediction object using the following output. test_df3_dummies['dt_predictions'].unique() array([0.00617504, 0.00834542, 0.02429166, 0.010

How do I get Emacs' keybindings to recognize uppercase letters?

Incandescent man How to make Emacs recognize MC (meta-shift-c) instead of translating it to mc? Currently, when C-h k M-CI get:M-c (translated from M-C) runs the command capitalize-word. How can I not convert MC to Mc? Drew Just use the modifier (Shift) Sin th

How do I get `sbt test` to recognize my custom target?

Tim Harper Using sbt 0.13.7, I am setting target := new File("sbt-target") in my build.sbt file. This appropriately sets the compiler to output all class files to ./sbt-target/scala-2.11/{test-,}classes. That is fine, but when I invoke sbt test), the JVM is un

How do I get Windows 10 to recognize bluetooth devices

srboisvert I want to connect my laptop (Acer spin3) to bluetooth headphones (a cheap pair of Totu headphones). When I turn on bluetooth and go to "Add Device", I get a list of about 30 unknown devices (the apartment I live in! I only have 3 devices that work w

How do I get eclipse to recognize preprocessor statements?

Jay Chou: I've managed to get the IDE to compile the Java project correctly by modifying the config.ini, but the IDE itself still shows errors related to the processor statement: //#ifdef VER_X public class Video extends FirstCanvas { //#else public class Vide

How do I get Sphinx to recognize the `:param` element?

Andy I want to generate html document with Sphinx, although it can be generated successfully, but Sphinx doesn't recognize elements like .html :param content:. wrong file correct file Here you can see the specific code file . \make.bat htmlused to generate the

How do I get Xcode to recognize GraphQL files?

Ahmed F When adding a file (containing a graph query) to my project in .grapghalXcode it shows up as: As shown, it is not formatted/colored. Also, if I try to select the query and re-indent ( ^+ I), nothing happens. Is there a way to make Xcode recognize this

How do I get Windows 10 to recognize bluetooth devices

srboisvert I want to connect my laptop (Acer spin3) to bluetooth headphones (a cheap pair of Totu headphones). When I turn on bluetooth and go to "Add Device", I get a list of about 30 unknown devices (the apartment I live in! I only have 3 devices that work w