mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
Michael Koziarski's fix gnome compilation patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3278 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ce2ec24b67
commit
59a3a301c6
@ -1,3 +1,9 @@
|
||||
2002-01-03 Michael Koziarski <michael@koziarski.com>
|
||||
|
||||
* Dialogs.h: fix compilation.
|
||||
* Makefile.am: ditto.
|
||||
* GUIRunTime.C: ditto. Supply a getScreenDPI().
|
||||
|
||||
2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* Timeout_pimpl.h: do not include <config.h> in header files.
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include "gettext.h"
|
||||
|
||||
#include "Dialogs.h"
|
||||
#include "BufferView.h"
|
||||
#include "gnomeBC.h"
|
||||
|
||||
#include "ControlBibitem.h"
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user