summaryrefslogtreecommitdiff
path: root/gdk/gdkscreen.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop gdkscreen.hMatthias Clasen2017-11-171-57/+0
| | | | Nothing uses GdkScreen anymore, so we can get rid of it.
* x11: Stop using GdkScreen in apiMatthias Clasen2017-11-171-12/+0
| | | | | This type is going away, so switch to using GdkX11Screen everywhere.
* Drop gdk_screen_get_displayMatthias Clasen2017-11-011-18/+0
| | | | This is not longer used.
* Drop the monitors-changed signalMatthias Clasen2017-10-311-33/+1
| | | | We are not using it anymore.
* Drop gdk_screen_get_root_windowMatthias Clasen2017-10-311-8/+0
| | | | This function is no longer used.
* Drop the screen resolution apiMatthias Clasen2017-10-311-143/+0
| | | | | | | | GTK+ now uses the gtk-xft-dpi setting directly. Note: this commit only fixes the backends that currently provide this setting. The win32 and Quartz backends still need to be fixed.
* Drop gdk_screen_get_settingMatthias Clasen2017-10-301-25/+0
| | | | It has been replaced by gdk_display_get_setting.
* Stop using the GdkScreen get_setting vfuncMatthias Clasen2017-10-301-5/+1
| | | | We can now call the GdkDisplay implementation instead.
* Remove root window getters from public APIMatthias Clasen2017-08-111-10/+0
| | | | These are now just used internally in GDK.
* gdk: Remove visual APIs from GdkScreenBenjamin Otte2016-11-041-80/+1
| | | | | gdk_screen_list_visuals(), gdk_screen_get_system_visual() and gdk_screen_get_rgba_visual() are gone now.
* API: screen: Remove gdk_screen_is_composited()Benjamin Otte2016-10-291-44/+0
| | | | | | | | Switch code to use gdk_display_is_composited() instead. The new code also doesn't use a vfunc to query the property but rather requires the backend to call set_composited()/set_rgba() to change the value.
* API: screen: Stop storing font optionsBenjamin Otte2016-10-161-81/+0
| | | | | font options are only ever set by the GtkSettings object and only ever used inside GTK, so just store them there.
* API: screen: Remove gdk_screen_make_display_name()Benjamin Otte2016-10-161-19/+0
| | | | It's identical to gdk_display_get_name().
* API: screen: Remove gdk_screen_get_active_window()Benjamin Otte2016-10-161-65/+0
| | | | | | | | | | | ... and gdk_screen_get_window_stack(). Those functions were originally added in 5afb4f0f116f0e8a200dd55cc6688a957b4d397c but do not seem to be used as they are not implemented anywhere but in X. As GDK is not meant to fulfill window management functionality I'm going to remove these functions without replacements.
* API: gdk: Remove gdk_screen_get_number()Benjamin Otte2016-10-161-19/+0
| | | | It's useless everywhere but in internal X11 code.
* API: Remove gdk_screen_get_width() and gdk_screen_get_height()Benjamin Otte2016-10-161-164/+0
| | | | | | | | | ... and gdk_screen_get_width_mm() and gdk_screen_get_height_mm() and the shortcut counterparts that call these functions on the default screen. Modern display servers don't provide an ability to query the size of a screen or display so we shouldn't allow that either.
* API: gdk: Remove monitor APIs on GdkScreenBenjamin Otte2016-10-161-329/+0
|
* Implement gdk_screen_get_monitor_scale_factor genericallyMatthias Clasen2016-09-141-5/+4
| | | | | | | This was forgotten when the other screen monitor apis were ported to GdkMonitor. https://bugzilla.gnome.org/show_bug.cgi?id=771349
* screen: Implement old monitor apis genericallyMatthias Clasen2016-04-271-108/+86
| | | | Implement all the monitor-related GdkScreen apis based on GdkMonitor.
* gdk: Clarify docs about scaleMatthias Clasen2016-01-181-14/+26
| | | | | Explicitly state where we return application pixels as opposed to device pixels.
* Trivial typo fixMatthias Clasen2016-01-181-1/+1
|
* docs: Fix typo in gdk_screen_get_scale_factor()Emmanuele Bassi2015-11-041-1/+1
|
* Add a note to gdk_screen_get_width/height_mmMatthias Clasen2015-08-151-2/+8
| | | | | The values returned by these functions are not very well defined, recommend to use the monitor dimensions instead.
* Improve workarea documentationMatthias Clasen2014-09-241-0/+4
| | | | | Worth mentioning that workarea may not exist, and that we return the full monitor geometry in that case.
* Handle resolution changes in the GDK backend codeOwen W. Taylor2014-07-131-0/+25
| | | | | | | | | | | | | | | gdk_x11_display_set_window_scale() affects the interpretation of the Xft/DPI XSETTING - it is substituted inside GDK with the value of Gdk/UnscaledDPI xsetting. However, this change is not propagated to GTK+ and from GTK+ back to gdk_screen_set_resolution() until the main loop is run. Fix this by handling the screen resolution directly in gdk/x11. This requires duplication of code between GDK and GTK+ since we still have to handle DPI in GTK+ in the case that GdkSettings:gtk-xft-dpi is set by the application. https://bugzilla.gnome.org/show_bug.cgi?id=733076
* GdkScreen: Set reasonable limis for ::resolutionMatthias Clasen2014-07-041-2/+2
| | | | | Otherwise, the spinbutton in the inspectors property editor explodes in order to make room for MAXDOUBLE.
* gdk: assorted introspection and documentation fixesEvan Nemerson2014-05-191-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729983
* gdk: add many missing (nullable) return value annotationsEvan Nemerson2014-05-111-10/+11
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729834
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-14/+14
| | | | Instead of Return value:
* Revert "Introduce API to get the preferred visual"Matthias Clasen2014-02-101-30/+0
| | | | | | | This reverts commit 2b95d1a34ed7cd70ea3eaaa9b7d8add200b5a9d2. Conflicts: gdk/gdkscreen.c
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-2/+2
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use proper quotations instead of '*'William Jon McCann2014-02-071-1/+1
|
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-2/+2
|
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-3/+3
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-4/+4
| | | | https://wiki.gnome.org/Design/OS/Typography
* Use proper quotes in gdkWilliam Jon McCann2014-02-051-2/+2
|
* docs: replace another envar that sneaked inWilliam Jon McCann2014-02-041-1/+1
|
* docs: Use markdown for ulinksWilliam Jon McCann2014-02-041-6/+6
|
* Introduce API to get the preferred visualMatthias Clasen2014-02-041-0/+30
| | | | | | | Unless GDK_RGBA=0 is set, this will be the RGBA visual. The new function is called gdk_screen_get_preferred_visual(). https://bugzilla.gnome.org/show_bug.cgi?id=630217
* GdkScreen: Return 1, not 1.0 for the (int) scale factorAlexander Larsson2013-08-261-1/+1
|
* add gdk_screen_ and gdk_window_get_scale_factor()Michael Natterer2013-07-031-0/+34
| | | | | These report the internal scaling factor, mapping from UI pixels to hardware pixels.
* gdk: Ignore headers for declared functionsBenjamin Otte2012-10-061-0/+1
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gdk: pull more precondition checks into the generic gdkscreen.cMichael Natterer2012-02-241-0/+5
|
* GdkScreen: fix precondition checks in the public APIMichael Natterer2012-02-211-21/+72
| | | | | | Move g_return_if_fail() stuff from the backends to the public functions in gdkscreen.c itself, and some fixes for ugly formatting in the various gdkscreen-backend.c files.
* Add gdk_screen_get_monitor_workareaMatthias Clasen2011-12-181-2/+33
| | | | | | | | | | | | The function returns the part of a monitors area that should be used for positioning popups, menus, etc. The only non-trivial implementation atm is in the X backend, all the other backends just return the full monitor area. The X implementation is currently suboptimal, since it requires roundtrips to collect the necessary information. It should be changed to monitor the properties for changes, when XFixes allows to monitor individual properties. https://bugzilla.gnome.org/show_bug.cgi?id=641999
* Documentation fixesMatthias Clasen2011-09-251-4/+5
| | | | | Mostly making sure that return values and varargs don't loose their docs.
* Give the GDK docs some loveMatthias Clasen2011-02-091-8/+11
| | | | | Reorganize some sections, drop the largely redundant multihead section, add some more information about multiple backends.
* gdk: Remove GdkEventClientBenjamin Otte2011-02-011-26/+0
| | | | | | | | | | | | ... and all APIs making use of it. That code like it hasn't been touched in years, Google codesearch didn't find any users and most importantly it's a horrendous API, so let's just make it die instead of having to port it over to non-GdkNativeWindow usage, which would be required for multi-backend GDK. http://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00049.html
* Explode gdkinternals.h into per-class private headersMatthias Clasen2010-12-211-3/+1
| | | | | At the same time, move some more class and instance structs out of public headers.