summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tests: Less linkingtests-less-linkingMatthias Clasen2023-01-1211-92/+138
| | | | | Build just a few binaries for the gsk tests, avoiding the overhead of linking each one.
* tests: Less linkingMatthias Clasen2023-01-1223-200/+266
| | | | | Build just a few binaries for the gdk tests, avoiding the overhead of linking each one.
* Merge branch 'ebassi/pin-gi' into 'main'Matthias Clasen2023-01-121-0/+10
|\ | | | | | | | | Add gobject-introspection as a subproject See merge request GNOME/gtk!5414
| * Add gobject-introspection as a subprojectEmmanuele Bassi2023-01-121-0/+10
|/ | | | | We pin GLib, so we must also pin g-i to the same version, otherwise we'll get weird mismatches during development.
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-01-1212-185/+147
|\ | | | | | | | | css: Avoid some allocations See merge request GNOME/gtk!5413
| * iconcache: Be a bit less wastefulMatthias Clasen2023-01-121-4/+12
| |
| * css: Avoid more allocations for tokensMatthias Clasen2023-01-127-67/+72
| | | | | | | | Make short string tokens static.
| * css: Avoid some allocationsMatthias Clasen2023-01-121-4/+3
| | | | | | | | | | Avoid duplicating the function name just for an error message.
| * css: Avoid allocation for tokensMatthias Clasen2023-01-122-9/+15
| | | | | | | | | | All valid dimensions are short, so store the dimension inside the token.
| * css: Avoid some allocationsMatthias Clasen2023-01-121-5/+5
| | | | | | | | Reuse the name_buffer for reading strings.
| * css: Some inliningMatthias Clasen2023-01-124-88/+35
| |
| * CosmeticsMatthias Clasen2023-01-121-1/+1
| |
| * icontheme: Bit a bit less wastefulMatthias Clasen2023-01-121-20/+17
|/
* Update Turkish translationEmin Tufan Çetin2023-01-111-6/+6
|
* Update Turkish translationEmin Tufan Çetin2023-01-111-86/+86
|
* texthistory: Avoid g_autofreeMatthias Clasen2023-01-101-24/+32
| | | | msvc does not like it, unfortunately.
* Merge branch 'wip/chergert/fix-5506' into 'main'Matthias Clasen2023-01-112-1/+129
|\ | | | | | | | | | | | | istring: fix istring_prepend() on malloc transition Closes #5506 See merge request GNOME/gtk!5411
| * texthistory: add debugging helpers to print undo stackChristian Hergert2023-01-101-0/+128
| | | | | | | | This is helpful to have when tracking down issues like #5506.
| * istring: fix istring_prepend() on malloc transitionChristian Hergert2023-01-101-1/+1
|/ | | | | | | | | When transitioning from internal to malloc, the strings were placed in the wrong order to g_strconcat(). This fixes an issue with undo where if you hit the boundary in just the right way, your undo stack will do unexpected things. Fixes #5506
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-01-101-1/+83
|\ | | | | | | | | Add some more text undo tests See merge request GNOME/gtk!5410
| * Add some more text undo testsMatthias Clasen2023-01-101-1/+83
| | | | | | | | Unsuccessfully trying to reproduce #5506.
* | Update Russian translationAleksandr Melman2023-01-101-33/+39
|/
* Merge branch 'matthiasc/for-main' into 'main'Matthias Clasen2023-01-094-3/+9
|\ | | | | | | | | Deprecate gdk_display_put_event See merge request GNOME/gtk!5409
| * Deprecate gdk_display_put_eventMatthias Clasen2023-01-094-3/+9
|/ | | | | | | The documentation already tells you not to use this function. Ifdef the remaining users in the X11 backend.
* Merge branch 'macos-stable-dnd' into 'main'Matthias Clasen2023-01-093-5/+17
|\ | | | | | | | | macos: Drag and drop should not freeze applications See merge request GNOME/gtk!5291
| * Fix code styleMatthias Clasen2023-01-081-1/+1
| |
| * macos: Fix freeze on dragArjan Molenaar2022-12-131-1/+1
| | | | | | | | | | | | | | A Drag surface does not have a parent surface. Therefore, if we initialize it with one, it's inheriting the frame clock from the parent, but the drag surface is not linked to the parent. Once the drag surface is destroyed, it's disposing the frame clock, which results in a "frozen" application.
| * macos: Explicitly ungrab seat when drag is done or finalizedArjan Molenaar2022-12-131-1/+11
| | | | | | | | | | | | This is an extra safeguard that avoids grabbing resources longer than nessecary. It also ensures the resource is removed from the drag, so it is not freed again.
| * Remove old dragImage codeArjan Molenaar2022-12-131-3/+5
| | | | | | | | | | New code (macOS 10+ should support the NSDraggingSource protocol: https://developer.apple.com/documentation/appkit/nsdraggingsource.
* | Merge branch 'wip/corey/popover-accel' into 'main'Matthias Clasen2023-01-091-0/+2
|\ \ | | | | | | | | | | | | | | | | | | gtkmodelbutton: Ensure that accel label is always aligned to end Closes #5504 See merge request GNOME/gtk!5407
| * | gtkmodelbutton: Ensure that accel label is always aligned to endCorey Berla2023-01-081-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | When the model button just has a text label and accel text, the button fills and the accel label is implicitly aigned to end. When there's also a icon, even though it's not shown (because icons are only shown if there's no text), the button doesn't fill and the accel ends up not aligned (assuming one of the other buttons is longer). Ensure that the accel label is aligned to the end. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5504
* | Merge branch 'a11y_check_null_path' into 'main'Emmanuele Bassi2023-01-092-1/+5
|\ \ | | | | | | | | | | | | a11y: Avoid crashing if GtkAtSpiContext::path is NULL See merge request GNOME/gtk!5405
| * | a11y: Use fallback logic when GApplication has no DBus object pathBarnabás Pőcze2023-01-081-1/+2
| | | | | | | | | | | | | | | | | | Use the fallback logic to generate the base path for the GtkAtSpiRoot if the GApplication has no DBus object path to guarantee that the base path will not stay NULL.
| * | a11y: Check if path is NULL when removing from cacheBarnabás Pőcze2023-01-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `gtk_at_spi_cache_add_context()` checks if the GtkAtSpiContext's path is NULL before inserting the context object into the hash table. Do the same in `gtk_at_spi_cache_remove_context()` to avoid a NULL pointer dereference in `g_str_hash()` during the hash table lookup if a context with NULL path is removed. That can happen when the GtkAtSpiRoot::base_path is NULL, which, in turn, can happen if `g_application_get_dbus_object_path()` returns NULL. ==394047==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7fd1966f8b84 bp 0x7fff11e3ded0 sp 0x7fff11e3de58 T0) ==394047==The signal is caused by a READ memory access. ==394047==Hint: address points to the zero page. #0 0x7fd1966f8b84 in g_str_hash (/usr/lib/libglib-2.0.so.0+0x37b84) #1 0x7fd1966f9c09 in g_hash_table_contains (/usr/lib/libglib-2.0.so.0+0x38c09) #2 0x7fd196062c10 in gtk_at_spi_cache_remove_context ../gtk/a11y/gtkatspicache.c:447 #3 0x7fd19606e0a9 in gtk_at_spi_root_unregister ../gtk/a11y/gtkatspiroot.c:653 #4 0x7fd196067f58 in gtk_at_spi_context_unrealize ../gtk/a11y/gtkatspicontext.c:1559 #5 0x7fd195ced97f in gtk_at_context_unrealize ../gtk/gtkatcontext.c:668 #6 0x7fd195f5576e in gtk_widget_unroot_at_context ../gtk/gtkwidget.c:2399 #7 0x7fd195f55bd2 in gtk_widget_unroot ../gtk/gtkwidget.c:2499 ...
* | | Merge branch 'doc-improvements' into 'main'Emmanuele Bassi2023-01-082-22/+8
|\ \ \ | |/ / |/| | | | | | | | Two docs improvements See merge request GNOME/gtk!5406
| * | docs: Improve gtk_window_present descriptionMarco Melorio2023-01-081-18/+8
| | | | | | | | | | | | | | | Move most of the documentation from gtk_window_present_with_time and also reword it a bit to make it more understandable.
| * | docs: Don't mention deprecated API in gtk_widget_set_visibleMarco Melorio2023-01-081-4/+0
|/ / | | | | | | | | That statement is true, but since that API is deprecated, it doesn't need to be there anymore to avoid confusing people.
* | gdk: Update docsMatthias Clasen2023-01-071-3/+0
| | | | | | | | Update the docs for gdk_display_get_monitor_at_surface.
* | Merge branch 'gdk-display-get-monitor-is-nullable' into 'main'Matthias Clasen2023-01-071-1/+1
|\ \ | | | | | | | | | | | | | | | | | | gdkdisplay: Document get_monitor_at_surface can return NULL Closes #5075 See merge request GNOME/gtk!4917
| * | gdkdisplay: Document get_monitor_at_surface can return NULLOndřej Míchal2022-08-011-1/+1
| | | | | | | | | | | | Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5075
* | | Merge branch 'more-filesystemmodel-cleanups' into 'main'Matthias Clasen2023-01-077-35/+31
|\ \ \ | | | | | | | | | | | | | | | | filesystemmodel: Crop tree model cruft See merge request GNOME/gtk!5402
| * | | filesystemmodel: Drop tree model cruftMatthias Clasen2023-01-071-25/+21
| | | | | | | | | | | | | | | | | | | | We no longer need the placeholder item for the editable, so drop it.
| * | | filesystemmodel: Rename private headerMatthias Clasen2023-01-077-10/+10
| | | |
* | | | Merge branch 'win-file-ext' into 'main'Matthias Clasen2023-01-071-0/+4
|\ \ \ \ | |/ / / |/| | | | | | | | | | | filechoosernativewin32: Set default extension See merge request GNOME/gtk!5266
| * | | filechoosernativewin32: Set default extensionrobxnano2023-01-071-0/+4
|/ / /
* | | Merge branch 'filesystemmodel-cleanups' into 'main'Matthias Clasen2023-01-072-356/+268
|\ \ \ | | | | | | | | | | | | | | | | filesystemmodel: Cleanup unused defines See merge request GNOME/gtk!5401
| * | | gtkfilesystemmodel: Use g_clear_* helpersGeorges Basile Stavracas Neto2023-01-071-10/+4
| | | | | | | | | | | | | | | | Saves some code.
| * | | filesystemmodel: Use G_DECLARE_FINAL_TYPE()Georges Basile Stavracas Neto2023-01-072-33/+13
| | | | | | | | | | | | | | | | Clean up boilerplate. It's a private object anyway.
| * | | filesystemmodel: CosmeticsGeorges Basile Stavracas Neto2023-01-071-262/+227
| | | | | | | | | | | | | | | | | | | | Adjust code style, and shuffle some functions around. Remove unhelpful doc comments.
| * | | filesystemmodel: Use g_set_objectMatthias Clasen2023-01-071-10/+1
| | | |