Add a note to gdk_screen_get_width/height_mm

The values returned by these functions are not very well defined,
recommend to use the monitor dimensions instead.
This commit is contained in:
Matthias Clasen 2015-08-15 22:20:16 -04:00
parent 02f3fe0671
commit b437f89c05

View File

@ -619,7 +619,10 @@ gdk_screen_get_height (GdkScreen *screen)
* @screen: a #GdkScreen
*
* Gets the width of @screen in millimeters.
* Note that on some X servers this value will not be correct.
*
* Note that this value is somewhat ill-defined when the screen
* has multiple monitors of different resolution. It is recommended
* to use the monitor dimensions instead.
*
* Returns: the width of @screen in millimeters.
*
@ -638,7 +641,10 @@ gdk_screen_get_width_mm (GdkScreen *screen)
* @screen: a #GdkScreen
*
* Returns the height of @screen in millimeters.
* Note that on some X servers this value will not be correct.
*
* Note that this value is somewhat ill-defined when the screen
* has multiple monitors of different resolution. It is recommended
* to use the monitor dimensions instead.
*
* Returns: the heigth of @screen in millimeters.
*