mirror of
https://github.com/jtheoof/swappy.git
synced 2024-08-16 18:20:45 +03:00
res: move ui file to resources
This commit is contained in:
parent
58b9c55b3c
commit
91976ee295
@ -2,5 +2,6 @@
|
||||
<gresources>
|
||||
<gresource prefix="/swappy">
|
||||
<file>style/popover.css</file>
|
||||
<file>swappy.ui</file>
|
||||
</gresource>
|
||||
</gresources>
|
@ -214,7 +214,8 @@ static bool load_layout(struct swappy_state *state) {
|
||||
|
||||
/* Construct a GtkBuilder instance and load our UI description */
|
||||
builder = gtk_builder_new();
|
||||
if (gtk_builder_add_from_file(builder, "swappy.ui", &error) == 0) {
|
||||
if (gtk_builder_add_from_resource(builder, "/swappy/swappy.ui", &error) ==
|
||||
0) {
|
||||
g_printerr("Error loading file: %s", error->message);
|
||||
g_clear_error(&error);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user