Composite window with GTK+3.
- From: Igor Korot <ikorot01 gmail com>
- To: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Composite window with GTK+3.
- Date: Sun, 23 Aug 2015 22:49:15 -0400
Hi, ALL,
On the page https://developer.gnome.org/gtk3/stable/GtkWidget.html, part
"Building composite widgets from template XML", the code says:
[code]
gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass),
"/com/example/ui/foowidget.ui");
[/code]
This code assumes that the template is located at "/com/example/ui" and the file
is named "foowidget.ui".
Now, what if I want to place it in the directory where the source code is and
I'd like to use "mytemplate.ui".
Trying to run the code I am getting a run-time error "Template not found".
Is there something I need to do to give a relative path?
Thank you.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]