X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=apps%2Fsilcer%2Fsrc%2Fsilcer_gladehelper.hh;fp=apps%2Fsilcer%2Fsrc%2Fsilcer_gladehelper.hh;h=0000000000000000000000000000000000000000;hb=72c2de619079457f7a68100eb13385275a424a23;hp=4e3e3212925b80c69434ae87c842205b3daed23b;hpb=e7b6c157b80152bf9fb9266e6bdd93f9fb0db776;p=runtime.git diff --git a/apps/silcer/src/silcer_gladehelper.hh b/apps/silcer/src/silcer_gladehelper.hh deleted file mode 100644 index 4e3e3212..00000000 --- a/apps/silcer/src/silcer_gladehelper.hh +++ /dev/null @@ -1,37 +0,0 @@ -/* - - silcer_gladehelper.hh - - Author: Pekka Riikonen - - Copyright (C) 2001 Pekka Riikonen - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; version 2 of the License. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - -*/ - -#ifndef SILCER_GLADEHELPER_HH -#define SILCER_GLADEHELPER_HH - -#include -#include -#include - -template T *SilcerGetWidget(GladeXML* obj, const char *name) -{ - T *widget = - static_cast(Gtk::wrap_auto((GtkObject *) - glade_xml_get_widget(obj, name))); - if (!widget) - g_error("Could not find widget `%s'", name); - return widget; -} - -#endif /* SILCER_GLADEHELPER_HH */