From 7379b5686bab12200063ed0a902b256c5177e3fc Mon Sep 17 00:00:00 2001 From: Rob Kendrick Date: Tue, 22 Aug 2006 14:02:07 +0000 Subject: Make failures to load throbber and glade windows definitions fatal svn path=/trunk/netsurf/; revision=2884 --- gtk/gtk_gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index eb756b8fb..4780d0dfe 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -111,11 +111,16 @@ void gui_init(int argc, char** argv) glade_init(); gladeWindows = glade_xml_new(glade_file_location, NULL, NULL); + if (gladeWindows == NULL) + die("Unable to load Glade window definitions.\n"); glade_xml_signal_autoconnect(gladeWindows); nsgtk_completion_init(); - nsgtk_throbber_initialise("./gtk/throbber.gif"); + find_resource(buf, "throbber.gif", "./gtk/throbber.gif"); + nsgtk_throbber_initialise(buf); + if (nsgtk_throbber == NULL) + die("Unable to load throbber image.\n"); find_resource(buf, "Choices", "Choices"); LOG(("Using '%s' as Choices file", buf)); -- cgit v1.2.3