X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fgnome%2Fgnome_helpers.h;h=8f63fd1d63cbe3b209b600581e7c4ddff1497f8d;hb=3e39bef2c13125023f3b72532d90575bbe307335;hp=a011eb3715ce5bba55192dffd0f59225877186b9;hpb=981b7d024284b38ff58212655782774e657714f5;p=lyx.git diff --git a/src/frontends/gnome/gnome_helpers.h b/src/frontends/gnome/gnome_helpers.h index a011eb3715..8f63fd1d63 100644 --- a/src/frontends/gnome/gnome_helpers.h +++ b/src/frontends/gnome/gnome_helpers.h @@ -1,7 +1,7 @@ // -*- C++ -*- /* This file is part of * ================================================= - * + * * LyX, The Document Processor * Copyright 1995-2000 The LyX Team. * @@ -18,7 +18,7 @@ #include #include -// Glade Helper Function. +// Glade Helper Function. /** This function will get a widget from the glade XML representation and @@ -26,7 +26,7 @@ */ template T* getWidgetPtr(GladeXML* xml, char const * name) -{ +{ T* result = static_cast(Gtk::wrap_auto((GtkObject*)glade_xml_get_widget(xml, name))); if (result == NULL) { @@ -49,7 +49,6 @@ string get_font_name(Gdk_Font const & font); * * This function was lifted from e-font.c from the gabber package. */ -extern "C" gchar * get_font_name(GdkFont const * font); #endif