summaryrefslogtreecommitdiff
path: root/gdk/gdk.c
Commit message (Collapse)AuthorAgeFilesLines
* Port tracing to the sysprof collector apiMatthias Clasen2020-08-211-6/+0
| | | | Use the new sysprof collector api to do tracing.
* docs: Clean up dangling links in gdk docsMatthias Clasen2020-08-051-3/+2
| | | | Clean up references to no-longer-existing APIs.
* Replace "gchar" with "char"Benjamin Otte2020-07-251-6/+6
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-1/+1
|
* gdk: Better help for GDK_DEBUGMatthias Clasen2020-06-281-29/+117
| | | | | | | | Include docstrings and format the list of supported values better. Also, add the same warning we have for GTK_DEBUG when the environment variable is ignored.
* gdk: Drop no-longer-used documentationMatthias Clasen2020-05-261-51/+0
| | | | | Thread support is gone, and we don't have that section in the docs anymore.
* Don't use xsettings or xft defaults in testsuiteAlexander Larsson2020-02-031-1/+2
| | | | | | | | | This adds a GDK_DEBUG=default-settings flag which disables reads from xsettings and Xft resources, and enables this for the testsuite. This is one less way to get different testresults depending on the environment. In particular, it was failing the css tests for me due to getting the wrong font size because i have a different dpi.
* gdk: Make profiler support unconditionalMatthias Clasen2020-01-211-5/+5
| | | | | We are still not providing samples unless debugging is enabled. That needs a bit more work.
* profiler: port GdkProfiler to sysprof-3Christian Hergert2019-05-291-2/+2
| | | | | | | | | | This uses the new sysprof-3 ABI to implement the capture writer. It also uses the statically linked libsysprof-capture-3.a that is provided with Sysprof for the capture writing to ensure that we do not leak any symbols nor depend on any additional libraries. The GTK_TRACE_FD can be used to pass a FD for tracing into Gtk. Sysprof uses this when the Gtk instrument is selected for recording.
* Add a way to start the profilerMatthias Clasen2019-05-071-0/+6
| | | | | | | | | If SYSPROF_TRACE_FD is set in the environment, interpret it as an fd to write profiling data to. If GTK_TRACE is set, write profiling data to a file with name gtk.$PID.syscap.
* gdkglcontext: Only emit opengl debug calls if GDK_DEBUG=gl-debugAlexander Larsson2019-04-251-0/+1
| | | | This avoids a potential performance cost in the non-debug case.
* gdk: Include copy of glib/gconstructor.hCarlos Garnacho2019-03-171-0/+2
| | | | | | This is named gdkconstructor.h to avoid any possible conflicts. This fixes the current usages of G_HAS_CONSTRUCTORS, as that header is not installed by glib.
* docs: Its just GTK nowMatthias Clasen2019-02-241-4/+4
| | | | Remove the + from GTK+ in the GDK docs.
* Drop some dead codeMatthias Clasen2019-02-231-8/+0
| | | | | There were some internal uses of GdkEventFunc. Thankfully, they were unused, so lets just drop them.
* gdk: Add a copy of some deprecated pango apiMatthias Clasen2019-02-041-0/+44
| | | | | We use pango_find_base_dir() in a few places, and this api has been deprecated.
* Move the should_use_portal helper to gdkMatthias Clasen2018-11-041-0/+20
| | | | | We want to use it there too, in the future. Update all callers.
* Use a simpler sandbox checkMatthias Clasen2018-11-041-8/+1
| | | | | No need to use the runtime dir and allocate a string. We can just check in /.
* Merge branch 'master' into 'issue1084'Matthias Clasen2018-06-201-0/+14
|\ | | | | | | # Conflicts: # gdk/gdk.c
| * gdk: Add a private api to find sandboxesMatthias Clasen2018-05-291-0/+14
| | | | | | | | This will be used in more places in the future.
* | display: Avoid unsetting the DESKTOP_STARTUP_ID variable too lateMario Sanchez Prada2018-06-111-0/+50
|/ | | | | | | | | | | | | | | Similar to what has been done recently for DESKTOP_AUTOSTART_ID [1], we need to get rid of this call to g_unsetenv() in the displays' backends for X11 and Wayland, so that it's guarantee to happen any thread is created, while still being accessible when needed. Let's stash the value of this environment variable when loading the GDK library, and provide a private method so that it can be retrieved from the displays' backend when implementing gdk_display_make_default(). [1] https://gitlab.gnome.org/GNOME/gtk/commit/22269902 Closes: https://gitlab.gnome.org/GNOME/gtk/issues/979
* gdk: Remove GDK_DEBUG=cairo-imageBenjamin Otte2018-04-241-2/+1
| | | | | This is the default now - at least until cairo rendering gets split into backends.
* Remove all gdk_threads_* entry pointsEmmanuele Bassi2018-02-031-398/+2
| | | | | | Now that we don't use them anywhere, it's time for them to go. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* Drop the cairo-recording debug flagMatthias Clasen2018-01-141-2/+1
| | | | | | It is not very useful. The cairo-image option on the other hand is has been useful in tracking down problems in the past, so we'll keep it.
* Drop the gl-always debug optionMatthias Clasen2018-01-141-1/+0
| | | | This doesn't seem very useful.
* gdk: Reorganize env varsMatthias Clasen2018-01-141-53/+22
| | | | | | Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE. Merge the useful bits into GDK_DEBUG. Drop unused debug flags (CURSOR).
* Drop unused GDK_GL valuesMatthias Clasen2018-01-101-3/+1
| | | | And document the existing ones.
* Drop unused debug keysMatthias Clasen2018-01-091-3/+0
| | | | The multihead, xim and xinerama keys do nothing anymore.
* x11: Add an initial clipboard implementationBenjamin Otte2017-12-031-1/+3
| | | | This does nothing but download the targets and debug-print them.
* Stop including gdkmain.hMatthias Clasen2017-11-171-1/+0
| | | | It is empty now.
* Drop an unused variableMatthias Clasen2017-11-161-3/+0
| | | | These are no longer used.
* Drop gdk_set_program_classMatthias Clasen2017-11-161-48/+0
| | | | | Together with the corresponding getter. This is x11-specific functionality.
* Move some code aroundMatthias Clasen2017-11-161-23/+0
| | | | Move gdk_disable_multidevice to gdkdisplaymanager.[hc].
* gdk: Remove gdk_get_display_arg_name()Benjamin Otte2017-11-011-22/+1
| | | | Since we're no longer allowing arguments, this is always NULL now.
* docs: Remove mentions of gtk_init_with_args().Murray Cumming2017-03-171-1/+1
| | | | Because it has been removed: See commit 7e8eb3ddcd29ce9eecb14a56dbfeb0caf64dc772
* Never return NULL from gdk_get_program_classTimm Bäder2017-02-051-1/+4
| | | | | gdk_init is not calling g_set_prgname anymore, so just return a dummy string from gdk_get_program_class if it has not been set before.
* Drop gdk init apiMatthias Clasen2017-01-191-187/+0
| | | | Supporting separately initialized gdk is just not worth it.
* gdk: Remove unused debug categoryBenjamin Otte2017-01-081-1/+0
|
* gdk: Drop support for native (and thus foreign) subwindowsAlexander Larsson2016-12-161-7/+0
| | | | | | We can't really support these on e.g. wayland anyway, and we're trying to get rid of subwindow at totally in the long term, so lets drop this. It allows us to drop a lot of complexity.
* gdk: Add GDK_VULKAN env variableBenjamin Otte2016-12-091-1/+12
| | | | | | | | Also add 2 flags: GDK_VULKAN="disable" will disable Vulkan usage. GDK_VULKAN="validate" will enable VK_LAYER_LUNARG_standard_validation.
* vulkan: Initial supportBenjamin Otte2016-12-091-1/+2
| | | | | | | Adds the gdk_display_ref_vulkan() and gdk_display_unref_vulkan() functions which setup/tear down VUlkan support for the display. Nothing is using those functions yet.
* Remove deprecated gdk_display_open_default_libgtk_onlyRico Tzschichholz2016-10-261-21/+0
|
* gdk: Remove deprecated gdk_add_option_entries_libgtk_only and ↵Rico Tzschichholz2016-10-241-31/+0
| | | | gdk_pre_parse_libgtk_only
* gdk: Remove deprecated gdk_threads_set_lock_functionsRico Tzschichholz2016-10-241-43/+0
|
* gdk: Remove deprecated gdk_get_displayRico Tzschichholz2016-10-241-18/+0
|
* gdk: actually fix the previous commitIgnacio Casal Quinteiro2016-06-291-1/+1
| | | | We do not want it on windows
* gdk: do not provide display command line argument on windowsIgnacio Casal Quinteiro2016-06-291-0/+2
| | | | There is no need to specify a display on windows.
* gdk: Ensure resources registration happens onceEmmanuele Bassi2016-04-261-1/+17
| | | | | | Like GTK does it. https://bugzilla.gnome.org/show_bug.cgi?id=765576
* gdk: Add 'GDK_GL=gles' flagEmmanuele Bassi2016-04-251-1/+2
| | | | Allows forcing the selection of a GLES context.
* gdk: Move GLSL shaders into GResourceEmmanuele Bassi2016-04-251-0/+4
| | | | | Having the shaders inlined as C strings makes them harder to edit and maintain.
* Trivial formatting fixMatthias Clasen2016-03-111-21/+21
|