summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* main: Update pointer focus state for button releasesfix-hover-trackingMatthias Clasen2020-09-191-2/+4
| | | | | | | | | Failure to do so makes the old pointer focus target 'sticky', because we end up ignoring the result of picking the pointer focus until a motion event comes in. Fixes: #3172
* textbuffer: Redo insert markup a little bitMatthias Clasen2020-09-191-61/+176
| | | | | | | | | Redo the tag insertion function to avoid quadratic behavior, and at the same time, fix handling of alpha for color attributes. Update the copy of this function in gtk4-demo as well.
* Merge branch 'wip/baedert/radial-gradient' into 'master'Matthias Clasen2020-09-195-49/+187
|\ | | | | | | | | | | | | Radial gradients Closes #2262, #3170, and #3173 See merge request GNOME/gtk!2597
| * cssimageradial: Avoid creating color stops with an offset > 1Timm Bäder2020-09-191-1/+1
| |
| * scrolledwindow: Ignore captured motion events if no child is setTimm Bäder2020-09-191-0/+3
| | | | | | | | Fixes #3173
| * Inspector: Show radial gradient node infoTimm Bäder2020-09-181-1/+42
| |
| * css: switch to h/vradiusMatthias Clasen2020-09-181-22/+14
| |
| * snapshot: switch to h/vradiusMatthias Clasen2020-09-182-12/+12
| |
| * css: Use snapshot api for radial gradientsMatthias Clasen2020-09-181-37/+30
| |
| * snapshot: Add api for radial gradientsMatthias Clasen2020-09-182-0/+96
| | | | | | | | These are the equivalents of the linear gradient apis.
| * gsk: Add a radial gradient nodeMatthias Clasen2020-09-181-0/+13
| | | | | | | | | | | | Only a fallback implementation for now. Fixes #2262
* | Merge branch 'wip/fontchooser-language-filtering' into 'master'Matthias Clasen2020-09-193-9/+378
|\ \ | | | | | | | | | | | | fontchooser: add language filtering See merge request GNOME/gtk!2551
| * | fontchooser: Remove signal handlers in disposewip/fontchooser-language-filteringMatthias Clasen2020-09-191-0/+3
| | | | | | | | | | | | | | | Avoid ordering issues in dispose by disconnecting the rows_changed_cb handler first thing.
| * | fontchooser: Don't show "No fonts" prematurelyMatthias Clasen2020-09-192-1/+3
| | | | | | | | | | | | | | | Don't switch to the empty page while we are still busy filtering. Fonts might yet appear.
| * | fontchooser: Use filter language for sample textMatthias Clasen2020-09-191-0/+7
| | | | | | | | | | | | | | | | | | When you are asking to only see fonts that support a given language, you probably want to see the sample text for that language too.
| * | fontchooser: Add user filteringMatthias Clasen2020-09-192-8/+348
| | | | | | | | | | | | | | | Add a popover that has filtering options. As a start, allow filtering by monospace and by language coverage.
| * | Improve language namesMatthias Clasen2020-09-191-0/+17
| | | | | | | | | | | | | | | Shorten a few of the names we pick up by removing parentheses that make them excessively long.
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-191-4/+4
|\ \ \ | |/ / |/| | | | | | | | win32: Fix compiler warnings See merge request GNOME/gtk!2596
| * | win32: Fix compiler warningsMatthias Clasen2020-09-191-4/+4
| |/ | | | | | | | | The compiler informs me that GetLastError() return a DWORD, so use %lx to print it.
* | fontchooser: Determine sample text intelligentlyMatthias Clasen2020-09-181-1/+129
|/ | | | | | | | | Look at the languages supported by a font, and pick a suitable sample text from the pango list of sample texts. We can only implement this on platforms using fontconfig, since it relies on pangofc apis. This bumps the pango dependency to 1.47.1.
* language-names: Do not g_free() a GErrorPeter Bloomfield2020-09-171-7/+11
| | | | | It's NULL anyway, so freeing GError with g_free() when it's allocated with GSlice never actually happens, but it just looks bad.
* textview: Properly delete anchored childrenMatthias Clasen2020-09-161-2/+2
| | | | | | | | | | | When we remove anchors with widgets from the text buffer, we used to call gtk_widget_destroy(), which indirectly called gtk_container_remove() which cleared the child properly. When gtk_widget_destroy() was removed, we replaced the calls with gtk_widget_unparent(), but that is not enough. Explicitly call gtk_text_view_remove() instead - we know the parent is a text view.
* textview: Make clickable tags work againMatthias Clasen2020-09-161-2/+2
| | | | | We were claiming the clicks too eagerly, preventing clickable links, e.g. in GtkAboutDialog, from working.
* Plug a memory leak in an error caseMatthias Clasen2020-09-161-0/+2
| | | | | | | gtk_show_uri() not freeing the error after showing it to the user. Pointed out by Peter Bloomfield in #3166
* stack: Add gtk_stack_add_childstack-add-childMatthias Clasen2020-09-152-0/+22
| | | | | | | The name of children is not essential, so add a way to add children without providing one. Fixes: #3165
* Merge branch 'wip/jimmac/dnd-green' into 'master'Matthias Clasen2020-09-151-1/+1
|\ | | | | | | | | | | | | Adwaita: update tango color for DND Closes #3158 See merge request GNOME/gtk!2581
| * Adwaita: update tango color for DNDwip/jimmac/dnd-greenJakub Steiner2020-09-151-1/+1
| | | | | | | | Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3158
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-151-8/+28
|\ \ | | | | | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2582
| * | Document some API as widget-implementation onlyMatthias Clasen2020-09-141-8/+28
| |/ | | | | | | | | | | Using gtk_widget_insert_before on a complex container is a *bad* idea; it will mess up the containers bookkeeping of its children and can easily lead to failure and crashes.
* | inspector: Remove unsued functionTimm Bäder2020-09-151-34/+0
| |
* | listbox: Activate single-click rows if n_press >= 1Timm Bäder2020-09-151-2/+2
| | | | | | | | | | | | Quickly clicking rows should always activate the row if single-click-activation is enabled. Before, only the first click (n_press == 1) would activate the row.
* | popover: Only destroy arrow render node if position changedTimm Bäder2020-09-151-2/+4
| |
* | filechooserwidget: Plug a memory leakTimm Bäder2020-09-151-1/+4
| | | | | | | | g_list_store_append refs the file
* | emojichooser: Fix typo in css classTimm Bäder2020-09-151-1/+1
| |
* | listbox: Add preconditions to remove()Timm Bäder2020-09-151-3/+7
| |
* | inspector: Fix huge listbox rowsTimm Bäder2020-09-153-168/+3
|/ | | | This is handled by .rich-list
* Annotate the expression array as "nullable"issue-2923Emmanuele Bassi2020-09-141-1/+1
| | | | | | | | | | | | | | While it's a bit dubious whether array+length annotations should be marked as "nullable", we do this elsewhere in the API, so might as well be consistent. In practice, the array argument is only ever allowed to be NULL iff the length argument is 0; annotations are static, so if somebody decides to pass a NULL argument with a non-zero value, they will get a run time critical error, instead of a compile time one, which is somewhat counter to the point of annotating the API in the first place. Fixes: #2923
* Merge branch 'wip/jimmac/navlist-expander-whitespace' into 'master'Matthias Clasen2020-09-141-0/+7
|\ | | | | | | | | Adwaita: navigation list expander whitespace See merge request GNOME/gtk!2575
| * Adwaita: navigation list expander whitespaceJakub Steiner2020-09-141-0/+7
| | | | | | | | - Address https://gitlab.gnome.org/GNOME/gtk/-/issues/3138#note_910476
* | Adwaita: whitespace for the gridJakub Steiner2020-09-141-10/+15
|/ | | | | | | - separate labels - 12px margins around cells Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3164
* Merge branch 'wip/jimmac/natigation-sidebar-whitespace' into 'master'Matthias Clasen2020-09-141-25/+28
|\ | | | | | | | | | | | | Wip/jimmac/natigation sidebar whitespace Closes #3138 See merge request GNOME/gtk!2572
| * Adwaita: navigation-sidebar spacingJakub Steiner2020-09-141-25/+28
| | | | | | | | | | | | - split from placessidebar as it's more generic Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3138
* | assets: adjust gesture graphicJakub Steiner2020-09-144-23/+29
|/ | | | | | - quick, somebody on the internet is offended! Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3074
* inspector: Use gdk_frame_clock_get_fpsMatthias Clasen2020-09-131-31/+1
|
* main: Reshuffle debug codeMatthias Clasen2020-09-131-82/+82
| | | | | Mode all the debug flags related code together, to make gtkmain.c a bit less messy.
* Drop support for GTK_TEST_TOUCHSCREENMatthias Clasen2020-09-132-18/+2
| | | | | This environment variable is undocumented, and you can just use GTK_DEBUG=touchscreen insead.
* Move version-related functions to gtkversion.cMatthias Clasen2020-09-135-174/+204
| | | | | This is just an internal cleanup, to make gtkmain.c a bit less messy.
* Clean up debug flags code a bitMatthias Clasen2020-09-133-13/+14
| | | | Use the GtkDebugFlags enum, since we have it.
* iconview: Small doc additionsMatthias Clasen2020-09-131-2/+6
|
* Drop gtk_render_slider from headersMatthias Clasen2020-09-131-8/+0
| | | | The function does not exist.