commit 0fa7ce30dca3d3c339ce54aec1969313269fc53d Author: Matthias Clasen Date: Fri Mar 31 14:05:31 2017 -0400 3.90.0 NEWS | 30 ++++++++++++++++++++++++++++++ configure.ac | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) commit 99ae996a71ed66bc1886d110f5c0cda5617cef6f Author: Matthias Clasen Date: Fri Mar 31 13:58:18 2017 -0400 reftests: Remove a test using -gtk-gradient No longer available. testsuite/reftests/Makefile.am | 3 --- testsuite/reftests/border-image-gradient.css | 23 ----------------------- testsuite/reftests/border-image-gradient.ref.ui | 21 --------------------- testsuite/reftests/border-image-gradient.ui | 21 --------------------- 4 files changed, 68 deletions(-) commit 8ced9f8fd6f724b3fd2108810cf7c23214917c02 Author: Matthias Clasen Date: Fri Mar 31 13:55:21 2017 -0400 a11y tests: Update test results Most of the changes here are due to visibility. testsuite/a11y/about.txt | 124 ++++++++++++++++++++++++------------------- testsuite/a11y/actionbar.txt | 10 ++-- testsuite/a11y/assistant.txt | 2 +- testsuite/a11y/combos.txt | 32 +++++------ testsuite/a11y/entries.txt | 23 ++++---- testsuite/a11y/label.txt | 6 +-- testsuite/a11y/mnemonic.txt | 9 ++-- testsuite/a11y/paned.txt | 10 ++-- testsuite/a11y/pickers.txt | 25 +++------ 9 files changed, 122 insertions(+), 119 deletions(-) commit 0f4a31edae87827ae84597751e7e098fab1a8833 Author: Matthias Clasen Date: Fri Mar 31 12:51:40 2017 -0400 css style tests: Update expected results for gradient tests This is the same as the previous commit. testsuite/css/style/gradient.nodes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 52b7a96beccb7e7c9481af71d3c5edf02c4b67f4 Author: Matthias Clasen Date: Fri Mar 31 12:49:35 2017 -0400 css parser tests: Fix radial gradient test results This changed in commit 2a5a94b2606ffae08fce634e61c533830f54c3ec. testsuite/css/parser/radial.ref.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 19f6df0c5ef9f7d38787e5ab1b2dbb74b2b3cbaf Author: Matthias Clasen Date: Fri Mar 31 12:45:19 2017 -0400 css parser tests: Fix up the pseudo class test We don't recognize non-standard names anymore. testsuite/css/parser/Makefile.am | 1 - testsuite/css/parser/pseudo-classes-known.css | 16 ---------------- testsuite/css/parser/pseudo-classes-known.errors | 4 ---- testsuite/css/parser/pseudo-classes-known.ref.css | 16 ---------------- 4 files changed, 37 deletions(-) commit 55a1587f550c2fac9bf2dd4a9e42e3e69bbb29aa Author: Matthias Clasen Date: Fri Mar 31 12:39:22 2017 -0400 css parser tests: Update border image test results We lost the ability to dump some images. testsuite/css/parser/declarations-valid-22.ref.css | 2 +- testsuite/css/parser/declarations-valid-23.ref.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 7d7b45cac050395a4cf7aaada0186a36db81ab12 Author: Matthias Clasen Date: Fri Mar 31 12:36:33 2017 -0400 css parser tests: Drop tests for -gtk-gradient No longer needed. testsuite/css/parser/Makefile.am | 6 ------ testsuite/css/parser/declarations-valid-19.css | 3 --- testsuite/css/parser/declarations-valid-19.ref.css | 3 --- testsuite/css/parser/declarations-valid-20.css | 5 ----- testsuite/css/parser/declarations-valid-20.ref.css | 3 --- testsuite/css/parser/declarations-valid-21.css | 6 ------ testsuite/css/parser/declarations-valid-21.ref.css | 3 --- 7 files changed, 29 deletions(-) commit 7f08336108e8409aa6d92ccab4f57850324e1656 Author: Matthias Clasen Date: Fri Mar 31 12:16:53 2017 -0400 css parser tests: Update background-image test results We lost the ability to dump some kinds of images. testsuite/css/parser/background-image.ref.css | 2 +- .../css/parser/background-shorthand-single.ref.css | 522 ++++++------- testsuite/css/parser/background-shorthand.ref.css | 856 ++++++++++----------- 3 files changed, 690 insertions(+), 690 deletions(-) commit 215f1b9e966653bb87a3b0ea500d287ef9349d70 Author: Matthias Clasen Date: Fri Mar 31 12:14:33 2017 -0400 css parser tests: Fix integer test results Many of the deprecation have been removed here. testsuite/css/parser/integer.errors | 16 ++++++++-------- testsuite/css/parser/integer.ref.css | 32 -------------------------------- 2 files changed, 8 insertions(+), 40 deletions(-) commit b2f90e0e3bc93bae4a0b6d99b7dac45411fee76e Author: Matthias Clasen Date: Fri Mar 31 12:06:59 2017 -0400 css parser tests: Fix background-blend-mode test The css spec calls it 'saturation', not 'saturate'. testsuite/css/parser/background-blend-mode.css | 2 +- testsuite/css/parser/background-blend-mode.ref.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 60982265fa432d97b3ae2fac8494b47d8c81553c Author: Matthias Clasen Date: Fri Mar 31 12:05:31 2017 -0400 css parser: Fix names for blend modes When the blend modes were ported to use gsk defines, some dashes were accidentally turned into underscores. It also turns out that we were expecting 'saturate' instead of 'saturation' as per the css spec. Fix that as well. gtk/gtkcssenumvalue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit ef0956f8100e6154a66e5108f22c91cd548a4d61 Author: Matthias Clasen Date: Fri Mar 31 11:25:43 2017 -0400 css tests: Update progressbar test results This was a documented change that has not been reflected in the tests yet. testsuite/css/nodes/progressbar.nodes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bdc607bbd9dcfa4a64442322a6a6027651d4a73c Author: Matthias Clasen Date: Fri Mar 31 11:19:46 2017 -0400 css tests: Update entry test results Just visibility changes here. testsuite/css/nodes/entries.nodes | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit ca0a291e5f438631133430601df43b74fa9fc3a6 Author: Matthias Clasen Date: Fri Mar 31 11:17:39 2017 -0400 css nodes: Update the combobox test results Some changes in the details here; we removed an old widget name. testsuite/css/nodes/combobox.nodes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 0934052618dea55ae7361eb8816484edac350937 Author: Matthias Clasen Date: Fri Mar 31 11:04:18 2017 -0400 css tests: Update the GtkSwitch node tests The node hierarchy for GtkSwitch has changed. testsuite/css/nodes/buttons.nodes | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 95d2895a050cb0d015009239ac9d98fd60cc6295 Author: Matthias Clasen Date: Fri Mar 31 11:03:49 2017 -0400 switch: Update css docs to reflect current reality This should have been done when the hierarchy was changed. gtk/gtkswitch.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 9bf610772266c06afd2269b7a9ebe89c5904ab3e Author: Timm Bäder Date: Fri Mar 31 09:54:43 2017 +0200 infobar: Remove unused defines gtk/gtkinfobar.c | 5 ----- 1 file changed, 5 deletions(-) commit 4dd8d371912e907aac8c58be90599a22fee45d38 Author: Timm Bäder Date: Fri Feb 10 21:50:41 2017 +0100 widgetfocus: Use the same function to compare widgets ... in horizontal/vertical direction. gtk/gtkwidgetfocus.c | 99 ++++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 49 deletions(-) commit c9fc201f77eb3038cde0e5dc30db920d4c1b059d Author: Timm Bäder Date: Fri Feb 10 21:21:38 2017 +0100 Implement tab/up-down/left-right focus sorting for widgets basically do what GtkContainer already did. gtk/Makefile.am | 1 + gtk/gtkwidget.c | 37 ++-- gtk/gtkwidgetfocus.c | 489 +++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtkwidgetprivate.h | 7 + 4 files changed, 510 insertions(+), 24 deletions(-) commit 6e9d8577147de7856e7b937cb633088db2193164 Author: Timm Bäder Date: Fri Feb 10 16:58:17 2017 +0100 Widget: Shuffle focus code around gtk/gtkwidget.c | 55 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 26 deletions(-) commit 9b70d9897d52fc5612c0059e088e8ad6e1cfe8e4 Author: Timm Bäder Date: Thu Feb 9 17:59:24 2017 +0100 tests: Add widget focus test case Shows an example of a widget that directly inherits from GtkWidget and has multiple focusable children. tests/Makefile.am | 4 ++ tests/testwidgetfocus.c | 171 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+) commit 1a7cbddbd4e98e4641e690035013abbfaec130b0 Author: Timm Bäder Date: Wed Feb 8 18:31:12 2017 +0100 statusbar: Remove margins in ui file Widgets themselves shouldn't have margins assigned. gtk/ui/gtkstatusbar.ui | 4 ---- 1 file changed, 4 deletions(-) commit 0153147ca2ca98588a1f4fb087bc987db9c0f7f5 Author: Timm Bäder Date: Wed Feb 8 15:50:30 2017 +0100 widget: Allow focusing widgets with non-container parent Especially if said parent also has can-focus set to FALSE, which is a special-case we had before for GtkContainer instances. gtk/gtkwidget.c | 141 +++++++++++++++++++++++++++++++++----------------------- 1 file changed, 83 insertions(+), 58 deletions(-) commit 0b48bb23b23b877832a85efdc35cd02f7992ec29 Author: Timm Bäder Date: Wed Feb 8 15:40:06 2017 +0100 label: Fix focus implementation Don't return TRUE if we didn't actually focus anything. gtk/gtklabel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 1affd425a190541a74cffc67e796b153ae126bf5 Author: Timm Bäder Date: Wed Feb 8 14:25:30 2017 +0100 window: Simplify _set_focus gtk/gtkwindow.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) commit cc05fc574c44f8446a07efc86d832cfb5e3773e3 Author: Timm Bäder Date: Wed Feb 8 14:13:23 2017 +0100 window: Remove _gtk_window_set_is_toplevel All GtkWindow instances are toplevels. gtk/gtkwidget.c | 8 +----- gtk/gtkwindow.c | 72 -------------------------------------------------- gtk/gtkwindowprivate.h | 3 --- 3 files changed, 1 insertion(+), 82 deletions(-) commit 270d957380aabab7f2c054fb82f87fa0f339fc9a Author: Timm Bäder Date: Wed Feb 8 14:05:01 2017 +0100 window: Fold update_has_focus in to set_is_active We're now only ever setting has_focus to the same value we set is_active to, so also remove that field from the private struct. gtk/gtkwindow.c | 51 +++++++++++++++++++-------------------------------- 1 file changed, 19 insertions(+), 32 deletions(-) commit 0ce9f26dc543655761166686275b3da3b2f44174 Author: Timm Bäder Date: Wed Feb 8 13:55:11 2017 +0100 window: Remove has-toplevel-focus property Since embedded toplevels don't exist anymore, :has-toplevel-focus is equivalent to :active. docs/reference/gtk/gtk4-sections.txt | 1 - gtk/a11y/gtkaccessibility.c | 2 +- gtk/a11y/gtkwindowaccessible.c | 2 +- gtk/gtkwindow.c | 66 +----------------------------------- gtk/gtkwindow.h | 2 -- gtk/gtkwindowprivate.h | 2 -- 6 files changed, 3 insertions(+), 72 deletions(-) commit ebdbb6873ab054febb232bffed407dd93d1c3703 Author: Timm Bäder Date: Wed Feb 8 13:45:51 2017 +0100 window: Remove check_resize special case for embedded toplevels Those don't exist anymore. gtk/gtkwindow.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 49bbf67195765a06c975a8f7f2c2d4ae60911d58 Author: Timm Bäder Date: Wed Feb 8 13:43:07 2017 +0100 window: Remove gtk_quark_embedded Unused. gtk/gtkwindow.c | 2 -- 1 file changed, 2 deletions(-) commit 0d0cb6e192714f4dd86a30a34a5bf24a62d497ca Author: Timm Bäder Date: Wed Feb 8 13:35:23 2017 +0100 widget: Emit ::focus regardless of container-ness and can-focus gtk/gtkwidget.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit 885bcd9fe4b6b4ecb003570ea0520cf42ec737a9 Author: Timm Bäder Date: Wed Feb 8 10:02:47 2017 +0100 container: Remove focus_child pointer Use GtkWidget's instead. gtk/gtkcontainer.c | 36 ++++++------------------------------ gtk/gtkwidget.c | 3 +++ 2 files changed, 9 insertions(+), 30 deletions(-) commit 64544968e9421fb79f8ad4ffa3b795630ecfa5e5 Author: Timm Bäder Date: Wed Feb 8 09:26:40 2017 +0100 widget: Also reset focus on non-container widgets gtk/gtkwidget.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) commit 6353433f0ef40cfb3c5e5dcf5a5935e4e215c9f8 Author: Timm Bäder Date: Wed Feb 8 09:14:20 2017 +0100 Make gtk_container_set_focus_child private docs/reference/gtk/gtk4-sections.txt | 1 - gtk/gtkcontainer.h | 4 ---- gtk/gtkcontainerprivate.h | 3 +++ 3 files changed, 3 insertions(+), 5 deletions(-) commit 0d480a3eb03d0c98e9e80a8eb5b6f11dba04c2c6 Author: Timm Bäder Date: Wed Feb 8 09:07:18 2017 +0100 Remove gtk_container_get_focus_child docs/reference/gtk/gtk4-sections.txt | 1 - gtk/gtkcontainer.c | 22 ---------------------- gtk/gtkcontainer.h | 3 --- 3 files changed, 26 deletions(-) commit 43cdeee3c4a5486664e68394d08469c5a39770a3 Author: Timm Bäder Date: Wed Feb 8 09:00:29 2017 +0100 widget: Save pointer to focus child Do the same thing GtkContainer does. gtk/gtkcontainer.c | 9 ++++----- gtk/gtkexpander.c | 4 ++-- gtk/gtkflowbox.c | 4 ++-- gtk/gtklistbox.c | 4 ++-- gtk/gtknotebook.c | 7 ++----- gtk/gtkpaned.c | 8 +++----- gtk/gtkpopover.c | 2 +- gtk/gtkscrolledwindow.c | 2 +- gtk/gtktextview.c | 5 +---- gtk/gtktoolbar.c | 7 +++---- gtk/gtktreeview.c | 5 ++--- gtk/gtkwidget.c | 28 ++++++++++++++++++---------- gtk/gtkwidgetprivate.h | 4 ++++ gtk/gtkwindow.c | 8 ++++---- 14 files changed, 49 insertions(+), 48 deletions(-) commit 2bab2048f9c44a11b8bc5328abbe63b8c3cb084c Author: Timm Bäder Date: Wed Mar 29 19:26:18 2017 +0200 cssimageicontheme: Cache size + texture gtk/gtkcssimageicontheme.c | 77 ++++++++++++++++++++++++--------------- gtk/gtkcssimageiconthemeprivate.h | 3 ++ 2 files changed, 50 insertions(+), 30 deletions(-) commit d8f78d3a326c50ccb0cf1edc145890a44e8d58bd Author: Timm Bäder Date: Wed Mar 29 18:45:51 2017 +0200 glrenderer: Reuse the GArray for render items gsk/gskglrenderer.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 67e7f44654d7952e9cd0dc70f7df6acbbbb741ff Author: Timm Bäder Date: Fri Jan 6 23:03:49 2017 +0100 glrenderer: Add render items for child nodes gsk/gskglrenderer.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) commit fbada8e7583f0cc21a68d60c16f7af0468d24b33 Author: Timm Bäder Date: Fri Jan 6 20:53:12 2017 +0100 glrenderer: Handle color nodes gsk/gskglrenderer.c | 92 +++++++++++++++++++++++++++++++++------- gsk/resources/glsl/color.fs.glsl | 5 +++ gsk/resources/glsl/color.vs.glsl | 6 +++ 3 files changed, 88 insertions(+), 15 deletions(-) commit a33e90a02944cee362c32022b1358b06929cfda1 Author: Timm Bäder Date: Fri Jan 6 20:18:35 2017 +0100 glrenderer: Store uniform locations per program gsk/gskglrenderer.c | 134 +++++++++++++++++++++++++++++++++------------------- 1 file changed, 86 insertions(+), 48 deletions(-) commit 8f2d0bc5a3e8d163f01b2371012d515f78b496c0 Author: Timm Bäder Date: Sun Mar 26 12:45:50 2017 +0200 widget: Fix checks in gtk_widget_snapshot() If the widget isn't drawable anyway, just return; If the widget needs an allocate, print a warning, since it indicates a problem in the widget workflow (e.g. forgot to size_allocate a child widget). This maches the previous checks in gtk_widget_draw (with the same problems). gtk/gtkwidget.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit aa9da1fe1fbd5d1ba58a91abda7bf358ed1be257 Author: Timm Bäder Date: Sun Mar 26 12:42:07 2017 +0200 filechooserbutton: Hide the combobox by default gtk/gtkfilechooserbutton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0fa2fee01a253ca95edaebe4f916a56cf134618b Author: Timm Bäder Date: Sat Mar 25 21:19:44 2017 +0100 recentchooserwidget: Inherit from GtkWidget gtk/gtkrecentchooserdialog.c | 2 +- gtk/gtkrecentchooserwidget.c | 55 +++++++++++++++++++++++++++++++++++++++----- gtk/gtkrecentchooserwidget.h | 6 ++--- 3 files changed, 53 insertions(+), 10 deletions(-) commit cf80a03f91586bc12236b0e5d6704b425f61382e Author: Timm Bäder Date: Sat Mar 25 21:10:27 2017 +0100 appchooserwidget: Inherit from GtkWidget gtk/gtkappchooserdialog.c | 1 - gtk/gtkappchooserwidget.c | 60 ++++++++++++++++++++++++++++++++++++++++--- gtk/gtkappchooserwidget.h | 6 ++--- gtk/ui/gtkappchooserwidget.ui | 6 +---- 4 files changed, 61 insertions(+), 12 deletions(-) commit fc22543b4136e393227228badaacf29a94773158 Author: Timm Bäder Date: Sat Mar 25 20:49:00 2017 +0100 fontchooserwidget: Inherit from GtkWidget gtk/gtkfontchooserwidget.c | 62 +++++++++++++++++++++++++++++++++++++++++- gtk/gtkfontchooserwidget.h | 6 ++-- gtk/ui/gtkfontchooserdialog.ui | 3 -- gtk/ui/gtkfontchooserwidget.ui | 7 ++--- 4 files changed, 66 insertions(+), 12 deletions(-) commit 11c599a1b5454991b569dd9913eaca933e5a49e0 Author: Timm Bäder Date: Sat Mar 25 20:43:28 2017 +0100 fontchooserwidget: Remove unused defines gtk/gtkfontchooserwidget.c | 10 ---------- 1 file changed, 10 deletions(-) commit 806c4f7d2f669184432081f11c8d1b16bdcecd62 Author: Timm Bäder Date: Sat Mar 25 20:36:10 2017 +0100 filechooserwidget: Inherit from GtkWidget gtk/gtkfilechooserwidget.c | 53 +++- gtk/gtkfilechooserwidget.h | 4 +- gtk/ui/gtkfilechooserdialog.ui | 1 - gtk/ui/gtkfilechooserwidget.ui | 540 +++++++++++++++++++++-------------------- 4 files changed, 326 insertions(+), 272 deletions(-) commit 3c0da77849bc9691591dbf5f4f9e6c81aebf9160 Author: Timm Bäder Date: Sat Mar 25 17:26:37 2017 +0100 Remove the Raleigh theme It's been broken for ages. gtk/Makefile.am | 7 +- gtk/theme/Raleigh/gtk-default.css | 884 -------------------------------------- 2 files changed, 1 insertion(+), 890 deletions(-) commit 653b766e306d4e4c3297aef31103ddaf6bf90ec9 Author: Timm Bäder Date: Sat Mar 25 17:17:40 2017 +0100 widget: Add a GtkBuildable::add_child implementation Just call gtk_widget_set_parent in there. gtk/gtkwidget.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit cc5696b7104c121688b3f4e0457fc632d56b3391 Author: Timm Bäder Date: Sat Mar 25 14:33:14 2017 +0100 progressbar: Remove unused defines gtk/gtkprogressbar.c | 7 ------- 1 file changed, 7 deletions(-) commit fe1e53ad87d168ed02470a3c10ab7f58663eb398 Author: Ernestas Kulik Date: Thu Mar 30 22:29:57 2017 +0300 flowbox: don’t select when rubberbanding over nothing When rubberbanding over an empty area, everything is selected on gesture end, which is a bit counter-intuitive. https://bugzilla.gnome.org/show_bug.cgi?id=780735 gtk/gtkflowbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 1202082b9d5aa9b64a9d3f85f3fe6f9a070e77e6 Author: Christoph Reiter Date: Tue Mar 14 21:00:37 2017 +0100 osx: fix build https://bugzilla.gnome.org/show_bug.cgi?id=734946 gtk/gtk-launch.c | 4 ++-- gtk/gtkapplicationwindow.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 19ce6a8bc5a13cef322932ea302164127f355865 Author: Olivier Fourdan Date: Wed Feb 1 15:09:52 2017 +0100 gdkwindow: subsurface in gdk_window_get_parent() When the GtkWidget hierarchy does not match the GdkWindow hierarchy, the GtkWidget code may find a common ancestor that cannot be found while traversing the GdkWindow tree using gdk_window_get_parent(). This happens with for example on Wayland, a GtkPopover has another GtkPopover as parent, in this case, the GdkWindow parent is the root window, whereas the GtkWidget parent is the other GtkPopover. That confuses the gtk_widget_translate_coordinates() logic which will bail out in this case and won't return the translated coordinates. Make gdk_window_get_effective_parent() aware of subsurfaces and use the transient_for which represents the actual parent (whereas the parent might be pointing to the root window). Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=774148 gdk/gdkwindow.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 2761fae728138b28538c0c8a9fa74919129d7b75 Author: Matthias Clasen Date: Thu Mar 30 09:14:05 2017 -0400 Work around a wayland crash For some reason, we are seeing damage being NULL here. While that should never be the case, crashing on it is unkind and makes the Wayland experience unusable. gdk/wayland/gdkglcontext-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e70380a4ddc4f4f18f02c0f43d3d22c2f8eaf1ac Author: Matthias Clasen Date: Wed Mar 29 22:48:19 2017 -0400 Document GTK_INSPECTOR_RENDERER Also add GTK_INSPECTOR_DISPLAY to the docs at the same time. docs/reference/gtk/running.sgml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit e4b0bedb5da263d5d6c9050bb1c2416e1d1a62f5 Author: Christoph Reiter Date: Thu Mar 30 10:45:00 2017 +0200 gtk_widget_intersect: fix annotations https://bugzilla.gnome.org/show_bug.cgi?id=773228 gtk/gtkwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit d33878c5fe8b2e423a5490ee01d3f79d00f0790d Author: Daniel Boles Date: Mon Mar 27 22:13:32 2017 +0100 gskrendernodeimpl: Fix documentation argument type gsk/gskrendernodeimpl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 3d11edf1bc18a778d725f69bf388c43d8b333156 Author: Daniel Boles Date: Mon Mar 27 20:13:15 2017 +0100 GSK: Fix a bunch of warnings from the GIR scanner arising from conflicting argument names, missing annotations, etc. gsk/gskrenderer.c | 15 ++++++++++++++- gsk/gskrendernode.h | 2 +- gsk/gskrendernodeimpl.c | 15 +++++++++------ gsk/gskroundedrect.c | 10 +++++----- gsk/gskroundedrect.h | 2 +- 5 files changed, 30 insertions(+), 14 deletions(-) commit b00b7c3b0e852f1027875cd40aba8b406700dbac Author: Daniel Boles Date: Mon Mar 27 19:14:38 2017 +0100 TextView: Be const-correct when passing a pointer The TextIter is passed by pointer for efficiency. We neither need to modify it, nor should we leave it possible to accidentally do so. So, it should be passed as a pointer-to-const. gtk/gtktextview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c78f6c804ee12a3064c74717f8d20df1bf666d18 Author: Daniel Boles Date: Sun Mar 26 15:53:12 2017 +0100 TextView: Get line direction in more efficient way We do not need to go through the heavyweight process of constructing a TextLineDisplay just to get the direction out of it, when we can simply use TextIter API to get the text and then get its direction using Pango. Adapted from a patch by Mehdi Sadeghi for GtkSourceView: https://bugzilla.gnome.org/show_bug.cgi?id=779081#c20 gtk/gtktextview.c | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) commit 7be01e84c42c0b2d714b03d7095aa35dd5291fe3 Author: Daniel Boles Date: Sun Mar 26 15:50:57 2017 +0100 TextBuffer: Add missing transfer full annotations gtk/gtktextbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit adf4fa5d3f407d3b9aef317f9e3da01c77b1c446 Author: Piotr Drąg Date: Sat Mar 25 23:17:18 2017 +0100 Update Polish translation po-properties/pl.po | 604 ++++++++++++++++++++++++++-------------------------- po/pl.po | 198 ++++++++--------- 2 files changed, 401 insertions(+), 401 deletions(-) commit 876e99df361678a3ff7b38c02f966a67ae537f82 Author: Kjell Ahlstedt Date: Fri Mar 24 16:41:47 2017 +0100 printjob: Clarify array ownership in gtk_print_job_set_page_ranges() Add a documentation annotation saying that set_page_ranges transfers ownership of the GtkPageRange array. Add a g_free() call to fix a memory leak when set_page_ranges is used repeatedly. https://bugzilla.gnome.org/show_bug.cgi?id=780234 gtk/gtkprintjob.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 147e0512c54645eee5ea13370b67da4c2dc1682f Author: Matthias Clasen Date: Thu Mar 23 16:15:26 2017 +0000 Avoid more compiler warnings gtk/gtkrecentmanager.c | 2 +- gtk/gtkscalebutton.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 6963d9e2ee3fc9fb1dee4ded62f332c8dd878f51 Author: Matthias Clasen Date: Thu Mar 23 16:15:00 2017 +0000 Avoid unused variable warnings gdk/x11/gdkscreen-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e171f4930bcea3ba8c2de8327e408d842dcbe12d Author: Matthias Clasen Date: Thu Mar 23 15:13:33 2017 +0000 Avoid redefining GNU_SOURCE Gives a compiler warning with the wrong flags. tests/gtkgears.c | 1 - 1 file changed, 1 deletion(-) commit 41389ca98ccaf0b0356367d5377f2dc7699c217f Author: Matthias Clasen Date: Thu Mar 23 15:13:13 2017 +0000 Avoid some compiler warnings modules/printbackends/file/gtkprintbackendfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 04c6811c3da3a761d51c3e14380f2d8e15d18ebd Author: Marek Kasik Date: Wed Mar 26 12:29:46 2014 +0100 printing: Don't hang in gtk_enumerate_printers() Stop enumerating printers when all backends were removed. https://bugzilla.gnome.org/show_bug.cgi?id=686838 gtk/gtkprinter.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) commit 26262505f2e82c8d74dd1b1ca7e1e13f029e2b77 Author: Stas Solovey Date: Wed Mar 22 21:46:35 2017 +0000 Update Russian translation (cherry picked from commit a7f3fd12d5c4e866a1d8e05360a7052a756ee8bd) po-properties/ru.po | 542 +++++++++++++++++++++++++--------------------------- 1 file changed, 260 insertions(+), 282 deletions(-) commit e69b4dc3da4bf13c106858cf943eb793082f6186 Author: William Hua Date: Tue Mar 21 11:25:36 2017 -0400 mir: always emit a resize when creating windows gdk/mir/gdkmirwindowimpl.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) commit 87689b12fc00aa8884bad3c53417fc090b39d06a Author: Flo H Date: Tue Mar 21 18:38:39 2017 +0000 Update German translation po/de.po | 158 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 79 insertions(+), 79 deletions(-) commit ec2062498f96c0f78ddf4e0c05dd2176956d6791 Author: Timm Bäder Date: Tue Mar 21 19:03:27 2017 +0100 glcontext: Fix buffer age comparison The old code had a dead >=3 branch, causing flickering. gdk/wayland/gdkglcontext-wayland.c | 4 ++-- gdk/x11/gdkglcontext-x11.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit f4a24babd481471cd5c922144fc25c26c51976d3 Author: Timm Bäder Date: Tue Mar 21 16:06:13 2017 +0100 gdkdragsource: Ensure button >= 1 So the left shift later doesn't overflow. gtk/gtkdragsource.c | 2 ++ 1 file changed, 2 insertions(+) commit 1aa37687be0cbf841eedda7aff7223f9ece4ab2f Author: Timm Bäder Date: Tue Mar 21 14:40:21 2017 +0100 widget: Prepend style classes to list when parsing Since the later gtk_style_context_add_class doesn't care about the order of the style classes, we can as well just prepend style classes to the list and avoid the squared behavior when appending to a linked list. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 03336028099e036d6ed5a241540b20043a12aa2c Author: Timm Bäder Date: Tue Mar 21 11:15:03 2017 +0100 builderparser: Remove pointless TagType struct gtk/gtkbuilderparser.c | 38 +++++++++++++++++++------------------- gtk/gtkbuilderprivate.h | 14 +++++--------- 2 files changed, 24 insertions(+), 28 deletions(-) commit 13cf6a738fe6fcd1dfa840d982b84fd669633620 Author: Andika Triwidada Date: Tue Mar 21 12:50:54 2017 +0000 Update Indonesian translation po-properties/id.po | 389 ++++++++++++++++++++++++++-------------------------- 1 file changed, 194 insertions(+), 195 deletions(-) commit bb4aaa8bbfc78373fb5c341d0e4731585296630f Author: Daniel Boles Date: Tue Mar 21 00:06:50 2017 +0000 Scrollbar: grammar fix for previous commit gtk/gtkscrollbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 874b03e4fe62c711385255c147778a8db036fc48 Author: Daniel Boles Date: Mon Mar 20 23:54:57 2017 +0000 Scrollbar: Tweak intro docs a bit Explain where the adjustment comes from, clarify some of the wording about how its fields influence the scrollbar, and also note that the steppers may not be present, since they aren’t in our default themes. gtk/gtkscrollbar.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) commit 5c2f642ddde4f4f947c10c9b11448408910a2f76 Author: Daniel Boles Date: Fri Mar 10 20:37:27 2017 +0000 ScrolledWindow: Don’t check if child is Scrollable If the child added is not a Scrollable, it gets wrapped in a ViewPort – which is. So it is impossible to end up with a non-Scrollable child. Just check we have /any/ child where needed, which is semantically nicer https://bugzilla.gnome.org/show_bug.cgi?id=778853 gtk/gtkscrolledwindow.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit 52547054a55a7ddd4c0f62c170e37d77e0b09c7a Author: Daniel Boles Date: Mon Mar 20 23:20:26 2017 +0000 ScrolledWindow: Streamline/clarify the intro docs • intro: Clarify that external policy and/or adjustments can be used. • add(): Don’t waffle on about having to add a ViewPort since we handle that transparently for the user, so they can add() any widget. • Adjustment stuff: most of this was repeating the docs for Scrollbar, so just refer the user to that. Also, mention how policies NEVER and EXTERNAL interact with all this. https://bugzilla.gnome.org/show_bug.cgi?id=778853 gtk/gtkscrolledwindow.c | 50 +++++++++++++++++++------------------------------ 1 file changed, 19 insertions(+), 31 deletions(-) commit 7e38e3075e9c5d591a40b450dd1eac6c25c79c5d Author: Daniel Boles Date: Mon Mar 20 21:04:49 2017 +0000 Tooltip: Avoid redundant variable initialisations has_tooltip_widget was assigned twice in immediate succession. return_value is not used anywhere else in this function since commit 14a864c8b55dfe92f8957499f12a3f9303188a12 and does not need a default value anymore, so move it to the inner scope and don't init to NULL. gtk/gtktooltip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 12b7d30a2d390fa4755828b6dc3748695c52a365 Author: Timm Bäder Date: Mon Mar 20 19:56:22 2017 +0100 GdkWaylandWindow: Force window titles to valid utf8 Use the new g_utf8_make_valid in case the given title is not valid utf8. Also bump the glib requirement to 2.51.5. configure.ac | 4 ++-- gdk/wayland/gdkwindow-wayland.c | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 6 deletions(-) commit c371a86f545478a4e46867afd0a9c6cf0ffe963d Author: Timm Bäder Date: Mon Mar 20 17:20:12 2017 +0100 label: Properly calculate half the height Since we compare it to a double anyway, might as well divide by 2.0. gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 14a864c8b55dfe92f8957499f12a3f9303188a12 Author: Timm Bäder Date: Mon Mar 20 15:36:05 2017 +0100 tooltip: Remove unused assignment hide_tooltip gets overriden in any case 2 lines down, and return_value isn't used later in that function. The second assignment was introduced in ef1da5f6c2450fc5f7c7de4a17114cc7507a41ad, directly below the first assignment. gtk/gtktooltip.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit a3bada37fbefd84738622713ccd542a27de46b24 Author: Timm Bäder Date: Mon Mar 20 15:01:28 2017 +0100 css-editor: Remove unused if statement The static local is set to NULL and never set to anything else, so we never use it anyway. gtk/inspector/css-editor.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) commit 69ca360b59f49087a2fd9b604d82c6651579ee48 Author: Timm Bäder Date: Mon Mar 20 14:59:14 2017 +0100 window: Remove pointless ternary operator we're already checking for orientation == GTK_ORIENTATION_HORIZONTAL right before this line, so just pass GTK_ORIENTATION_VERTICAL. gtk/gtkwindow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 22b493a6ac5f789529b3d82401728788c28477f7 Author: Timm Bäder Date: Mon Mar 20 14:16:56 2017 +0100 box: Make sure center_req is initialized In case we have an invisible center widget, we never initialize it, but later still use it. gtk/gtkbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ae0dadf28afc98425c5bebebfb9a729f94cd7ba3 Author: Timm Bäder Date: Mon Mar 20 09:22:13 2017 +0100 progressbar: Remove useless if statement Both the if and the else block contained exactly the same code. gtk/gtkprogressbar.c | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) commit e307a35c33056dec559874829f4e0debd85a2bd0 Author: Alexander Larsson Date: Mon Mar 20 10:52:58 2017 +0100 gsk: Take scale factor into account when setting up the gl scissor gsk/gskglrenderer.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 9e12fc7853cfadc43fe0523a9502704335e8e079 Author: Alexander Larsson Date: Sun Mar 19 19:24:50 2017 +0100 gl renderer: Fix hidpi fallback rendering When allocating the surface, take scale into consideration. gsk/gskglrenderer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit a68685bb16729ab45d28557da5dccc2fc9ee558c Author: Fabio Tomat Date: Sun Mar 19 21:24:45 2017 +0000 Update Friulian translation po-properties/fur.po | 358 +++++++++++++++++++++++++++------------------------ 1 file changed, 187 insertions(+), 171 deletions(-) commit 58f3202e4ffebed1be1871e884925c18003fccf9 Author: Timm Bäder Date: Sun Mar 19 17:05:34 2017 +0100 notebook: Remove dead assignment gtk/gtknotebook.c | 1 - 1 file changed, 1 deletion(-) commit 6bbb9a1173f67808b118dcff035889bc2e888081 Author: Timm Bäder Date: Sun Mar 19 14:28:32 2017 +0100 GtkRecentManager: Remove superfluous local variable gtk/gtkrecentmanager.c | 2 -- 1 file changed, 2 deletions(-) commit 6637b20b4ced7e8ba5e555db673be801dcde57fb Author: Timm Bäder Date: Sun Mar 19 14:26:02 2017 +0100 GdkRenderer: Fix a compiler warning gsk/gskrenderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 60ed515be9ab822326665126aeb9b9ed9dea2e16 Author: Timm Bäder Date: Sun Mar 19 14:24:54 2017 +0100 GdkX11DeviceManager: Fix debugging output The 2 values added in 3.22 were missing from the source_names array. gdk/x11/gdkdevicemanager-xi2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c78451e140c4d046fe546c0fe07c6925b0086f31 Author: Timm Bäder Date: Sun Mar 19 14:24:02 2017 +0100 GdkMonitor: Use 1 as scale fallback value The same value we use in gtk_widget_get_scale_factor. gdk/gdkmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a2b72f89e24beabbf25205bae9961cbfa924e8f4 Author: Daniel Boles Date: Sat Mar 18 12:29:28 2017 +0000 css-overview: Fix inconsistent British English use docs/reference/gtk/css-overview.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 37b99ed67179162276196b8e0c3eac8cfbdede00 Author: Tim-Philipp Müller Date: Sat Mar 18 12:17:44 2017 +0000 vulkan: fix compilation gsk/gskrenderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c7c9a0ee51ae88099997fa9279a2cfdcc4da6dad Author: Timm Bäder Date: Sat Mar 18 07:13:13 2017 +0100 entrycompletion: Remove unnecessary NULL check completion really shouldn't be NULL at this point, especially since it gets dereferenced higher up in the function. gtk/gtkentrycompletion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 53f0c2626ef8aa95f8223c75c36474e3a047cd2e Author: Timm Bäder Date: Sat Mar 18 07:06:35 2017 +0100 calendar: Fix else branch indentations gtk/gtkcalendar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 56e809be9c0a7e7a81134d4f115435e2daec3f74 Author: Timm Bäder Date: Fri Mar 17 19:00:00 2017 +0100 GdkDrawingContext: Add missing break in switch statement gdk/gdkdrawingcontext.c | 1 + 1 file changed, 1 insertion(+) commit c3892874cb2933841307f42177b8da812f84f427 Author: Daniel Boles Date: Sat Mar 18 01:13:42 2017 +0000 css-overview: Fix+Explain color expr number ranges Last try, promise. They don’t all use 0 to 1. We should probably explain the effects too. Hopefully this manages that while not being too verbose docs/reference/gtk/css-overview.xml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) commit 3ec954a54aaf584ccb433f552abfa1ffe1f060c1 Author: Matthias Clasen Date: Fri Mar 17 19:56:33 2017 -0400 Avoid a critical warning in the filechooser portal This was showing up when cancelling a portal file chooser in recipes. gtk/gtkfilechoosernativeportal.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) commit e5ae946be36589e7b946f3a87f8e41127caa872e Author: Daniel Boles Date: Fri Mar 17 23:55:15 2017 +0000 css-overview: Elaborate how color expressions work docs/reference/gtk/css-overview.xml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit a69083c95efd88ce2796671d983c0fc35891fde5 Author: Daniel Boles Date: Fri Mar 17 23:25:13 2017 +0000 docs/css-overview: Fix color functions’ arg orders shade/alpha/mix() take colour(s) and a number that is the ratio by which to transform them. It was written here that these shall be passed in the order (number, colour). That was wrong: they must be passed in the order (colour[s], number) to work, and for the Inspector not to flag an error. docs/reference/gtk/css-overview.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5c948710a5ff4ad9efe3a2ab04f01c736442f1ad Author: Rūdolfs Mazurs Date: Fri Mar 17 23:03:08 2017 +0200 Update Latvian translation po-properties/lv.po | 13816 ++++++++++++++++++++++++-------------------------- po/lv.po | 2639 +++++----- 2 files changed, 8009 insertions(+), 8446 deletions(-) commit 158015be6cafb05c47659ebf0a9c18b2d6f1b5ab Author: Murray Cumming Date: Fri Mar 17 21:11:26 2017 +0100 docs: Remove mentions of gtk_init_with_args(). Because it has been removed: See commit 7e8eb3ddcd29ce9eecb14a56dbfeb0caf64dc772 docs/reference/gtk/gtk4-sections.txt | 1 - gdk/gdk.c | 2 +- gdk/gdkdisplaymanager.c | 2 +- gtk/gtkmain.c | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) commit c71c3954f4b343423492ea79bcab513978475e2d Author: Timm Bäder Date: Fri Mar 17 18:49:52 2017 +0100 headerbar: Fix size requisition variable mixup Happened when porting to gtk_widget_measure. gtk/gtkheaderbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 242368bdf6244bb3d636bec384233dbb33cba5d9 Author: Timm Bäder Date: Thu Mar 16 19:16:24 2017 +0100 GtkShaderBuilder Fix copy/paste error in precondition gtk_shader_builder_add_define should check both define_name and define_value for not-NULL and not-empty, but the second precondition check checks define_name again for not-empty-ness. gsk/gskshaderbuilder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1fe4b1387113ffcd38e1c72a65120ade7ab0955e Author: Alexander Larsson Date: Fri Mar 17 16:12:45 2017 +0100 Allow custom renderer for the inspector If you set GTK_INSPECTOR_RENDERER to the same type of values that GSK_RENDERER takes this can change the renderer used for the inspector. This is useful if you're debugging one renderer and don't want to affect the inspector. gsk/gskrenderer.c | 74 ++++++++++++++++++++++++++++++-------------------- gtk/inspector/window.c | 11 ++++++++ 2 files changed, 56 insertions(+), 29 deletions(-) commit b843efcb79fb2f2017a9af593dcad01d524ad9cb Author: Christoph Reiter Date: Tue Mar 14 20:53:09 2017 +0100 quartz: fix build for <10.12 The style mask type was changed from NSUInteger to NSWindowStyleMask. Use NSUInteger so it also works on older macOS. https://bugzilla.gnome.org/show_bug.cgi?id=780019 gdk/quartz/gdkwindow-quartz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 43a6180e0b3ad0e3c4c3bc193e7fe788b2345a0c Author: Stas Solovey Date: Tue Mar 14 19:11:47 2017 +0000 Update Russian translation po/ru.po | 2302 +++++++++++++++++++++++++++++--------------------------------- 1 file changed, 1086 insertions(+), 1216 deletions(-)