5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 2001 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
20 #ifndef SILCER_GLADEHELPER_HH
21 #define SILCER_GLADEHELPER_HH
23 #include <glade/glade-xml.h>
24 #include <gtk/gtkobject.h>
25 #include <gtk--/base.h>
27 template<class T> T *SilcerGetWidget(GladeXML* obj, const char *name)
30 static_cast<T *>(Gtk::wrap_auto((GtkObject *)
31 glade_xml_get_widget(obj, name)));
33 g_error("Could not find widget `%s'", name);
37 #endif /* SILCER_GLADEHELPER_HH */