diff options
-rw-r--r-- | gtk/gtk_gui.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index 925cd1789..7309ed095 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -102,14 +102,12 @@ void gui_init(int argc, char** argv) gtk_init(&argc, &argv); - /* TODO: make this search for the file using the resource finding - * function above - */ - glade_file_location = strdup("./gtk/netsurf.glade"); + find_resource(buf, "netsurf.glade", "./gtk/netsurf.glade"); + LOG(("Using '%s' as Glade template file", buf)); + glade_file_location = strdup(buf); glade_init(); gladeWindows = glade_xml_new(glade_file_location, NULL, NULL); - glade_xml_signal_autoconnect(gladeWindows); nsgtk_completion_init(); |