summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* gtktreeview: Fix child access after TEST_EXPAND_ROWThomas Holder2020-09-231-2/+2
| | | | | | | | In gtk_tree_view_build_tree with recurse=TRUE, the TEST_EXPAND_ROW signal might invalidate the child iterator. Getting the iterator after the signal (instead of before) fixes the issue. Fixes https://gitlab.com/inkscape/inkscape/-/issues/1879
* Adwaita: Don't restrict columnview editablelabel style to .data-tablenana-42020-09-221-10/+10
| | | | This should be available without .data-table.
* Adwaita: Improve columnview stylingnana-42020-09-221-0/+27
| | | | | | | - Move padding from parent row to child cell. - Align horizontal sizing of cell with header button. - Properly support GtkColumnView:show-column-separators. - Change cell height with and without .data-table.
* Adwaita: Fix separator color for listsnana-42020-09-221-3/+3
|
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-216-33/+71
|\ | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2607
| * inspector: Make switches go back to normal sizeMatthias Clasen2020-09-211-10/+10
| |
| * colorbutton: Fix handling of transient parentsMatthias Clasen2020-09-211-7/+30
| | | | | | | | | | | | When we create the dialog before the button has been rooted, we need to update its transient parent when that happens.
| * filechooser: Fix gtk_file_chooser_set_choiceMatthias Clasen2020-09-201-10/+13
| | | | | | | | This broke when it was ported to GtkDropDown.
| * fontchooser: Make sure the tweak button is updatedMatthias Clasen2020-09-201-0/+2
| | | | | | | | | | | | | | This was showing up as tweak buttons being visible when they should not. The code probably relied on widgets being hidden by default (as they were in GTK3).
| * fontchooser: Handle families without facesMatthias Clasen2020-09-201-4/+10
| | | | | | | | | | | | This might seem useless, but I've met fonts where pango_font_family_get_face (family, NULL) return NULL. Handle it without criticals.
| * docs: Improve gtk_widget_set_font_map docsMatthias Clasen2020-09-201-2/+6
| |
* | Merge branch 'fix-hover-tracking' into 'master'Timm Bäder2020-09-211-2/+4
|\ \ | |/ |/| | | | | | | | | main: Update pointer focus state for button releases Closes #3172 See merge request GNOME/gtk!2601
| * 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
* | Merge branch 'kill-widget-new' into 'master'Matthias Clasen2020-09-192-37/+0
|\ \ | | | | | | | | | | | | Drop gtk_widget_new See merge request GNOME/gtk!2603
| * | Drop gtk_widget_newMatthias Clasen2020-09-192-37/+0
| | | | | | | | | | | | | | | An abstract type should not have a constructor. If you want to be generic, just use g_object_new.
* | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-198-440/+309
|\ \ \ | |/ / |/| | | | | | | | Matthiasc/for master See merge request GNOME/gtk!2602
| * | shortcutswindow: Drop the Private structMatthias Clasen2020-09-192-148/+119
| | |
| * | revealer: Drop the Private structMatthias Clasen2020-09-191-126/+92
| | |
| * | magnifier: Drop the Private structMatthias Clasen2020-09-192-101/+60
| | |
| * | CosmeticMatthias Clasen2020-09-191-1/+0
| | |
| * | colorscale: Drop the Private structMatthias Clasen2020-09-192-64/+38
| |/
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-09-191-61/+176
|\ \ | |/ | | | | | | textbuffer: Redo insert markup a little bit See merge request GNOME/gtk!2600
| * 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 'wayland-backend-api-cleanup' into 'master'Matthias Clasen2020-09-192-16/+16
|\ \ | | | | | | | | | | | | wayland: Change backend api to use GdkToplevel See merge request GNOME/gtk!2598
| * | wayland: Change backend api to use GdkToplevelMatthias Clasen2020-09-192-16/+16
| |/ | | | | | | | | | | | | | | Most of the surface api we have in the Wayland backend only makes sense for toplevels, so reshuffle things to take a GdkToplevel instead of a GdkSurface. Update all callers and the docs.
* | passwordentry: Add an ::activate signalpassword-entry-activateMatthias Clasen2020-09-191-0/+23
| | | | | | | | | | | | | | GtkSearchEntry has one, no reason why GtkPasswordEntry should not as well. Fixes: #3174
* | passwordentry: Drop the Private structMatthias Clasen2020-09-192-109/+81
|/
* 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