diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2006-08-22 14:02:07 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2006-08-22 14:02:07 +0000 |
commit | 7379b5686bab12200063ed0a902b256c5177e3fc (patch) | |
tree | 0ce04671966be21f60d58e733466affcba597a03 /gtk | |
parent | 63631b4ec95e4a2d194bd024fadfb68bed9b256b (diff) | |
download | netsurf-7379b5686bab12200063ed0a902b256c5177e3fc.tar.gz netsurf-7379b5686bab12200063ed0a902b256c5177e3fc.tar.bz2 |
Make failures to load throbber and glade windows definitions fatal
svn path=/trunk/netsurf/; revision=2884
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_gui.c | 7 |
1 files changed, 6 insertions, 1 deletions
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)); |