summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* gdkglcontext-win32.c: Fix running with Mesa driversmesa.win32.fixesChun-wei Fan2021-04-291-8/+18
| | | | | | | | | | Some GL drivers such as Mesa-D3D12 do not allow one to call SetPixelFormat() on a given HDC if one pixel format has been already set for it, so first check the HDC with GetPixelFormat() to see whether a pixel format has already been set with the HDC, and only attempt to acquire the pixel format if one has not been set. This will fix running with GL/NGL on Windows using the Mesa drivers.
* Merge branch 'bookmark-fix' into 'master'Matthias Clasen2021-04-281-0/+3
|\ | | | | | | | | gtkplacessidebar.c: add bookmark null checking See merge request GNOME/gtk!3479
| * gtkplacessidebar.c: fix coding styleGeyslan G. Bem2021-04-281-3/+2
| | | | | | | | Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
| * gtkplacessidebar.c: add bookmark null checkingGeyslan G. Bem2021-04-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | This fixes nautilus crash and perhaps other callers issues. Nautilus (and sometimes glib) crashes with malformed URI inside of the bookmarks file .config/gtk-3.0/bookmarks when it has no LABEL. This is result from the closed glib MR #2065 analysis and agreement. https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2065#note_1091979 Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
* | Merge branch 'ebassi/issue-3905' into 'master'Emmanuele Bassi2021-04-282-0/+12
|\ \ | | | | | | | | | | | | | | | | | | docs: Add missing extra files for gdk4 sub-references Closes #3905 See merge request GNOME/gtk!3481
| * | docs: Add missing extra files for gdk4 sub-referencesebassi/issue-3905Emmanuele Bassi2021-04-282-0/+12
| | | | | | | | | | | | | | | | | | | | | The Wayland and X11 references need the gtk-logo.svg and the urlmap.js extra files. Fixes: #3905
* | | Merge branch 'memfd_create' into 'master'Matthias Clasen2021-04-282-1/+1
|\ \ \ | |/ / |/| | | | | | | | gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available See merge request GNOME/gtk!3480
| * | gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not ↵David Lechner2021-04-272-1/+1
|/ / | | | | | | | | | | | | | | | | available When building for homebrew/linuxbrew on Ubuntu 16.04, memfd_create() is not available and causes the build to fail. This adds a proper check for the function.
* | Merge branch 'fix-panel-monitor' into 'master'Matthias Clasen2021-04-271-2/+9
|\ \ | | | | | | | | | | | | | | | | | | x11: Try harder to find the right monitor Closes #3900 See merge request GNOME/gtk!3477
| * | x11: Try harder to find the right monitorMatthias Clasen2021-04-261-2/+9
|/ / | | | | | | | | | | | | If we deal with a panel, we end up with no monitor, and crash, which isn't great and isn't necessary. Fixes: #3900
* | Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-04-261-5/+15
|\ \ | |/ |/| | | | | | | | | clipboard: Make sure G_TYPE_STRING is nul-terminated Closes #3899 See merge request GNOME/gtk!3476
| * clipboard: Fix reading of filesBenjamin Otte2021-04-261-2/+3
| | | | | | | | | | Make sure writing a terminating null byte actually works and we don't just ignore the error message.
| * clipboard: Make sure G_TYPE_STRING is nul-terminatedBenjamin Otte2021-04-261-3/+12
| | | | | | | | | | | | | | | | | | When reading text, we need to check we terminate the G_TYPE_STRING string with a null byte, because the clipboard does not guarantee one. So just append a \0 to the stream. Fixes #3899
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-04-261-1/+16
|\ \ | | | | | | | | | | | | wayland: Print all layouts in debug spew See merge request GNOME/gtk!3475
| * | wayland: Print all layouts in debug spewMatthias Clasen2021-04-261-1/+16
| | |
* | | Update Nepali translationPawan Chitrakar2021-04-261-836/+593
| | | | | | | | | | | | (cherry picked from commit 193747fadff285ef7cf921158c454571adece94d)
* | | Update Catalan translationJordi Mas2021-04-251-1/+1
|/ /
* | Merge branch 'fix-x11-shadows' into 'master'Matthias Clasen2021-04-251-2/+3
|\ \ | | | | | | | | | | | | | | | | | | x11: Fix shadows Closes #3896 See merge request GNOME/gtk!3473
| * | window: Don't let solid-csd lingerfix-x11-shadowsMatthias Clasen2021-04-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Just from reading the code, it seems that we should unset .csd and .solid-csd at the same time, since the are mutually exclusive and we unset them here so realize() can set one of them again.
| * | Simplify shadow conditionsMatthias Clasen2021-04-241-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code in gtkwindow.c for dealing with the various combinations of client-side decorations and client-side shadows is entirely too complicated. This commit does not really clean it up, but simplifies one of the shadow conditions far enough to make some sense. With this change, I get the expected decorations in all the cases I can easily reproduce locally.
| * | x11: Fix shadowsMatthias Clasen2021-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | Commit a2cd21cab663a003 changed a condition and inadvertedly broke client-side shadows on X11. Change this back. Fixes: #3896
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-04-241-0/+7
|\ \ \ | |/ / |/| | | | | | | | Mention nightly flatpaks in the README See merge request GNOME/gtk!3474
| * | Apply 4 suggestion(s) to 1 file(s)Matthias Clasen2021-04-241-4/+4
| | |
| * | Mention nightly flatpaks in the READMEMatthias Clasen2021-04-241-0/+7
|/ /
* | Merge branch 'a11y-properties' into 'master'Emmanuele Bassi2021-04-231-8/+1
|\ \ | | | | | | | | | | | | a11y: Don't sent redundant property changes See merge request GNOME/gtk!3472
| * | a11y: Don't sent redundant property changesMatthias Clasen2021-04-231-8/+1
| | | | | | | | | | | | | | | We were sending a property changed event for every set property whenever we were sending any updates.
* | | Merge branch 'synthetic-motion-grab' into 'master'Matthias Clasen2021-04-231-0/+7
|\ \ \ | |/ / |/| | | | | | | | | | | | | | gdk: Avoid synthetic motion confusion Closes #3439 See merge request GNOME/gtk!3471
| * | gdk: Avoid synthetic motion confusionsynthetic-motion-grabMatthias Clasen2021-04-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Don't emit a synthetic motion event on a surface that is grab-shadowed by a popup. This has been known to confuse GTK, at times. Fixes: #3439
* | | Merge branch 'gtk4-listbox-selection' into 'master'Matthias Clasen2021-04-221-1/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Allow repeated selection extension on gtklistbox Closes #3887 See merge request GNOME/gtk!3461
| * | Allow repeated selection extension on gktlistboxJohn Renner2021-04-211-1/+4
| | |
* | | Merge branch 'resize-borders' into 'master'Matthias Clasen2021-04-221-36/+34
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | window: Fix up resize borders Closes #3856 See merge request GNOME/gtk!3467
| * | | theme: Make solid borders look betterMatthias Clasen2021-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | As pointed out by Alberts Muktupāvels, without this, we are missing the inner edge of the frame.
| * | | theme: Fix solid-csd bordersMatthias Clasen2021-04-221-8/+8
| | | | | | | | | | | | | | | | | | | | The selectors did not apply anymore. Based on a patch by Alberts Muktupāvels.
| * | | window: Make resize border size independentMatthias Clasen2021-04-221-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deriving the resize border size from the shadows carries the risk that we might end up with uneven resize borders (or none at all, on some sides). So, justs enforce that we have a big enough shadow width on all sides.
| * | | window: Tweak resize bordersMatthias Clasen2021-04-211-16/+13
| | | | | | | | | | | | | | | | | | | | | | | | Make windows resizable in the padding and border area of the css box as well. This naturally makes solid-csd borders work again.
| * | | window: Fix up resize bordersMatthias Clasen2021-04-211-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The invisible resize borders have been wider than they should, for a while. Go back to a size close to what we have in GTK3. To summarize: resize borders will be at most 12 pixels on each size, but never wider than the windows shadow. The resize corners have 'legs' of 24 pixels where you still get a corner resize cursor. Fixes: #3856
* | | | Merge branch 'a11y-debug' into 'master'Matthias Clasen2021-04-2217-22/+206
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Some a11y improvements See merge request GNOME/gtk!3455
| * | | | a11y: Update the labelled-by relation of GtkTreeExpandera11y-debugEmmanuele Bassi2021-04-211-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | Whenever we change the :child property, we need to update the labelled-by relation.
| * | | | a11y: Set state on the GtkTreeExpander widgetEmmanuele Bassi2021-04-211-5/+8
| | | | | | | | | | | | | | | | | | | | Instead of setting it on its internal child.
| * | | | a11y: Pair window:activate with window:deactivate signalEmmanuele Bassi2021-04-211-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Orca needs both events in order to decide whether or not to subscribe to other event/state changes in a window.
| * | | | a11y: Realize notebook tabs when switchingMatthias Clasen2021-04-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | We're not moving focus here, so we can't rely on that to conjure the a11y objects into existence.
| * | | | a11y: Avoid spurious selection changed eventsMatthias Clasen2021-04-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only send selection-changed events when we either had a non-empty selection before, or have one now. This should help orca speak the right things, and not the wrong things. Related: #3549
| * | | | a11y: Emit window:activate eventEmmanuele Bassi2021-04-201-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Orca uses the window:activate event type to track top levels, and avoid being spammed by events coming from non-focused windows.
| * | | | stackswitcher: Set accessible label propertiesMatthias Clasen2021-04-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the tabs in about dialogs come out as 'About', 'Credits', and 'System', instead of 'Tab', 'Tab', 'Tab'.
| * | | | a11y: Emit focus eventsMatthias Clasen2021-04-191-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Orca relies on these to keep track of the focus location, ignoring the focused state. With this change, orca can once again speak text in entries as I type.
| * | | | a11y: Make things appear on focus inMatthias Clasen2021-04-191-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We are starting with a pretty empty a11y object tree, and we want orca to bring more of it into existence by navigating the tree. But that only happens when we send it events. Primarily focus events, which come in from GTK via the platform_change mechanism. So realize the context when we are sending platform_changes, otherwise, orca never gets the mesage.
| * | | | a11y: Actually set accessible rolesMatthias Clasen2021-04-191-3/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With most context realization happening inside GtkAtspiContext in response to D-Bus calls, the code in gtk_widget_realize_at_context that sets the role is not executed for most accessibles, causing them to be stuck with the 'filler' role that makes orca ignore them. To fix this, split gtk_widget_realize_at_context into the actual context realization (getting on the bus) and the setting of widget-specific properties, and do the latter part when the widget is rooted. This makes accerciser report proper roles for entries and buttons. Orca still has an issue with getting the hierarchy populated.
| * | | | a11y: Track window states more closelyMatthias Clasen2021-04-199-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Orca ignores events unless the object is inside an object with role window and states ACTIVE and SHOWING. To arrange for this, introduce a new ACTIVE platform state, and set it for windows when they are active. This gets orca to be a lot more talkative.
| * | | | a11y: Add the root object to the cacheMatthias Clasen2021-04-193-7/+52
| | | | | | | | | | | | | | | | | | | | | | | | | Not 100% sure this is necessary, but maybe it helps to get orca up to speed.
| * | | | atspicontext: Remove an unused fieldMatthias Clasen2021-04-191-4/+0
| | | | | | | | | | | | | | | | | | | | We don't make any use of the cache field, so drop it.