commit 5018e32cbe25ec76cb47980faef654a40ee56696 Author: Matthias Clasen Date: Thu Nov 19 15:32:32 2015 -0500 3.19.2 NEWS | 3 +++ configure.ac | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) commit 9f75c5445f1292d9d1be440d6af5b25e6c78ce3e Author: Matthias Clasen Date: Thu Nov 19 23:04:38 2015 -0500 cell renderer progress: Avoid warnings Use the right state when calling gtk_style_context_get_padding, to avoid warnings. gtk/gtkcellrendererprogress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9202bc244e9a392783755e698c1b5c02228c6f26 Author: Matthias Clasen Date: Thu Nov 19 21:55:29 2015 -0500 Fix make check For some reason, GtkFileChooserNative is causing the defaultvalue test to fail. I couldn't track this down quickly, so skip the type for now. testsuite/gtk/defaultvalue.c | 3 +++ 1 file changed, 3 insertions(+) commit 8f3ffe4d082063fb761626cdef527c2baf62f299 Author: Matthias Clasen Date: Thu Nov 19 19:56:19 2015 -0500 Work around g_test_dbus annoyance Without iterating a mainloop for a bit, g_test_dbus_down() will give us an error. testsuite/gtk/defaultvalue.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 4aceee71c5cfd321926186b2bc0fdda3335587ef Author: Matthias Clasen Date: Thu Nov 19 18:08:30 2015 -0500 stack switcher: Notify consistently Whether to notify a property change should not depend on whether the switcher is associated with a stack or not. gtk/gtkstackswitcher.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 530aa3cced1e64d68e13c00300c46536576aa747 Author: Matthias Clasen Date: Thu Nov 19 18:05:35 2015 -0500 shortcuts: Avoid excessive property notification Notifying needlessly causes unnecessary work, and causes our testsuite to fail. gtk/gtkshortcutsshortcut.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit c4f5fd111c5e6f8b9b92f029d357019430dafb6b Author: Carlos Garnacho Date: Fri Nov 20 00:07:36 2015 +0100 wayland: Ensure we have a drop-side GdkDragContext without pointer This GdkDragContext should be created even if we don't have pointer capabilities. Make it created on add_seat(), and only set the device on wl_seat.capabilities, so it can be set to either master pointer. https://bugzilla.gnome.org/show_bug.cgi?id=741066 gdk/wayland/gdkdevice-wayland.c | 11 +++++++---- gdk/wayland/gdkdnd-wayland.c | 5 +---- gdk/wayland/gdkprivate-wayland.h | 3 +-- 3 files changed, 9 insertions(+), 10 deletions(-) commit 26f9d6b1c18f020a6360ea3f971295200c426b28 Author: Carlos Garnacho Date: Thu Nov 19 20:33:03 2015 +0100 gtkdnd: Ensure we don't fold the drag icon into the cursor on wayland This is wrong by all accounts there, as we can do no tricks there to show a "drag failed" animation, which is performed by the compositor itself on wayland. gtk/gtkdnd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit ec65c6d1ce8a5387016851646342d2ecc6fd7bbb Author: Carlos Garnacho Date: Thu Nov 19 20:26:11 2015 +0100 wayland: Fix toplevel lookup before starting DnD We use the high-level gdk_device_get_window_at_position() to figure out the window, although this one actually tries to find out the current window under the device coordinates, which might well fall outside the window, so NULL is returned in those cases. Fix this by using the lower level _gdk_device_window_at_position() that will return the toplevel without further lookups, so is more desirable here. https://bugzilla.gnome.org/show_bug.cgi?id=758250 gdk/wayland/gdkdnd-wayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit e3012dc9b303ccc8b0301e7702b5cec0368da59a Author: Carlos Garnacho Date: Thu Nov 19 20:00:23 2015 +0100 gtkdnd: Use gdk_drag_begin_for_device() We've got the pointer at hand there, just pass that instead of figuring out from the client pointer. gtk/gtkdnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d221119d149b74fd2a998196f3719fb4779a3ac4 Author: Carlos Garnacho Date: Thu Nov 19 20:23:44 2015 +0100 wayland: Implement GdkDevice::window_at_position for touch This goes through its own master pointer, so look up the pointer emulating touch focus window and coordinates. gdk/wayland/gdkdevice-wayland.c | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) commit c405f810cdc8f1de7d60dde4f5e31ee81a88a382 Author: Carlos Garnacho Date: Thu Nov 19 20:06:07 2015 +0100 wayland: Disallow setting the cursor on the touch master pointer That "pointer" is not backed by anything in the windowing system, ignore cursor updates there. gdk/wayland/gdkdevice-wayland.c | 3 +++ 1 file changed, 3 insertions(+) commit a72974252f32e69d7cd5d14df40568c9457f7abd Author: Carlos Garnacho Date: Thu Nov 19 20:04:46 2015 +0100 wayland: Ensure we get the master pointer on GdkDeviceManager::get_client_pointer Now that we have multiple master pointers, this call may pick the wrong one. Instead, pick the GdkWaylandDeviceData from the first device, and pick the master pointer from there. gdk/wayland/gdkdevice-wayland.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) commit 04ecffa238fd5fbcb98eb40e7976f357ddb68305 Author: Carlos Garnacho Date: Thu Oct 8 16:41:35 2015 +0200 wayland: Separate touch pointer emulation into its own master pointer The common GDK code accounts for "pointer emulating" touch sequences to be synchronized with the pointer position by the windowing system. However on Wayland pointer and touch are completely independent, the backend attempts to implement pointer emulation, but doesn't account for the possible crossing events happening when the user switches from pointer to touch or the opposite. In order to fix this, and to ensure we don't have to interact with the master pointer (which backs the wl_pointer), separate the touch interface to have its own master pointer, and ensure crossing events are emitted on it, so the picture of an "emulated pointer" is complete above the backend. Inspired in a former patch by Jonny Lamb https://bugzilla.gnome.org/show_bug.cgi?id=750845 gdk/wayland/gdkdevice-wayland.c | 74 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) commit bb34db6d351862e3fb03377f60b9a884f1104683 Author: Christoph Reiter Date: Wed Nov 18 21:21:57 2015 +0100 gtkheaderbar: update the window buttons on ::hierarchy-changed instead of ::realize The window button setup depends on properties of the toplevel window. Instead of updating the setup on realize, do it when the toplevel changes. This makes sure that when a GtkHeaderBar is added to a window all the widgets are present and get_preferred_height() will return the height the widget will have when finally shown. This allows the logic in gtkwindow to select the right window size so that the content size will match the requested default size. https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkheaderbar.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit 308aec53c686eae69adbeaf5ca234a29cfd6eefa Author: Christoph Reiter Date: Wed Nov 18 19:17:01 2015 +0100 gtkwindow: apply CSD adjustments to the default size when used instead of when setting it Before the resulting window size would differ if the default size was set before adding a headerbar vs after. Now the saved state is again the actual requested size and it is adjusted at the time we request a window size. https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkwindow.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) commit 1080ffdf19fe49c803da0baa4047cce3c29815b6 Author: Olivier Fourdan Date: Wed Nov 4 11:24:36 2015 +0100 window: maximize on double click only if allowed GtkHeaderBar will not show the maximize button if the window in not of type normal or not resizeable. Use the same restriction for double-click actions as well. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757530 gtk/gtkwindow.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) commit 6a69c01e429a303b21f5a438466f257c2b4bc68a Author: Jonas Platte Date: Sun Nov 8 16:17:00 2015 +0000 Fix return annotations for GtkWindow Add nullable annotations for functions that may return NULL. https://bugzilla.gnome.org/show_bug.cgi?id=753520 gtk/gtkwindow.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) commit ce8b5b45869f24a7ddf1e3bd84d547aaffa475e4 Author: Phillip Wood Date: Mon Nov 16 12:14:05 2015 +0000 Fix character entities These are not supposed to be supported by gtk-doc¹ ¹https://bugzilla.gnome.org/show_bug.cgi?id=758137 https://bugzilla.gnome.org/show_bug.cgi?id=758175 gtk/gtkrecentmanager.h | 2 +- gtk/gtkrender.c | 2 +- gtk/gtktextview.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 9f3839066ec3bb1be49e127da1320f9b5d5bf02c Author: Carlos Soriano Date: Wed Nov 11 13:51:02 2015 +0100 gtkstack: allow templates to override all properties Currently GtkStack has some G_PARAM_CONSTRUCT properties. That means, the properties are set with its default value after the initializacion of the object. When using GtkBuilder to build objects, GtkBuilder creates them and after that sets the properties found on the xml definition. However, this is not true for templates because the template is initialized in the init() function of the actual object, and after that, the construct properties will be set. This is a problem when someone wants to use templates with GtkStack and set those properties, since they will be set on the tempalt initialization and set again to its default values afterwards. To fix this, make those properties not G_PARAM_CONSTRUCT. https://bugzilla.gnome.org/show_bug.cgi?id=758086 gtk/gtkstack.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit 0434649cc14f1e860dca6ff14a2d3ce3aec68ac4 Author: Matthias Clasen Date: Thu Nov 19 14:22:27 2015 -0500 Updates NEWS | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) commit 12a692ea9debe86212fa90396ff987b4cc7764d3 Author: Matthias Clasen Date: Thu Nov 19 14:39:42 2015 -0500 wayland: Avoid a crash We can end up in situations where NULL gets passed to get_transient_parent(). Embrace it instead of avoiding it. https://bugzilla.gnome.org/show_bug.cgi?id=758327 gdk/wayland/gdkwindow-wayland.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 029aad7907a2381e398a601d25907c39cf9b332b Author: Matthias Clasen Date: Thu Nov 19 14:01:41 2015 -0500 Add more CSS node docs gtk/gtkcssnode.c | 5 +++++ 1 file changed, 5 insertions(+) commit 040723ec2dbdb91f246c83d0018cf0f55fa8d02d Author: Matthias Clasen Date: Thu Nov 19 13:40:57 2015 -0500 Trivial: Some doc rewording gtk/gtkcssnode.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) commit 2b5d4455b86c13855e171a24c2810e852f52f623 Author: Matthias Clasen Date: Thu Nov 19 12:55:30 2015 -0500 Add some CSS node docs Write up some of the insights from doing the CSS node transition, so the knowledge is not lost. gtk/gtkcssnode.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) commit e2d9051f23343b385fec12bafa0729a4a57ba807 Author: Emmanuele Bassi Date: Thu Nov 19 12:44:17 2015 +0000 Do not use the GPL v3 blurb for LGPL v2.1 files GTK+ is licensed under the terms of the GNU LGPL v2.1+. gtk/gtkplacessidebar.h | 31 ++++++++++++++----------------- gtk/gtkplacessidebarprivate.h | 2 +- gtk/gtkplacesview.c | 8 ++++---- gtk/gtkplacesviewprivate.h | 11 +++++------ gtk/gtkplacesviewrow.c | 8 ++++---- gtk/gtkplacesviewrowprivate.h | 8 ++++---- 6 files changed, 32 insertions(+), 36 deletions(-) commit e4c565d78076105cbc43c4de63bc44faf9d62d98 Author: Emmanuele Bassi Date: Thu Nov 19 12:43:24 2015 +0000 Do not use the LGPL v3 blurb for LGPL v2.1 files GTK+ is released under the terms of the GNU LGPL v2.1+. gtk/gtksidebarrow.c | 4 ++-- gtk/gtksidebarrowprivate.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit 8194bd19603f2dab96b3b3c3256349f4b577caf1 Author: Emmanuele Bassi Date: Thu Nov 19 12:41:22 2015 +0000 Fix the license version in GtkTrashMonitor There is no GNU Lesser General Public License version 2; it's either GNU Library General Public License version 2, or GNU Lesser General Public License version 2.1. gtk/gtktrashmonitor.c | 6 +++--- gtk/gtktrashmonitor.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit 0d48a308ae35b919d94e82a6ae72a89a36128071 Author: Emmanuele Bassi Date: Thu Nov 19 12:33:07 2015 +0000 Fix license version for GtkFileChooserWidget private header Since it's using Lesser GPL, use version 2.1; there is no Lesser GPL v2, as it was called 'Library GPL' prior to v2.1. gtk/gtkfilechooserwidgetprivate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit eec10b703f65a2de52c1aeecc5691fd7b6650927 Author: Emmanuele Bassi Date: Thu Nov 19 12:11:05 2015 +0000 Fix the licensing blurb of GtkBookmarksManager Copy-pasta from GPL instead of LGPL. Also, there is no GNU Lesser General Public License version 2; either it's the GNU Library General Public License version 2, or it's the GNU Lesser General Public License version 2.1. gtk/gtkbookmarksmanager.c | 6 +++--- gtk/gtkbookmarksmanager.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) commit 1ddf2047456dfbdd4d69b287149ccbddc135c9c1 Author: Emmanuele Bassi Date: Thu Nov 19 12:06:54 2015 +0000 Fix the licensing blurb in GtkPlacesSidebar The code is released under the terms of the LGPL v2.1+, as is the rest of the GTK+ code. gtk/gtkplacessidebar.c | 35 ++++++++++++++++------------------- gtk/gtkplacessidebarprivate.h | 2 +- 2 files changed, 17 insertions(+), 20 deletions(-) commit a2d922309439db635f315308ba0f2d86797cabec Author: Matthias Clasen Date: Thu Nov 19 07:22:01 2015 -0500 Fix license header I didn't meant to make this different from any other file in GTK+ when I added it. gtk/gtkfilechooserwidgetprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 95df0fb6f5ad8fb24a0c99e593c17a20782ef307 Author: Matthias Clasen Date: Thu Nov 19 07:07:26 2015 -0500 box: Use an element name gtk/gtkbox.c | 5 +++++ 1 file changed, 5 insertions(+) commit 86764aeb1cc598de4b4ec1893740c10eef8cf9b1 Author: Matthias Clasen Date: Thu Nov 19 06:04:26 2015 -0500 toolitemgroup: Fix initial state GtkToolItemGroup starts out as non-collapsed, make the CSS node state reflect that. gtk/gtktoolitemgroup.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) commit 7435c8777568fa57b88c4b20fb4710a3a9fc2bda Author: Matthias Clasen Date: Wed Nov 18 10:21:15 2015 -0500 Document GDK_TOUCHPAD_GESTURE_MASK gdk/gdktypes.h | 1 + 1 file changed, 1 insertion(+) commit 0a0213bc1cfdf20e381e5de069346e16bffe6eb1 Author: Christian Hergert Date: Wed Nov 18 14:41:29 2015 -0800 entry: ensure valid GdkWindow before set_invisible_cursor() If the window has not yet been created, then we can't set the invisible cursor yet. This can happen in situations where the widget is in a revealer with type-to-search functionality. gtk/gtkentry.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit bb441f4488f49f6a60d0b45795fc65da3433cbbb Author: Cosimo Cecchi Date: Wed Nov 18 09:16:51 2015 -0800 HighContrast: remove deprecated progressbar style properties These are ignored and trigger a runtime warning. gtk/theme/HighContrast/_common.scss | 2 -- gtk/theme/HighContrast/gtk.css | 2 -- 2 files changed, 4 deletions(-) commit 727885e35db1cdfe534fbc2f59ce67e4476cc191 Author: Daniel Mustieles Date: Wed Nov 18 12:22:59 2015 +0000 Updated Spanish translation po-properties/es.po | 262 +++++++++++++++++++++++++--------------------------- 1 file changed, 125 insertions(+), 137 deletions(-) commit 370e3469c60a450f90731679440df79953aaee2a Author: Olivier Fourdan Date: Thu Nov 12 16:56:20 2015 +0100 gtkwindow: apply csd offset to set/get_default_size An application may use gtk_window_get_size() to retrieve the current window size and later reuse that size with gtk_window_set_default_size(). gtk_window_set_default_size() and gtk_window_get_default_size() should also take client side decorations offset into account. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkwindow.c | 97 ++++++++++++++++++++++++++++++++------------------------- 1 file changed, 55 insertions(+), 42 deletions(-) commit 87b10e6f60f84ae4ed4ca7058a006330d8cca31f Author: Matthias Clasen Date: Tue Nov 17 22:48:35 2015 -0500 popover: Avoid a crash when no relative-to widget is set This was showing up in glade, which creates freestanding popovers. gtk/gtkpopover.c | 3 +++ 1 file changed, 3 insertions(+) commit f79aef67f83deb6615b96315002a61ca994ca38f Author: Matthias Clasen Date: Tue Nov 17 21:47:02 2015 -0500 HighContrast: remove deprecated style properties gtk/theme/HighContrast/_common.scss | 11 ----------- gtk/theme/HighContrast/gtk.css | 8 -------- 2 files changed, 19 deletions(-) commit 7085595c08fe38c1520e5a3e7f5d2adb7afa2b23 Author: Matthias Clasen Date: Tue Nov 17 20:48:50 2015 -0500 expander: Use the right state when querying style properties Failure to do so causes warnings. gtk/gtkexpander.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 527d6a6f34d2166368c0cae9f30c32ab18cae5f1 Author: Matthias Clasen Date: Tue Nov 17 19:55:58 2015 -0500 gtk-demo: Fix the CSS examples The CSS needs small adjustments after all the CSS node changes. demos/gtk-demo/css_accordion.css | 16 ++++++++-------- demos/gtk-demo/css_pixbufs.css | 4 ++-- demos/gtk-demo/css_shadows.css | 6 +++--- demos/gtk-demo/reset.css | 2 -- 4 files changed, 13 insertions(+), 15 deletions(-) commit 1266c6d81a6a79e7e8a16c589b3a3c9ab06a4ffe Author: Matthias Clasen Date: Tue Nov 17 19:48:02 2015 -0500 gtk-demo: Fix the assistant example GtkEntry respects valign now, so we need to set it to something other than fill. demos/gtk-demo/assistant.c | 1 + 1 file changed, 1 insertion(+) commit 49bb6d287c486c5b3b4d17a10a91531e6822a96f Author: Matthias Clasen Date: Tue Nov 17 19:41:08 2015 -0500 Adwaita: Drop deprecated style properties gtk/theme/Adwaita/_common.scss | 2 -- gtk/theme/Adwaita/gtk-contained-dark.css | 2 -- gtk/theme/Adwaita/gtk-contained.css | 2 -- 3 files changed, 6 deletions(-) commit 4c49c0a297d67102175fac645762682476336620 Author: Carlos Garnacho Date: Mon Nov 16 12:51:42 2015 +0100 wayland: Move additional pointer buttons after the old 4-7 scrolling ones We were using that range for the extra buttons after left/right/middle, while this is harmless for clients not handling extra buttons (we used to translate those button events into scroll events in x11 anyway) this will be unexpected for clients that do handle additional mouse buttons themselves (eg. back/forward buttons present in some mice). In order to remain compatible with X11, those need to be assigned from button 8 onwards. Also, include input.h, and stop using magic numbers here. https://bugzilla.gnome.org/show_bug.cgi?id=758072 gdk/wayland/gdkdevice-wayland.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) commit a51c607df7a20cc3945c3395394d8f49682e76d0 Author: Daniel Mustieles Date: Tue Nov 17 18:56:17 2015 +0100 Updated Spanish translation po-properties/es.po | 20208 +++++++++++++++++++++++++------------------------- 1 file changed, 10152 insertions(+), 10056 deletions(-) commit 9432f91847dd6ab6419f7cdada6b0ded519d13ca Author: Daniel Mustieles Date: Tue Nov 17 18:56:07 2015 +0100 Updated Spanish translation po/es.po | 1014 ++++++++++++++++++++++++++++++++------------------------------ 1 file changed, 516 insertions(+), 498 deletions(-) commit 32b6b4e9809ec0cbb95e0c3ff4f5ee97e57f0495 Author: GNOME Translation Robot Date: Tue Nov 17 17:47:41 2015 +0000 Updated Scottish Gaelic translation po-properties/gd.po | 5076 +++++++++++++++++++++++++++++---------------------- 1 file changed, 2892 insertions(+), 2184 deletions(-) commit c5b7cd97b66c2a3afc51fa9b255142e3ea42f838 Author: Carlos Garnacho Date: Tue Nov 17 15:36:08 2015 +0100 x11: Add "pointer" to the is-not-a-touchscreen device name checks Commit 1266d15c4 also broke Xwayland, as it does the same trick than VMWare pointers. Let's extend the heuristic to check for "pointer" in the device name, what can possibly go wrong... https://bugzilla.gnome.org/show_bug.cgi?id=757358 gdk/x11/gdkdevicemanager-xi2.c | 1 + 1 file changed, 1 insertion(+) commit 0ca014af1493d255011f351ae6c40b9f9a925af3 Author: Christian Hergert Date: Mon Nov 16 21:38:22 2015 -0800 stackswitcher: add GtkStackSwitcher:icon-size property Set the GtkStackSwitcher:icon-size property to change the size of icons used in the linked GtkRadioButton children. https://bugzilla.gnome.org/show_bug.cgi?id=758208 gtk/gtkstackswitcher.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) commit c659292940f0fec924caf7f6a25b842593be0522 Author: Matthias Clasen Date: Mon Nov 16 18:31:37 2015 -0500 x11: Try harder to find a core pointer We currently just look for a master device with input source MOUSE. After recent changes to the way input devices are classified, xwayland on my system comes up with a virtual core pointer that has input source TOUCHSCREEN. This was causing assertion failures. Be a little more careful and accept a touchscreen as core pointer, if there is no mouse. gdk/x11/gdkdisplay-x11.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) commit e24c248013b6d669814a3890a02d5c6512b5f77a Author: Matthias Clasen Date: Mon Nov 16 15:14:41 2015 -0500 Adwaita: Remove deprecated style properties These are now triggering warnings, so clean them up. gtk/theme/Adwaita/_common.scss | 11 ----------- gtk/theme/Adwaita/gtk-contained-dark.css | 8 -------- gtk/theme/Adwaita/gtk-contained.css | 8 -------- 3 files changed, 27 deletions(-) commit 43f822e70fbdf4ffeb2354a65c801c77877e01d2 Author: Matthias Clasen Date: Mon Nov 16 15:13:33 2015 -0500 Annotate deprecated style properties Use G_PARAM_DEPRECATED with deprecated style properties. This will make it easier to identify and remove such stale properties from css, since it will now trigger warnings. gtk/gtkassistant.c | 4 ++-- gtk/gtkbutton.c | 2 +- gtk/gtkentry.c | 2 +- gtk/gtkiconview.c | 4 ++-- gtk/gtkinfobar.c | 8 ++++---- gtk/gtkmenubar.c | 4 ++-- gtk/gtkmenuitem.c | 2 +- gtk/gtkprogressbar.c | 4 ++-- gtk/gtkrange.c | 4 ++-- gtk/gtkspinbutton.c | 2 +- gtk/gtktoolbar.c | 4 ++-- gtk/gtktoolbutton.c | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) commit 08c4bc8aa555db6378311d7fb4d050e96b4ff28a Author: Matthias Clasen Date: Mon Nov 16 14:37:23 2015 -0500 css provider: Issue deprecation warnings for style properties This makes G_PARAM_DEPRECATED useful for style properties. gtk/gtkcssprovider.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) commit 9facd0088446b1b4162c350cf6e1ee28242c8325 Author: Benjamin Otte Date: Mon Nov 16 19:34:24 2015 +0100 cssprovider: Only push a new scanner when none exists For @import, we want to emit the error as part of the @import statement, not as part of the new file. gtk/gtkcssprovider.c | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) commit 0a4e88b79b9fa20ae0bd61ff68e99abeb5753da3 Author: Benjamin Otte Date: Mon Nov 16 17:36:50 2015 +0100 cssprovider: Have a section on import error When loading a nonexisting CSS file using gtk_css_provider_load_from_file() or gtk_css_provider_load_from_path() we would emit the error using a NULL scanner. Don't do that, because we'll have a NULL section in that case and error handlers don't like that. Testcase attached. https://bugzilla.redhat.com/show_bug.cgi?id=1277959 gtk/gtkcssprovider.c | 22 ++++++++++++++-------- testsuite/gtk/cssprovider.c | 13 +++++++++++++ 2 files changed, 27 insertions(+), 8 deletions(-) commit 81cb57b260b22ab2e1a0cb2b29c7c09fd3de128c Author: Carlos Soriano Date: Wed Nov 11 11:37:28 2015 +0100 gtkcontainer: clarify requirements for implementations Spent quite a few time investigating why the widgets were not shown in my GtkContainer implementation. https://bugzilla.gnome.org/show_bug.cgi?id=758087 gtk/gtkcontainer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit d0d393174b7168192d0c4eeb65e3c89563b89ff8 Author: GNOME Translation Robot Date: Mon Nov 16 15:22:01 2015 +0000 Updated Scottish Gaelic translation po/gd.po | 5065 ++++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 2972 insertions(+), 2093 deletions(-) commit ed2c14f4aaf0377e01f0c90f7dd3bf2cb5eeb792 Author: Matthias Clasen Date: Mon Nov 16 06:18:32 2015 -0500 spinbutton: Document some style properties as deprecated No code change. gtk/gtkspinbutton.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 90f8b054b3a241021cedbcb7aebb9a24c77d6520 Author: Matthias Clasen Date: Mon Nov 16 06:17:36 2015 -0500 range: Document some style properties as deprecated Remove dead code dealing with the arrow-displacement-x/y style properties, and document them as deprecated. gtk/gtkrange.c | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) commit c6d5accf9c9dbf2163b04355f69f600017b45b7f Author: Matthias Clasen Date: Mon Nov 16 06:16:31 2015 -0500 progressbar: Ignore x/yspacing style properties These are not really useful, so ignore and deprecate them. gtk/gtkprogressbar.c | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) commit bab98a842700ef4bea7be862061ff57362dbee00 Author: Matthias Clasen Date: Mon Nov 16 06:15:48 2015 -0500 menuitem: Document some style properties as deprecated No code change. gtk/gtkmenuitem.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit 3aa9293258369db6a3ad6b4c5867d99386768f98 Author: Matthias Clasen Date: Mon Nov 16 06:14:54 2015 -0500 menubar: Ignore the shadow-type style property The border can be controlled with regular CSS, so deprecate and ignore this style property. gtk/gtkmenubar.c | 69 +++++++++++++++++++++++--------------------------------- 1 file changed, 28 insertions(+), 41 deletions(-) commit af04390b29f01f977b0373c9f3b5e5bce4d76c84 Author: Matthias Clasen Date: Mon Nov 16 06:13:31 2015 -0500 icon view: Document some style properties as deprecated No code change. gtk/gtkiconview.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) commit 46b7b0ac9f757aa27845d06f1c6a09d834d0c619 Author: Matthias Clasen Date: Mon Nov 16 06:12:24 2015 -0500 entry: Ignore the icon-prelight style property The icon prelight effect can be controlled with regular CSS, so deprecate and ignore this style property. gtk/gtkentry.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit 684cd47c53c132bd724aa5cab8668710bb2b33c8 Author: Matthias Clasen Date: Mon Nov 16 06:11:42 2015 -0500 button: Document some style properties as deprecated No code change. gtk/gtkbutton.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) commit 8fea3ebfa0ee49979c28657038a489a75ede8cd2 Author: Matthias Clasen Date: Mon Nov 16 06:11:01 2015 -0500 button box: Document some style properties as deprecated No code change. gtk/gtkbbox.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) commit c1dd25d459f5848c4f1d2f843a8c928b28f8c735 Author: Matthias Clasen Date: Mon Nov 16 06:10:16 2015 -0500 assistant: Document style properties as deprecated No code change. gtk/gtkassistant.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit 5cc6fb764431063dfc2da801c4fca7fbd4f1f379 Author: Matthias Clasen Date: Mon Nov 16 06:14:00 2015 -0500 Avoid an unused variable warning This was introduced with the recent win32 build fix. gtk/gtkimcontextsimple.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 8a66e685a69891de9d01e75cf1024beb71cc5701 Author: Cosimo Cecchi Date: Sun Nov 15 14:11:48 2015 -0800 stack switcher: fix typos in documentation comment gtk/gtkstackswitcher.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d8aedfebfdd66a556dcfafc1b7298fb84e4431cc Author: Kjartan Maraas Date: Sun Nov 15 19:43:28 2015 +0100 Updated Norwegian bokmål translation. po/nb.po | 496 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 251 insertions(+), 245 deletions(-) commit 3811eb4f32bbb719d15954f4a4c422e34001a91b Author: Matthias Clasen Date: Sun Nov 15 01:00:20 2015 -0500 label: Use css nodes for links Use a subnode with name link for links in labels. These subnodes carry the :link or :visited state. gtk/gtklabel.c | 104 +++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 75 insertions(+), 29 deletions(-) commit b32c7c3282cdef795159b0079bb5ebd72d2affbd Author: Carlos Garnacho Date: Fri Nov 13 17:14:34 2015 +0100 x11: Do not misdetect mice with abs axes as touchscreens VMWare seems to create mouse devices with abs axes which confuses our detection of single-touch touchscreens. Those have though a name we can match on ("VirtualPS/2 VMware VMMouse"), it should be pretty safe to assume that no real touchscreens have "mouse" in their name... https://bugzilla.gnome.org/show_bug.cgi?id=757358 gdk/x11/gdkdevicemanager-xi2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit bc6d2d65fb5026d12adf88c6b111ef13095a0cc7 Author: Rui Matos Date: Tue Nov 3 18:39:27 2015 +0100 wayland: Translate virtual modifiers too Wayland allows us to receive virtual modifiers too so we can just use them directly if the compositor does send them. https://bugzilla.gnome.org/show_bug.cgi?id=748904 gdk/wayland/gdkkeys-wayland.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit a24de82cedd0ef0f7d0c4136b2f952a3b2d6d4e8 Author: Matthias Clasen Date: Sat Nov 14 23:18:17 2015 -0500 spinbutton: update node state more often We need to update the entry_node state, and we should update the node state initially. gtk/gtkspinbutton.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 9b041ae93060f22985ba2c100a1b97e50e615f48 Author: Matthias Clasen Date: Sat Nov 14 22:34:19 2015 -0500 shortcuts: Support direction-specific shortcuts The prime example for direction-dependent shortcuts is using Left or Right to go back. Support this by adding a direction property to GtkShortcutsShortcut, and filtering by the current text direction. https://bugzilla.gnome.org/show_bug.cgi?id=757888 gtk/gtkshortcutsgroup.c | 20 +++++++++++++--- gtk/gtkshortcutssection.c | 19 ++++++++++++---- gtk/gtkshortcutsshortcut.c | 57 +++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkshortcutswindow.c | 28 ++++++++++++++++++++--- 4 files changed, 113 insertions(+), 11 deletions(-) commit 705d371362c005a4ea699d0b617cdf9d8a336877 Author: Matthias Clasen Date: Sat Nov 14 21:34:43 2015 -0500 help overlay: Allow key sequences Extend the syntax to allow sequences of keys or key combinations, e.g. t+t or c+x. https://bugzilla.gnome.org/show_bug.cgi?id=758051 gtk/gtkshortcutlabel.c | 94 ++++++++++++++++++++++++++-------------------- gtk/gtkshortcutsshortcut.c | 12 +++--- 2 files changed, 60 insertions(+), 46 deletions(-) commit fe65c3ac4ce3aa403ee01622f6247874e6eb93ee Author: Matthias Clasen Date: Sat Nov 14 19:04:42 2015 -0500 Add one more selector to CSS parsing tests Add an E + F selector to the selector parsing tests. It is a CSS selector that we support. testsuite/gtk/stylecontext.c | 1 + 1 file changed, 1 insertion(+) commit 2d054fa6aed349c15eb98e94e80120c2cf1d46ae Author: Matthias Clasen Date: Sat Nov 14 19:03:57 2015 -0500 Always pass the right state in style context getters Otherwise, we are causing warnings that break make check. testsuite/gtk/firefox-stylecontext.c | 4 ++-- testsuite/gtk/stylecontext.c | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) commit dedab98bbb94d86f4713098a41eb1db281d72c47 Author: Matthias Clasen Date: Sat Nov 14 19:03:10 2015 -0500 testsuite: Skip GtkFileChooserNative for notification tests Like all the other GtkFileChooser implementations, this one emits some unneeded notifications. testsuite/gtk/notify.c | 1 + 1 file changed, 1 insertion(+) commit aa5af9da4ff00251d0767ebd2370beeb18344758 Author: Matthias Clasen Date: Sat Nov 14 18:35:03 2015 -0500 HighContrast: Fix selection styling in icon views This makes selected items in icon view show up again. gtk/theme/HighContrast/_common.scss | 13 +++++++++++++ gtk/theme/HighContrast/gtk.css | 11 +++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) commit 55667352aa28100878c64a4a3f9e8d62604193cd Author: Matthias Clasen Date: Sat Nov 14 18:29:27 2015 -0500 HighContrast: Fix selection styling in treeviews This makes selected rows in treeviews show up again. gtk/theme/HighContrast/_common.scss | 5 ++++- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) commit 65635546b49c0a19adc5a8cda7f6be8ff46f7f54 Author: Matthias Clasen Date: Sat Nov 14 18:25:59 2015 -0500 HighContrast: Fix selection styling in some places Make selected flow box children and list box rows show up again. gtk/theme/HighContrast/_common.scss | 115 ++++++++++++----------- gtk/theme/HighContrast/gtk.css | 182 +++++++++++++++++++----------------- 2 files changed, 153 insertions(+), 144 deletions(-) commit 4cee658f5fff4cda0a416a900067295f3d9a83f8 Author: Matthias Clasen Date: Sat Nov 14 18:25:24 2015 -0500 Adwaita: Misc cleanups Various cleanups and simplifications. gtk/theme/Adwaita/_common.scss | 23 +++++++---------------- gtk/theme/Adwaita/gtk-contained-dark.css | 22 ++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 22 ++++++++-------------- 3 files changed, 23 insertions(+), 44 deletions(-) commit afab635f9d09b6c6c2f2a3ca9bacd1002646dc0f Author: Matthias Clasen Date: Sat Nov 14 18:05:06 2015 -0500 HighContrast: Fix shadow size Ensure that the shadow extents don't change as we go to backdrop, to prevent windows from jumping. gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) commit 718ca64bb750093a0081b0b59c79edec6c2e89e2 Author: Matthias Clasen Date: Sat Nov 14 17:36:35 2015 -0500 Adwaita: Fix selection styling in icon views This was also broken by recent selection styling changes. gtk/theme/Adwaita/_common.scss | 13 +++++++++++++ gtk/theme/Adwaita/gtk-contained-dark.css | 15 +++++++++++---- gtk/theme/Adwaita/gtk-contained.css | 15 +++++++++++---- 3 files changed, 35 insertions(+), 8 deletions(-) commit 919be04a3df4d7e198e14751024ac91b52d3e553 Author: Matthias Clasen Date: Sat Nov 14 17:33:00 2015 -0500 Adwaita: Fix selection styling in flow boxes This was broken by recent selection styling changes. gtk/theme/Adwaita/_common.scss | 4 ++++ gtk/theme/Adwaita/gtk-contained-dark.css | 11 +++++++---- gtk/theme/Adwaita/gtk-contained.css | 11 +++++++---- 3 files changed, 18 insertions(+), 8 deletions(-) commit d6cbe7ed2bffff42abe058564dc682fb38a23c74 Author: Timm Bäder Date: Sat Nov 14 22:56:01 2015 +0100 GtkApplicationWindow: the help_overlay is nullable gtk/gtkapplicationwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d9de02e1ca385f21f09d72c4f9b98765f4ab8810 Author: Timm Bäder Date: Sat Nov 14 22:19:58 2015 +0100 GtkApplicationWindow: Fix typos gtk/gtkapplicationwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit dc836abbb43d0acfbeeca99cca94fb8d4410b6f9 Author: Matthias Clasen Date: Sat Nov 14 12:55:34 2015 -0500 Adwaita: Fix window shadow size Ensure that the shadow extents don't change as we go to backdrop, to prevent windows from jumping. gtk/theme/Adwaita/_common.scss | 4 ++++ gtk/theme/Adwaita/gtk-contained-dark.css | 5 ++++- gtk/theme/Adwaita/gtk-contained.css | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) commit 93629325d52edd583e951f5921bcffe0f1c05e2e Author: Matthias Clasen Date: Sat Nov 14 10:30:47 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtkviewport.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit debb33db8c5c2271f4f1cea8548ebe13fc6015c0 Author: Matthias Clasen Date: Sat Nov 14 10:30:31 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtktreeview.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit bcc6df00e58cb8f914aebbb3c6152a84849d0e82 Author: Matthias Clasen Date: Sat Nov 14 10:30:16 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtktoolbar.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 828a66b4aa3851209b65e270380561cc0736b23c Author: Matthias Clasen Date: Sat Nov 14 10:29:58 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtktextview.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 38be852beecf77978ef4496716c4eb1295470d55 Author: Matthias Clasen Date: Sat Nov 14 10:29:39 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtktextutil.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit 10a8533bd3d453bd6b9b3f5bfe03c28e4b5409fc Author: Matthias Clasen Date: Sat Nov 14 10:29:25 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtkrecentchooserdefault.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit 6c5d08d75a87db78eb9565551b18d8d897792ab5 Author: Matthias Clasen Date: Sat Nov 14 10:28:54 2015 -0500 Cosmetic: Avoid explicit state variables Fold it into its single user. gtk/gtkrange.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 3007ad6f3baf3713483a71fba2154ea16d87b310 Author: Matthias Clasen Date: Sat Nov 14 10:28:25 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtkprogressbar.c | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) commit eca9549c726c55ab59ac331a8ab7f31299ec23e6 Author: Matthias Clasen Date: Sat Nov 14 10:01:11 2015 -0500 Cosmetic: Avoid explicit state variables Using the state of the context makes this more obviously correct. gtk/gtkmenuitem.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) commit beb28754377e960e7c9029c188cd8cf85da93ebd Author: Matthias Clasen Date: Sat Nov 14 09:56:12 2015 -0500 Cosmetic: Avoid explict state variables Using the state of the context makes this more obviously correct. gtk/gtkmenubar.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit acdb7dae4e469504aaffad1ac8bd10d4a03bf3e4 Author: Matthias Clasen Date: Sat Nov 14 09:51:37 2015 -0500 Cosmetic: Avoid an explicit state variable Using the state of the context makes it more obviously correct. gtk/gtklistbox.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) commit cf1adadfed61c4157c97238ca1ab2b9ca3deb6c1 Author: Matthias Clasen Date: Sat Nov 14 09:49:49 2015 -0500 listbox: Cosmetic cleanup We don't cast these arguments anywhere else, so lets not do here either. gtk/gtklistbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 55735cee2f05eca385f00c196bad05eb50c06822 Author: Benjamin Otte Date: Sat Nov 14 18:28:34 2015 +0100 window: Don't invalidate cssnode during get_preferred_width() Getting the shadow width must not call gtk_style_context_set_state() because that will invalidate the node and cause a style-updated emission which can cause gtk_widget_queue_resize() calls. And calling queue_resize() from get_preferred_size() essentially means the size is permanently invalid because you invalidate it while querying it. This causes flickering of windows when going from/to backdrop state. To avoid this we either need to fix the theme to not have different shadow sizes in those cases or we need to ensure the window doesn't flicker in the first place. gtk/gtkwindow.c | 49 +++++++++++++++++-------------------------------- 1 file changed, 17 insertions(+), 32 deletions(-) commit 38bfec8ea4df8baec60e460bb1d418a01fa2e1d6 Author: YunQiang Su Date: Sat Nov 14 21:59:24 2015 +0800 Us ... instead of … for zh_CN po/zh_CN.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 3c1193f3e4457e2831b9ad3f4c97394bdb705912 Author: Pedro Albuquerque Date: Sat Nov 14 07:50:47 2015 +0000 Updated Portuguese translation po-properties/pt.po | 1434 ++++++++++++++++++++++++++------------------------- 1 file changed, 734 insertions(+), 700 deletions(-) commit 3c22784328949455c82c09a5bb93bbf77b3cc6c0 Author: Timm Bäder Date: Fri Nov 13 12:37:59 2015 +0100 GtkShortcutsShortcut: Add missing word gtk/gtkshortcutsshortcut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 86f4346c2955e9c32e69a2267a3874168854ea82 Author: Timm Bäder Date: Fri Nov 13 12:36:03 2015 +0100 GtkGrid: Remove invalid return annotation gtk/gtkgrid.c | 2 -- 1 file changed, 2 deletions(-) commit d01ea18dc3a9acc98fc133ddb53ddc838e4e18f9 Author: Chun-wei Fan Date: Thu Nov 12 20:20:36 2015 +0800 gtkimcontextsimple.c: Use X11_DATA_PREFIX only on X11/Wayland Only use the hard-coded build-time path given by X11_PREFIX on X11 and Wayland where a X11 package is normally available. On other platforms, get the datadir of the running system and mimic the behavior by constructing the path dynamically. This avoids hardcoding the path for searching for compose tables where we want to have relocatability. This fixes the build on Windows/MSVC as well, where we don't normally have any X11 packages available. https://bugzilla.gnome.org/show_bug.cgi?id=757984 gtk/gtkimcontextsimple.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) commit 1190a61c276a122e9ebc300420b13037c1da4bac Author: Matthias Clasen Date: Fri Nov 13 07:11:23 2015 -0500 check menu item: Fix a typo It is check, not checl. Pointed out by Giovanni Campagna in https://bugzilla.gnome.org/show_bug.cgi?id=757968 gtk/gtkcheckmenuitem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 386b9ef075e42b95797a61e9912615a0e02f5b35 Author: Matthias Clasen Date: Fri Nov 13 07:07:19 2015 -0500 Adwaita: Fix styling of selected rows in treeviews This broke in some of the recent selection handling changes. gtk/theme/Adwaita/_common.scss | 5 ++++- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++---- gtk/theme/Adwaita/gtk-contained.css | 8 ++++---- 3 files changed, 12 insertions(+), 9 deletions(-) commit c619c862503ccf54c9afbdb0708a3376ce1728fb Author: Paolo Borelli Date: Wed Nov 11 14:43:55 2015 +0100 filechooser: ignore double clicks on the selected item Since we are now interpreting button press events and make our own double-click determination, we should not handle double-click events that are generated by GDK. https://bugzilla.gnome.org/show_bug.cgi?id=757950 gtk/gtkfilechooserwidget.c | 1 + 1 file changed, 1 insertion(+) commit d74a08b80f54e018bc3141849e3d0fbbf6f583b0 Author: Ignacio Casal Quinteiro Date: Fri Nov 13 12:58:45 2015 +0100 win32: do not use g_clear_pointer also on the clipboard window A follow up on the previous patch. We should use DestroyWindow directly since it has a different calling convention than the expected callback for g_clear_pointer gdk/win32/gdkdisplay-win32.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit 2ad243d43db6e72ed64e24af8d350c00ea630a51 Author: Ignacio Casal Quinteiro Date: Fri Nov 13 12:54:54 2015 +0100 win32: do not use g_clear_pointer to destroy the window DestroyWindow expects a different calling convenction so we endup getting an error at runtime gdk/win32/gdkdisplay-win32.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit e0aa35ca58a824d853717bab3243f64bac54144c Author: Matthias Clasen Date: Fri Nov 13 06:40:28 2015 -0500 Update testlevelbar This test needs some small updates after the recent changes to levelbar styling. tests/testlevelbar.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit 4faef48410de3b2764cbefa2690f6b96fcb257a5 Author: Matthias Clasen Date: Fri Nov 13 06:39:57 2015 -0500 notebook: Chain up in direction_changed We do this everywhere else. gtk/gtknotebook.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 989f607e4a095a8e7afc8ad2a8fcf0b14b34704b Author: Yosef Or Boczko Date: Fri Nov 13 11:51:07 2015 +0200 Updated Hebrew translation po-properties/he.po | 2445 ++++++++++++++++++++++++++------------------------- 1 file changed, 1240 insertions(+), 1205 deletions(-) commit a0cdd4ac514ceaf5a28c8fc603ddf43a7b70dc5c Author: Matthias Clasen Date: Fri Nov 13 01:05:30 2015 -0500 HighContrast: Update levelbar styling Adapt to changes in the previous commit. gtk/theme/HighContrast/_common.scss | 18 +++++++++--------- gtk/theme/HighContrast/gtk.css | 22 +++++++++++----------- 2 files changed, 20 insertions(+), 20 deletions(-) commit d5ab5fee3b5403809051ba48ff7ea3892f6c3570 Author: Matthias Clasen Date: Fri Nov 13 00:56:54 2015 -0500 Adwaita: Update levelbar styling Adapt to the changes in the previous commit. In particular, fix the handling of low and high offsets. Anything below the low offset gets warning color, anything below high gets selected background, and anything below the new full offset gets success color. gtk/theme/Adwaita/_common.scss | 23 ++++++++++++++--------- gtk/theme/Adwaita/gtk-contained-dark.css | 27 ++++++++++++++++----------- gtk/theme/Adwaita/gtk-contained.css | 27 ++++++++++++++++----------- 3 files changed, 46 insertions(+), 31 deletions(-) commit 21209a963a3def39b3f6d19af76d8b80c910514a Author: Matthias Clasen Date: Fri Nov 13 00:55:28 2015 -0500 levelbar: Use more CSS nodes Create as many CSS nodes as we're rendering blocks on the screen. gtk/gtklevelbar.c | 419 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 233 insertions(+), 186 deletions(-) commit 1685da6f696166588357b2e999da082cf731518f Author: Sébastien Wilmet Date: Thu Nov 12 17:43:32 2015 +0100 textbuffer: nicer get_iter functions, without return values Avoid crashes when passing an invalid location to a gtk_text_buffer_get_iter_at_*() function. A first attempt added boolean return values to know if @iter has been set to the exact location, but it breaks Python and JS bindings because the out parameter is already a return value in those languages. Unit tests are added. https://bugzilla.gnome.org/show_bug.cgi?id=735341 gtk/gtktextbuffer.c | 61 ++++++++++++++++++---- testsuite/gtk/textbuffer.c | 123 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+), 10 deletions(-) commit 1f5f3ca41bd2419e1aee3f210f683541a8a3f56f Author: Ignacio Casal Quinteiro Date: Thu Nov 12 16:42:51 2015 +0100 win32: destroy clipboard notification window on dispose The clipboard uses a hidden window to get some specific events. The window was created but never destroyed on dispose. gdk/win32/gdkdisplay-win32.c | 48 +++++++++++++++++++++++++------------------- gdk/win32/gdkdisplay-win32.h | 1 + 2 files changed, 28 insertions(+), 21 deletions(-) commit a4ccf0e382e58d7124201027d2deab0a5eb29899 Author: Mingye Wang (Arthur2e5) Date: Thu Nov 12 23:17:28 2015 +0800 update zh_CN translation po/zh_CN.po | 5444 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 3513 insertions(+), 1931 deletions(-) commit 79f7f19c6e6c6a834e2b43b6e7bed07118e47fad Author: Ignacio Casal Quinteiro Date: Thu Nov 12 15:59:43 2015 +0100 win32: chain up on display dispose gdk/win32/gdkdisplay-win32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit fde91c3bece9aaea17b51ce6db8f9cb6088dbf96 Author: Matthias Clasen Date: Thu Nov 12 09:57:10 2015 -0500 Revert "textbuffer: nicer get_iter functions" This reverts commit a9a1c00cc9255ee9a7f73695f69abe172cde7bfa. Unfortunately, adding the boolean return broke both the python and javascript bindings, since they now return a tuple consisting of the boolean and the out argument. gtk/gtktextbuffer.c | 95 ++++++++-------------------------- gtk/gtktextbuffer.h | 34 ++++++------- testsuite/gtk/textbuffer.c | 123 --------------------------------------------- 3 files changed, 37 insertions(+), 215 deletions(-) commit a56f8859eeb916eaae27eb9895412550f211c17d Author: Chun-wei Fan Date: Thu Nov 12 20:12:26 2015 +0800 gtktestutils.c: Ensure variables are declared at top of block Fixes build on C89 compilers... gtk/gtktestutils.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit dbe430f6ec1dbc699c8a5963310226e69db2d266 Author: Chun-wei Fan Date: Thu Nov 12 18:16:33 2015 +0800 MSVC builds: Use /opt:ref for release builds glib-compile-resources have been updated to ensure that the symbols generated are referred to, so that they will not be optimized out by the linker in release builds. We can change from /opt:noref to /opt:ref, which should improve optimization a bit. build/win32/vs10/gtk3-demo-application.vcxprojin | 4 ++-- build/win32/vs10/gtk3-demo.vcxprojin | 4 ++-- build/win32/vs10/gtk3-icon-browser.vcxprojin | 4 ++-- build/win32/vs9/gtk3-demo-application.vcprojin | 4 ++-- build/win32/vs9/gtk3-demo.vcprojin | 4 ++-- build/win32/vs9/gtk3-icon-browser.vcprojin | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) commit 97b44e02a9e6eb1d258d48b13561a1eef79a4099 Author: Chun-wei Fan Date: Thu Nov 12 15:53:47 2015 +0800 MSVC 2010+ builds: Do not explicitly use /LTCG This partially reverts de16a4e. As we now ensure that items using GResources and GConstructors are always referenced so that the linker does not optimize them out in a default Release build, we no longer need to enforce the use of /LTCG, so /LTCG:incremental will work as well. build/win32/vs10/broadwayd.vcxprojin | 2 -- build/win32/vs10/gailutil-3.vcxprojin | 2 -- build/win32/vs10/gdk-3.vcxprojin | 4 ---- build/win32/vs10/gtk-3.vcxprojin | 2 -- build/win32/vs10/gtk-encode-symbolic-svg.vcxproj | 2 -- build/win32/vs10/gtk3-demo-application.vcxprojin | 2 -- build/win32/vs10/gtk3-demo.vcxprojin | 2 -- build/win32/vs10/gtk3-icon-browser.vcxprojin | 2 -- 8 files changed, 18 deletions(-) commit 51dc4873fd8b4d4f14f902870b6110dd70a224e3 Author: Alexander Larsson Date: Wed Nov 11 16:06:44 2015 +0100 Add gtk_native_dialog_destroy() Its very easy to get extra references to the NativeDialog so that when you release your last reference any visible dialog is not hidden. We handle this by adding a destroy method similar to how you destroy regular toplevels. demos/gtk-demo/application.c | 1 + docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkfilechooserbutton.c | 6 +++++- gtk/gtknativedialog.c | 24 ++++++++++++++++++++++++ gtk/gtknativedialog.h | 2 ++ tests/testgtk.c | 9 ++++++++- 6 files changed, 41 insertions(+), 2 deletions(-) commit 402225a8e23bcff118055568ca79f4b73a3951f8 Author: Alexander Larsson Date: Wed Nov 11 15:12:45 2015 +0100 GtkNativeDialog: Fix modal handling in gtk_native_dialog_run() gtk/gtknativedialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0e0b45602a8d74d4ddd3633118679a0b0fa09a35 Author: Emmanuele Bassi Date: Wed Nov 11 12:27:07 2015 +0000 tooltipwindow: Use a builder UI file It's not a hugely complicated file, but it's easier to deal with some of the details of tooltip windows styling if we have a UI file to edit, instead of source code. gtk/Makefile.am | 1 + gtk/gtktooltipwindow.c | 27 +++++++-------------------- gtk/ui/gtktooltipwindow.ui | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 20 deletions(-) commit 73497c16aed5f05d35c212be63a8a1f71de6ae88 Author: Emmanuele Bassi Date: Tue Nov 10 16:24:33 2015 +0000 Add autocleanups for GtkShortcutsWindow gtk/gtkshortcutswindow.h | 1 + 1 file changed, 1 insertion(+) commit 9ebe95f4a9be83b6d6269fd7ea1a96489da6d8c1 Author: Emmanuele Bassi Date: Tue Nov 10 15:11:29 2015 +0000 Remove introspection scanner guards around autocleanups They are not needed. gtk/gtkaboutdialog.h | 2 -- gtk/gtkaccelgroup.h | 2 -- gtk/gtkaccellabel.h | 2 -- gtk/gtkaccelmap.h | 2 -- gtk/gtkapplication.h | 2 -- gtk/gtkbin.h | 2 -- gtk/gtkborder.h | 2 -- gtk/gtkcontainer.h | 2 -- gtk/gtkdialog.h | 2 -- gtk/gtklabel.h | 2 -- gtk/gtklistbox.h | 2 -- gtk/gtkmenu.h | 2 -- gtk/gtkmenushell.h | 2 -- gtk/gtkwidget.h | 2 -- gtk/gtkwindow.h | 2 -- 15 files changed, 30 deletions(-) commit 5912790f3284be504e5e86aeceff940b003e3695 Author: Timm Bäder Date: Wed Nov 11 09:35:31 2015 +0100 gtklevelbar: Fix typo gtk/gtklevelbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 373a3517b31d445aa44628a5f7278c9bb4a76541 Author: Matthias Clasen Date: Wed Nov 11 00:30:24 2015 -0500 HighContrast: Update levelbar styling Adapt to the changes in the previous release. gtk/theme/HighContrast/_common.scss | 49 +++++++++++++++++------------------ gtk/theme/HighContrast/gtk.css | 51 ++++++++++++++++++++----------------- 2 files changed, 51 insertions(+), 49 deletions(-) commit 2a0024ebe2382c94adeec7dec0ba75a8f4f4fae0 Author: Matthias Clasen Date: Wed Nov 11 00:26:32 2015 -0500 Adwaita: Update levelbar rendering Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 51 +++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained-dark.css | 54 +++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 54 +++++++++++++++++--------------- 3 files changed, 81 insertions(+), 78 deletions(-) commit 17f110433d9a0bbe61b7abb6ffcee98745931fcb Author: Matthias Clasen Date: Wed Nov 11 00:25:24 2015 -0500 levelbar: Port to use CSS nodes Use element names levelbar, trough, block, and some style classes on the block nodes: .discrete, .continuous, .empty, .level-low, etc. gtk/gtklevelbar.c | 257 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 165 insertions(+), 92 deletions(-) commit 601cbbcc87e129fea81fc8e8553b97e49df998e2 Author: Matthias Clasen Date: Tue Nov 10 23:31:33 2015 -0500 Improve testlevelbar Add a switch to toggle between discrete and continuous modes. tests/testlevelbar.c | 59 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 41 insertions(+), 18 deletions(-) commit 02d08a1bd783d91860dea5a21d72625644dde7a8 Author: Matthias Clasen Date: Tue Nov 10 21:59:31 2015 -0500 text util: Avoid creating transient nodes We don't need to add .view - its already added, and shouldn't really be needed in the first place. gtk/gtktextutil.c | 5 ----- 1 file changed, 5 deletions(-) commit f3c915f18c41ea716b7e97b2cd6b3b9d22dc0440 Author: Matthias Clasen Date: Tue Nov 10 21:52:45 2015 -0500 HighContrast: Update textview selection styling Use the selection element name. gtk/theme/HighContrast/_common.scss | 6 +++--- gtk/theme/HighContrast/gtk.css | 20 +++++++------------- 2 files changed, 10 insertions(+), 16 deletions(-) commit fbd6a814c6e4fccafeccff231b76e1089498ddde Author: Matthias Clasen Date: Tue Nov 10 21:51:36 2015 -0500 Adwaita: Update textview selection styling Use the selection name. gtk/theme/Adwaita/_common.scss | 5 ++--- gtk/theme/Adwaita/gtk-contained-dark.css | 25 +++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 25 +++++++++---------------- 3 files changed, 20 insertions(+), 35 deletions(-) commit 9d9088304c5386c32f6a6e304ff16feb0a13e33e Author: Matthias Clasen Date: Tue Nov 10 21:49:42 2015 -0500 text view: Improve text rendering Use the text CSS node for rendering text, and the selection node for rendering selected text, avoid gtk_style_context_save, update states of all CSS nodes, and use the proper states when querying style properties. gtk/gtktextdisplay.c | 28 +++++++++++++++------------- gtk/gtktextview.c | 21 ++++++++++++++------- 2 files changed, 29 insertions(+), 20 deletions(-) commit bb786ac2404e99bfd14097006724dde177e0220d Author: Matthias Clasen Date: Tue Nov 10 21:18:10 2015 -0500 textview: Use a CSS node for selection rendering Use a CSS node with name selection, like we do for entries and labels. Unlike those widgets, we currently don't user gtk_render_background, but just use the background color. That will require more effort. gtk/gtktextdisplay.c | 16 +++++++--------- gtk/gtktextview.c | 33 ++++++++++++++++++++++++++++++--- 2 files changed, 37 insertions(+), 12 deletions(-) commit 735a71da112cbf3cc6ae0cce8ea2147db510d109 Author: Matthias Clasen Date: Tue Nov 10 20:45:42 2015 -0500 cell view: Add an element name The element name is...cellview. gtk/gtkcellview.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 514c0f761fbfe3fa9c7cd388935ff16d3b7bd38f Author: Matthias Clasen Date: Tue Nov 10 20:33:12 2015 -0500 HighContrast: Update label selection styling Adapt to changes in the previous commit. gtk/theme/HighContrast/_common.scss | 8 ++++---- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) commit 218d584b546dd5565acd39f7e3b0d6256dc79299 Author: Matthias Clasen Date: Tue Nov 10 20:29:31 2015 -0500 Adwaita: Update label selection styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 6 +++--- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++---- gtk/theme/Adwaita/gtk-contained.css | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) commit fafa75ac192f9eb9599c6b1b57dc9b23ec84fc0a Author: Matthias Clasen Date: Tue Nov 10 20:28:10 2015 -0500 label: Use a CSS node for selection rendering This adds new possibilities for themes to render the selection in fancy ways. gtk/gtklabel.c | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) commit 27d70cbb10c1d4b1d51b846c0833e436d09f5ab9 Author: Matthias Clasen Date: Tue Nov 10 20:13:06 2015 -0500 entry: Simplify selection rendering Calling gtk_render_background for each rectangle in the region leads to suboptimal and sometimes weird results. Getting this right requires more work in Pango first. Go back to just rendering a single background, and clip it to the selection region. This matches what GtkLabel does. gtk/gtkentry.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) commit e9449f60146815d83b3b33d36af1f51a0b5b96ee Author: Matthias Clasen Date: Tue Nov 10 17:36:33 2015 -0500 inspector: Don't grow horizontally Labels in the object tree are application data. Ellipsize them to avoid growing extremely wide if the data is bogus. gtk/inspector/object-tree.ui | 2 ++ 1 file changed, 2 insertions(+) commit 774b6f94d5d4b75d8fc246e51909db6e2623cc6c Author: Matthias Clasen Date: Tue Nov 10 17:36:23 2015 -0500 inspector: fix a typo gtk/inspector/object-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 6cbfc780c5e704f205104fd1583ba830fbeca806 Author: Matthias Clasen Date: Tue Nov 10 13:39:10 2015 -0500 HighContrast: Update entry selection styling Adapt to changes in the previous commit. gtk/theme/HighContrast/_common.scss | 6 +++--- gtk/theme/HighContrast/gtk.css | 14 +++++++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) commit e7854aeb4221abe1a23e3ac5f34d7e584626a932 Author: Matthias Clasen Date: Tue Nov 10 13:37:15 2015 -0500 Adwaita: Update entry selection rendering Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++---- gtk/theme/Adwaita/gtk-contained.css | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) commit 2a03107677cabdc38033fda28bac37e8c9765218 Author: Matthias Clasen Date: Tue Nov 10 13:36:16 2015 -0500 entry: Use a CSS node for selection rendering This adds new possibilities for themes to render the selection in fancy ways. gtk/gtkentry.c | 78 +++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 55 insertions(+), 23 deletions(-) commit 3552f524c33e92167f97bd76265392250d467d00 Author: Matthias Clasen Date: Tue Nov 10 12:48:40 2015 -0500 Adwaita: Update tooltip styling more Now that tooltips are csd again, the CSS wasn't quite working anymore. gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++--- gtk/theme/Adwaita/gtk-contained.css | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) commit f2b373add81d5d1528a71c5eab90b6354b547465 Author: Olivier Fourdan Date: Tue Nov 10 12:00:48 2015 +0100 gtkwindow: css offset for toplevel only At the time gtk_window_move() or gtk_window_resize() get called, there is no way to predict if a popup window will actually draw its shadow, so applying an offset in this case may end up with a wrong size or positioning for such windows. Changing the logic in gtk_window_should_use_csd() as previously done to address that issue will cause some other breakage as popup windows may not draw a shadow but still need CSD. So best is to actually apply client side decorations offset for regular, top level windows only. This is actually a lot simpler and safer and less likely to cause additional breakage. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkwindow.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit 69cbf0a129b7965a02fa03dce58da8bba413338c Author: Matthias Clasen Date: Tue Nov 10 12:26:05 2015 -0500 Adwaita: update tooltip styling Adapt to the changes in the previous commit. Note that tooltip appearance is currently affected by tooltips having lost their csd nature, due to a regression. gtk/theme/Adwaita/_common.scss | 14 ++++++-------- gtk/theme/Adwaita/gtk-contained-dark.css | 16 +++++++--------- gtk/theme/Adwaita/gtk-contained.css | 16 +++++++--------- 3 files changed, 20 insertions(+), 26 deletions(-) commit 62d9abeebc0916f73bbd05dcc52a60b1b11d8f8d Author: Emmanuele Bassi Date: Tue Nov 10 14:12:35 2015 +0000 Move GtkAccelMap autocleanup to the class header gtk/gtk-autocleanups.h | 1 - gtk/gtkaccelmap.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) commit a395852233a9d7e8462a1287e847808d368be321 Author: Emmanuele Bassi Date: Tue Nov 10 14:11:04 2015 +0000 Recursively move autocleanups to their header files Start from GtkAccelLabel and walk the tree downwards. gtk/gtk-autocleanups.h | 4 ---- gtk/gtkaccellabel.h | 6 ++++-- gtk/gtklabel.h | 6 ++++-- gtk/gtkmenu.h | 5 +++-- gtk/gtkmenushell.h | 6 ++++-- 5 files changed, 15 insertions(+), 12 deletions(-) commit 56ab3bdf3c4b1fca8c61dc04c730dfc64e464475 Author: Emmanuele Bassi Date: Tue Nov 10 14:08:07 2015 +0000 Move GtkAboutDialog autocleanup to the class header gtk/gtk-autocleanups.h | 1 - gtk/gtkaboutdialog.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) commit 90c15c294e198efc236b1a7d81cdfaa4c3454443 Author: Emmanuele Bassi Date: Tue Nov 10 14:07:41 2015 +0000 Move GtkDialog autocleanup to the class header gtk/gtk-autocleanups.h | 1 - gtk/gtkdialog.h | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) commit 93369788c907b9c61204ff377854729cd404e25f Author: Emmanuele Bassi Date: Tue Nov 10 13:59:36 2015 +0000 Start recursively moving autocleanups macros to their headers * Cover letter Having a single header file for all autocleanups definitions was a reasonable stop-gap measure, but now GTK+ is starting to use G_DECLARE_* macros. This means that every class using a G_DECLARE_* macro will need to include "gtk.h" to avoid compiler warnings, which is not acceptable. By moving the G_DEFINE_AUTO* use to the header that defines the type we allow using the G_DECLARE_* macros without sacrificing the ability to include only the needed files when deriving from a class. * Commit This commit changes all includes relative to GtkWindow to define their own autocleanup macros. gtk/gtk-autocleanups.h | 7 ------- gtk/gtkaccelgroup.h | 4 ++++ gtk/gtkapplication.h | 4 ++++ gtk/gtkbin.h | 5 ++++- gtk/gtkborder.h | 3 +++ gtk/gtkcontainer.h | 5 ++++- gtk/gtkwidget.h | 5 +++++ 7 files changed, 24 insertions(+), 9 deletions(-) commit d589170754af9620feabb0e598b626116470557f Author: Emmanuele Bassi Date: Tue Nov 10 13:49:11 2015 +0000 Only include the necessary headers in GtkPlacesViewRow When compiling inside GTK we also use the GTK_COMPILATION guard, as the GtkPlacesView and GtkPlacesViewRow widgets are shared with Nautilus. gtk/gtkplacesviewrow.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) commit 862007fe1c33948d78e1abf208d94d54490eee5c Author: Emmanuele Bassi Date: Tue Nov 10 13:48:31 2015 +0000 Move GtkListBox g_autoptr macros to the class header This allows GtkPlacesViewRow to use G_DECLARE_FINAL_TYPE without having to include gtk.h. gtk/gtk-autocleanups.h | 2 -- gtk/gtklistbox.h | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) commit 0d4a010cbbfc565c0cc8ffc6765746279d104279 Author: Emmanuele Bassi Date: Tue Nov 10 13:36:29 2015 +0000 Remove an unused variable declaration And the compiler warning that comes with it. gtk/gtkprintunixdialog.c | 1 - 1 file changed, 1 deletion(-) commit 40d6321b4cf3d229934ea60b6fede530db50161f Author: Emmanuele Bassi Date: Tue Nov 10 13:34:33 2015 +0000 Move GtkWindow g_autoptr macros in the class header Otherwise we won't be able to use G_DECLARE_* macros internally to GTK without generating warnings, or without including gtk.h itself. gtk/gtk-autocleanups.h | 2 -- gtk/gtkwindow.h | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) commit d694a9a83b3e683acd99789a3d48b40b7841fda2 Author: Emmanuele Bassi Date: Tue Nov 10 13:24:05 2015 +0000 docs: Ignore GtkTooltipWindow's private header file docs/reference/gtk/Makefile.am | 1 + 1 file changed, 1 insertion(+) commit 534f537a3c1ac3c4cce25682c27174f538e6390d Author: Matthias Clasen Date: Tue Nov 10 06:34:15 2015 -0500 Fix an oversight We must set the construct-only "type" to GTK_WINDOW_POPUP, otherwise this ends upo being a regular toplevel. gtk/gtktooltipwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 6f6e5365432050cde71550a09e3cce0f6a55c1d5 Author: Emmanuele Bassi Date: Sun Nov 8 17:10:00 2015 +0000 Use CSS node name for GtkTooltipWindow Instead of a style class. gtk/gtktooltipwindow.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit a846fd586db4256b748edcae149bf55fc2d9fbd2 Author: Emmanuele Bassi Date: Sun Nov 8 15:46:23 2015 +0000 Add GtkTooltipWindow private sub-class GtkTooltip does a lot of set up on the GtkWindow it uses internally. We should move that code to a separate class to keep it contained. gtk/Makefile.am | 2 + gtk/gtktooltip.c | 148 ++++----------------------- gtk/gtktooltipwindow.c | 230 ++++++++++++++++++++++++++++++++++++++++++ gtk/gtktooltipwindowprivate.h | 60 +++++++++++ 4 files changed, 312 insertions(+), 128 deletions(-) commit c2d0aa785154ebdb68aa34e3a7b410118ffaf97c Author: Matthias Clasen Date: Tue Nov 10 07:45:56 2015 -0500 print dialog: Avoid gtk_style_context_save There was one more call to gtk_style_context_save here that I overlooked. We can get rid of it by just setting the element name on the drawing area. gtk/gtkprintunixdialog.c | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) commit afc09d924e68702be0831d932b0cf4c8c7545cd9 Author: Matthias Clasen Date: Tue Nov 10 07:39:40 2015 -0500 flowbox: Add a diagram to CSS documentation gtk/gtkflowbox.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 740fa2cd70fb9b3aae3ff5ed24b74c7558c761af Author: Matthias Clasen Date: Tue Nov 10 07:37:25 2015 -0500 iconview: Add a diagram to CSS documentation gtk/gtkiconview.c | 4 ++++ 1 file changed, 4 insertions(+) commit ff4b11226517609e183550b3de2e23e68e194068 Author: Matthias Clasen Date: Tue Nov 10 07:36:41 2015 -0500 treeview: Add a diagram to CSS documentation gtk/gtktreeview.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit ec065d4cbf8fdd7a35afca61f5d0257b73316fab Author: Matthias Clasen Date: Tue Nov 10 07:31:32 2015 -0500 HighContrast: Update treeview rubberband styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 8efb1b1f92be46052f8c8f2fbdecec984e008490 Author: Matthias Clasen Date: Tue Nov 10 07:30:29 2015 -0500 Adwaita: Update treeview rubberband styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 4c56a1ea5dd13b96c0c91de9d7a0d752cd49ed93 Author: Matthias Clasen Date: Tue Nov 10 07:29:54 2015 -0500 treeview: Use a CSS node for rubberband drawing Use a CSS node with name rubberband to draw the rubberband selection. gtk/gtktreeview.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit 0af457639dc5eb14a060183fbd3051870055c9ab Author: Alexander Larsson Date: Mon Nov 9 22:18:05 2015 +0100 TextView: Use saner coordinate space in draw_layer. When I added the draw_layer vfunc it accidentally got passed a cairo_t that was configured with to draw in the viewport coordinate space (rather than the buffer coordinate space). This makes things unnecessary complex, because you have to convert between the two. The pixel cache is shared between the text and the layers, so there is no way to use draw_layer to get a stationary overlay effect. Thus it makes much more sense for the draw_layer vfunc to draw in the buffer space. Just changing this would break ABI for existing code, so this is fixed by adding new layer types and deprecating the old ones. Also, we use the new layer types to fix gtk3-widget-factory. https://bugzilla.gnome.org/show_bug.cgi?id=757856 demos/widget-factory/widget-factory.c | 2 +- gtk/gtktextview.c | 10 ++++++++++ gtk/gtktextview.h | 15 +++++++++++---- 3 files changed, 22 insertions(+), 5 deletions(-) commit b0a6af3783a8dd50781ca921de81d3879aafbb00 Author: Matthias Clasen Date: Tue Nov 10 00:55:57 2015 -0500 Forgotten file This change belongs to the iconview rubberband changes. gtk/gtkiconviewprivate.h | 2 ++ 1 file changed, 2 insertions(+) commit 921c2a1db40e68b80c48e81965e1502731a64897 Author: Matthias Clasen Date: Tue Nov 10 00:55:29 2015 -0500 HighContrast: Update flowbox rubberband styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 4 ++++ gtk/theme/HighContrast/gtk.css | 1 + 2 files changed, 5 insertions(+) commit f6201e4ccd129c9d8ca172cb5200abd2eaa42334 Author: Matthias Clasen Date: Tue Nov 10 00:52:09 2015 -0500 Adwaita: Update flowbox rubberband styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 4 ++++ gtk/theme/Adwaita/gtk-contained-dark.css | 1 + gtk/theme/Adwaita/gtk-contained.css | 1 + 3 files changed, 6 insertions(+) commit 6c7f4b78b5652a04db8cb138c785c7efa6bc3a8c Author: Matthias Clasen Date: Tue Nov 10 00:50:42 2015 -0500 flowbox: Use a CSS node for rubberband drawing Use a CSS node with name rubberband to draw the rubberband selection. gtk/gtkflowbox.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) commit 75d465eee4356bbaa13bd27e313db69a98bfd7cc Author: Matthias Clasen Date: Tue Nov 10 00:30:39 2015 -0500 HighContrast: Update rubberband styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 5 +++-- gtk/theme/HighContrast/gtk.css | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) commit f4076dff421f99b55d0911a3a1f561a120fc26bb Author: Matthias Clasen Date: Tue Nov 10 00:28:46 2015 -0500 Adwaita: Update rubberband styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 7 ++++--- gtk/theme/Adwaita/gtk-contained-dark.css | 5 ++++- gtk/theme/Adwaita/gtk-contained.css | 5 ++++- 3 files changed, 12 insertions(+), 5 deletions(-) commit 318269550bd8fdb243390a3624527b558bc37a1c Author: Matthias Clasen Date: Tue Nov 10 00:25:19 2015 -0500 iconview: Use a CSS node for rubberband drawing Use a CSS node with name rubberband to draw the rubberband selection. gtk/gtkiconview.c | 58 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 20 deletions(-) commit ee76f9bfedf80f1d0d012db0b4090745b9d61cf6 Author: Matthias Clasen Date: Mon Nov 9 23:49:29 2015 -0500 HighContrast: Update text handle styling Adapt to the changes in the previous release. gtk/theme/HighContrast/_common.scss | 3 +-- gtk/theme/HighContrast/gtk.css | 39 ++++++++++--------------------------- 2 files changed, 11 insertions(+), 31 deletions(-) commit 3daff48acaa5e5125f1983fb153fa3f2718332c2 Author: Matthias Clasen Date: Mon Nov 9 23:47:08 2015 -0500 Adwaita: Update text handle styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 3 +-- gtk/theme/Adwaita/gtk-contained-dark.css | 39 ++++++++------------------------ gtk/theme/Adwaita/gtk-contained.css | 39 ++++++++------------------------ 3 files changed, 21 insertions(+), 60 deletions(-) commit 0a136004c935f7dbce36bbfae643dadf17b5fe52 Author: Matthias Clasen Date: Mon Nov 9 23:45:29 2015 -0500 Document text handle styling Since GtkTextHandle is private, document text handle style classes in the GtkEntry and GtkTextView documentation. gtk/gtkentry.c | 6 ++++++ 1 file changed, 6 insertions(+) commit ea51db1feb0aa2ae4a7be31d1d1e328a43a31935 Author: Matthias Clasen Date: Mon Nov 9 23:33:54 2015 -0500 text handle: Port to CSS nodes Use cursor-handle as the element name for the CSS node that is used to render text the selection handles. gtk/gtktexthandle.c | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) commit 14f4b7ead21f57a10ddf56a45966b78b3dbbe6c1 Author: Matthias Clasen Date: Mon Nov 9 09:27:40 2015 -0500 Avoid excessive property notification for GtkStack::interpolate-size make check checks this for writable properties, and fails now that we've made this property writable. gtk/gtkstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c283315466bfba84e99b17be13a31275ffd40eb1 Author: Matthias Clasen Date: Mon Nov 9 13:33:58 2015 -0500 notebook: Update CSS docs The .header style class is no longer used. gtk/gtknotebook.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit c28be30ac15867c573a804317bdd51224c15ebcd Author: Timm Bäder Date: Sat Oct 31 18:05:03 2015 +0100 colorswatch: Don't pass _GENERIC_FALLBACK to API that doesn't support it gtk/gtkcolorswatch.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 09a181d205b6d19054361b5a0d65cc877aebc191 Author: Alexander Larsson Date: Mon Nov 9 15:14:57 2015 +0100 gdk: Fix invalidation w/ pixel cache when changing child window geometry. When moving/scrolling a child window we can't use the current clip region to limit what is invalidated, because there may be a pixel cache that listens for changes outside the clip region. Instead invalidate the entire area and rely on the invalidation code to limit the repaint to the actually visible area. gdk/gdkwindow.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) commit a0d9728e6c4fcf946418c9b1bd51a47b2ea02460 Author: Benjamin Otte Date: Mon Nov 9 14:17:09 2015 +0100 textdisplay: save/restore when using different state flags Also, never use gtk_widget_get_state_flags() when we want gtk_style_context_get_state() gtk/gtktextdisplay.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) commit 9757ea2c49b21c11710e7148d8cda19275453b80 Author: Olivier Fourdan Date: Mon Nov 9 12:05:37 2015 +0100 gtkwindow: Fix resize without "_GTK_FRAME_EXTENTS" git commit a5b1cdd0 introduced a regression where CSD windows are not resizable with metacity. Reason being that metacity does not support "_GTK_FRAME_EXTENTS" and therefore gtk_window_supports_client_shadow() would always return FALSE. This explains why it works with window managers which support "_GTK_FRAME_EXTENTS" such as mutter/gnome-shell or xfwm4. Partially revert commit a5b1cdd0 to reinstate the logic in get_shadow_width(). Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=757805 gtk/gtkwindow.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 32f27a4cd0515493627fc143dc1f0ed1e40fd1f9 Author: Matthias Clasen Date: Mon Nov 9 07:40:44 2015 -0500 container: Slightly reword some docs Clarify gtk_container_remove documentation regarding reference holding. Suggested in https://bugzilla.gnome.org/show_bug.cgi?id=757607 gtk/gtkcontainer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7314c8ca06f3caf289db0cbbe5a3e925b09398fe Author: Matthias Clasen Date: Mon Nov 9 06:42:59 2015 -0500 tool item group: Use a CSS node for the arrow This completes the transition for GtkToolItemGroup. gtk/gtktoolitemgroup.c | 48 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 8 deletions(-) commit db70ec96662a5f71ce630801cd8c424ea03d3efa Author: Matthias Clasen Date: Sun Nov 8 20:59:55 2015 -0500 HighContrast: Update notebook styling Some fixes for arrows and for headers. gtk/theme/HighContrast/_common.scss | 9 +++++++- gtk/theme/HighContrast/gtk.css | 42 +++++++++++++++++++++++-------------- 2 files changed, 34 insertions(+), 17 deletions(-) commit f564f16b5c1ac526d7452dc39f270a69b8fda10d Author: Matthias Clasen Date: Sun Nov 8 18:11:25 2015 -0500 Adwaita: Update notebook styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 123 +++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained-dark.css | 95 +++++++++++++----------- gtk/theme/Adwaita/gtk-contained.css | 95 +++++++++++++----------- 3 files changed, 162 insertions(+), 151 deletions(-) commit 4802b515e4ddba2492ef0a21f9d435c458f78e7a Author: Matthias Clasen Date: Sun Nov 8 15:01:09 2015 -0500 notebook: Use CSS nodes for arrows This converts the drawing of scroll arrows to use separate CSS nodes. gtk/gtknotebook.c | 275 ++++++++++++++++++++++++++++++++++------- gtk/theme/Adwaita/_common.scss | 37 +++--- 2 files changed, 248 insertions(+), 64 deletions(-) commit 78373eb9f7407202d3ac114764b60d3d81d7cfa4 Author: Matthias Clasen Date: Sun Nov 8 20:27:22 2015 -0500 Don't use a transient node in gtk_render_arrow() It is not necessary for the users of this API, and causes things to not work as intended. Without this transient node, styling "notebook header tabs arrow" has the desired effect on notebook arrows. gtk/gtkrender.c | 4 ---- 1 file changed, 4 deletions(-) commit 306b6c6024bc5153ccf5fe5407bea496749842bc Author: Matthias Clasen Date: Sat Nov 7 13:17:17 2015 -0500 widget-factory: Add another notebook example This example shows a scrollable notebook with action widgets. demos/widget-factory/widget-factory.ui | 112 +++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) commit e892b918dc0d88a2850a9f24cf42f599e48a1f2d Author: Matthias Clasen Date: Sat Nov 7 11:31:24 2015 -0500 HighContrast: update notebook styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 126 ++++++++++++------------------- gtk/theme/HighContrast/gtk.css | 145 +++++++++++++++--------------------- 2 files changed, 105 insertions(+), 166 deletions(-) commit 6592c6f51fd9fe65828b21307085b830371cabbb Author: Matthias Clasen Date: Sat Oct 31 10:25:50 2015 -0400 Adwaita: Adapt notebook styling a bit This needs a lot more work. gtk/theme/Adwaita/_common.scss | 116 ++++++++-------------- gtk/theme/Adwaita/gtk-contained-dark.css | 165 +++++++++++++------------------ gtk/theme/Adwaita/gtk-contained.css | 165 +++++++++++++------------------ 3 files changed, 178 insertions(+), 268 deletions(-) commit 5686853c6ed20b12daa02d1afc9b27f5bc5718df Author: Matthias Clasen Date: Sat Oct 31 10:23:40 2015 -0400 notebook: redo notebook styling Add a header node, and put positional classes on it. gtk/gtknotebook.c | 158 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 115 insertions(+), 43 deletions(-) commit 2fcbf996c672eb8dcb1ed91b56028a4df3180c16 Author: Benjamin Otte Date: Mon Nov 9 01:44:01 2015 +0100 placesview: Don't export API This is a private object, don't export its symbols. https://bugzilla.gnome.org/show_bug.cgi?id=756978 gtk/gtkplacesviewprivate.h | 9 --------- 1 file changed, 9 deletions(-) commit 0e75fbf39cf8b526995d3dd5514861aa786386a6 Author: Benjamin Otte Date: Mon Nov 9 01:42:41 2015 +0100 cssnode: Propagate NTH_LAST_CHILD changes properly We were just catching the previous sibling before. Now we properly invalidate all previous siblings (and also all other wiblings, but we can think about optimizing that later). gtk/gtkcssnode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 4141a7d7c8a949585d5bfdc997c7651c5e3fc49f Author: Benjamin Otte Date: Mon Nov 9 01:38:39 2015 +0100 csstypes: Propagate NTH_CHILD and NTH_LAST_CHILD to siblings Otherwise, we'd have to mark eveyr child on changes, and it's far easier to do that once we actually validate. gtk/gtkcsstypes.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit a7816909ef9b55629d3e6b97e6e0f3c4b2f88343 Author: Benjamin Otte Date: Mon Nov 9 01:29:56 2015 +0100 box: Refactor CSS node handling Only update the node that changed, don't invalidate everything. gtk/gtkbox.c | 65 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 32 insertions(+), 33 deletions(-) commit bed3ff27370a08d6bf18020c729de406661affcb Author: Benjamin Otte Date: Sat Nov 7 20:23:44 2015 +0100 box: Don't track children visibility It's not necessary anymore with css nodes. gtk/gtkbox.c | 17 ----------------- 1 file changed, 17 deletions(-) commit d55628cd9f0fccc3be0cc00378bc85d2da9192b3 Author: Benjamin Otte Date: Sat Nov 7 20:13:09 2015 +0100 testutils: Add deprecation guards gtk/gtktestutils.c | 6 ++++++ 1 file changed, 6 insertions(+) commit c2a9202a66437d4d8ee814c0f1da356c7c289621 Author: Matthias Clasen Date: Sun Nov 8 19:19:20 2015 -0500 Move gtk_builder_extend_with_template to public header We export the symbol, so we should not hide it in private headers. gtk/gtkbuilder.h | 7 +++++++ gtk/gtkbuilderprivate.h | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) commit f0a74bc302ab76028c334893f78a0c7af25ffecc Author: Matthias Clasen Date: Sun Nov 8 18:40:35 2015 -0500 Document gtk_builder_extend_wth_template docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkbuilder.c | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) commit ed26f5d7617f683cba33678af19309cbddbd7afc Author: Gábor Kelemen Date: Sun Nov 8 22:49:12 2015 +0000 Updated Hungarian translation po/hu.po | 833 ++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 481 insertions(+), 352 deletions(-) commit c33d485d90643b2246dac8d23194acf81593a5c9 Author: Balázs Meskó Date: Sat Nov 7 14:43:13 2015 +0000 Updated Hungarian translation po/hu.po | 883 ++++++++++++++++++++++++++++----------------------------------- 1 file changed, 385 insertions(+), 498 deletions(-) commit 0253338bf5180ee8d0a0d3a1cdd4be9db8373fea Author: Balázs Meskó Date: Sat Nov 7 14:40:53 2015 +0000 Updated Hungarian translation po-properties/hu.po | 3681 ++++++++++++++++++++++----------------------------- 1 file changed, 1601 insertions(+), 2080 deletions(-) commit f5af2612f414a63b747715f1f1cb5b33140cfeb2 Author: Matthias Clasen Date: Sat Nov 7 00:58:00 2015 -0500 Adwaita: Update print dialog styling Adapt to the changes in the previous commit. With the changes here, we always render the paper as white, even in the dark theme. gtk/theme/Adwaita/_common.scss | 7 +++++++ gtk/theme/Adwaita/gtk-contained-dark.css | 7 +++++++ gtk/theme/Adwaita/gtk-contained.css | 7 +++++++ 3 files changed, 21 insertions(+) commit 59c1547a4879d3ca57e7e4c35e12ec8021a0ef58 Author: Matthias Clasen Date: Sat Nov 7 00:57:03 2015 -0500 print dialog: Use an element name for rendering the paper Use a transient node with name paper instead of a random collection of style classes for rendering the papers. gtk/gtkprintunixdialog.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit c63c932a0572e18611f9cbb0b98c3ca5388dddf5 Author: Matthias Clasen Date: Sat Nov 7 00:42:37 2015 -0500 Adwaita: Update expander styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 12 +++++++----- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++---- gtk/theme/Adwaita/gtk-contained.css | 8 ++++---- 3 files changed, 15 insertions(+), 13 deletions(-) commit 7ba1368c40492595b02558fcf2c29380ede561d9 Author: Matthias Clasen Date: Sat Nov 7 00:40:28 2015 -0500 epxander: Port to CSS nodes Use CSS nodes with name expander and arrow here. gtk/gtkexpander.c | 143 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 95 insertions(+), 48 deletions(-) commit cf7f23f4ddc191c2ce91192b0d8f07c625b25a08 Author: Matthias Clasen Date: Fri Nov 6 23:35:20 2015 -0500 scrolledwindow: Document overlay scrolling style classes Document which style classes are used on scrollbars to implement overlay scrolling. gtk/gtkscrollbar.c | 4 ++++ gtk/gtkscrolledwindow.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) commit 353bfb009255943eafaf852e817b21e874ccfe3b Author: Matthias Clasen Date: Fri Nov 6 23:28:22 2015 -0500 scrolledwindow: Set positional classes on scrollbars This might be useful for some themes. gtk/gtkscrolledwindow.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 69 insertions(+), 4 deletions(-) commit f900bec4fa3cfab89e119d552d93a978628ed4f6 Author: Matthias Clasen Date: Fri Nov 6 22:58:08 2015 -0500 scrolled window: Drop unnecessary transient nodes We already add the .frame style class to the context depending on the shadow property. No need to save the context and add it again all the time. gtk/gtkscrolledwindow.c | 13 ------------- 1 file changed, 13 deletions(-) commit e1182ec0e1ee09d2995011ccfbb88359187b862c Author: Matthias Clasen Date: Fri Nov 6 22:47:16 2015 -0500 window: Don't pass wrong state to context GtkStyleContext warns nowadays if one queries properties from a different state. So, don't do that. gtk/gtkwindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit d25e0657be84a72a8fc08dfb329d78b693934b3b Author: Matthias Clasen Date: Fri Nov 6 22:24:20 2015 -0500 range: Fixes to the new trough rendering There was an errant y that caused some troughs to not be drawn. And also set the state of the fill node. gtk/gtkrange.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 60c7893c1445ac378a564e7342368f0dec73e61b Author: Matthias Clasen Date: Fri Nov 6 19:38:50 2015 -0500 scale: Document the new CSS nodes gtk/gtkscale.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit e5ef7dc6815d02b66121b26558b63db7f65427a3 Author: Benjamin Otte Date: Sat Nov 7 01:45:35 2015 +0100 notebook: Fix copy/paste error This is from the recent commit 2a1a483edef1c94a795855dec08d91a4421ceb13 gtk/gtknotebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f95a22a3ab81f9fa65a3a8e2b9e879d1d3a271d5 Author: Matthias Clasen Date: Fri Nov 6 19:28:56 2015 -0500 Adwaita: Update range styling Adapt to the new CSS nodes for trough rendering. This commit also brings back visible fill-level rendering for scales, which was not working for a while. The styling provided for that (scale trough fill) is just a placeholder to aid in debugging the implementation. gtk/theme/Adwaita/_common.scss | 34 ++++++++++++++++++++++---------- gtk/theme/Adwaita/gtk-contained-dark.css | 34 +++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 34 +++++++++++++++++--------------- 3 files changed, 60 insertions(+), 42 deletions(-) commit 11d7f6df7c2518a42c44bf9d6ec1fce16f55ec7f Author: Matthias Clasen Date: Fri Nov 6 19:25:58 2015 -0500 range: Use CSS nodes for all trough rendering This replaces the somewhat freewheeling use of style classes to render a part of the trough highlighted and show a fill level. gtk/gtkrange.c | 255 ++++++++++++++++--------------- gtk/theme/Adwaita/_common.scss | 4 + gtk/theme/Adwaita/gtk-contained-dark.css | 3 + gtk/theme/Adwaita/gtk-contained.css | 3 + 4 files changed, 145 insertions(+), 120 deletions(-) commit 50ff2a566a41cdc5b25b7766599dd8a594042a10 Author: Matthias Clasen Date: Fri Nov 6 15:20:01 2015 -0500 Update mac key theme for css changes Use the element names for widgets. gtk/gtk-keys.css.mac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit bc656a3ca537d45b3ed3b56152c492b39b172e22 Author: Matthias Clasen Date: Fri Nov 6 15:19:36 2015 -0500 Update emacs key theme for css changes Use the element names for widgets. gtk/gtk-keys.css.emacs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a9814fea7d169400b033bc28f3b7570b3423bc15 Author: Benjamin Otte Date: Fri Nov 6 18:57:24 2015 +0100 stylecontext: Always warn on style mismatch For now, always warn when gtk_style_context_get()/get_padding()/get_margin()/get_border() get called with the wrong state. We used to hide this behind an env var because the warnings were too frequent, but with the recent refactorings, this warning has become rather important for detecting bugs. If it's still problematic, we might want to revert this patch before 3.20. gtk/gtkstylecontext.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) commit 68ed166c60f796328c2be40a7f3df9db23f708c2 Author: Benjamin Otte Date: Fri Nov 6 18:53:46 2015 +0100 range: Use right state when querying margin gtk/gtkrange.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 2a1a483edef1c94a795855dec08d91a4421ceb13 Author: Benjamin Otte Date: Fri Nov 6 18:52:13 2015 +0100 notebook: Query the right node's padding gtk/gtknotebook.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) commit 37b4b60e9127b3604994f92b5d2715ba2a310597 Author: Benjamin Otte Date: Fri Nov 6 18:49:26 2015 +0100 spinbutton: Use right state when querying padding gtk/gtkspinbutton.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) commit 38cd2c12394d8c67fb502c4933d6a243550ad3eb Author: Matthias Clasen Date: Fri Nov 6 11:53:42 2015 -0500 range: Update trough state It might make sense for the theme to render an insensitive trough differently. gtk/gtkrange.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) commit 0bfc7db1fad1b8512f96ddea3ebe34fbb425f4be Author: Matthias Clasen Date: Fri Nov 6 09:26:25 2015 -0500 popover: Don't create transient CSS nodes There is no need to save the style context here. gtk/gtkpopover.c | 3 --- 1 file changed, 3 deletions(-) commit 8d886f351330e6addf5651c5b9499c77a853fff8 Author: Matthias Clasen Date: Fri Nov 6 07:57:03 2015 -0500 Cosmetic: Use defines for style classes gtk/gtkscale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 76fbcc2f262fc4bf4478f43cbbfde055617d172d Author: Matthias Clasen Date: Fri Nov 6 07:51:15 2015 -0500 range: Document fine-tuning style class use gtk/gtkscale.c | 11 ++++++++--- gtk/gtkscrollbar.c | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) commit 203d8daff4dc697d92bfeec5baa84352370845db Author: Benjamin Otte Date: Fri Nov 6 16:34:09 2015 +0100 acccellabel: Use right state when querying font This was causing permanent invalidations otherwise because drawing causes the state of the accel node to change. gtk/gtkaccellabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ffd517cc3fbeac9b6b8783568f8973640a1ba2c6 Author: Matthias Clasen Date: Fri Nov 6 07:04:14 2015 -0500 Adwaita: Update scale styling Use :first-child/:last-child on the trough for determining which slider we need. gtk/theme/Adwaita/_common.scss | 83 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 728 ++++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 724 ++++++++++++++---------------- 3 files changed, 690 insertions(+), 845 deletions(-) commit bfee2d3c61a7dc852bae2016a7ec8ee1ee2ca641 Author: Matthias Clasen Date: Fri Nov 6 07:01:42 2015 -0500 scale: Stop using style classes for marks We can use :first/last-child for this now. gtk/gtkscale.c | 20 -------------------- 1 file changed, 20 deletions(-) commit fd5729baef61c2a5f4af9b4249d974118705d2f2 Author: Matthias Clasen Date: Thu Nov 5 23:42:19 2015 -0500 Adwaita: Fix up filechooser styling Several details of sidebar and places view styling were lost along the way. Bring back the circular buttons. gtk/theme/Adwaita/_common.scss | 82 ++++---- gtk/theme/Adwaita/gtk-contained-dark.css | 321 ++++++++++++++++++------------- gtk/theme/Adwaita/gtk-contained.css | 321 ++++++++++++++++++------------- 3 files changed, 413 insertions(+), 311 deletions(-) commit 527df17ea3bfcb8a0edb6f16a17b0b50f1f326fc Author: Matthias Clasen Date: Thu Nov 5 23:43:32 2015 -0500 places view: Remvoe some unused style classes These style classes were not used in Adwaita, and didn't make any difference for the appearance. gtk/ui/gtkplacesview.ui | 3 --- gtk/ui/gtkplacesviewrow.ui | 3 --- 2 files changed, 6 deletions(-) commit efc7dfd7a71356db4d79e2d5f841241f4ec0751b Author: Matthias Clasen Date: Thu Nov 5 23:41:42 2015 -0500 places view: Add an element name Use placesview as the element name. gtk/gtkplacesview.c | 2 ++ 1 file changed, 2 insertions(+) commit 6be2073740bea7e4dbcb59123762aaea52913314 Author: Matthias Clasen Date: Thu Nov 5 19:15:43 2015 -0500 Adwaita: Redo combo box entry styling Instead of relying on .linked or + (which doesn't work right in rtl), use :not(:only-child) to select a button that is not alone inside a combobox. gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 10 ++++++---- gtk/theme/Adwaita/gtk-contained.css | 10 ++++++---- 3 files changed, 14 insertions(+), 10 deletions(-) commit f1b7005ede1de03312510fce7442ebc65f89f936 Author: Matthias Clasen Date: Thu Nov 5 19:14:38 2015 -0500 combobox: Don't add .linked It interferes with getting the desired styling for combo boxes with an entry, and is not needed. gtk/gtkcombobox.c | 3 --- 1 file changed, 3 deletions(-) commit 7cd177e0d729bbb98c00cba6b44e337a09109e13 Author: Matthias Clasen Date: Thu Nov 5 18:00:51 2015 -0500 Fix a typo gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 3b9a2a4423d689d905b72925e121f6fc9ceb8f3b Author: Piotr Drąg Date: Fri Nov 6 01:05:00 2015 +0100 Updated POTFILES.in po-properties/POTFILES.in | 2 ++ po/POTFILES.in | 2 ++ 2 files changed, 4 insertions(+) commit ad214e187124f253d036a38423c1c4a4cd5b30e5 Author: Matthias Clasen Date: Thu Nov 5 16:13:06 2015 -0500 window: Add a diagram to the CSS documentation gtk/gtkwindow.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit 5d62c808b1831dcfa144e6fc8107bbf906ae6031 Author: Matthias Clasen Date: Thu Nov 5 16:07:29 2015 -0500 Adwaita: Update window styling We no longer inherit the style classes on the decoration subnodes, so we have to adjust some selectors. gtk/theme/Adwaita/_common.scss | 32 +++++++++++++++----------------- gtk/theme/Adwaita/gtk-contained-dark.css | 12 ++++++------ gtk/theme/Adwaita/gtk-contained.css | 12 ++++++------ 3 files changed, 27 insertions(+), 29 deletions(-) commit b4c650ae85e4e007989d6f48ae4e038cf67dfdd3 Author: Matthias Clasen Date: Thu Nov 5 16:06:49 2015 -0500 window: Use permanent CSS nodes gtk_style_context_save_named() has drawbacks that we want to avoid. gtk/gtkwindow.c | 78 +++++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 59 insertions(+), 19 deletions(-) commit 948e077f1c94f650fd3cc968682a15f90f8ea0e0 Author: Matthias Clasen Date: Thu Nov 5 15:41:37 2015 -0500 tool button: Add element names for tool item subclasses Add the obvious names to the CSS nodes of GtkRadioToolButton, GtkToggleToolButton and GtkSeparatorToolItem. gtk/gtkradiotoolbutton.c | 11 +++++++---- gtk/gtkseparatortoolitem.c | 13 +++++++------ gtk/gtktoggletoolbutton.c | 7 +++++-- 3 files changed, 19 insertions(+), 12 deletions(-) commit ec60bd889c71a6d80eca7041a376aa5ca8a535cc Author: Matthias Clasen Date: Thu Nov 5 15:23:44 2015 -0500 flowbox: Add element names The names used here are flowbox and flowboxchild. gtk/gtkflowbox.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit 527f4f44c167fd902349d81efe61b672b7668f09 Author: Matthias Clasen Date: Thu Nov 5 13:53:43 2015 -0500 Adwaita: Update listbox styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 60 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 459 ++++++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 541 +++++++++++++++---------------- 3 files changed, 495 insertions(+), 565 deletions(-) commit 94e675257a5ad504fbc1bc8dd2a4a78a3208baa2 Author: Matthias Clasen Date: Thu Nov 5 13:51:58 2015 -0500 placessidebar: Use the same element name for rows Use row as the element name here too. gtk/gtksidebarrow.c | 1 + 1 file changed, 1 insertion(+) commit 4f29b4a348cdf6cdc322c5b7396f8c6adce91432 Author: Matthias Clasen Date: Thu Nov 5 13:48:02 2015 -0500 listbox: Add element names The names used here are list and row. gtk/gtklistbox.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) commit 92a5eccc3deddaf0772b839c18c54c74b54f1ff1 Author: Matthias Clasen Date: Thu Nov 5 12:53:46 2015 -0500 aspect frame: Use an element name gtk/gtkaspectframe.c | 6 ++++++ 1 file changed, 6 insertions(+) commit cd798d5aed6b008d39eba8f31d0823075988edc8 Author: Matthias Clasen Date: Thu Nov 5 10:51:54 2015 -0500 places sidebar: Document style classes Document the style classes that GtkPlacesSidebar uses on its rows. gtk/gtkplacessidebar.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 5744c757c21e359556dc246cd4c87fba218e4d6c Author: Alexander Larsson Date: Thu Nov 5 16:25:59 2015 +0100 gtk3-demo: Add open file to the application demo demos/gtk-demo/application.c | 90 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 87 insertions(+), 3 deletions(-) commit 13c2717d88d46234a61de2035df7c948c3ab157b Author: Alexander Larsson Date: Thu Nov 5 15:59:08 2015 +0100 docs: Move GtkNativeDialog section to "abstract base classes" docs/reference/gtk/gtk-docs.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0db50dcea9dba7d473446fb154a60cbba4c224ee Author: Alexander Larsson Date: Thu Nov 5 15:18:57 2015 +0100 Mention native file choosers in NEWS NEWS | 3 +++ 1 file changed, 3 insertions(+) commit 5e50abf411a3b8bc56d91a183868dbe3d4ae2af1 Author: Alexander Larsson Date: Mon Nov 2 16:19:02 2015 +0100 testgtk: Add native dialog tests tests/testgtk.c | 357 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 357 insertions(+) commit b3d02671ca9d0120a56fb3e4f581c8ee2866b159 Author: Alexander Larsson Date: Thu Oct 29 15:13:14 2015 +0100 GtkFileChooserButton: Use native dialogs Unless you explicitly set the dialog constructor property we use a native dialog (GtkFileChooserNative). gtk/gtkfilechooserbutton.c | 231 ++++++++++++++++++++++++++++++--------------- 1 file changed, 153 insertions(+), 78 deletions(-) commit 5094900180ac97e6bba2f86ee702d0649e019e6a Author: Alexander Larsson Date: Thu Oct 29 15:06:57 2015 +0100 GtkFileChooserNative: Fallback and win32 implementation This is a subclass on GtkNativeDialog that uses GtkFileChooserDialog as a fallback, but also has support for the win32 file chooser dialog. docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/gtk3-sections.txt | 19 + gtk/Makefile.am | 4 + gtk/gtk.h | 1 + gtk/gtkfilechooserdialog.c | 7 +- gtk/gtkfilechoosernative.c | 656 +++++++++++++++++++++++++++++ gtk/gtkfilechoosernative.h | 56 +++ gtk/gtkfilechoosernativeprivate.h | 53 +++ gtk/gtkfilechoosernativewin32.c | 778 +++++++++++++++++++++++++++++++++++ 9 files changed, 1574 insertions(+), 1 deletion(-) commit 693db082a158952efd5a326a62814490c3c8f6ad Author: Alexander Larsson Date: Tue Nov 3 14:52:42 2015 +0100 GtkFileFilter: Add private function to represent filter as pattern This will be needed for the win32 native file chooser which does not support mimetype sniffing. gtk/Makefile.am | 1 + gtk/gtkfilefilter.c | 49 +++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkfilefilterprivate.h | 30 ++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+), 1 deletion(-) commit 81cef0091e19874fed5dd4aadb136a7518a6d662 Author: Alexander Larsson Date: Thu Oct 29 14:59:48 2015 +0100 Add GtkNativeDialog abstract base class This is a base class that essentially mirrors GtkDialog, but it is not a GtkWindow, as the actual implemetation will be using native code. The base class has show and hide vfuncs, as well as a helper function to run the dialog in a modal fashion. This will be later used by the native file chooser dialog. docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/gtk3-sections.txt | 21 ++ gtk/Makefile.am | 3 + gtk/gtk.h | 1 + gtk/gtknativedialog.c | 635 +++++++++++++++++++++++++++++++++++ gtk/gtknativedialog.h | 79 +++++ gtk/gtknativedialogprivate.h | 31 ++ 7 files changed, 771 insertions(+) commit 0f6c7682b3a11d932e34a3a0bb078d9b4503de3f Author: Alexander Larsson Date: Thu Oct 29 14:55:48 2015 +0100 Make GtkFileChooser interface require a GObject Before all GtkFileChooser implementations had to be a GtkWidget, but we want to introduce one for native implementations that is not a widget. This is technically an ABI break, because some code could rely on the guarantee that GtkFileChoosers are GtkWidgets and do unchecked GtkWidget calls. However, that does seem unlikely, and this has not really been documented anywhere. NEWS | 5 +++++ README.in | 9 +++++++++ gtk/gtkfilechooser.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) commit 1c46a02bcbfd70c1323e7dc661526b92e4487a27 Author: Alexander Larsson Date: Thu Oct 29 15:17:44 2015 +0100 TreeModelFilter: Fix uninitialized memory read. We were copying an iterator that sometimes was not initialized, which caused debugger warnings in VS2015. gtk/gtktreemodelfilter.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit 199e35fa5c9f9630913c0cf8c35a1f18b93446bb Author: Matthias Clasen Date: Thu Nov 5 10:41:53 2015 -0500 HighContrast: Update places sidebar styling Use the new element name. gtk/theme/HighContrast/_common.scss | 24 +++++----- gtk/theme/HighContrast/gtk.css | 91 +++++++++++++++++++++++-------------- 2 files changed, 69 insertions(+), 46 deletions(-) commit 35eaca27e4e0004348e63fa63c5c125dc193c7d9 Author: Matthias Clasen Date: Thu Nov 5 10:38:01 2015 -0500 Adwaita: Update places sidebar styling Use the new element name. gtk/theme/Adwaita/_common.scss | 23 ++++++----------------- gtk/theme/Adwaita/gtk-contained-dark.css | 26 +++++++++++++++++++++----- gtk/theme/Adwaita/gtk-contained.css | 26 +++++++++++++++++++++----- 3 files changed, 48 insertions(+), 27 deletions(-) commit de3ad3781cfe9b46a304a4d2ded4c9e53fae0fe2 Author: Matthias Clasen Date: Thu Nov 5 10:36:17 2015 -0500 placessidebar: Use an element name Set the element name placessidebar. gtk/gtkplacessidebar.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) commit f327ef3cf1a2301fd5758d73eece177450577440 Author: Matthias Clasen Date: Thu Nov 5 10:32:04 2015 -0500 scrolledwindow: Use permanent CSS nodes This avoids false inheritance due to gtk_style_context_save_named(), and is generally the right thing to do. gtk/gtkscrolledwindow.c | 73 ++++++++++++++++++++++++++++--------------------- 1 file changed, 42 insertions(+), 31 deletions(-) commit 4ed47e757fd0c5abf04a4f8341f0796f6afd696f Author: Matthias Clasen Date: Thu Nov 5 09:41:10 2015 -0500 Fix a crash with steppers The introduction of the trough node was not properly carried into the code constructing stepper nodes, and was causing assertion failures there. This was only showing up on Windows, since Adwaita and HighContrast don't have steppers. gtk/gtkrange.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 7b3cda2cd5160c4d8d13c7346836aad97d52ce8c Author: Matthias Clasen Date: Thu Nov 5 09:09:33 2015 -0500 gtk3-demo: Drop .sidebar class This makes no visual difference at all, and the .sidebar class is causing some complications with the current CSS node transition. demos/gtk-demo/main.ui | 3 --- 1 file changed, 3 deletions(-) commit 4247e42411e6bebf199c40093a32b23103c86950 Author: Matthias Clasen Date: Thu Nov 5 09:08:20 2015 -0500 stack sidebar: Remove an unused variable gtk/gtkstacksidebar.c | 1 - 1 file changed, 1 deletion(-) commit 820a8c2c7f99b24fcc0294e0c11d8e0ccb61b7ad Author: Benjamin Otte Date: Thu Nov 5 15:22:05 2015 +0100 checkmenuitem: Update CSS nodes on set_active() The function only doesn't notify(). It is supposed to handle CSS changes. gtk/gtkcheckmenuitem.c | 1 + 1 file changed, 1 insertion(+) commit c7491fa1443a0e141f532982bbe6d32e82c57f5e Author: Benjamin Otte Date: Thu Nov 5 04:06:09 2015 +0100 stack: Store actual widget size, not preferred size This is just a cleanup commit, no actual bug. gtk/gtkstack.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit 4d524ab469425976fa9bbe5d03f75d6feb69a8a0 Author: Carlos Garnacho Date: Thu Nov 5 13:13:37 2015 +0100 widget: Avoid critical warnings when disconnecting plain GtkEventControllers This signal is only set on GtkGesture objects, so check it's really there before disconnecting. gtk/gtkwidget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 66d2c9e6fa20a5f676d9ad6957a5d9c93fcca300 Author: Matthias Clasen Date: Thu Nov 5 08:18:38 2015 -0500 Adwaita: Update stack sidebar styling We no longer use the .sidebar-item style class. gtk/theme/Adwaita/_common.scss | 20 +++++++++++--------- gtk/theme/Adwaita/gtk-contained-dark.css | 12 ++++++------ gtk/theme/Adwaita/gtk-contained.css | 12 ++++++------ 3 files changed, 23 insertions(+), 21 deletions(-) commit 87deb25dc30343e9426597c67d89c3f5d2ad9115 Author: Matthias Clasen Date: Thu Nov 5 08:18:06 2015 -0500 stack sidebar: Drop the .sidebar-item style class It is not needed to achieve the desired theming. gtk/gtkstacksidebar.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit c59ef7bf2fb9e496f051d6a69a1bbb5d4ac34c77 Author: Matthias Clasen Date: Thu Nov 5 08:17:49 2015 -0500 stack switcher: Clarify CSS documentation gtk/gtkstackswitcher.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 37c923ad8a27f290bceb8c1908c5e3a1ed15e101 Author: Matthias Clasen Date: Thu Nov 5 07:45:39 2015 -0500 HighContrast: Update filechooser styling Update for changes in previous commit. gtk/theme/HighContrast/_common.scss | 20 ++++++-------------- gtk/theme/HighContrast/gtk.css | 18 ++++++------------ 2 files changed, 12 insertions(+), 26 deletions(-) commit 87c6ae1c186029872c9ffa01ba728faf7098c1d8 Author: Matthias Clasen Date: Thu Nov 5 07:44:29 2015 -0500 Adwaita: Update searchbar styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 23 +++++-------- gtk/theme/Adwaita/gtk-contained-dark.css | 58 +++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 58 +++++++++++++++++--------------- 3 files changed, 70 insertions(+), 69 deletions(-) commit bec58dc39e1c4280561a6fca6ff59c461b3d9e16 Author: Matthias Clasen Date: Thu Nov 5 07:44:04 2015 -0500 searchbar: Stop adding a style class We have an element name now. gtk/gtksearchbar.c | 6 ------ 1 file changed, 6 deletions(-) commit a71bc24184273fa8192f1e62e8570874e784fa2d Author: Matthias Clasen Date: Thu Nov 5 07:40:48 2015 -0500 file chooser: Don't use .search-bar for a box Just use the more general .view class to avoid special-casing the file chooser in the theme. gtk/ui/gtkfilechooserwidget.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 2e314940af267852271425ab49ead85eb12bfca6 Author: Matthias Clasen Date: Thu Nov 5 07:23:54 2015 -0500 range: Redraw when slider visiblity changes We were not queuing a draw (and not updating the CSS node) when the slider visibility changed. This was exposed by the Trough button in tests/testscale. Fix this by taking slider visibility into account when deciding whether to queue a draw in response to adjustment changes. gtk/gtkrange.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) commit 8afb4a69e863db563a662bb8c5b2858b53c287ef Author: Matthias Clasen Date: Thu Nov 5 07:01:57 2015 -0500 HighContrast: Update scale styling gtk/theme/HighContrast/_common.scss | 75 ++++++++++++++-------------------- gtk/theme/HighContrast/gtk.css | 80 ++++++++++++++++++------------------- 2 files changed, 69 insertions(+), 86 deletions(-) commit 53ae100e64ffcba063658e429449cf97444fa922 Author: Matthias Clasen Date: Thu Nov 5 06:46:31 2015 -0500 Adwaita: Update scale styling Adapt to the introduction of trough nodes. gtk/theme/Adwaita/_common.scss | 139 +++++++++--------- gtk/theme/Adwaita/gtk-contained-dark.css | 236 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 236 ++++++++++++++++--------------- 3 files changed, 315 insertions(+), 296 deletions(-) commit 07841f269d84267cd90c1baa554d6efc0d2f2f45 Author: Matthias Clasen Date: Thu Nov 5 06:45:24 2015 -0500 scale: Split marks node into two Use separate CSS nodes for the marks above and below the trough. gtk/gtkscale.c | 103 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 65 insertions(+), 38 deletions(-) commit 973836d395a481bca46eda37d4df6e9ea9bd2156 Author: Matthias Clasen Date: Thu Nov 5 06:47:10 2015 -0500 range: Add private api to get the trough node This will be needed in range subclasses to position their own subnodes. gtk/gtkrange.c | 6 ++++++ gtk/gtkrangeprivate.h | 3 +++ 2 files changed, 9 insertions(+) commit 9f3deaa496090c6725afa1672b416f7573945073 Author: Matthias Clasen Date: Thu Nov 5 00:29:14 2015 -0500 HighContrast: Update range styling Adjust to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 87 +++++++++++---------- gtk/theme/HighContrast/gtk.css | 151 +++++++++++++++--------------------- 2 files changed, 107 insertions(+), 131 deletions(-) commit 1261aa6fdf4ab08b12c6ff19d057276d6f745ab6 Author: Matthias Clasen Date: Thu Nov 5 00:20:50 2015 -0500 Adwaita: Update range styling Adjust to the changes in the previous commit. This partially undoes the earlier range changes. gtk/theme/Adwaita/_common.scss | 157 ++++++++------- gtk/theme/Adwaita/gtk-contained-dark.css | 321 +++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 323 +++++++++++++------------------ 3 files changed, 350 insertions(+), 451 deletions(-) commit 2bfb5ad812b8b54f6acc4245a7fe6ce9ea65d236 Author: Matthias Clasen Date: Thu Nov 5 00:20:05 2015 -0500 range: Add a CSS node for the trough This is in sync with what we do elsewhere for troughs. gtk/gtkrange.c | 13 ++++++++++++- gtk/gtkscale.c | 10 ++++++---- gtk/gtkscrollbar.c | 9 +++++---- 3 files changed, 23 insertions(+), 9 deletions(-) commit b6b00c31d7f0eace34f8ea75b75adf1983e108fe Author: Benjamin Otte Date: Wed Nov 4 19:11:14 2015 +0100 stack: Queue a resize/allocate when switching children We only allocate a size to the currently visible child, so we obviously need to rerun allocation when the visible child changes. In the case where the stack is not homogenous, we also need to queue a resize because our size request just changed. gtk/gtkstack.c | 5 +++++ 1 file changed, 5 insertions(+) commit c580a9d01f31496349ca9599e5271f5137e47783 Author: Benjamin Otte Date: Wed Nov 4 19:10:16 2015 +0100 tests: Make stack expand This is to test invisible children are actually resized before they are made visible (which they currrently are not. tests/teststack.c | 1 + 1 file changed, 1 insertion(+) commit 894bd132407e7f7006c88923ce00f60d6b7e283c Author: Matthias Clasen Date: Wed Nov 4 12:43:06 2015 -0500 HighContrast: Update progressbar styling Adjust to the chagnes in the previous commit. This partially undoes the earlier progressbar changes. gtk/theme/HighContrast/_common.scss | 28 +++++++++++++++++----------- gtk/theme/HighContrast/gtk.css | 26 ++++++++++++++------------ 2 files changed, 31 insertions(+), 23 deletions(-) commit 48e605b7a4ab90a9e1161484e1c68eb565c10dc9 Author: Matthias Clasen Date: Wed Nov 4 12:33:06 2015 -0500 Adwaita: Update progressbar styling Adjust to the changes in the previous commit. This partially undoes the earlier progressbar changes. gtk/theme/Adwaita/_common.scss | 24 +++++++++++++++--------- gtk/theme/Adwaita/gtk-contained-dark.css | 27 +++++++++++++++------------ gtk/theme/Adwaita/gtk-contained.css | 27 +++++++++++++++------------ 3 files changed, 45 insertions(+), 33 deletions(-) commit 9d4c78c2d0137e4c33f68add62804c601a0f2c45 Author: Matthias Clasen Date: Wed Nov 4 12:32:15 2015 -0500 progressbar: Add a CSS node for trough This is better, since the trough doesn't fill up the allocation entirely. gtk/gtkprogressbar.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) commit eade244cacb79410314513b5cf105b910ac2fd90 Author: Matthias Clasen Date: Wed Nov 4 12:01:26 2015 -0500 popover: Add the .background style class This style class indicates that something _requires_ a background, which is clearly the case for popovers. gtk/gtkpopover.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit cca5cac9656c789036da5bfa93401aa1a815b6a4 Author: Matthias Clasen Date: Wed Nov 4 11:45:10 2015 -0500 paned: Move .wide to CSS subnode This fits better with our general use of style classes. gtk/gtkpaned.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) commit d40576fb3ee748d633f7c3c0a57be5120edc2cff Author: Matthias Clasen Date: Wed Nov 4 10:11:06 2015 -0500 revealer: Use an element name gtk/gtkrevealer.c | 2 ++ 1 file changed, 2 insertions(+) commit 4fe04ab54a6c60f0f286f94390399efc31f6dea1 Author: Krzesimir Nowak Date: Wed Nov 4 14:19:13 2015 +0100 scrolledwindow: Fix a typo gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 399ab49fbbdacaf616a4dcd64f080ea9b96e9d15 Author: Matthias Clasen Date: Wed Nov 4 07:36:49 2015 -0500 HighContrast: Update scrolled window styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 93 +++++++-------- gtk/theme/HighContrast/_drawing.scss | 2 + gtk/theme/HighContrast/gtk.css | 221 ++++++++++++++++++----------------- 3 files changed, 160 insertions(+), 156 deletions(-) commit 2ef86c94ed33078628af8d890ffeb82196bf77be Author: Matthias Clasen Date: Wed Nov 4 07:30:19 2015 -0500 Adwaita: Update scrolledwindow styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 115 ++++++++-------- gtk/theme/Adwaita/_drawing.scss | 2 + gtk/theme/Adwaita/gtk-contained-dark.css | 226 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 226 ++++++++++++++++--------------- 4 files changed, 286 insertions(+), 283 deletions(-) commit 80af6ff1307d151d27fc8a3f44098a58ed202ec5 Author: Matthias Clasen Date: Wed Nov 4 07:29:33 2015 -0500 scrolledwindow: Port to CSS nodes Change GtkScrolledWindow to use transient named CSS nodes for drawing the overshoot, undershoot and scrollbar junction. gtk/gtkscrolledwindow.c | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) commit c1ecd1ef9da16c2bbc3b1e735f56dad0c74521ef Author: Emmanuele Bassi Date: Wed Nov 4 11:50:37 2015 +0000 docs: Point at for_scale() variants Using lookup_icon() and lookup_by_gicon() with a size multiplied by a scaling factor is almost certainly going to get worse results than using their for_scale() variants. gtk/gtkicontheme.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit f959b350640040f08fe91d4ac3dff449ae056502 Author: Emmanuele Bassi Date: Wed Nov 4 11:45:41 2015 +0000 docs: Clarify gtk_render_icon()'s behaviour A GdkPixbuf has no scaling factor, so drawing directly from it can only using a scale of 1, to avoid blurry, fuzzy icons. You should be using gtk_render_icon_surface() anyway. gtk/gtkrender.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 452e303ec06bd79d4af98c9e032ab221d0813b4a Author: Emmanuele Bassi Date: Wed Nov 4 11:45:19 2015 +0000 docs: Fix typo in gdk_screen_get_scale_factor() gdk/gdkscreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9db30bd0d7496c99f62f50b844be8141b7bedd22 Author: Pedro Albuquerque Date: Wed Nov 4 07:59:07 2015 +0000 Updated Portuguese translation po/pt.po | 2972 ++++++++++---------------------------------------------------- 1 file changed, 474 insertions(+), 2498 deletions(-) commit 21b545109c02d86520ee4b4b329d004870842a30 Author: Pedro Albuquerque Date: Wed Nov 4 07:52:34 2015 +0000 Updated Portuguese translation po-properties/pt.po | 3687 ++++++++++++++++++++++----------------------------- 1 file changed, 1572 insertions(+), 2115 deletions(-) commit b9613cc416f38567af1837a7136695d521d0fea2 Author: Matthias Clasen Date: Wed Nov 4 00:00:56 2015 -0500 inspector: Some improvements to the CSS node tree Set a min-content-height for the property list, and allow horizontal scrolling. gtk/inspector/css-node-tree.ui | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit d077f627ef80aebf31efe71cbf15454791d6e7a7 Author: Matthias Clasen Date: Tue Nov 3 23:55:50 2015 -0500 inspector: Really show the selected CSS node Try harder to scroll the selected CSS node into view. gtk/inspector/css-node-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0024358c91e59b9d6af69e4be7f914e6721129eb Author: Matthias Clasen Date: Tue Nov 3 23:35:32 2015 -0500 scale: Fix a crash We can only free the marks_node if there is one. gtk/gtkscale.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 099cde5f80e693f30b4b19f3c12936dc89d9afc0 Author: Matthias Clasen Date: Tue Nov 3 23:27:34 2015 -0500 stack sidebar: Use an element name gtk/gtkstacksidebar.c | 7 +++++++ 1 file changed, 7 insertions(+) commit ead35ee12f4f2c39206f6a90277462a6230c6210 Author: Matthias Clasen Date: Tue Nov 3 23:24:49 2015 -0500 stack switcher: Use an element name gtk/gtkstackswitcher.c | 7 +++++++ 1 file changed, 7 insertions(+) commit ef1bc737b072082ed0c4da68d633822f63eba40f Author: Matthias Clasen Date: Tue Nov 3 23:24:13 2015 -0500 widget-factory: Stop using deprecated API demos/widget-factory/widget-factory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 910f4f72baa3b9b273fe9fd9e6523d40eb6d939f Author: Matthias Clasen Date: Tue Nov 3 23:19:28 2015 -0500 stack: Set an element name And it is...stack. gtk/gtkstack.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 8dfb0e728c5a939e5aacb16c3d596f110c7660dc Author: Matthias Clasen Date: Tue Nov 3 23:16:45 2015 -0500 HighContrast: Update range styling Adapt to changes in the previous commit. gtk/theme/HighContrast/_common.scss | 95 ++++++++++--------- gtk/theme/HighContrast/gtk.css | 177 +++++++++++++++++++++--------------- 2 files changed, 149 insertions(+), 123 deletions(-) commit 37ad3628a00a4d639eae8253bfbdf06704c0b159 Author: Matthias Clasen Date: Tue Nov 3 23:12:54 2015 -0500 Adwaita: Update range styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 191 ++++++------ gtk/theme/Adwaita/gtk-contained-dark.css | 476 ++++++++++++++++-------------- gtk/theme/Adwaita/gtk-contained.css | 478 +++++++++++++++++-------------- 3 files changed, 619 insertions(+), 526 deletions(-) commit 8727c8fe24734b4c32f51b8c6be0a159ebfb9db4 Author: Matthias Clasen Date: Tue Nov 3 23:11:52 2015 -0500 range: Convert to CSS nodes Use CSS nodes for GtkScale and GtkScrollbar. See their documentation for details on what subnodes with what names exist. gtk/gtkrange.c | 450 +++++++++++++++++++++++++++++------------------------ gtk/gtkscale.c | 77 +++++++-- gtk/gtkscrollbar.c | 24 ++- 3 files changed, 324 insertions(+), 227 deletions(-) commit 2a6e1498ba96e4710e7e19e2ddffea71f3c941d0 Author: Benjamin Otte Date: Wed Nov 4 05:06:31 2015 +0100 testutils: Deprecate a bunch of ugly functions We've by now disabled and then remved all of the tests that use these functions because they never worked properly. So let's depecate these functions before somebody starts using them. gtk/gtktestutils.c | 18 ++++++++++++++++++ gtk/gtktestutils.h | 18 +++++++++--------- 2 files changed, 27 insertions(+), 9 deletions(-) commit 61db7da2efff78f5f61f4285e091fd2fd37c2952 Author: Benjamin Otte Date: Wed Nov 4 04:50:18 2015 +0100 testsuite: Remove a bunch of broken tests These tests have either been commented out for way too long or use APIs that we don't want to support. testsuite/gtk/Makefile.am | 11 - testsuite/gtk/crossingevents.c | 628 --------- testsuite/gtk/expander.c | 109 -- testsuite/gtk/filechooser.c | 2487 ------------------------------------ testsuite/gtk/testing.c | 304 ----- testsuite/gtk/treeview-scrolling.c | 1473 --------------------- 6 files changed, 5012 deletions(-) commit 24391634b5ac78ddf431da1a50ca1e0ca16795c5 Author: Christian Hergert Date: Tue Nov 3 15:13:51 2015 -0800 stack: GtkStack:interpolate-size should be read/write It looks like the param spec for interpolate-size was copied from the line above it, which is a read only property. There is a setter for interpolate-size, and it is implemented in set_property(). gtk/gtkstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5f0a8cf136862d960c6d4985077e0176efa2c738 Author: Christian Hergert Date: Tue Nov 3 14:36:54 2015 -0800 headerbar: remove G_PARAM_CONSTRUCT from custom-title This fixes the ability to sublcass GtkHeaderBar from a UI template which contains a custom element. https://bugzilla.gnome.org/show_bug.cgi?id=757544 gtk/gtkheaderbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d65ba7cf97f332595e6c75c120d7a242d2857392 Author: Benjamin Otte Date: Tue Nov 3 22:51:01 2015 +0100 widget: Queue resize on parent, not self When setting the parent of a widget, queue_resize() on the widget will be optimized away if the widget already had a resize queued. Plus, we do not need to resize the widget as its size request is not going to change. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 8e5c7ac028a221800069f325da2c1b0ba95304a0 Author: Matthias Clasen Date: Tue Nov 3 14:24:25 2015 -0500 menu: Add diagrams to CSS documentation gtk/gtkcheckmenuitem.c | 6 ++++++ gtk/gtkmenu.c | 7 +++++++ gtk/gtkmenuitem.c | 6 ++++++ gtk/gtkradiomenuitem.c | 6 ++++++ 4 files changed, 25 insertions(+) commit c389511b8600d2b18f62a776829f596254bf8285 Author: Matthias Clasen Date: Tue Nov 3 14:21:30 2015 -0500 paned: Add diagrams to CSS documentation gtk/gtkpaned.c | 5 +++++ 1 file changed, 5 insertions(+) commit 92e3655ace0ac505c283a054d10332a00157e0bf Author: Matthias Clasen Date: Tue Nov 3 14:19:08 2015 -0500 combo box: Add diagrams to CSS documentation gtk/gtkcombobox.c | 7 ++++++- gtk/gtkcomboboxtext.c | 12 ++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) commit a7076d1c4ca914e8fb4b148845a085cb7a818947 Author: Matthias Clasen Date: Tue Nov 3 13:49:07 2015 -0500 text view: Add diagram to CSS documentation gtk/gtktextview.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit fc0a222350d64908b1e6738e579bb6edfb28fef4 Author: Matthias Clasen Date: Tue Nov 3 13:39:14 2015 -0500 accel label: Add diagrams to CSS documentation gtk/gtkaccellabel.c | 5 +++++ 1 file changed, 5 insertions(+) commit 332ea5f8ec1b9ffd3adeb8f7fa5286898e2f29ff Author: Matthias Clasen Date: Tue Nov 3 13:37:57 2015 -0500 progressbar: Add diagrams to CSS documentation gtk/gtkprogressbar.c | 5 +++++ 1 file changed, 5 insertions(+) commit 65d959bbc8aa24a97c5dbb56896a2d724c741151 Author: Matthias Clasen Date: Tue Nov 3 13:36:26 2015 -0500 spin button: Add diagrams to CSS documentation gtk/gtkspinbutton.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 870461475a74c9dfb8835ed503702566203e8e2a Author: Matthias Clasen Date: Tue Nov 3 13:28:52 2015 -0500 switch: Add a diagram to CSS node documentation gtk/gtkswitch.c | 5 +++++ 1 file changed, 5 insertions(+) commit 1f01b8d52ae869dac49b75220db8f739b5971e03 Author: Benjamin Otte Date: Tue Nov 3 18:53:45 2015 +0100 widget: Queue an allocate on hide This makes sure that hidden widgets always have priv->alloc_needed set on them. The constructor sets that flag, so we want to have it back when we revert to this state. This fixes GtkWindow skipping a size_allocate() when reshowing a previously hidden window and thereby not updating its allocation and clip. And that in turn would lead to draws not happening and us beig left with a black window. gtk/gtkwidget.c | 2 ++ 1 file changed, 2 insertions(+) commit 09f7c8511bf9dd6d597411d922b11c0a1c429ed9 Author: Matthias Clasen Date: Tue Nov 3 12:51:52 2015 -0500 model button: Add diagrams to the CSS node documentation gtk/gtkmodelbutton.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) commit 19b34a44b232d6b86700382ade1daced9d601a60 Author: Matthias Clasen Date: Tue Nov 3 12:20:53 2015 -0500 model button: Complete the CSS node conversion There was still style context saving in the draw function, and the CSS node was not always properly updated and positioned. Fix these things, and use the same CSS node for the arrow drawing as well. gtk/gtkmodelbutton.c | 138 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 100 insertions(+), 38 deletions(-) commit 6791c1413df55052f4dc270c644acac976dcd89a Author: Matthias Clasen Date: Tue Nov 3 10:43:48 2015 -0500 list box: Remove an unused static gtk/gtklistbox.c | 2 -- 1 file changed, 2 deletions(-) commit 77e99039fc84f58d1733b1cac16d39dbd08f6aaa Author: Matthias Clasen Date: Tue Nov 3 10:41:49 2015 -0500 file chooser button: Remove an unused variable gtk/gtkfilechooserbutton.c | 2 -- 1 file changed, 2 deletions(-) commit 67b739b58a8b7a3c20100fdab599abc437042723 Author: Matthias Clasen Date: Tue Nov 3 10:17:41 2015 -0500 button: Add diagrams to CSS node docs for buttons gtk/gtkcheckbutton.c | 10 ++++++++++ gtk/gtkradiobutton.c | 10 ++++++++++ 2 files changed, 20 insertions(+) commit 6328cf5ee5d233c90f8cf406a83a57c1745ebd6d Author: Matthias Clasen Date: Tue Nov 3 09:53:00 2015 -0500 entry: Add a diagram to CSS node docs gtk/gtkentry.c | 7 +++++++ 1 file changed, 7 insertions(+) commit c711906f8c26123b1f97b00538652b119eaef9c1 Author: Matthias Clasen Date: Tue Nov 3 07:42:05 2015 -0500 inspector: Replace a use of gtk_button_set_focus_on_click It is deprecated now. gtk/inspector/strv-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit de50012371233e11e439a2e592d765b0dbfcc453 Author: Florian Müllner Date: Fri Oct 23 22:43:11 2015 +0200 listbox: Implement :focus-on-click Similar to buttons-in-toolbars, it can make sense for listbox rows to not take away the focus from the main application view, for instance when used for navigation. Support this by taking the newly added GtkWidget:focus-on-click property into account. https://bugzilla.gnome.org/show_bug.cgi?id=757269 gtk/gtklistbox.c | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) commit e364ae3ea8ac72e636bb1dd91d98814b655e844e Author: Florian Müllner Date: Fri Oct 23 22:13:30 2015 +0200 Use gtk_widget_set_focus_on_click() instead of deprecated setters https://bugzilla.gnome.org/show_bug.cgi?id=757269 gtk/gtkentry.c | 2 +- gtk/gtkfilechooserdialog.c | 2 +- gtk/gtkpathbar.c | 2 +- gtk/gtkstackswitcher.c | 2 +- gtk/gtktextview.c | 2 +- gtk/gtktoolbar.c | 2 +- gtk/gtktoolbutton.c | 2 +- gtk/gtktoolitemgroup.c | 5 ++--- gtk/inspector/window.c | 2 +- 9 files changed, 10 insertions(+), 11 deletions(-) commit 9a29a2768b81395eb21db5bd8762c419b0e30a8f Author: Florian Müllner Date: Fri Oct 23 18:39:01 2015 +0200 Deprecate widget-specific :focus-on-click properties The differences between the existing properties and the newly added GtkWidget:focus-on-click property are minimal (different owner_type in GParamSpec), so it is extremely unlikely that dropping the former would break anything. https://bugzilla.gnome.org/show_bug.cgi?id=757269 gtk/gtkbutton.c | 32 +++----------------------------- gtk/gtkbutton.h | 4 ++-- gtk/gtkbuttonprivate.h | 1 - gtk/gtkcombobox.c | 39 ++++----------------------------------- gtk/gtkcombobox.h | 4 ++-- gtk/gtkfilechooserbutton.c | 42 ++---------------------------------------- gtk/gtkfilechooserbutton.h | 4 ++-- 7 files changed, 15 insertions(+), 111 deletions(-) commit ebdf5f581d4e93c577f4cdb2e47e30e393e61157 Author: Florian Müllner Date: Fri Oct 23 18:07:41 2015 +0200 widget: Add :focus-on-click property There are currently three widget that implement such a property, and there are other widgets for which the behavior can make sense. It seems like a good time to add the property to GtkWidget itself so subclasses can choose to respect it without adding their own property. https://bugzilla.gnome.org/show_bug.cgi?id=757269 gtk/gtkwidget.c | 82 +++++++++++++++++++++++++++++++++++++++++++++++++- gtk/gtkwidget.h | 5 +++ gtk/gtkwidgetprivate.h | 1 + 3 files changed, 87 insertions(+), 1 deletion(-) commit 7d8a3a52ce445bb0c0fe6a4e30526e1bc864fc4f Author: Carlos Garnacho Date: Fri Oct 16 19:52:50 2015 +0200 GdkDevice: Do not free construct-only properties data on dispose() Those are not references to other objects, and the device will be mostly useless if those can't be set again anyway. https://bugzilla.gnome.org/show_bug.cgi?id=756625 gdk/gdkdevice.c | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) commit 4f61fd09c565a7911201255865fa124b9bf5705a Author: Carlos Garnacho Date: Thu Oct 22 18:14:01 2015 +0200 texthandle: Request raising of text handle popovers. https://bugzilla.gnome.org/show_bug.cgi?id=756670 gtk/gtktexthandle.c | 1 + 1 file changed, 1 insertion(+) commit 9d1b8dfc61aaf88a4bb4c64a35acdf02ca1db4da Author: Carlos Garnacho Date: Thu Oct 22 18:13:19 2015 +0200 popover: Request raise on ::show This way latest shown popovers are ensured to be on top. https://bugzilla.gnome.org/show_bug.cgi?id=756670 gtk/gtkpopover.c | 3 +++ 1 file changed, 3 insertions(+) commit fa3e0be80c67fadfc724493634205bbbef381aa5 Author: Carlos Garnacho Date: Thu Oct 22 18:09:23 2015 +0200 GtkWindow: make popover stacking explicit The list of popovers will specify the stacking order, a _gtk_window_raise_popover() private call has been added so popover widgets can request being on top. Also, the stacking on popovers is ensured on gtk_window_size_allocate(), after the size/stacking changes on the child widget have finished, this will ensure popovers are kept on top of window contents. https://bugzilla.gnome.org/show_bug.cgi?id=756670 gtk/gtkwindow.c | 43 +++++++++++++++++++++++++++++++++++++++++-- gtk/gtkwindowprivate.h | 2 ++ 2 files changed, 43 insertions(+), 2 deletions(-) commit 29dd395b7a5b8af0af55c12763e470f1daec287b Author: Carlos Garnacho Date: Fri Oct 30 14:10:19 2015 +0100 x11: Detect single-touch touchscreens as GDK_SOURCE_TOUCHSCREEN Those won't have ABS_MT_* axes, so won't be reported has having XITouchClassInfo. Fallback on these to checking whether abs x/y axes are available. After the Wacom checks, any remaining device with absolute axes should be touchscreens, and GDK_SOURCE_MOUSE does indeed just make sense on devices with relative axes. https://bugzilla.gnome.org/show_bug.cgi?id=757358 gdk/x11/gdkdevicemanager-xi2.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) commit b3b4282beb9930b3d1688ff19f8016f35998427d Author: Dhiru Kholia Date: Tue Oct 27 22:08:59 2015 +0100 Fix a memory leak in gtk-3.0.m4 file This fix is inspired by, https://git.gnome.org/browse/glib/tree/m4macros/glib-2.0.m4 https://bugzilla.gnome.org/show_bug.cgi?id=757221 m4macros/gtk-3.0.m4 | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) commit a5b1cdd0c1178cbebc86a116645c2ecac62aaf65 Author: Olivier Fourdan Date: Fri Oct 30 17:38:25 2015 +0100 GtkWindow: Fix the shadow width logic Previous commit 305b34a "GtkWindow: fix move/get position with CSD" introduced a regression because some windows presumably use shadows but actually don't, resulting in a negative offset being wrongly applied. Problem is that get_shadow_width() would return non-zero shadows even for windows that have no shadow, thus causing the negative offset. Fix the logic in get_shadow_width() and gtk_window_should_use_csd() so that get_shadow_width() returns accurate values. Bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=756618 gtk/gtkwindow.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit 9f04efd316d384c8f7a99396713956e16814f478 Author: Matthias Clasen Date: Mon Nov 2 23:49:38 2015 -0500 Adwaita: Update menubar styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 1 + gtk/theme/Adwaita/gtk-contained-dark.css | 5 +++++ gtk/theme/Adwaita/gtk-contained.css | 5 +++++ 3 files changed, 11 insertions(+) commit a0d7b609e3f4123993c3572234dae4be9c1b14bf Author: Matthias Clasen Date: Mon Nov 2 23:49:20 2015 -0500 menubar: Use an element name gtk/gtkmenubar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit b6112c6ed6d6a82c4822e3cb16270edc89ae42b7 Author: Matthias Clasen Date: Mon Nov 2 23:43:58 2015 -0500 Adwaita: Update menu item styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 15 ++++---- gtk/theme/Adwaita/gtk-contained-dark.css | 65 +++++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 65 +++++++++++++++----------------- 3 files changed, 69 insertions(+), 76 deletions(-) commit aede5c65d336e288f3054f7ada888031f68b366d Author: Matthias Clasen Date: Mon Nov 2 23:42:14 2015 -0500 menu item: Use CSS nodes Use the element name menuitem for GtkMenuItem, GtkCheckMenuItem and GtkRadioMenuItem. GtkSeparatorMenuItem gets the name separator. Add a subnode with name arrow if a submenu is attached. Give the radio and check menu items a subnode with name check or radio. gtk/gtkcheckmenuitem.c | 150 ++++++++++++++++++++++++++++++++++++++------- gtk/gtkmenuitem.c | 125 +++++++++++++++++++++++++++++++------ gtk/gtkmenuitemprivate.h | 3 + gtk/gtkradiomenuitem.c | 5 ++ gtk/gtkseparatormenuitem.c | 7 ++- 5 files changed, 247 insertions(+), 43 deletions(-) commit ac553d7e44f44e161c204a04ab8480a9b619304c Author: Matthias Clasen Date: Mon Nov 2 23:06:57 2015 -0500 check button: Match documented behavior We were not actually adding the style classes that the documentation is talking about, for the !draw-indicator case. Fix that. gtk/gtkcheckbutton.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) commit dd01f2d4079c0274b98f17bafe9f029ab79df6e6 Author: Matthias Clasen Date: Mon Nov 2 22:20:04 2015 -0500 menu item: Remove an unused member Nobody is reading or writing this field, so we can do without it. gtk/gtkmenuitemprivate.h | 1 - 1 file changed, 1 deletion(-) commit 2ba957364d12984b7810f63431eef1cd05caa4a9 Author: Matthias Clasen Date: Mon Nov 2 21:49:10 2015 -0500 menu: Fix up CSS node ordering Keep the bottom arrow node at the end, where it belongs. gtk/gtkmenu.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 25e01a3937c2e67cf40be2c50aae6d4edac5abc3 Author: Matthias Clasen Date: Mon Nov 2 21:40:40 2015 -0500 menu: Document CSS nodes gtk/gtkmenu.c | 6 ++++++ 1 file changed, 6 insertions(+) commit 0e41ff015ca0b8c20763928691d2610459af1d53 Author: Matthias Clasen Date: Mon Nov 2 21:34:14 2015 -0500 HighContrast: Update menu styling Support the element names introduced in the previous commit. gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) commit f8c3e48bd21de865c38abd56ba503f7d47378b98 Author: Matthias Clasen Date: Mon Nov 2 20:47:04 2015 -0500 Adwaita: Update menu styling Support the element names introduced in the previous commit. gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 36 +++++++++++++++++++++----------- gtk/theme/Adwaita/gtk-contained.css | 36 +++++++++++++++++++++----------- 3 files changed, 50 insertions(+), 25 deletions(-) commit 0b52b29dfc05cb042617f14dd2afb85fd4a038a7 Author: Matthias Clasen Date: Mon Nov 2 20:45:46 2015 -0500 menu: Port to use css nodes Use the element name menu for the main node, and use two subnodes with name arrow and style classes .top and .bottom for the arrows of scrolling menus. gtk/gtkmenu.c | 77 ++++++++++++++++++++++++++++++++++++++++++---------- gtk/gtkmenuprivate.h | 4 +++ 2 files changed, 66 insertions(+), 15 deletions(-) commit f6ca908e033269ee458539add9c05eda4a19d2a3 Author: Cosimo Cecchi Date: Mon Nov 2 16:05:07 2015 -0800 menushell: don't call gtk_render_background() GtkMenu and GtkMenuBar, the two implementations of GtkMenuShell in GTK, already draw it. Furthermore, rendering a background here will overdraw any rendering that the subclass will do, such as arrows for scrolling menus. gtk/gtkmenushell.c | 15 --------------- 1 file changed, 15 deletions(-) commit 7cdfee71da41d4ed3c6e81b2695e4bb932e9cd6c Author: Benjamin Otte Date: Mon Nov 2 20:25:09 2015 +0100 inspector: Do not show transient nodes This is kind of a hack the way it's implemented, but it's necessary for performance to ignore transient nodes as they get created all the time (via gtk_style_context_save()) and invalidate the whole treeview. And that causes resizes and redrawing of the treeview and performance of the inspector would go down the drain now that we display a larger part of the node tree. gtk/inspector/gtktreemodelcssnode.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 81de33e906511de827682ea134d92e40429d023a Author: Benjamin Otte Date: Mon Nov 2 20:16:23 2015 +0100 inspector: Always show full CSS node tree Just select the node of the current widget whenever a new one gets selected. gtk/inspector/css-node-tree.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) commit 96a485d8b22e7ac2bc155350b8d084fd0e0f6292 Author: Benjamin Otte Date: Mon Nov 2 17:04:39 2015 +0100 gdkrgba: Use %g instead of %.17g to print alpha This way 0.3 isn't printed as 0.29999999999999 gdk/gdkrgba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5ebb713df5bea611c4e862b69c9f1d5cd6df3a75 Author: Matthias Clasen Date: Mon Nov 2 14:26:50 2015 -0500 HighContrast: Update combobox styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 31 ++++++++++++++------------ gtk/theme/HighContrast/gtk.css | 44 +++++++++++++++++-------------------- 2 files changed, 37 insertions(+), 38 deletions(-) commit 0d12cc33545e2888b2caa190f8de8c4f883f0125 Author: Matthias Clasen Date: Mon Nov 2 14:22:49 2015 -0500 Adwaita: Update combobox styling Adapt to the changes in the previous commit. Some further fixes will be necessary here. gtk/theme/Adwaita/_common.scss | 49 ++++++++++++++-------------- gtk/theme/Adwaita/gtk-contained-dark.css | 56 +++++++++++++------------------- gtk/theme/Adwaita/gtk-contained.css | 56 +++++++++++++------------------- 3 files changed, 70 insertions(+), 91 deletions(-) commit d229ea3de163fa92a94bc921f5eb6db11939e9e8 Author: Matthias Clasen Date: Mon Nov 2 13:15:05 2015 -0500 combobox: Use element names Use combobox as the element name for the main CSS nodes of GtkComboBox and GtkComboBoxText. Add the .combo style class to the button and entry. in a GtkComboBox or GtkComboBoxText. gtk/gtkcombobox.c | 16 +++++++++++++++- gtk/ui/gtkcombobox.ui | 3 --- 2 files changed, 15 insertions(+), 4 deletions(-) commit e56bb49407534297fa74c194783301d8fc1bb844 Author: Matthias Clasen Date: Mon Nov 2 12:53:57 2015 -0500 popover: Document differentiating style classes There's a lot of popover variations out there. gtk/gtkpopover.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit 13d091f700c4bbaddc3c9cba12746a38838b6f71 Author: Matthias Clasen Date: Mon Nov 2 12:51:00 2015 -0500 button: Mention differentiating style classes There's a lot of button variations out there, lets document the ones we know about. gtk/gtkbutton.c | 5 +++++ 1 file changed, 5 insertions(+) commit 113c88c2cf440ea3ac0e4c325685452494d11ec8 Author: Matthias Clasen Date: Mon Nov 2 12:47:14 2015 -0500 HighContrast: Update magnifier styling Adapt to changes in the previous commit. gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) commit 85bfe9ee382ac0c4c0b271c51fbfeb83d32e0490 Author: Matthias Clasen Date: Mon Nov 2 12:46:45 2015 -0500 Adwaita: Update magnifier styling Adapt to changes in the previous commit. gtk/theme/Adwaita/_common.scss | 3 +- gtk/theme/Adwaita/gtk-contained-dark.css | 82 +++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 82 +++++++++++++++++--------------- 3 files changed, 90 insertions(+), 77 deletions(-) commit d5ff9af94e7f044c86eb9aafffdbd2d00c5fb048 Author: Matthias Clasen Date: Mon Nov 2 12:40:38 2015 -0500 entry, textview: Use a dedicated style class for magnifier This will free up "osd" as an application-level style class, and lets us style magnifiers differently. gtk/gtkentry.c | 2 +- gtk/gtktextview.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit f2434e7cea0c5194f03c9ca4e357bec4a4f1bc6e Author: Matthias Clasen Date: Mon Nov 2 12:27:36 2015 -0500 file chooser button: Add a style class Unfortunately, GtkFileChooserButton is different from the other pickers in that it is not a button, but rather has a button. We ignore the difference for styling purposes, and just add a .file style class to the button. gtk/ui/gtkfilechooserbutton.ui | 3 +++ 1 file changed, 3 insertions(+) commit 957135a57c9c7eb5c3b334a7528f91f96fd1b820 Author: Matthias Clasen Date: Mon Nov 2 12:21:39 2015 -0500 Adwaita: Fix menu separators These were inadvertedly broken by the element name conversion for regular separators. gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 7 +++++-- gtk/theme/Adwaita/gtk-contained.css | 7 +++++-- 3 files changed, 12 insertions(+), 5 deletions(-) commit 9e2b796e77c7143cc3ff1d68f8f35a6b0858856c Author: Cemil Azizoglu Date: Thu Oct 15 12:11:36 2015 -0500 mir: Print hscroll and vscroll values when debugging. Signed-off-by: William Hua gdk/mir/gdkmir-debug.c | 2 ++ 1 file changed, 2 insertions(+) commit 5c53e873b1f6a2af481be850ab6c9e9915b60b3a Author: Benjamin Otte Date: Sun Nov 1 16:45:11 2015 +0100 inspector: Track updates of node styles When the CSS style of a node changes, we want to display the new values in the inspector. This for example allows to see how styles update on hover or during animations. gtk/inspector/css-node-tree.c | 65 ++++++++++++++++++++++++++++++------------- 1 file changed, 45 insertions(+), 20 deletions(-) commit f4c30060beab3c11887a2d6b732154a38d4c8be9 Author: Colomban Wendling Date: Sat Oct 31 23:02:36 2015 +0100 cssnode: Fix style updating when the CSS node ID changes Since 4ebb5781eaf332da3f8ce5ffb5ecc8668a56f118 ID has a specific value, while it used to be the same as NAME. Thus, explicitly list ID as a radical change just like NAME. https://bugzilla.gnome.org/show_bug.cgi?id=757397 gtk/gtkcssnode.c | 2 +- gtk/gtkcsswidgetnode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 79a3a7800e0babb8cc7f1738ce2d0b0298fbcf8b Author: Colomban Wendling Date: Sun Nov 1 02:31:53 2015 +0100 cssnode: Fix a typo leading to very poor cache hashing gtk/gtkcssnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit eef5f27fb49134bf72565d685f1c4a4434cf2615 Author: Colomban Wendling Date: Sun Nov 1 02:35:09 2015 +0100 gtkcontainer: Guard internal use of deprecated public API gtk/gtkcontainer.c | 2 ++ 1 file changed, 2 insertions(+) commit e0f4bf5d3523c65521a5ac0768c5770fb7836bd9 Author: Benjamin Otte Date: Sun Nov 1 02:34:41 2015 +0100 inspector: Store the current node in the priv struct gtk/inspector/css-node-tree.c | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) commit b89939f5a4554fd8e16169bb77fbcca3e1f6069d Author: Benjamin Otte Date: Sat Oct 31 17:14:14 2015 +0100 inspector: Split out a function gtk/inspector/css-node-tree.c | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) commit 7568d17a1507de88cbaa6264bacf825c0ff60350 Author: Matthias Clasen Date: Sat Oct 31 21:02:36 2015 -0400 toolpalette: Use element names Give the GtkToolPalette and GtkToolItemGroup the element names toolpalette and toolitemgroup. gtk/gtktoolitemgroup.c | 6 ++++++ gtk/gtktoolpalette.c | 6 ++++++ 2 files changed, 12 insertions(+) commit cacc63ea4b887da72a07a938ab9a0cd59d8100e5 Author: Matthias Clasen Date: Sat Oct 31 20:55:51 2015 -0400 HighContrast: Update toolbutton styling gtk/theme/HighContrast/_common.scss | 4 ++-- gtk/theme/HighContrast/gtk.css | 28 ++++++++++++++-------------- 2 files changed, 16 insertions(+), 16 deletions(-) commit 1bc2913f524895c25df306af25e965903563cc17 Author: Matthias Clasen Date: Sat Oct 31 20:52:41 2015 -0400 Adwaita: Update tool button styling gtk/theme/Adwaita/_common.scss | 6 +- gtk/theme/Adwaita/gtk-contained-dark.css | 146 +++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 146 +++++++++++++++---------------- 3 files changed, 149 insertions(+), 149 deletions(-) commit 4323dd34f3bd3caf7be854f978e3742ba1b0965e Author: Matthias Clasen Date: Sat Oct 31 20:52:09 2015 -0400 tool button: Add an element name Unsurprisingly, it is toolbutton. gtk/gtktoolbutton.c | 6 ++++++ 1 file changed, 6 insertions(+) commit dba8eba6dbd309ddda7b1a07184f6fafe8f8574e Author: Matthias Clasen Date: Sat Oct 31 20:43:07 2015 -0400 HighContrast: Update toolbar styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 6 +++--- gtk/theme/HighContrast/gtk.css | 30 +++++++++++++++--------------- 2 files changed, 18 insertions(+), 18 deletions(-) commit 5ffd54aca88006fda489fbd6f5c07a77ebfdf72a Author: Matthias Clasen Date: Sat Oct 31 20:42:41 2015 -0400 Adwaita: Update toolbar styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 14 +++---- gtk/theme/Adwaita/gtk-contained-dark.css | 70 ++++++-------------------------- gtk/theme/Adwaita/gtk-contained.css | 70 ++++++-------------------------- 3 files changed, 31 insertions(+), 123 deletions(-) commit 7ee7019ca744107b69a3b9dd0b632edc9341e86c Author: Matthias Clasen Date: Sat Oct 31 20:30:56 2015 -0400 toolbar: Use an element name instead of a style class The element name is ... toolbar. gtk/gtktoolbar.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 479d64e89ac2a1e7b1e6f4f91b31edd8bdaef4cc Author: Matthias Clasen Date: Sat Oct 31 20:30:03 2015 -0400 progress bar: Add CSS documentation gtk/gtkprogressbar.c | 7 +++++++ 1 file changed, 7 insertions(+) commit ca385af3c491523bf449c02403640ed08e043a4b Author: Matthias Clasen Date: Sat Oct 31 20:24:46 2015 -0400 HighContrast: Update progressbar styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 52 ++++++++++++++++--------------------- gtk/theme/HighContrast/gtk.css | 45 +++++++++++++++----------------- 2 files changed, 44 insertions(+), 53 deletions(-) commit 71afd762ed259abe05618674007b05d49993a68c Author: Matthias Clasen Date: Sat Oct 31 20:24:19 2015 -0400 Adwaita: Update progressbar styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 56 +++++++++++++------------- gtk/theme/Adwaita/gtk-contained-dark.css | 67 ++++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 67 ++++++++++++++++---------------- 3 files changed, 95 insertions(+), 95 deletions(-) commit 73704d98cce5ccf69dde88762440e8da711c21fb Author: Matthias Clasen Date: Sat Oct 31 20:20:13 2015 -0400 progressbar: Convert to CSS nodes Use the element names progressbar and progress. gtk/gtkprogressbar.c | 179 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 140 insertions(+), 39 deletions(-) commit bab20f1d10559903b77091fc75a1bc2f222d20df Author: Matthias Clasen Date: Sat Oct 31 19:23:47 2015 -0400 trivial formatting fix gtk/gtkswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7ea33d82ed1f0c39696914db53b7c833961c1660 Author: Matthias Clasen Date: Sat Oct 31 19:19:53 2015 -0400 Remove a duplicate include gtk/gtkswitch.c | 1 - 1 file changed, 1 deletion(-) commit d3abd83330851dc75ea8f7b9e8c437544d2ea30c Author: Matthias Clasen Date: Sat Oct 31 19:13:32 2015 -0400 Adwaita: Fix up color button styling There was one forgotten instance of the GtkColorSwatch type name. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++-- gtk/theme/Adwaita/gtk-contained.css | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) commit 7465601c1ea42b1e26782c5fbf25492fd40e15d7 Author: Matthias Clasen Date: Sat Oct 31 19:11:18 2015 -0400 HighContrast: Update the frame styling Adapt to the changes in the previous commit. gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 4 ++++ 2 files changed, 5 insertions(+) commit 3de78decd41ff9785674d10940fdb7c62fa77b8c Author: Matthias Clasen Date: Sat Oct 31 19:10:52 2015 -0400 Adwaita: Update frame styling Adapt to the changes in the previous commit. gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++++- gtk/theme/Adwaita/gtk-contained.css | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) commit aa5dc38b0df3719a3407f8471c50b0355c113b5f Author: Matthias Clasen Date: Sat Oct 31 19:09:46 2015 -0400 frame: Use an element name instead of a style class Unsurprisingly, the element name is ... frame. gtk/gtkframe.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) commit 1f585151fd07c40fd1dd8600bc342f4db036bce9 Author: Matthias Clasen Date: Sat Oct 31 18:13:29 2015 -0400 Load settings.ini from all data dirs An error in the loading function was making us load the file from the first data dir repeatedly, instead. https://bugzilla.gnome.org/show_bug.cgi?id=757377 gtk/gtksettings.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit 8606e57910fb3ea4c66448702ee7e3bb73f3c29d Author: Paolo Borelli Date: Thu Oct 29 17:20:54 2015 +0100 win32: handle WM_DISPLAYCHANGE globally Instead of handling WM_DISPLAYCHANGE on every GdkWindow, only handle it on an ad-hoc hidden window we create when opening the display. This has two reasons: 1) we want emit the display::size-changed signal even if there are no gtk windows currently open 2) we want to emit the signal just once and not once for every window https://bugzilla.gnome.org/show_bug.cgi?id=757324 gdk/win32/gdkdisplay-win32.c | 84 ++++++++++++++++++++++++++++++++++++++++++-- gdk/win32/gdkdisplay-win32.h | 2 ++ gdk/win32/gdkevents-win32.c | 12 ------- 3 files changed, 84 insertions(+), 14 deletions(-) commit e2e198aae4b6f524c30e8215d44fa7507171b36b Author: Matthias Clasen Date: Sat Oct 31 00:08:00 2015 -0400 model button: Propagate state Propagate the state to the CSS node for the indicator. gtk/gtkmodelbutton.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit b6fda5dc0a847c582f53d984f439c4e449797f33 Author: Matthias Clasen Date: Sat Oct 31 00:07:19 2015 -0400 inspector: Show CSS node state This is useful when debugging state propagation issues between CSS nodes. gtk/inspector/css-node-tree.c | 36 ++++++++++++++++++++++++++++++++++++ gtk/inspector/css-node-tree.ui | 13 +++++++++++++ 2 files changed, 49 insertions(+) commit c265b581815fa3db596fd1276429bd506b9dbd43 Author: Matthias Clasen Date: Fri Oct 30 23:49:44 2015 -0400 HighContrast: adjust message dialog styling gtk/theme/HighContrast/_common.scss | 4 ++-- gtk/theme/HighContrast/gtk.css | 48 ++++++++++++++++++------------------- 2 files changed, 26 insertions(+), 26 deletions(-) commit d70d5ea6ec97481518f16e36884d3da368c56a25 Author: Matthias Clasen Date: Fri Oct 30 23:49:17 2015 -0400 adwaita: Adjust message dialog styling gtk/theme/Adwaita/_common.scss | 6 +-- gtk/theme/Adwaita/gtk-contained-dark.css | 76 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 78 ++++++++++++++++---------------- 3 files changed, 82 insertions(+), 78 deletions(-) commit 4fe1b9589ee2d0df1afb6f8f822cbfb30854c6e0 Author: Matthias Clasen Date: Fri Oct 30 23:48:46 2015 -0400 message dialog: Use an element name gtk/gtkmessagedialog.c | 2 ++ gtk/ui/gtkmessagedialog.ui | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) commit dfedda3deefc16a5ef8c45218dd600f81fd16d71 Author: Matthias Clasen Date: Fri Oct 30 22:16:18 2015 -0400 color editor: Redo the non-activatable color swatch Use a .activatable style class on the color swatch and tie the hover effect to it. The color editor simply removes this class now to get an inert color swatch. This is more flexible and lets us avoid referring to the GtkColorEditor type in the theme. gtk/gtkcoloreditor.c | 2 ++ gtk/gtkcolorswatch.c | 8 ++++++++ gtk/theme/Adwaita/_common.scss | 14 ++------------ gtk/theme/Adwaita/gtk-contained-dark.css | 11 ++--------- gtk/theme/Adwaita/gtk-contained.css | 11 ++--------- gtk/theme/HighContrast/_common.scss | 14 ++------------ gtk/theme/HighContrast/gtk.css | 9 +-------- 7 files changed, 19 insertions(+), 50 deletions(-) commit 42a231a61c609f095a58f82a620a147890261435 Author: Matthias Clasen Date: Fri Oct 30 21:46:36 2015 -0400 HighContrast: Adapt to color swatch changes This needs more work and simplification. gtk/theme/HighContrast/_common.scss | 24 +++++++++--------- gtk/theme/HighContrast/gtk.css | 50 ++++++++++++++++++------------------- 2 files changed, 37 insertions(+), 37 deletions(-) commit 4e8aea012e081c84351e3abb2459926e519a88d8 Author: Matthias Clasen Date: Fri Oct 30 21:44:19 2015 -0400 Adwaita: Adapt to color swatch changes This needs more work and simplification. gtk/theme/Adwaita/_common.scss | 40 ++++++++++----------- gtk/theme/Adwaita/gtk-contained-dark.css | 62 ++++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 62 ++++++++++++++++---------------- 3 files changed, 82 insertions(+), 82 deletions(-) commit 5ec9b330b3cd42b97e08b44b7272ada32e0b3a47 Author: Matthias Clasen Date: Fri Oct 30 21:43:50 2015 -0400 swatch fixup gtk/gtkcolorswatch.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) commit e5d3c8dbae11e8e537eec25a663696fb63876f9a Author: Matthias Clasen Date: Fri Oct 30 21:29:46 2015 -0400 color swatch: Convert to CSS nodes Convert GtkColorSwatch to use the two elements colorswatch and image. gtk/gtkcolorswatch.c | 53 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 13 deletions(-) commit e3ef2c48d5fc8aecdb1b24a68bb45c25e8697360 Author: Matthias Clasen Date: Fri Oct 30 21:00:01 2015 -0400 text view: Add css node docs gtk/gtktextview.c | 7 +++++++ 1 file changed, 7 insertions(+) commit a4a3736461d2c98a8029d100f0e6a7e188e91dd0 Author: Matthias Clasen Date: Fri Oct 30 19:58:11 2015 -0400 HighContrast: Update textview styling Some updates to make text appear as usual. gtk/theme/HighContrast/_common.scss | 1 + gtk/theme/HighContrast/gtk.css | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) commit b39601bcc150e0bf49489ff1cb1c95a443f82987 Author: Matthias Clasen Date: Fri Oct 30 19:55:42 2015 -0400 Adwaita: Update textview styling Some updates to make text appear as usual. The border windows probably need some more work. gtk/theme/Adwaita/_common.scss | 3 ++- gtk/theme/Adwaita/gtk-contained-dark.css | 26 +++++++++++++++++++------- gtk/theme/Adwaita/gtk-contained.css | 26 +++++++++++++++++++------- 3 files changed, 40 insertions(+), 15 deletions(-) commit 844f60f1f22722b3c27a72e1c981cf499ff945c0 Author: Matthias Clasen Date: Fri Oct 30 19:49:02 2015 -0400 text view: Convert to CSS nodes Use subnodes for the border windows, and add children to the right subnodes. gtk/gtktextview.c | 209 +++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 166 insertions(+), 43 deletions(-) commit 2b998aaad7146b1ac300eefc39ed6fb851a763b8 Author: Matthias Clasen Date: Fri Oct 30 18:11:13 2015 -0400 text view: Set an element name And it will be...drumroll...textview. gtk/gtktextview.c | 1 + 1 file changed, 1 insertion(+) commit ee3799f151ed64ba5acde5ea1e33833608c0076a Author: Matthias Clasen Date: Fri Oct 30 17:44:36 2015 -0400 icon view: Add an element name Not surprising anybody, I decided to call it iconview. gtk/gtkiconview.c | 5 +++++ 1 file changed, 5 insertions(+) commit f97e2599e359fd0d03a777e8c9022ab5c7ed9f7d Author: Matthias Clasen Date: Fri Oct 30 17:38:04 2015 -0400 HighContrast: Adapt to changed treeview names gtk/theme/HighContrast/_common.scss | 43 +++++++++--------- gtk/theme/HighContrast/gtk.css | 89 ++++++++++++++++++------------------- 2 files changed, 66 insertions(+), 66 deletions(-) commit 739e0c17a174366366236b2b31b31d7524cc0ea7 Author: Matthias Clasen Date: Fri Oct 30 17:37:32 2015 -0400 Adwaita: Adapt to changed treeview names gtk/theme/Adwaita/_common.scss | 76 +++++++++---------- gtk/theme/Adwaita/gtk-contained-dark.css | 124 ++++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 124 ++++++++++++++----------------- 3 files changed, 146 insertions(+), 178 deletions(-) commit 5b360a479d576a00b6452599e595063db454cfaf Author: Matthias Clasen Date: Fri Oct 30 17:25:43 2015 -0400 tree view: Rename and document element names The names are now treeview and header. gtk/gtktreeview.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) commit a24dba28ae1bc41b5b3e5a8e2af188cd9a03aa87 Author: Matthias Clasen Date: Fri Oct 30 17:18:06 2015 -0400 HighContrast: Update font button styling Use the new element name and style class. gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) commit 2cff7a68f2f971985f53f1f0a47085679d90d30c Author: Matthias Clasen Date: Fri Oct 30 17:17:41 2015 -0400 Adwaita: Update font button styling Use the new element name and style class. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit bd456ac67b16f3a637b2ef84143de316887442b6 Author: Matthias Clasen Date: Fri Oct 30 17:09:59 2015 -0400 font button: Add an element name Give this GtkButton subclass element name button and style class .font. gtk/gtkfontbutton.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 85d971b40b15a58780a9c16eec3ccecb7a98b7f6 Author: Matthias Clasen Date: Fri Oct 30 12:52:47 2015 -0400 HighContrast: Update paned styling Adapt to the new element names. gtk/theme/HighContrast/_common.scss | 25 ++++++++++++------------- gtk/theme/HighContrast/gtk.css | 27 +++++++++++++++------------ 2 files changed, 27 insertions(+), 25 deletions(-) commit 828faaba64884e0f68c48dbb67d663af6b9e6d43 Author: Matthias Clasen Date: Fri Oct 30 12:50:32 2015 -0400 Adwaita: Update paned styling Adapt to the new element names in the previous commit. This also adds back a selected state which gets used for when the focus is placed on the separator with F8, just so this functionality is not forgotten. gtk/theme/Adwaita/_common.scss | 15 +++++++++------ gtk/theme/Adwaita/gtk-contained-dark.css | 18 ++++++++++-------- gtk/theme/Adwaita/gtk-contained.css | 18 ++++++++++-------- 3 files changed, 29 insertions(+), 22 deletions(-) commit 0f2ce2bb1c3e91d2723a1fa4d305f38629c67e98 Author: Matthias Clasen Date: Fri Oct 30 12:44:24 2015 -0400 paned: Convert to CSS nodes Add a subnode for the separator, and use it for drawing. gtk/gtkpaned.c | 89 +++++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 76 insertions(+), 13 deletions(-) commit cc872f3c08fc3ffe0e83d1d95b42a4290011e9be Author: Piotr Drąg Date: Fri Oct 30 19:52:41 2015 +0100 Updated POTFILES.in and POTFILES.skip po-properties/POTFILES.in | 1 - po-properties/POTFILES.skip | 2 -- po/POTFILES.in | 3 --- 3 files changed, 6 deletions(-) commit 97c1782246ec7b98038a8377789ad358a9ef05ac Author: Matthias Clasen Date: Fri Oct 30 14:51:41 2015 -0400 Update the generated css for the previous commit gtk/theme/Adwaita/gtk-contained-dark.css | 38 ++++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 38 ++++++++++++++++---------------- gtk/theme/HighContrast/gtk.css | 26 ++++++++++++---------- 3 files changed, 52 insertions(+), 50 deletions(-) commit 33ac663b13564b7762e13fa43f4be5c5e99efa5a Author: Timm Bäder Date: Fri Oct 30 15:08:18 2015 +0100 popover: Use element name Pick "popover" and add .menu for popover menus gtk/gtkpopover.c | 14 +++++++++----- gtk/gtkpopovermenu.c | 10 +++++++++- gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/HighContrast/_common.scss | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) commit 50c6a11b050c97f5a3f901340ffb6628c84af6c9 Author: Georges Basile Stavracas Neto Date: Thu Oct 29 10:14:57 2015 -0200 placesview: vertically align path labels The current situation is somewhat sad, with the path label totally misaligned throughout the rows. This is fixed by using a size group for the path labels, so they all have the same allocated size (with the max of 15 chars). Also, instead of hiding the eject button, set it child-invisible, so it is hidden and yet it's size is allocated by GtkBox. https://bugzilla.gnome.org/show_bug.cgi?id=757303 gtk/gtkplacesview.c | 6 ++++++ gtk/gtkplacesviewrow.c | 18 +++++++++++++++++- gtk/gtkplacesviewrowprivate.h | 4 ++++ gtk/ui/gtkplacesviewrow.ui | 4 ++-- 4 files changed, 29 insertions(+), 3 deletions(-) commit 84380b345d93b2a7d5ca6c78e565d3d6ec4ad3e1 Author: Lapo Calamandrei Date: Fri Oct 30 13:17:52 2015 +0100 Adwaita: fix vertical switch styling gtk/theme/Adwaita/_common.scss | 6 +- gtk/theme/Adwaita/gtk-contained-dark.css | 173 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 169 +++++++++++++++--------------- 3 files changed, 183 insertions(+), 165 deletions(-) commit 0a845fb563941bd5aa38ea459a6e1e1b1fdc6e5f Author: Lapo Calamandrei Date: Fri Oct 30 12:53:44 2015 +0100 Adwaita: fix switch sizing moving -GtkSwitch-slider-width and -GtkSwitch-slider-height from the GtkSwitch selector to the * wildcard selector as other style props. gtk/theme/Adwaita/_common.scss | 11 +++++------ gtk/theme/Adwaita/gtk-contained-dark.css | 7 +++---- gtk/theme/Adwaita/gtk-contained.css | 7 +++---- 3 files changed, 11 insertions(+), 14 deletions(-) commit af3789bb871eaf4d968fef8d066badd5cfb3c228 Author: Matthias Clasen Date: Fri Oct 30 06:49:57 2015 -0400 inspector: Drop the style property list Style properties are now shown for each CSS node in the CSS node tab, so we don't need a separate per-widget tab for this. gtk/inspector/Makefile.inc | 3 - gtk/inspector/init.c | 2 - gtk/inspector/style-prop-list.c | 291 ------------------------------------- gtk/inspector/style-prop-list.h | 59 -------- gtk/inspector/style-prop-list.ui | 138 ------------------ gtk/inspector/style-prop-list.ui.h | 3 - gtk/inspector/window.c | 3 - gtk/inspector/window.ui | 7 - 8 files changed, 506 deletions(-) commit 91af42263bd5a218d25fec087c35a68498b47f67 Author: Matthias Clasen Date: Fri Oct 30 06:37:27 2015 -0400 inspector: Drop the style classes list Style classes can now be added/removed for each CSS node in the CSS node tab, so we don't need a separate per-widget tab for this. gtk/inspector/Makefile.inc | 3 - gtk/inspector/classes-list.c | 328 ---------------------------------------- gtk/inspector/classes-list.h | 59 -------- gtk/inspector/classes-list.ui | 106 ------------- gtk/inspector/classes-list.ui.h | 3 - gtk/inspector/init.c | 2 - gtk/inspector/window.c | 3 - gtk/inspector/window.ui | 7 - 8 files changed, 511 deletions(-) commit 3eec0876abdb595f99ac16366d058d7822482094 Author: Yosef Or Boczko Date: Fri Oct 30 12:26:52 2015 +0200 Updated Hebrew translation po-properties/he.po | 2719 ++++++++++++++++++++++++++------------------------- po/he.po | 551 ++++++----- 2 files changed, 1668 insertions(+), 1602 deletions(-) commit aa6e0ad3f2bd88a1117d663b4e148e72bd3ed074 Author: Matthias Clasen Date: Fri Oct 30 01:21:13 2015 -0400 menu button: Revisit style class one more time Use .popup, which is already in use elsewhere, fits better with the other button differentiating style classes, and does not interfere with menus. gtk/gtkmenubutton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit c925a840b2c3d9fcf4ecce6a5dd2878b3ee5c045 Author: Matthias Clasen Date: Fri Oct 30 01:16:49 2015 -0400 HighContrast: Update color button styling Adapt to the previous commit. gtk/theme/HighContrast/_common.scss | 4 ++-- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit e148876dd4514675df5956230d2706b0998dc780 Author: Matthias Clasen Date: Fri Oct 30 01:16:26 2015 -0400 Adwaita: Update color button styling Adapt to the previous commit. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 7 ++++--- gtk/theme/Adwaita/gtk-contained.css | 7 ++++--- 3 files changed, 9 insertions(+), 7 deletions(-) commit 7d18398eebe52da382a2d3255e6de8f49c5b9798 Author: Matthias Clasen Date: Fri Oct 30 01:15:57 2015 -0400 color button: Add a style class Add a .color style class to differentiate this button from the normal ones. gtk/gtkcolorbutton.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit 908e046cbd7545280154e1f8228196ee64d51cfb Author: Marek Černocký Date: Fri Oct 30 07:12:33 2015 +0100 Updated Czech translation po/cs.po | 184 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 93 insertions(+), 91 deletions(-) commit 43e2ee31bc92808dec76c00bab98d78a3bb6669f Author: Matthias Clasen Date: Fri Oct 30 01:09:18 2015 -0400 HighContrast: Update headerbar styling Adapt to the previous commit. gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 46 ++++++++++++++++++------------------- 2 files changed, 24 insertions(+), 24 deletions(-) commit 40f9a0fe697c6c55c199a93174e3380d1f80422e Author: Matthias Clasen Date: Fri Oct 30 01:08:30 2015 -0400 Adwaita: Update headerbar styling Adapt to the previous commit. gtk/theme/Adwaita/_common.scss | 6 +- gtk/theme/Adwaita/gtk-contained-dark.css | 768 ++++++++++++++++--------------- gtk/theme/Adwaita/gtk-contained.css | 768 ++++++++++++++++--------------- 3 files changed, 817 insertions(+), 725 deletions(-) commit 8c0c0f9c07068286ef3b345bb37e4f91146b57bb Author: Matthias Clasen Date: Fri Oct 30 01:07:58 2015 -0400 headerbar: Use an element name instead of a style class Use the element name headerbar. gtk/gtkheaderbar.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit b9c565b06c43503b881e49ff12d87175b29e9684 Author: Matthias Clasen Date: Fri Oct 30 01:07:27 2015 -0400 Revisit menu button style Change the style class to .menubutton, to avoid interference from GtkMenu theming. gtk/gtkmenubutton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ee81f3ee2feae45ecbff698acbb4adac186ac169 Author: Matthias Clasen Date: Fri Oct 30 00:54:37 2015 -0400 menu button: Add a style class Add a .menu style class to differentiate menu buttons from normal ones. gtk/gtkmenubutton.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 2c5e25a5c719e9b3375461adf3502e7fc2110b03 Author: Matthias Clasen Date: Fri Oct 30 00:51:13 2015 -0400 scale button: Add a style class Add a .scale style class to differentiate scale buttons from normal ones. gtk/gtkscalebutton.c | 10 ++++++++++ 1 file changed, 10 insertions(+) commit 4cd408e8d070d93e40ee346e378a410b2c6438c9 Author: Matthias Clasen Date: Fri Oct 30 00:50:48 2015 -0400 link button: Add a style class Add a .link style class to differentiate link buttons from normal buttons. gtk/gtklinkbutton.c | 11 +++++++++++ 1 file changed, 11 insertions(+) commit 9e5914ebde6bf7f4aebcaef620a75c129b3a3546 Author: Matthias Clasen Date: Fri Oct 30 00:38:43 2015 -0400 HighContrast: Updates for recent changes This is bit of a grab-bag, it includes fixes for spin buttons, entries, buttons. gtk/theme/HighContrast/_common.scss | 85 ++++--- gtk/theme/HighContrast/gtk.css | 494 ++++++++++++++++++------------------ 2 files changed, 295 insertions(+), 284 deletions(-) commit d0e91ec0887ad0ed49768c00f1f9bdf472dcfa2e Author: Matthias Clasen Date: Fri Oct 30 00:31:02 2015 -0400 Adwaita: Adapt to the button changes The updates here cover the various button variants. gtk/theme/Adwaita/_common.scss | 9 +- gtk/theme/Adwaita/gtk-contained-dark.css | 313 +++++++++++---------- gtk/theme/Adwaita/gtk-contained.css | 457 ++++++++++++++++--------------- 3 files changed, 399 insertions(+), 380 deletions(-) commit 8894e4618312f2e33611d83fbc04cfaecebeb7c4 Author: Matthias Clasen Date: Fri Oct 30 00:29:47 2015 -0400 model button: Convert to CSS nodes Follow the same approach as used for the toggle button family: Keep the button element name for button-like rendering, and use a distinct modelbutton name otherwise, and add a subnode for the indicator with name check or radio. gtk/gtkmodelbutton.c | 72 ++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 13 deletions(-) commit c631656f0ca4e13c7a262ed076bc7eda52fe03a1 Author: Matthias Clasen Date: Fri Oct 30 00:27:13 2015 -0400 toggle button: Convert to css nodes Convert GtkToggleButton and its subclasses to CSS nodes. Keep the button element name for when we want to render these button-like (but with .toggle, .check and .radio style classes for differentiation). When we want to render them with an indicator, use distinct element names checkbutton and radiobutton, and add a subnode for the indicator with name check or radio. gtk/Makefile.am | 1 + gtk/gtkcheckbutton.c | 105 ++++++++++++++++++++++++++++++++++++-------- gtk/gtkcheckbuttonprivate.h | 40 +++++++++++++++++ gtk/gtkradiobutton.c | 22 ++++++++-- gtk/gtktogglebutton.c | 18 +++----- 5 files changed, 152 insertions(+), 34 deletions(-) commit 826633b5b7a53aeed47b75455ecac1648f5ba027 Author: Matthias Clasen Date: Fri Oct 30 00:26:04 2015 -0400 lockbutton: Revisit element name Instead of a separate element name, keep button, and just add a .lock style class, to inherit the button theming. gtk/gtklockbutton.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit cc2f1891442f8e73e2207de9726f7b03a9989664 Author: Matthias Clasen Date: Thu Oct 29 23:17:41 2015 -0400 Adwaita: button fixes gtk/theme/Adwaita/_common.scss | 85 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2394 ++++++++++++++---------------- gtk/theme/Adwaita/gtk-contained.css | 2316 +++++++++++++---------------- 3 files changed, 2205 insertions(+), 2590 deletions(-) commit b350779a6f49679cb7a83be22f53bacde45bd282 Author: Matthias Clasen Date: Thu Oct 29 23:04:47 2015 -0400 togglebutton: Add a style class This lets us differentiate toggle buttons from plain buttons with button.toggle, without having to redo all the styling. gtk/gtktogglebutton.c | 5 +++++ 1 file changed, 5 insertions(+) commit a953e377359d001160e2c9700c8fdd163a14c2b4 Author: Matthias Clasen Date: Thu Oct 29 22:55:29 2015 -0400 button: Use an element name instead of a style class gtk/gtkbutton.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) commit e39b8611bd20e602102a7e1b8e06e34c1b85cfe5 Author: Benjamin Otte Date: Fri Oct 30 02:06:01 2015 +0100 widget: Queue redraw on gtk_widget_queue_allocate() Mirror the behavior of gtk_widget_queue_resize() and always queue a redraw. If we ever want to cause allocates without redraws we can add gtk_widget_queue_allocate_no_redraw() then. I had initially assumed gtk_widget_size_allocate() would take care of queueing redraws, but it does not do that when neither size nor position change. And that is obviously what's happening after gtk_widget_queue_allocate(). Fixes buttons sometimes not redrawing (the record button in widget-factory after locking it, all buttons when switching to the dark theme). gtk/gtkwidget.c | 3 +++ 1 file changed, 3 insertions(+) commit 32de7edf1dec5528b8d02cb765b2c76471f321c6 Author: Matthias Clasen Date: Thu Oct 29 19:21:47 2015 -0400 Assistant: Fix page rmoval We have to remove the page itself from the intermediate box first, before removing the box from the notebook. Otherwise, reffing the page to keep it alive is ineffective: the box gets destroyed, and that destruction recurses over the page. This fixes the problem in https://bugzilla.gnome.org/show_bug.cgi?id=756385 gtk/gtkassistant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit ffaaa1e66eef00d1dbaf28ae4ab9e4cdd74f1bae Author: Sébastien Granjoux Date: Mon Oct 26 21:52:34 2015 +0100 Add a more complex widget in the flipping assistant This reproduces the problem from bug https://bugzilla.gnome.org/show_bug.cgi?id=756385 gtk/gtkassistant.c | 1 - tests/testassistant.c | 11 ++++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) commit a0a78a8973982a03176ae53699ec8171630796da Author: Florian Müllner Date: Thu Oct 29 18:20:27 2015 +0100 Adwaita: Update double-border tweak for scrolled windows Since commit b6dbfc791f, GtkViewPort uses an element name. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 4f24c8569c454918adf16ba4e36aff2df8270bb3 Author: Dominique Leuenberger Date: Thu Oct 29 13:56:18 2015 +0100 placessidebar: do not crash if uris is NULL On Drag'n'Drop actions across system boundaries (VM host to guest), the happen to be null. https://bugzilla.gnome.org/show_bug.cgi?id=757298 gtk/gtkplacessidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fc6f41c751dd7ff44ab2f39bef5720f954587581 Author: Benjamin Otte Date: Thu Oct 29 16:03:15 2015 +0100 spinbutton: Don't set .entry Also fix Adwaita to not use .entry anymore gtk/gtkspinbutton.c | 1 - gtk/theme/Adwaita/_common.scss | 13 +- gtk/theme/Adwaita/gtk-contained-dark.css | 845 ++++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 767 ++++++++++++---------------- 4 files changed, 710 insertions(+), 916 deletions(-) commit 63f2fc752aa01de972a495bdc173dc0654e76159 Author: Benjamin Otte Date: Thu Oct 29 15:55:28 2015 +0100 searchentry: Fix includes gtk/gtksearchentry.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit b6dbfc791f56c9f5b9999b8bef6ea670221ba903 Author: Matthias Clasen Date: Thu Oct 29 07:47:31 2015 -0400 viewport: Add an element name to the css node This lets us avoid hardcoding the type in CSS. gtk/gtkviewport.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit ea5f16fd2d5e1f9b14290c6d0eae3df092276d01 Author: Matthias Clasen Date: Thu Oct 29 07:43:30 2015 -0400 searchbar: Add an element name to the css node This lets us avoid hardcoding the type in CSS. gtk/gtksearchbar.c | 6 ++++++ 1 file changed, 6 insertions(+) commit d634403d912d2d84f634c8e0491e9d9347f66fa0 Author: Matthias Clasen Date: Thu Oct 29 07:08:15 2015 -0400 actionbar: Add an element name to the css node This lets us avoid hardcoding the type in CSS. gtk/gtkactionbar.c | 5 +++++ 1 file changed, 5 insertions(+) commit 2936d7bae8c4d834463ef572e1ec63dc6ecd0138 Author: Matthias Clasen Date: Thu Oct 29 07:01:57 2015 -0400 statusbar: Add an element name to the css node This lets us avoid hardcoding the type in CSS. gtk/gtkstatusbar.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 56d3e42a00247e7db5941a4ac3108a58e6abe34b Author: Matthias Clasen Date: Wed Oct 28 23:58:39 2015 -0400 search entry: Add a style class There should be little need to have separate styling for search entries, so a separate name would be a bit overkill. gtk/gtksearchentry.c | 2 ++ 1 file changed, 2 insertions(+) commit a840a6d597d1a0f3e8da12988d5ed935c7635197 Author: Matthias Clasen Date: Wed Oct 28 23:57:57 2015 -0400 lock button: Add an element name gtk/gtklockbutton.c | 1 + 1 file changed, 1 insertion(+) commit bb7d7851ac5cecf960a7ed69af06b2dd0a29484b Author: Matthias Clasen Date: Wed Oct 28 23:32:57 2015 -0400 entry, spinbutton: Finish css node conversion This commit creates entry and button subnodes for the buttons in GtkSpinButton. The nodes are ordered like this for horizontal spinbutton + entry + image.left + image.right + progress + button.down + button.up and like this for vertical ones: spinbutton + button.down + entry + button.up This arrangement requires cooperation from GtkEntry to place the entry subnodes correctly, and some small changes in the theme. This commit also fixes progress rendering in vertical spin buttons. gtk/gtkentry.c | 43 ++- gtk/gtkspinbutton.c | 34 +- gtk/theme/Adwaita/_common.scss | 4 +- gtk/theme/Adwaita/gtk-contained-dark.css | 637 +++++++++++++++++++++++-------- gtk/theme/Adwaita/gtk-contained.css | 637 +++++++++++++++++++++++-------- 5 files changed, 1008 insertions(+), 347 deletions(-) commit ebcad63e314b613d45bbaa718082a44a090f5da1 Author: Matthias Clasen Date: Wed Oct 28 21:55:07 2015 -0400 wip: spinbutton gtk/gtkentry.c | 41 ++-- gtk/gtkspinbutton.c | 312 +++++++++++++++++-------------- gtk/theme/Adwaita/_common.scss | 10 +- gtk/theme/Adwaita/gtk-contained-dark.css | 68 ++++--- gtk/theme/Adwaita/gtk-contained.css | 68 ++++--- 5 files changed, 276 insertions(+), 223 deletions(-) commit 811c1c9484aedc5b520d26163441d09b70078e57 Author: Matthias Clasen Date: Wed Oct 28 16:35:16 2015 -0400 spinbutton: Trivial cleanup Use g_clear_object in a few places. gtk/gtkspinbutton.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit 4483636016ec9e30ee1247b62851a66690967637 Author: Benjamin Otte Date: Thu Oct 29 01:03:09 2015 +0100 widget: Queue resize on parent on show/hide When gtk_widget_show() or gtk_widget_hide() is called, don't queue a resize on the widget itself but on the parent. The widget itself may already be marked as in need of a resize and the call would be optimized out and never reach the parent. The parent size will change though because a child widget just changed its visibility. Fixes a bunch of issues with menus appearing black, toolbas not hiding in widget-factory and also various reftests. gtk/gtkwidget.c | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) commit cd20ae8fe118f08a48075f1b00f415d63a248395 Author: Benjamin Otte Date: Thu Oct 8 13:41:50 2015 +0200 container: Don't keep our own variable trying to track need for resize Insteaad, introduce gtk_widget_needs_allocate() and use that. gtk/gtkcontainer.c | 18 ++++++++---------- gtk/gtkwidget.c | 20 +++++++++++++++++--- gtk/gtkwidgetprivate.h | 1 + 3 files changed, 26 insertions(+), 13 deletions(-) commit e07ff714b9eec37f4789e093ab1d199ffea29f46 Author: Benjamin Otte Date: Thu Oct 1 22:38:31 2015 +0200 widget: Make invisible widgets not propagate resizes Do not queue a resize on the parent if the widget is not visible. Invisible widgets do not influence the parents size. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit bef44ab294e5263f7c318c17cf664d862ca0b8b3 Author: Benjamin Otte Date: Thu Oct 1 22:36:34 2015 +0200 window: Don't queue resizes when inhibiting resizes Since the frame clock, the inhibit happens on the GDK level, so this code is no longer necessary. gtk/gtkcontainer.c | 12 ------------ gtk/gtkwindow.c | 9 +-------- 2 files changed, 1 insertion(+), 20 deletions(-) commit 6866d1c06e338002bf584b0b9529154e33b5e86a Author: Benjamin Otte Date: Tue Sep 29 23:19:07 2015 +0200 widget: Make gtk_widget_queue_allocate() not resize This commit toggles the big switch. We now don't run size_allocate() from the toplevel up anymore in cases where we don't need to. Things might be broken in subtle ways as a result of this commit. We'll have to find them and fix them. gtk/gtkcontainer.c | 29 ++++++++++++++++++----------- gtk/gtkwidget.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- gtk/gtkwidgetprivate.h | 1 + gtk/gtkwindow.c | 2 ++ 4 files changed, 69 insertions(+), 13 deletions(-) commit 299600a7d4853b5df28e94a3dd8c9f52a2d84202 Author: Benjamin Otte Date: Tue Sep 29 21:04:07 2015 +0200 widget: Track if a child needs an allocation This is not used so far. gtk/gtkwidget.c | 31 ++++++++++++++++++++++++++++++- gtk/gtkwidgetprivate.h | 3 ++- 2 files changed, 32 insertions(+), 2 deletions(-) commit f706891dd3fc062a7d77c177e4bf1f280d91af7e Author: Benjamin Otte Date: Mon Sep 28 21:57:25 2015 +0200 widget: Refactor function Turn it from a loop into tail-calling itself. gtk/gtkwidget.c | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) commit ab7e901cfd75257991f405b5f2082d47312de774 Author: Benjamin Otte Date: Mon Sep 28 21:54:23 2015 +0200 widget: Move resize function into gtkwidget.c There's no sizegroup specific code left in it, but lots of widget-specifics. gtk/gtksizegroup-private.h | 1 - gtk/gtksizegroup.c | 45 ---------------------------------------- gtk/gtkwidget.c | 51 ++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 48 deletions(-) commit 4fa74e68e9a73a1e0e169be89a3aba282d0fdbe4 Author: Benjamin Otte Date: Mon Sep 28 21:17:21 2015 +0200 sizegroup: Merge function into only caller gtk/gtksizegroup.c | 82 ++++++++++++++++++++++-------------------------------- 1 file changed, 34 insertions(+), 48 deletions(-) commit b5dfe9b833641c1279fd393ec3202374eb01bb23 Author: Benjamin Otte Date: Mon Sep 28 21:08:57 2015 +0200 sizegroup: Simplify widget's size group invalidation Since we do not queue resizes twice anymore, we can just walk the list of groups without deduplication. gtk/gtksizegroup.c | 68 ++++++++++++++++++++---------------------------------- 1 file changed, 25 insertions(+), 43 deletions(-) commit a31123e9f0a12b3eeeaf65f8ea87d1a177aa454a Author: Benjamin Otte Date: Mon Sep 28 05:48:57 2015 +0200 sizegroup: Skip resizes on widgets that have resize queued Widgets that already have a resize queued don't need to walk the whole parent chain and queue another resize. It's enough to do it once per resize. This also means that sizegroups cannot use the shortcut of just invalidating the first widget in the group anymore. That widget might already have a resize queued while others don't. gtk/gtksizegroup.c | 10 ++++++++-- gtk/gtkwindow.c | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) commit a4587ef4a0988bd6817895fa7920801163091ca6 Author: Benjamin Otte Date: Mon Sep 28 05:42:04 2015 +0200 widget: Warn on calls to queue_resize() during size_allocate() This happens way too much, so it's disabled unless GTK_DEBUG=geometry is on. Also, we can't detect it in the call to queue_resize() yet, only during size_allocate(), so the warning comes after the signal emission. gtk/gtkwidget.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 4d631a914435ff8f2566ac1abcaffadd1c6ebc7f Author: Benjamin Otte Date: Mon Sep 28 05:23:32 2015 +0200 widget: Clear pending resizes after size_allocate() This catches the cases where widgets call gtk_widget_queue_resize() in their size_allocate() callback. gtk/gtkwidget.c | 1 + 1 file changed, 1 insertion(+) commit 3e3f17576e07334e6c5be12fee9ed78f13f0cc24 Author: Benjamin Otte Date: Mon Sep 28 05:21:06 2015 +0200 widget: Warn if size-unqueried widgets get allocated Widgets should have gtk_widget_get_preferred_width/height() called on them before gtk_widget_size_allocate() gets called. Add a check for this. gtk/gtkwidget.c | 7 +++++++ gtk/gtkwidgetprivate.h | 6 ++++++ 2 files changed, 13 insertions(+) commit 6cc2615b6370cca05820cd11e6b0d53f270e11cb Author: Benjamin Otte Date: Mon Sep 28 02:19:25 2015 +0200 widget: Add a resize_needed flag ... and API to set and unset it. It is set when gtk_widget_queue_resize() is called. It is unset when gtk_widget_get_preferred_width/height() is called. So far it is not used. gtk/gtksizerequest.c | 2 ++ gtk/gtkwidget.c | 12 ++++++++++++ gtk/gtkwidgetprivate.h | 1 + 3 files changed, 15 insertions(+) commit 3ff894c2013f41a90b4fec4ffbefb17fcd2b45ab Author: Benjamin Otte Date: Sun Sep 27 12:29:05 2015 +0200 widget: Add a function that does actual resize It's just shuffling code around. gtk/gtksizegroup.c | 4 +--- gtk/gtkwidget.c | 8 +++++--- gtk/gtkwidgetprivate.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) commit 58d506fb115596beaeb8383e2ed3af3febd6934d Author: Benjamin Otte Date: Fri Sep 18 04:04:21 2015 +0200 sizegroup: Merge function into only caller Both functions were running the same loop. Just running the loop once seems advantageous. gtk/gtksizegroup.c | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) commit 85ab8ad00128fc095fdfb3d62142e58556ad5ee7 Author: Benjamin Otte Date: Wed Sep 16 22:56:56 2015 +0200 sizegroup: Don't invalidate over resize containers. Before this commit, a widget tree like this: Window AnyContainer (part of SizeGroup1) GtkClutterEmbed SomeWidget when calling gtk_widget_queue_resize(SomeWidget), would invalidate SizeGroup1, when it should have stopped at the GtkClutterEmbed (which is a RESIZE_IMMEDIATE child). gtk/gtksizegroup.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 1f2e21ab9ae8e0e3b109b4785d1c434d422ccef6 Author: Benjamin Otte Date: Fri Sep 18 03:49:09 2015 +0200 sizegroup: Refactor function Get rid of continues in loop. This allows doing more complex things in future commits. gtk/gtksizegroup.c | 53 +++++++++++++++++++++++------------------------------ 1 file changed, 23 insertions(+), 30 deletions(-) commit 0721d964e462ac399ca888036d009cb3a9ea5256 Author: Benjamin Otte Date: Fri Sep 18 03:41:12 2015 +0200 sizegroup: Refactor function gtk/gtksizegroup.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) commit dd0e5cfce691955d46c44d2cb286ab335ddec5d0 Author: Benjamin Otte Date: Tue Sep 15 22:11:35 2015 +0200 sizegroup: Remove special case before loop The loop actually does the right thing already. There's no need to complicate things. gtk/gtksizegroup.c | 37 +++++++++++-------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) commit 8fea3b02c93c5243e7cb7f352b0ae9e2b6d2414f Author: Benjamin Otte Date: Tue Sep 15 22:10:26 2015 +0200 sizegroup: refactor The code looks a lot less dangerous if it doesn't look like we're casting a random widget to a container. gtk/gtksizegroup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit e19818359a422310f6a58c9ec4df1caf9c44f33a Author: Benjamin Otte Date: Tue Sep 15 22:08:55 2015 +0200 sizegroup: Fold function into only caller gtk/gtksizegroup.c | 46 ++++++++++++++++++---------------------------- 1 file changed, 18 insertions(+), 28 deletions(-) commit 690e015ed1133d16effdac8e23ddd082818de8d3 Author: Benjamin Otte Date: Tue Sep 15 21:57:49 2015 +0200 sizegroup: Move container function into its only caller gtk/gtkcontainer.c | 40 +--------------------------------------- gtk/gtkcontainerprivate.h | 2 +- gtk/gtksizegroup.c | 29 ++++++++++++++++++++++++++++- 3 files changed, 30 insertions(+), 41 deletions(-) commit 0912a6c2f5e5137705f93691c418cc8c6184fb9d Author: Benjamin Otte Date: Wed Sep 16 23:16:44 2015 +0200 widget: Use gtk_widget_queue_allocate() when clip changes There's no need to queue a full resize there. gtk/gtkwidget.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit 195397e87ac7e03173dfe65d1cf52e2751c07706 Author: Benjamin Otte Date: Mon Sep 14 17:56:05 2015 +0200 API: widget: Add gtk_widget_queue_allocate() This is so widgets can queue a rerun of their allocation logic, but without triggering resizes everywhere. For now, it just calls gtk_widget_queue_resize(). gtk/gtkwidget.c | 28 +++++++++++++++++++++++++--- gtk/gtkwidget.h | 2 ++ 2 files changed, 27 insertions(+), 3 deletions(-) commit 798a28840573867a6228620b1f0fc548f1ac8ade Author: Benjamin Otte Date: Mon Sep 28 23:33:28 2015 +0200 container: Use correct allocation for calling size_allocate() gtk/gtkcontainer.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit d3d9f52365c583b9f27311c076d7cbf10030898c Author: Benjamin Otte Date: Mon Sep 14 06:11:36 2015 +0200 API: widget: Add gtk_widget_get_allocated_size() See docs for what this is. docs/reference/gtk/gtk3-sections.txt | 1 + gtk/gtkwidget.c | 41 ++++++++++++++++++++++++++++++++++++ gtk/gtkwidget.h | 4 ++++ gtk/gtkwidgetprivate.h | 2 ++ 4 files changed, 48 insertions(+) commit ab2d236d3dafb93ae8d25e415d6e0b9c8a55babc Author: Benjamin Otte Date: Tue Mar 24 04:45:38 2015 +0100 sizegroup: Remove GtkQueueResizeFlags They were only used with geometry widgets. gtk/gtkcontainer.c | 60 ++++++++++++++++------------------------------ gtk/gtkcontainerprivate.h | 1 - gtk/gtksizegroup-private.h | 19 +-------------- gtk/gtksizegroup.c | 30 ++++++++++------------- gtk/gtkwidget.c | 27 ++++++++------------- 5 files changed, 44 insertions(+), 93 deletions(-) commit 5dd2087d19e93e0f99bd7e43bcee42ef3bc833e8 Author: Benjamin Otte Date: Tue Mar 24 04:37:26 2015 +0100 widget: Remove _gtk_widget_override_size_request() The function was only used by the geometry widget. gtk/gtkwidget.c | 46 ---------------------------------------------- gtk/gtkwidgetprivate.h | 8 -------- 2 files changed, 54 deletions(-) commit 08974a1e9a6099a5a94b9d56970dbf96e473ba87 Author: Benjamin Otte Date: Tue Mar 24 04:33:45 2015 +0100 window: Ignore geometry widget Ignore the geometry widget passed to gtk_window_set_geometry_hints(). Usind the widget itself was a hack that complicates the size request machinery. It is also incorrect in that it doesn't respect height-for-width. Last but not least, it was only used by gnome-terminal and that application can easily work without it. gtk/gtkwindow.c | 71 +++------------------------------------------------------ 1 file changed, 3 insertions(+), 68 deletions(-) commit e422ccefe1b4ce73325afe39c5734bd2545c9b83 Author: Benjamin Otte Date: Mon Sep 28 23:31:04 2015 +0200 container: Don't randomly call gtk_widget_set_allocation() gtk_widget_size_allocate() does that already. gtk/gtkcontainer.c | 3 --- 1 file changed, 3 deletions(-) commit 624fb8b3603455e3b65263374bc8515bbded481a Author: Benjamin Otte Date: Mon Sep 21 18:35:16 2015 +0200 entry: Always render like with is_cellrenderer And remove the API to set that variable. If you want the entry to not fill its whole allocated area, gtk_widget_set_valign (entry, GTK_ALIGN_FILL); will give you the old behavior. gtk/gtkcombobox.c | 5 ----- gtk/gtkentry.c | 49 ++----------------------------------------------- gtk/gtkentryprivate.h | 2 -- 3 files changed, 2 insertions(+), 54 deletions(-) commit 8ec2362d81db40e5587cd269eb932d15d381b6d1 Author: Benjamin Otte Date: Fri Oct 9 15:41:00 2015 +0200 icontheme: Clarify GENERIC_FALLBACK flag handling - Add docs explaining that it doesn't work everywhere - g_warn_if_fail() in the APIs where it doesn't work gtk/gtkicontheme.c | 3 +++ gtk/gtkicontheme.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) commit 5cffbed165158857867c2bc4d06041444da590ef Author: Benjamin Otte Date: Fri Oct 9 15:42:58 2015 +0200 iconhelper: Don't pass GENERIC_FALLBACK flag It's not used when looking up with a GIcon. gtk/gtkiconhelper.c | 2 -- 1 file changed, 2 deletions(-) commit a58d8bdcbc291818ce70cf3e3fcb93e762ca9c36 Author: Benjamin Otte Date: Wed Oct 28 19:35:23 2015 +0100 cssprovider: Have a section when parsing style properties Signal handlers expect a section to be present, so provide them with one. New testcase included. https://bugzilla.gnome.org/show_bug.cgi?id=757240 gtk/gtkcssprovider.c | 4 +++ testsuite/gtk/Makefile.am | 1 + testsuite/gtk/cssprovider.c | 63 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) commit c4eb14eb01d5d17541fb320a9c464132e5fb6904 Author: Matthias Clasen Date: Wed Oct 28 11:49:00 2015 -0400 Revert "tooltip: Use an element name" This reverts commit efc8dc63e30d9d53df3cf336673f751fab437d2c. This change broke tooltip positioning in a way that I don't fully understand, so take it back for now. gtk/gtktooltip.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) commit 854c7d1f0fd98a6eaf283603adc05f1dec4f6e39 Author: Matthias Clasen Date: Wed Oct 28 11:53:09 2015 -0400 Revert "HighContrast: Update tooltip styling" This reverts commit 93d80380ee93f2d7f7005675900e4da0fbef982c. gtk/theme/HighContrast/_common.scss | 4 ++-- gtk/theme/HighContrast/gtk.css | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) commit cab40f07434c7b4036660d08c974542a9868a09e Author: Matthias Clasen Date: Wed Oct 28 11:48:52 2015 -0400 Revert "Adwaita: Update tooltip theming" This reverts commit d974610741349b3f4e4c06abd87c82d99c6858ba. gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 8 ++++---- gtk/theme/Adwaita/gtk-contained.css | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) commit b4d49c36ce83b63a33e2b703a81b463ad70a56fc Author: Matthias Clasen Date: Wed Oct 28 10:07:18 2015 -0400 Fix key themes for GtkEntry -> entry This was pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=757252 gtk/gtk-keys.css.emacs | 2 +- gtk/gtk-keys.css.mac | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 20e46ce8aeef856efe020118cce8794249485f65 Author: Matthias Clasen Date: Wed Oct 28 10:14:54 2015 -0400 shortcuts: Redo the stack switcher theming Use style classes on the button instead of the stack switcher, this makes it easier to reuse elsewhere. gtk/gtkshortcutssection.c | 3 ++- gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 10 ++++------ gtk/theme/Adwaita/gtk-contained.css | 10 ++++------ 4 files changed, 12 insertions(+), 15 deletions(-) commit 62ec4a2415bc463c6b07dbcbf4baa1770f14019f Author: Matthias Clasen Date: Wed Oct 28 07:10:30 2015 -0400 shortcuts label: Redo the keycap theming Use a style class directly on the frame. This is easier to reuse. gtk/gtkshortcutlabel.c | 1 + gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 2 +- gtk/theme/Adwaita/gtk-contained.css | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) commit 4e950da4d116663cfd5f1a707a96782f80499af8 Author: Matthias Clasen Date: Wed Oct 28 07:09:28 2015 -0400 Adwaita: Update shortcuts window theming Use the newly added element name. gtk/theme/Adwaita/_common.scss | 6 +++--- gtk/theme/Adwaita/gtk-contained-dark.css | 14 +++++++------- gtk/theme/Adwaita/gtk-contained.css | 14 +++++++------- 3 files changed, 17 insertions(+), 17 deletions(-) commit 0dffc8c9d3777e3d11526d3b3be8f17777c6cd92 Author: Matthias Clasen Date: Wed Oct 28 06:50:00 2015 -0400 shortcuts: Use predefined style classes Lets use the defines we have. gtk/gtkshortcutssection.c | 2 +- gtk/gtkshortcutswindow.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) commit b3619f90505915939cb35ae8c03a63d364ba132d Author: Matthias Clasen Date: Wed Oct 28 06:45:37 2015 -0400 HighContrast: Update calendar theming Use the newly introduced element name instead of hardcoding the type. gtk/theme/HighContrast/_common.scss | 2 +- gtk/theme/HighContrast/gtk.css | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) commit 085edf021227283f9bd029c33d70ddd461ca3c98 Author: Matthias Clasen Date: Wed Oct 28 06:44:34 2015 -0400 Adwaita: Update calendar theming Use the newly introduced element name instead of hardcoding the type. gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 44 ++++++------ gtk/theme/Adwaita/gtk-contained.css | 116 +++++++++++++++---------------- 3 files changed, 81 insertions(+), 81 deletions(-) commit 2c2fd5c8c5a06cdbcd52249d2cf0fa1ac2336267 Author: Matthias Clasen Date: Wed Oct 28 06:35:33 2015 -0400 calendar: Add an element name This will allow us to drop hardcoded type names in the theme. gtk/gtkcalendar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit 3058c3e6a9578bc07784f4f7ca65315b76014cd2 Author: Olivier Fourdan Date: Tue Oct 27 18:05:39 2015 +0100 wayland: configure clients that resize themselves Make sure the wayland backend sets a new geometry when the client resizes itself, otherwise the compositor won't be notified and may revert to the old size on state changes. Thanks to Jasper St. Pierre who pointed out the problem in gtk+. bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=755051 gdk/wayland/gdkwindow-wayland.c | 4 ---- 1 file changed, 4 deletions(-) commit 37eb5c08a4a24792b5e0c71644c70eb5a38c16c1 Author: Matthias Clasen Date: Wed Oct 28 00:41:13 2015 -0400 inspector: Cosmetic changes to the hierarchy tab Put the interfaces below GInterface. gtk/inspector/object-hierarchy.c | 10 +++++++++- gtk/inspector/object-hierarchy.ui | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) commit 3869bdbc2b67d17a99cf5fc805757c74c44ee3c5 Author: Matthias Clasen Date: Wed Oct 28 00:33:14 2015 -0400 inspector: Add css node style properties Add a per-cssnode view of style properties. gtk/inspector/css-node-tree.c | 204 ++++++++++++++++++++++++++++++++--------- gtk/inspector/css-node-tree.ui | 181 ++++++++++++++++++++++++++---------- 2 files changed, 295 insertions(+), 90 deletions(-)