diff --git a/src/frontends/gnome/ChangeLog b/src/frontends/gnome/ChangeLog index c7a58b586e..6f1398b7b8 100644 --- a/src/frontends/gnome/ChangeLog +++ b/src/frontends/gnome/ChangeLog @@ -1,3 +1,9 @@ +2002-01-03 Michael Koziarski + + * Dialogs.h: fix compilation. + * Makefile.am: ditto. + * GUIRunTime.C: ditto. Supply a getScreenDPI(). + 2001-12-19 Jean-Marc Lasgouttes * Timeout_pimpl.h: do not include in header files. diff --git a/src/frontends/gnome/Dialogs.C b/src/frontends/gnome/Dialogs.C index 1755022a2d..85a44ae0cf 100644 --- a/src/frontends/gnome/Dialogs.C +++ b/src/frontends/gnome/Dialogs.C @@ -17,6 +17,7 @@ #include "gettext.h" #include "Dialogs.h" +#include "BufferView.h" #include "gnomeBC.h" #include "ControlBibitem.h" diff --git a/src/frontends/gnome/GUIRunTime.C b/src/frontends/gnome/GUIRunTime.C index 454f0c0a3a..0ec386c177 100644 --- a/src/frontends/gnome/GUIRunTime.C +++ b/src/frontends/gnome/GUIRunTime.C @@ -154,3 +154,10 @@ int GUIRunTime::x11VisualDepth() { return fl_get_visual_depth(); } + +float GUIRunTime::getScreenDPI() +{ + Screen * scr = ScreenOfDisplay(fl_get_display(), fl_screen); + return ((HeightOfScreen(scr) * 25.4 / HeightMMOfScreen(scr)) + + (WidthOfScreen(scr) * 25.4 / WidthMMOfScreen(scr))) / 2; +} diff --git a/src/frontends/gnome/Makefile.am b/src/frontends/gnome/Makefile.am index 28b8dcb78b..fedecc5d71 100644 --- a/src/frontends/gnome/Makefile.am +++ b/src/frontends/gnome/Makefile.am @@ -22,6 +22,8 @@ libgnome_la_LIBADD = \ ../xforms/FormMathsMatrix.lo \ ../xforms/FormMathsPanel.lo \ ../xforms/FormMathsSpace.lo \ + ../xforms/DropDown.lo \ + ../xforms/Alert_pimpl.lo \ @LYX_LIBS@ @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@ # ../xforms/FileDialog.lo \