2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995-2000 The LyX Team.
8 * ================================================= */
10 #ifndef GNOME_HELPERS_H
11 #define GNOME_HELPERS_H
18 #include <glade/glade-xml.h>
21 // Glade Helper Function.
23 T* getWidgetPtr(GladeXML* xml, const char* name)
25 T* result = static_cast<T*>(Gtk::wrap_auto((GtkObject*)glade_xml_get_widget(xml, name)));
28 lyxerr << "** ERROR **: unable to load widget: " << name << endl;
29 g_assert(result != NULL);