]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/gnome_helpers.h
Clean-up of the button controller.
[lyx.git] / src / frontends / gnome / gnome_helpers.h
index e6a89dca08732b19cf4187f896e4544420454660..8c7094e0fe52cb25929634090171416502d7d1be 100644 (file)
 #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)
 {   
@@ -31,6 +36,19 @@ T* getWidgetPtr(GladeXML* xml, char const * name)
        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);
+
 #endif