summaryrefslogtreecommitdiff
path: root/gdk/gdkscreen.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Convert a bunch of visual related calls to use the screen vtableAlexander Larsson2010-12-211-0/+40
|
* Convert all GdkScreen methods to vtable callsAlexander Larsson2010-12-211-0/+414
|
* Move GdkScreenClass to internal headerAlexander Larsson2010-12-211-0/+1
|
* API: gdk: Remove depth argument from gdk_window_get_geometry()Benjamin Otte2010-12-061-1/+1
| | | | We don't want to expose depth anymore. If you need it, query the visual.
* docs: Move documentation to inline comments: gdkscreenJavier Jardón2010-11-151-0/+16
|
* Inclusion cleanups in sourcesMatthias Clasen2010-10-141-2/+4
| | | | Try to do inclusions in the same sequence, more or less.
* API: Remove colormap handling from GdkScreenBenjamin Otte2010-09-261-1/+0
| | | | | | | | In particular, the following functions are gone: - gdk_screen_get_default_colormap() - gdk_screen_set_default_colormap() - gdk_screen_get_system_colormap() - gdk_screen_get_rgba_colormap()
* gdk: Move scratch GC handling to X11Benjamin Otte2010-08-101-20/+0
| | | | | ... and implement it directly instead of using GdkGC, as GdkGC is about to be deleted, but we need this code.
* gdk: Remove _gdk_drawable_get_scratch_gc()Benjamin Otte2010-08-101-9/+3
| | | | The function is unused now.
* gdk/: fully remove gdkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Update documentation for ::monitors-changed to mention OS X supportKristian Rietveld2009-10-261-2/+2
|
* Fix get_nearest_monitorMatthias Clasen2009-03-241-4/+5
| | | | svn path=/trunk/; revision=22582
* gdk/gdkdraw.c gdk/gdkimage.c gdk/gdkscreen.c replace assertions for obj !=Michael Natterer2008-10-211-30/+31
| | | | | | | | | | | | | | | 2008-10-21 Michael Natterer <mitch@imendio.com> * gdk/gdkdraw.c * gdk/gdkimage.c * gdk/gdkscreen.c * gdk/gdkwindow.c: replace assertions for obj != NULL by GDK_IS_OBJ(), remove redundant != NULL checks when there is already a type check, add some g_return_if_fail() that were missing entirely, fix some broken indentation and spacing. svn path=/trunk/; revision=21695
* gdk/gdkkeys.c gdk/gdkscreen.c use canonical signal names.Sven Neumann2008-08-111-6/+6
| | | | | | | | | | | 2008-08-11 Sven Neumann <sven@gimp.org> * gdk/gdkkeys.c * gdk/gdkscreen.c * gdk/gdkdisplaymanager.c: use canonical signal names. svn path=/trunk/; revision=21059
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* cast the return value of gdk_screen_get_font_options() to gpointer to getMichael Natterer2008-01-141-1/+1
| | | | | | | | | | | 2008-01-14 Michael Natterer <mitch@imendio.com> * gdk/gdkscreen.c (gdk_screen_get_property): cast the return value of gdk_screen_get_font_options() to gpointer to get rid of const warning. svn path=/trunk/; revision=19370
* Add RandR 1.2 supportSøren Sandmann2007-12-131-0/+23
| | | | | | | | | | | | | Thu Dec 13 13:14:50 2007 Søren Sandmann <sandmann@redhat.com> * Add RandR 1.2 support - New monitors_changed signal - New API to get width/height of monitors, and the name of the plug svn path=/trunk/; revision=19173
* Rollback the following changes, to fix it the proper way in Pango:Behdad Esfahbod2006-05-221-63/+0
| | | | | | | | | | | | | | | | 2006-05-22 Behdad Esfahbod <behdad@gnome.org> Rollback the following changes, to fix it the proper way in Pango: * gdk/gdkinternals.h: * gdk/gdkscreen.c (gdk_screen_class_init), (gdk_screen_finalize), (update_fontmap_resolution), (gdk_screen_set_resolution): Add new function _gdk_screen_get_font_map() and have one fontmap per screen, with the correct resolution set on it. * gdk/gdkpango.c (gdk_pango_context_get_for_screen): Use _gdk_screen_get_font_map() instead of setting resolution on the PangoCairoContext. (#342529)