]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/gnome_helpers.h
gtkmm-2 upgrade. Still some small bugs to iron out, but mostly functional
[lyx.git] / src / frontends / gnome / gnome_helpers.h
index 8f63fd1d63cbe3b209b600581e7c4ddff1497f8d..48b3d2131a41007fd801c808ff4b62b64271873f 100644 (file)
 #endif
 
 #include "debug.h"
-#include <glade/glade-xml.h>
-#include <glib.h>
 
-// Glade Helper Function.
-
-
-/** This function will get a widget from the glade XML representation and
- * will wrap it into the gtk--/gnome-- representation.
- */
-template<class T>
-T* getWidgetPtr(GladeXML* xml, char const * name)
-{
-       T* result = static_cast<T*>(Gtk::wrap_auto((GtkObject*)glade_xml_get_widget(xml, name)));
-       if (result == NULL)
-       {
-               lyxerr << "** ERROR **: unable to load widget: " << name << endl;
-               g_assert(result != NULL);
-       }
-       return result;
-}
-
-class Gdk_Font;
-
-/** Takes a Gdk::Font object reference and returns the name associated
- * with the font it holds.
- */
-string get_font_name(Gdk_Font const & font);
-
-
-/** Takes a GdkFont pointer and returns the name associated with the font
- * it holds. It returns a newly allocated gchar* string.
- *
- * This function was lifted from e-font.c from the gabber package.
- */
-gchar * get_font_name(GdkFont const * font);
+#undef Status
+#undef Value
+#undef DestroyNotify
 
 #endif