commit abdd7137b3903e26481f6217a05c62017f510170 Author: Matthias Clasen Date: Thu May 26 13:57:20 2016 -0400 3.21.2 configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8fb0950398808d4618ff1122a39fe620cf496ad1 Author: Matthias Clasen Date: Thu May 26 13:56:59 2016 -0400 Updates NEWS | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) commit 73a47181fa66b213de85dfeab81af485b841a9a2 Author: Matthias Clasen Date: Thu May 26 13:21:50 2016 -0400 Teach gtk-builder-tool to leave GtkDialog::border-width alone This is one of the properties that need to be explicitly set. gtk/gtk-builder-tool.c | 1 + 1 file changed, 1 insertion(+) commit d08cc01b3c44613e1d6eb80afd749d8e47610ea4 Author: Tiago Santos Date: Thu May 26 13:44:51 2016 +0000 Updated Portuguese translation po/pt.po | 142 +++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 69 insertions(+), 73 deletions(-) commit 7fe65108002fac4381a8394ee5b5bda3e653b898 Author: Emmanuele Bassi Date: Thu May 26 12:45:51 2016 +0100 Silence a compiler warning Initialize the `nearest` variable. gdk/gdkdisplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit fcd3321fa7b675e940760c9b08ca9ade9e1e8b1d Author: Руслан Ижбулатов Date: Mon May 9 12:48:07 2016 +0000 GtkFileChooser: don't override already opened folder When filechooer is re-used (instead of being created and destroyed every time it's needed), it might happen that the directory the application wishes to initially show is the same directory that was shown last time the filechooser was used. In that case, make sure filechooser knows that it does not need to do its default "select $pwd or $home" routine. https://bugzilla.gnome.org/show_bug.cgi?id=766122 gtk/gtkfilechooserwidget.c | 3 +++ 1 file changed, 3 insertions(+) commit 0fa3c3b73175a5f9de7a35c73f11bb7ea57b8e8a Author: Matthias Clasen Date: Wed May 25 15:56:04 2016 -0400 Mention CSS font property in the release notes docs/reference/gtk/migrating-3xtoy.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 17d798de114e98e1ec991f92ff6d4c1430d343b1 Author: Friedrich Herbst Date: Wed May 25 08:36:09 2016 +0000 Updated German translation po/de.po | 963 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 527 insertions(+), 436 deletions(-) commit e92e54c6460978f3e1b5fc47036c2538faa41a54 Author: Matthias Clasen Date: Wed May 25 00:55:11 2016 -0400 Move release notes to online docs This will let us expand the information e.g. with code examples, and can serve as starting material for a future 3->4 migration guide. docs/reference/gtk/Makefile.am | 2 + docs/reference/gtk/gtk-docs.sgml | 1 + docs/reference/gtk/migrating-3xtoy.xml | 395 +++++++++++++++++++++++++++++++++ 3 files changed, 398 insertions(+) commit 10b8c082030a7f07b8208d78df6e250294cb7efa Author: Matthias Clasen Date: Tue May 24 20:55:16 2016 -0400 Update migration guide a bit Resize grips are no more. docs/reference/gtk/migrating-2to3.xml | 6 ++++++ 1 file changed, 6 insertions(+) commit c201cb3af0e7bae685366c5fb45e01db29e4c507 Author: Matthias Clasen Date: Tue May 24 20:51:55 2016 -0400 Fix a duplicate word in the docs docs/reference/gtk/migrating-2to3.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b9f55dfd634808ddec5b1a82769890e217b8eb46 Author: Benjamin Otte Date: Wed May 25 01:16:52 2016 +0200 window: Unfreeze window on unmap Make sure to keep parity with the number of times we froze the window when we unmap it. Otherwise it will permanently stay frozen after being remapped. https://bugzilla.gnome.org/show_bug.cgi?id=766643 https://bugzilla.mozilla.org/show_bug.cgi?id=1225044 gtk/gtkwindow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 5759e2a334993ffb4ad0f7204d8ff74a2ddb8d05 Author: Bastian Ilsø Date: Wed Apr 1 22:46:46 2015 +0200 gtktextview: document how to get line space adds a paragraph to gtk_text_view_get_pixels_below_lines(), describing how it can be used together with gtk_text_view_get_pixels_above_lines() to get the total amount of line spacing between two paragraphs. https://bugzilla.gnome.org/show_bug.cgi?id=747206 gtk/gtktextview.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit b90ae2cfbfe7f1701b9f6bfc4a95f24390d0ab3c Author: Matthias Clasen Date: Mon May 23 20:40:03 2016 -0400 Add a deprecation note Mark GtkWidget:style property as deprecated in the docs. gtk/gtkwidget.c | 7 +++++++ 1 file changed, 7 insertions(+) commit 30c3d6af563ec1693bcc6f1a959a735fb5be53d2 Author: Matthias Clasen Date: Mon May 23 19:25:41 2016 -0400 Improve CSS docs a bit Among other things, explain the relationship of background-color and background-image. docs/reference/gtk/css-properties.xml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) commit 46b51e36b4655ffd54e26b99bfe89b7e9f7946bd Author: Matthias Clasen Date: Mon May 23 19:24:07 2016 -0400 Trivial typo fix gtk/gtkcssprovider.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit f39a7ecd63be3e792ddb8f63267a2442bb23533f Author: Matthias Clasen Date: Mon May 23 14:17:13 2016 -0400 Remove an unused variable gdk/gdkdisplay.c | 1 - 1 file changed, 1 deletion(-) commit 16bca98305486a4e75356276a33753efcfa344ed Author: Matthias Clasen Date: Mon May 23 14:14:32 2016 -0400 infobar: Update documentation Remove explicit reference to color from the gtk_info_bar_set_message_type() docs. https://bugzilla.gnome.org/show_bug.cgi?id=759037 gtk/gtkinfobar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit b5d52a209d9cc8b0e8cc5245981d84eaa9c8255b Author: Kjartan Maraas Date: Mon May 23 18:56:30 2016 +0200 Updated Norwegian bokmål translation. po/nb.po | 3302 +++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 2104 insertions(+), 1198 deletions(-) commit 9c3802fc4b630c4ca404194b62b1178d51bc331f Author: Emmanuele Bassi Date: Mon May 23 08:34:39 2016 +0100 gdk: Provide safe fallback for creating GL contexts If the backend does not override GdkWindowClass.create_gl_context() then we should provide a fallback that gives an error, instead of crashing. https://bugzilla.gnome.org/show_bug.cgi?id=766782 gdk/gdkwindow.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) commit fe684078f9f76d71c3f771a38d287ebc255eaa8e Author: Emmanuele Bassi Date: Mon May 23 08:31:47 2016 +0100 gl: Add a realize() fallback Calling gdk_gl_context_realize() should always result in a valid result, so we need to provide a default implementation, to avoid a call to a NULL function pointer. gdk/gdkglcontext.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit 9318dc1f3ec6825fd46315ebf06da71dbb1d4ff3 Author: Anders Jonsson Date: Sat May 21 21:39:34 2016 +0000 Updated Swedish translation po/sv.po | 947 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 516 insertions(+), 431 deletions(-) commit 76a5e3fc3cefebff397a2dcf94f4699c32087979 Author: Carlos Garnacho Date: Sat May 21 19:43:15 2016 +0200 popover: set priv->window before setting doing add_popover() on it If the popover's relative-to widget is unparented/reparented, we end up unparenting/reparenting the popover as well. In that case, at the moment of reparenting, the widget might have been visible (and is thus mapped again), but priv->window hasn't been set yet. We must first set priv->window, and then call gtk_window_add_popover(), that way gtk_popover_map() has its prerequisites straight. https://bugzilla.gnome.org/show_bug.cgi?id=766323 gtk/gtkpopover.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit ebf703ff5ac8a69c2c35f003620ea5b7a4e7eb0e Author: Khaled Hosny Date: Sat May 21 15:54:19 2016 +0200 Typo po/ar.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 3d0e8cf2a8073d36387428918fc8c1cb7d253f41 Author: Khaled Hosny Date: Sat May 21 07:40:09 2016 +0200 Update Arabic translation po/ar.po | 1967 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 1079 insertions(+), 888 deletions(-) commit 57efcabfd68576d974cf8917307578f96ff72f98 Author: Florian Müllner Date: Sat May 21 00:07:10 2016 +0200 stack: Only map children when necessary gtk_widget_set_parent() will map the widget if the parent is mapped and the widget is both visible and child-visible. As we currently only set the child visibility after adding the child, we immediately map all children that are added to a mapped stack, even when they are not actually shown. Avoid this by setting the child visibility before adding the child, so widgets are only mapped when shown. https://bugzilla.gnome.org/show_bug.cgi?id=766737 gtk/gtkstack.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 386ead4243b9e45d60f6a7aa6812f68e8c119ba3 Author: Lapo Calamandrei Date: Fri May 20 15:39:08 2016 +0200 Adwaita: add vertical margins to switches on a headerbar See https://bugzilla.gnome.org/show_bug.cgi?id=766642 gtk/theme/Adwaita/_common.scss | 6 +++++- gtk/theme/Adwaita/gtk-contained-dark.css | 3 +++ gtk/theme/Adwaita/gtk-contained.css | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) commit 0d5b4779b8079ca4130dd63ad83ceb17e47a4c6f Author: Lapo Calamandrei Date: Fri May 20 15:28:58 2016 +0200 Adwaita: shave 1px from the switch make the switch height and width 1px smaller. gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++-- gtk/theme/Adwaita/gtk-contained.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) commit 55751fc6fbea74ca98b1dca6663046ba7974946a Author: Ondrej Holy Date: Mon May 2 12:55:56 2016 +0200 Improve external drives detection Use g_drive_is_removable for external drives detection. Current heuristic fails in some cases (e.g. when removable drive is attached before login), see Bug 765457. Bump GLib version accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=765924 configure.ac | 4 ++-- gtk/gtkplacessidebar.c | 4 +--- gtk/gtkplacesview.c | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) commit 64eca0bb2dad94164d38a89797bf7a439a321b48 Author: Ignacio Casal Quinteiro Date: Fri May 20 09:08:08 2016 +0200 gtktextview: fix < public > comment This was causing problems with the gtk# scanner gtk/gtktextview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d3adf47d9f70ed785dc26aba3b48e607f89ee5b5 Author: Matthias Clasen Date: Thu May 19 16:59:10 2016 -0400 treeview: Fix a rubberbanding-related crash When starting a rubberband selection from an empty area, we could run into crashes if the selection moves over the rows and then back out to unpopulated area. Handle this case without crashing. https://bugzilla.gnome.org/show_bug.cgi?id=766336 gtk/gtktreeview.c | 55 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 14 deletions(-) commit eace965a197e7145d214cbdaa0bef24f2fb1bbd6 Author: Matthias Clasen Date: Thu May 19 12:25:52 2016 -0400 scale css node test: Adapt to changes The style classes are reflected in the output here. testsuite/css/nodes/scale.nodes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 6293a50501c20d25663ebfe170b0acfec3c96d2b Author: Matthias Clasen Date: Thu May 19 11:05:28 2016 -0400 color scale: Sync style classes with GtkScale We should use the same style classes here, to avoid theme confusion. gtk/gtkcoloreditor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit cca2a22b637e3bb42e793563a64c9e720077ab00 Author: Lapo Calamandrei Date: Thu May 19 17:24:51 2016 +0200 color scale: Really sync style classes with GtkScale sync the alpha scale styleclass too. gtk/ui/gtkcoloreditor.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5ae7f62f25c20e24e642c99c1409900d403462b3 Author: Lapo Calamandrei Date: Thu May 19 17:05:46 2016 +0200 Adwaita: fix scale theming rely on toplevel styleclass for scale with marks. See https://bugzilla.gnome.org/show_bug.cgi?id=766440 gtk/theme/Adwaita/_common.scss | 64 +++++++--------- gtk/theme/Adwaita/gtk-contained-dark.css | 122 +++++++++++++------------------ gtk/theme/Adwaita/gtk-contained.css | 122 +++++++++++++------------------ 3 files changed, 132 insertions(+), 176 deletions(-) commit fab70d34d443d25c8c68fea30ae7b483749b5e40 Author: Ignacio Casal Quinteiro Date: Thu May 19 16:55:24 2016 +0200 gtkselectionprivate: minor style fix This seems to make some issue with the gtk# scanner. gtk/gtkselectionprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4151cb1202a120a0eae6da04d45411dafbfaa317 Author: Matthias Clasen Date: Thu May 19 09:44:25 2016 -0400 scale: Use more succinct names for style classes Use .marks-before/after to indicate the presence of marks. As Lapo points out, compatibility with the previous names is not really that important, since everything else changed around it. https://bugzilla.gnome.org/show_bug.cgi?id=766440 gtk/gtkscale.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) commit de7c15636d44c3c81fbee368c867afdd20740563 Author: Matthias Clasen Date: Thu May 19 09:03:20 2016 -0400 icon theme: Add a warning Warn about the situation when we've found a resource or file path, but gdk-pixbuf fails to give us a pixbuf. This generally means that either pixbuf loaders are not found or the shared-mime database is missing. gtk/gtkicontheme.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) commit d14305f3806cb6f42e1f2ffe98a313836c99c221 Author: Matthias Clasen Date: Wed May 18 13:08:44 2016 -0400 wayland: Survive lack of settings This can be made to happen eg by setting XDG_DATA_DIRS and XDG_DATA_HOME to /. Not a useful value, but not a good reason to crash either. gdk/wayland/gdkscreen-wayland.c | 2 ++ 1 file changed, 2 insertions(+) commit 0b58c96f06011b21aaa6337a2e4e774da4410033 Author: Olivier Fourdan Date: Thu May 19 09:48:46 2016 +0200 wayland: Make gdk_wayland_window_get_wl_output() private There is no need to make it a public API, move it to the private header instead. https://bugzilla.gnome.org/show_bug.cgi?id=766566 docs/reference/gdk/gdk3-sections.txt | 1 - gdk/wayland/gdkprivate-wayland.h | 2 ++ gdk/wayland/gdkwaylandwindow.h | 2 -- gdk/wayland/gdkwindow-wayland.c | 11 ----------- 4 files changed, 2 insertions(+), 14 deletions(-) commit 6c939c0e72e5d725989fa912a8b8a518f235da0d Author: Dušan Kazik Date: Wed May 18 18:48:18 2016 +0000 Updated Slovak translation po/sk.po | 947 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 516 insertions(+), 431 deletions(-) commit b03784eb979bb8c7fee317f1ddeeed67c35eb63e Author: Olivier Fourdan Date: Tue May 17 15:04:23 2016 +0200 wayland: Add get_monitor_at_window to Wayland backend Given that Wayland has no global coordinate, the only way for gdk to retrieve the monitor a window last entered is to retrieve it from the GdkWaylandWindow itself. Implement the backend specific get_monitor_at_window() to return the monitor that was last entered by the window. https://bugzilla.gnome.org/show_bug.cgi?id=766566 gdk/wayland/gdkdisplay-wayland.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) commit ca77de055baa403f7ebf397772dfb8f13656607d Author: Olivier Fourdan Date: Tue May 17 15:02:01 2016 +0200 wayland: Add API to retrieve the Wayland output In Wayland, surfaces get an enter/leave notification each time they enter or leave an output. Add an API to GdkWaylandWindow to retrieve the output the window has last entered. https://bugzilla.gnome.org/show_bug.cgi?id=766566 docs/reference/gdk/gdk3-sections.txt | 1 + gdk/wayland/gdkwaylandwindow.h | 3 +++ gdk/wayland/gdkwindow-wayland.c | 26 ++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) commit d288a134a427e5728d230404c6a56fc9397b45d9 Author: Olivier Fourdan Date: Tue May 17 13:09:23 2016 +0200 display: Add vfunc for get_monitor_at_window Some backends (namely Wayland) do not support global coordinates so using the window position to determine the monitor will always fail on such backends. In such cases, the backend itself might be better suited to identify the monitor a given window resides on. Add a vfunc get_monitor_at_window() to the display class so that we can use the backend to retrieve the monitor, if the backend implements it. https://bugzilla.gnome.org/show_bug.cgi?id=766566 gdk/gdkdisplay.c | 11 +++++++++++ gdk/gdkdisplayprivate.h | 2 ++ 2 files changed, 13 insertions(+) commit fa9f22eec4fafd9a484864f45e0ac26ba584f0ef Author: Matthias Clasen Date: Wed May 18 12:59:39 2016 -0400 scale: Bring back marks-related style classes It turns out that it is too hard (and in some cases, impossible) to get this information from node positioning, so bring back the .scale-has-marks-above/below style classes on the main node. This should allow us to fix the 'pointy sliders'. https://bugzilla.gnome.org/show_bug.cgi?id=766440 gtk/gtkscale.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) commit f516faaef89d2da1a1ef99952e65223c637c30ea Author: Matthias Clasen Date: Wed May 18 07:48:26 2016 -0400 Revert "scrolledwindow: Better size requisition for GTK_SCROLL_NATURAL children" This reverts commit 096bea3f0ea8e80fe4c9a2a1a860f32c8a94cc33. This was accidentally pushed. gtk/gtkscrolledwindow.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) commit 1d04bdf845c5418748af8f2b34a6fb718536580f Author: Carlos Garnacho Date: Tue May 17 19:27:00 2016 +0200 x11/dnd: Ignore grab broken events from other devices than our DnD device. The GdkDragContext should only listen to GDK_GRAB_BROKEN events sent to its own pointer device. It turns out that the passive key grabs mistake GDK into sending a GdkEventGrabBroken on the master keyboard, which the DnD machinery mistakes as a signal to cancel the operation. https://bugzilla.gnome.org/show_bug.cgi?id=766442 gdk/x11/gdkdnd-x11.c | 4 ++++ 1 file changed, 4 insertions(+) commit 783c30219891e873c9ea07fb83b603b647ef3d47 Author: Carlos Garnacho Date: Thu May 12 13:34:42 2016 +0200 wayland: Avoid spurious crossing events from master touch device Only generate crossing events on wl_touch.down for the virtual master device used for touch events, and only whenever this virtual device actually moves across surfaces. This behavior resembles better what is expected in X11, where the pointer is warped to the touch position on XITouchBegin. This avoids the double emission of leave events when the pointer emulating touch is lifted, that crossing event will be instead generated when/if the focus surface changes. https://bugzilla.gnome.org/show_bug.cgi?id=766314 gdk/wayland/gdkdevice-wayland.c | 46 ++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 17 deletions(-) commit 2893526a48b6edae452d966cf9779f4ef0a23a15 Author: Matthew Waters Date: Fri Mar 18 17:17:23 2016 +1100 gdk/wayland: use the multi-thread safe wayland API This is required for proper integration with any other library/application that may perform wayland API calls and poll() the wayland fd from multiple threads. Using wl_display_dispatch{_queue}() is thread-safe if not mixed with custom poll() usage, which GSource/GMainContext does. Essentially, the problem is that multiple threads polling and reading the same fd is extremely racy. Use the wayland provided API for allowing concurrent access to the wayland display fd. See the wayland man pages for wl_display_prepare_read(), wl_display_cancel_read() and wl_display_read_events() for more details. https://bugzilla.gnome.org/show_bug.cgi?id=763852 gdk/wayland/gdkeventsource.c | 56 ++++++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 12 deletions(-) commit 096bea3f0ea8e80fe4c9a2a1a860f32c8a94cc33 Author: Debarshi Ray Date: Tue May 17 16:28:20 2016 +0200 scrolledwindow: Better size requisition for GTK_SCROLL_NATURAL children GtkScrolledWindow leans towards using the minimum size of its child widget, unless the scrollbar policy is GTK_POLICY_NEVER. This is probably fine for most GtkScrollable implementations out there. Especially when using GTK_SCROLL_MINIMUM, which is the default for all implementations inside gtk+. However, this is not good for GTK_SCROLL_NATURAL children. eg., VteTerminal's minimum size is 1x1 and natural size is the number of visible rows and columns requested by the user. We really want to use the natural size unless the user has resized the window to change that. https://bugzilla.gnome.org/show_bug.cgi?id=766569 gtk/gtkscrolledwindow.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit 0d18a429aadced1499cdcb28a6a4d8ffee1d6946 Author: Matthias Clasen Date: Tue May 17 14:16:39 2016 -0400 Update cursor docs Include new images for context-menu and for no-drop. docs/reference/gdk/Makefile.am | 1 + docs/reference/gdk/images/context_menu_cursor.png | Bin 0 -> 1496 bytes docs/reference/gdk/images/no_drop_cursor.png | Bin 1176 -> 1373 bytes gdk/gdkcursor.c | 4 ++-- 4 files changed, 3 insertions(+), 2 deletions(-) commit 4b8dfd8825bbdd49cd5ab4666fda711f294abace Author: Matthias Clasen Date: Tue May 17 13:40:52 2016 -0400 gtk-demo: Update no-drop cursor image Adwaita is using a different cursor for this now. demos/gtk-demo/no_drop_cursor.png | Bin 1176 -> 1373 bytes 1 file changed, 0 insertions(+), 0 deletions(-) commit 3078f182b0841a57df525ba7b2d61601f283881f Author: Matthias Clasen Date: Tue May 17 13:39:18 2016 -0400 gtk3-demo: Add context-menu cursor The Adwaita cursor theme covers this one now. demos/gtk-demo/context_menu_cursor.png | Bin 0 -> 1496 bytes demos/gtk-demo/demo.gresource.xml | 1 + 2 files changed, 1 insertion(+) commit c81cd94b8f450e4e762bc197b4695f90ec08abf7 Author: Debarshi Ray Date: Mon May 16 21:50:05 2016 +0200 scrolledwindow: Remove redundant use of MAX This code tries to add the minimum content size, if one is set, to the GtkScrolledWindow's size requisition. This is obvious from the check for non-negative values of min-content-height and min-content-width. Using MAX needlessly makes the code harder to read by implying that there is more to it when there actually isn't. Fall out from 0d9ebb501df60cf1803858efcd1c79542588abd8 https://bugzilla.gnome.org/show_bug.cgi?id=766569 gtk/gtkscrolledwindow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 2b628e9e38bedbd4128a4845c103b67dcd336e71 Author: Baurzhan Muftakhidinov Date: Tue May 17 10:18:52 2016 +0000 Updated Kazakh translation (cherry picked from commit d1585a7a60d760a0c98934f970c4403023a399c3) po/kk.po | 576 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 291 insertions(+), 285 deletions(-) commit df98140e8e0fcd9727622ba0b296a0932c70e493 Author: Debarshi Ray Date: Mon May 16 21:13:14 2016 +0200 scrolledwindow: Fix typo in get_preferred_height calculation When we are beginning to calculate the height, if the vscrollbar_policy is not GTK_POLICY_NEVER, and there is no min-content-height, then we need some small non-zero value to get started. The idea is to always ask for at least enough to fit the horizontal scrollbar. Simply put, this should be the mirror image of the corresponding width calculation code. Those who got used to the buggy behaviour might notice that their GtkScrolledWindows are not as tall as they used to be. Fall out from 55196a705f00564a44647bfc97981db0a783369a https://bugzilla.gnome.org/show_bug.cgi?id=766530 gtk/gtkscrolledwindow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 175cf7e32d39be2b2f1afff9ef7c16dc49b75289 Author: Matt Watson Date: Fri May 13 00:22:20 2016 -0700 stack: always update window position at transition start Sometimes on wayland we're seeing a frame draw before the first tick callback, where the window position has not yet been updated. With this change, the window is properly positioned as soon as gtk_stack_start_transition returns. https://bugzilla.gnome.org/show_bug.cgi?id=766405 gtk/gtkstack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 101da71ee30e53fe0338bc67605a98527277ee56 Author: Javier Jardón Date: Sat Jan 9 18:35:34 2016 +0000 Use upstream gettext https://bugzilla.gnome.org/show_bug.cgi?id=373745 Makefile.am | 4 +- configure.ac | 43 +------- gtk/Makefile.am | 1 + modules/input/Makefile.am | 1 + po-properties/Makefile.in.in | 245 ------------------------------------------ po-properties/Makevars | 78 ++++++++++++++ po/Makefile.in.in | 248 ------------------------------------------- po/Makevars | 78 ++++++++++++++ testsuite/gtk/Makefile.am | 1 + 9 files changed, 165 insertions(+), 534 deletions(-) commit 0dfd6a7b082effae1d6d702037609565c95b7835 Author: Daniel Mustieles Date: Mon May 16 17:13:24 2016 +0200 Updated Spanish translation po/es.po | 245 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 134 insertions(+), 111 deletions(-) commit a4c93d12ea8778895a6e64b8c6ad8dd258cc28e5 Author: Tiago Santos Date: Sun May 15 21:40:45 2016 +0000 Updated Portuguese translation po/pt.po | 1965 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 1041 insertions(+), 924 deletions(-) commit 0bc752065106a89ddb65122adda7a6f03067671f Author: Tiago Santos Date: Sun May 15 21:22:46 2016 +0000 Updated Portuguese translation po-properties/pt.po | 2869 ++++++++++++++++++++++++++------------------------- 1 file changed, 1458 insertions(+), 1411 deletions(-) commit 38f71172f89d4f80a5d852a7b822bb944ba82934 Author: Matthias Clasen Date: Sun May 15 14:18:09 2016 -0400 scale: Avoid a crash gtk_scale_get_layout was not careful enough, leading to a crash when opening the inspector on a scale. gtk/gtkscale.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) commit cd305c19702cc80f900a0922bce19bf0c926167a Author: Alban Browaeys Date: Sat May 14 23:57:28 2016 +0200 widget: fix GtkLabelAccessible NULL links. Fix testsuite/a11y/about.ui GtkAboutDialog : "CRITICAL **: atk_hyperlink_get_start_index: assertion 'ATK_IS_HYPERLINK (link)' failed" That is set widget->priv->accessible as soon as accessible object is generated. When accessible object is created accessible->priv->widget is set, if widget->priv->accessible is not , then _gtk_label_accessible_update_links exits early, thus without creating the links on the accessible side. (This as it checks for the widget to have the accessible set before proceeding). https://bugzilla.gnome.org/show_bug.cgi?id=766458 gtk/gtkwidget.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit ddcf47026dbbe58dca3b34c7bb1ec63bb50a861a Author: Benjamin Otte Date: Sat May 14 18:35:27 2016 +0200 widget: No longer postpone style-updated on unrealized widgets GTK used to not emit GtkWidget::style-updated on widgets that weren't realized. This sped up construction of complex widgetry in the early days of GTK3 where we instantly invalidated on every change. We don't do that anymore, so in theory (and in my limited testing with widget-factory) this shouldn't be a prolem anymore. What is a problem though is that postponing style-updated leads to 2 problems: (1) Unrealized widgets will not emit style-updated which may cause them to not properly update their state and return wrong values from get_preferred_width/height() etc (2) Emitting style-updated during realize can happen too late. When a widget is not made child-visible by its parent (common examples: notebook, paned) it will also not be realized when the parent is initially shown. However, when they get realized later (after a resize of the parent), they will emit style-updated (and potentially queue a resize) during size-allocate. https://bugzilla.gnome.org/show_bug.cgi?id=765700 gtk/gtkwidget.c | 13 +------------ gtk/gtkwidgetprivate.h | 1 - 2 files changed, 1 insertion(+), 13 deletions(-) commit 30d2dc49a88bcd584f9858de83509339de574f89 Author: Benjamin Otte Date: Sat May 14 17:13:52 2016 +0200 scrolledwindow: destroy children in destroy() If we don't do that, testsuite/gtk/templates starts failing. gtk/gtkscrolledwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit f0f8d6d6b036347e3f2141761bb7703dfb77ad33 Author: Timm Bäder Date: Sat Apr 30 18:46:22 2016 +0200 gdkwindow: Use GList less gdk/gdkwindow.c | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) commit d4f0c9877d488bfb9559899bdb04489bf07d3827 Author: Timm Bäder Date: Sat Apr 30 12:10:14 2016 +0200 query-settings: Indicate deprecated settings gtk/gtk-query-settings.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 0d8993fb240e7572620cdf0cadb4f92e86e02712 Author: Timm Bäder Date: Fri Feb 26 21:58:36 2016 +0100 stack: Don't underallocate the last_child gtk/gtkstack.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) commit 292e0c266363f339b965b1272d4acfb88d72394d Author: Timm Bäder Date: Fri Feb 26 21:58:22 2016 +0100 stack: Remove some code duplication gtk/gtkstack.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit 301652de1fc4bc609aa6d4aaea96f85a59fd837d Author: Timm Bäder Date: Mon Apr 18 20:48:53 2016 +0200 Remove useless casts from gdk_event_triggers_context_menu calls gtk/gtkentry.c | 2 +- gtk/gtklabel.c | 2 +- gtk/gtkrange.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit c34bb3b994fa52b82605bf97fc5f236d0f136ac9 Author: Timm Bäder Date: Sat Apr 16 13:57:32 2016 +0200 query-settings: Don't compare int to uint gtk/gtk-query-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a99213100d0ef9f258d71ebf93caef08542bfd1e Author: Timm Bäder Date: Sat Apr 16 13:57:08 2016 +0200 listbox: Don't compare int to uint gtk/gtklistbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4cce90d1e2fbd2fad15066e8229d5f03174055c5 Author: Timm Bäder Date: Wed May 11 15:33:18 2016 +0200 colorbutton: Stop using state-changed gtk/gtkcolorbutton.c | 14 -------------- 1 file changed, 14 deletions(-) commit 63be0deb0f112c354d3b4d2bbee44e6512d24358 Author: Timm Bäder Date: Tue May 10 19:16:19 2016 +0200 toolbar: Limit item position to number of contained elements Greater values don't make much sense. https://bugzilla.gnome.org/show_bug.cgi?id=682080 gtk/gtktoolbar.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit e463e095773e65170b740ad6f96df187b784d187 Author: Matthias Clasen Date: Thu May 12 11:37:13 2016 -0400 wayland: Avoid unitialized memory reads I didn't pay attention when I replaced g_new0 with g_newa. Oops. gdk/wayland/gdkkeys-wayland.c | 2 ++ 1 file changed, 2 insertions(+) commit 46b789b0f40e594ada4f277a2b0b41a7cc8ad49f Author: Lapo Calamandrei Date: Thu May 12 11:50:13 2016 +0200 Adwaita: brighter pushed button background providing more contrast with the text color. gtk/theme/Adwaita/_drawing.scss | 2 +- gtk/theme/Adwaita/gtk-contained.css | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) commit 16afc59f0420a28c3fba1fa64a186c4af39550f6 Author: Lapo Calamandrei Date: Thu May 12 11:45:34 2016 +0200 Adwaita: bold size label on font button looks more consistent with other special buttons with icons. gtk/theme/Adwaita/_common.scss | 3 +++ gtk/theme/Adwaita/gtk-contained-dark.css | 2 ++ gtk/theme/Adwaita/gtk-contained.css | 2 ++ 3 files changed, 7 insertions(+) commit b5146317bb0ce7c403352825133883696c1e2cbc Author: Lapo Calamandrei Date: Thu May 12 11:40:28 2016 +0200 Adwaita: hide separator on button.font and button.file we used to do that, got missed at some point during 3.20 cycle. gtk/theme/Adwaita/_common.scss | 5 ++++- gtk/theme/Adwaita/gtk-contained-dark.css | 3 +++ gtk/theme/Adwaita/gtk-contained.css | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) commit c891ceb31df1fb16c7727be46cee4d8a9fc0b447 Author: Matthias Clasen Date: Wed May 11 13:25:15 2016 -0400 Docs: Clarify life cycle issue gtk_gesture_get_last_event() wasn't very clear about how long it is safe to use the returned pointer. gtk/gtkgesture.c | 4 ++++ 1 file changed, 4 insertions(+) commit 358eec297204b438809692a24cc3649658dbab5a Author: Matthias Clasen Date: Wed May 11 13:24:04 2016 -0400 DND: Avoid a use-after-free Cancelling the gesture causes the last_event pointer to become invalid. Make a copy of the event so we can keep using it regardless of the gesture state. gtk/gtkdragsource.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit 7c21a32b2887657b711b767ae90397955805b98f Author: Matthias Clasen Date: Tue May 10 21:47:20 2016 -0400 places sidebar: Avoid markup confusion in tooltips At one point, the sidebar was using gtk_treeview_set_tooltip_column, which expects tooltips to be markup. With the listbox-based sidebar, we don't do that anymore. So don't escape the tooltip text. https://bugzilla.gnome.org/show_bug.cgi?id=766175 gtk/gtkplacessidebar.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 7e7d7991cc8e7c7a2b50ce6530a8ebafd673516b Author: Matthias Clasen Date: Tue May 10 21:29:10 2016 -0400 x11: Trap possible X error XIGetClientPointer can generate X errors (e.g. when the X server does not support XI2. Trap them and carry on. https://bugzilla.gnome.org/show_bug.cgi?id=766233 gdk/x11/gdkdisplay-x11.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) commit f8bc35b9a62fdaa0b16d0552e7d7771f2b338d47 Author: Matthias Clasen Date: Tue May 10 15:41:03 2016 -0400 Fix scale length The vertical scales should really be of the same length, so add an empty value to be drawn by the other scale. demos/widget-factory/widget-factory.c | 7 +++++++ demos/widget-factory/widget-factory.ui | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) commit 49d5c9ed14e47de56ff7802f53bd3591d9e4f03b Author: Matthias Clasen Date: Tue May 10 15:31:29 2016 -0400 Forgotten rename gdk/gdkevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 327777a291a736ed3e0ebb14b2be6cdbb664c907 Author: Timm Bäder Date: Tue May 10 18:33:37 2016 +0200 Scale: Set the correct value alignment We're measuring both the width of the minimal and the maximal value for the value gadget, but only give the value the minimal width for its current value, resultnig in an always left-aligned value. Fix this by assigning the width of the value gadget to the value layout and letting pango align the text inside the layout. https://bugzilla.gnome.org/show_bug.cgi?id=766120 gtk/gtkscale.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) commit 7b81b56f7b55b0339f20810fcb12043fa2ab81c7 Author: Timm Bäder Date: Mon May 9 18:30:14 2016 +0200 widget-factory: Let one of the scales draw a value https://bugzilla.gnome.org/show_bug.cgi?id=766120 demos/widget-factory/widget-factory.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 4add8f3b6349e8068969d0a3a6dc55889b639dc6 Author: Matthias Clasen Date: Tue May 10 15:22:35 2016 -0400 Document new api docs/reference/gdk/gdk3-sections.txt | 1 + gdk/gdkevents.c | 11 +++++++++++ 2 files changed, 12 insertions(+) commit 0f476590fbf7bbf10968909676c5f45a592435f7 Author: Matthias Clasen Date: Tue May 10 15:16:45 2016 -0400 Make gdk_event_get_pointer_emulated public There is not strong reason to keep the getter private. At the same time, strip _-prefixes from a few other GdkEvent APIs. Update all callers. gdk/broadway/gdkeventsource.c | 4 ++-- gdk/gdkevents.c | 6 +++--- gdk/gdkevents.h | 3 +++ gdk/gdkinternals.h | 8 ++++---- gdk/gdkprivate.h | 2 -- gdk/gdkwindow.c | 30 +++++++++++++++--------------- gdk/mir/gdkmireventsource.c | 4 ++-- gdk/quartz/gdkevents-quartz.c | 4 ++-- gdk/wayland/gdkdevice-wayland.c | 6 +++--- gdk/win32/gdkevents-win32.c | 2 +- gdk/x11/gdkdevicemanager-core-x11.c | 2 +- gdk/x11/gdkdevicemanager-xi2.c | 12 ++++++------ gtk/gtkmenu.c | 4 +--- 13 files changed, 43 insertions(+), 44 deletions(-) commit 126156e820789557ae05af6a6b76c40e3c1c2325 Author: Olivier Fourdan Date: Mon May 9 08:56:56 2016 +0200 gtkmenu: ignore left/right scroll events Menus are placed vertically by definition, it does not make much sense to support horizontal axis for scrolling. Use GDK_EVENT_STOP/GDK_EVENT_PROPAGATE instead of TRUE/FALSE and add a default case to return GDK_EVENT_PROPAGATE for unhandled events. https://bugzilla.gnome.org/show_bug.cgi?id=765939 gtk/gtkmenu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) commit c134d52dd789d2f8b43e15e51fa72d9586a151ec Author: Olivier Fourdan Date: Tue May 3 16:44:14 2016 +0200 gtkmenu: ignore emulated scroll events On X11, we get both smooth and emulated scroll events, whereas other backends such as wayland will give smooth events only with touchpad scrolling. Discard emulated scroll events so that we get consistent behaviours between backends. Allow for both horizontal and vertical smooth events for scrolling so that horizontal scrolling still works without emulated scroll events as well, again for consistency between gdk backends. https://bugzilla.gnome.org/show_bug.cgi?id=765939 gtk/gtkmenu.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit e405c27eee99f9dbfd5ebf83c93dacee18e568d5 Author: Olivier Fourdan Date: Tue May 3 16:15:07 2016 +0200 gdkevent: make _gdk_event_get_pointer_emulated() private And not just internal to gdk, so we can use it in gtk as well, to differentiate emulated scroll events from others. https://bugzilla.gnome.org/show_bug.cgi?id=765939 gdk/gdkinternals.h | 1 - gdk/gdkprivate.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) commit 20592a79350dd331f99f3345e23f7f9d85046043 Author: Timm Bäder Date: Tue May 10 12:50:42 2016 +0200 scale: Remove double nullable annotation Being both (allow-none) and (nullable) at the same time is a bit much. Was from 591e7f5ef8538982e227b2c2cefc536a33cafa6c. gtk/gtkscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7116988bcbd14b129fc859044e802ec98371357a Author: Timm Bäder Date: Tue May 10 12:31:56 2016 +0200 widget: Add Since annotation to gtk_widget_queue_allocate gtk/gtkwidget.c | 2 ++ 1 file changed, 2 insertions(+) commit 092cb9e202a9f654152bc5fbb276521817346d11 Author: Chun-wei Fan Date: Mon May 9 16:37:39 2016 +0800 GTK: Fix build for pre-C99 compilers Some compilers we support, such as pre-2013 Visual Studio, does not support for INIFINITY, log2() and exp2(), so check for exp2() and log2() during configure, and use fallbacks for them and INIFINTY if they are not found. https://bugzilla.gnome.org/show_bug.cgi?id=766207 config.h.win32.in | 10 ++++++++++ configure.ac | 2 +- gtk/fallback-c89.c | 27 +++++++++++++++++++++++++++ gtk/gtkprogressbar.c | 3 ++- gtk/inspector/visual.c | 2 +- 5 files changed, 41 insertions(+), 3 deletions(-) commit 7a0941c0908df71ce5f11f76537c288ef0cba26b Author: Chun-wei Fan Date: Tue May 10 13:18:23 2016 +0800 Visual Studio builds: Refine "installation" process Split out the part where we generate/update the caches for the GSchemas and the icons, so that it is easier to ensure that things continue to function correctly when we have GlibEtcInstallRoot != CopyDir. build/win32/vs10/gtk3-install.propsin | 16 ++++++++++------ build/win32/vs10/gtk3-install.vcxproj | 16 ++++++++-------- build/win32/vs9/gtk3-install.vcproj | 16 ++++++++-------- build/win32/vs9/gtk3-install.vspropsin | 8 ++++++-- 4 files changed, 32 insertions(+), 24 deletions(-) commit 732316aca25c4616d26669e85024097324a1101c Author: Benjamin Otte Date: Tue May 10 00:59:19 2016 +0200 scrolledwindow: Remove child before destroying self Children tend to call back into the scrolled window while being removed and that doesn't work too well if the scrolled window is destroyed already as Christian Hergert found out. gtk/gtkscrolledwindow.c | 5 +++++ 1 file changed, 5 insertions(+) commit 0c37b057167f5da7fb4be1e182d8dda3de413264 Author: Benjamin Otte Date: Tue May 10 00:58:50 2016 +0200 cssimage: Make it possible to shrink builtin check/optionmarks ... below 7px of size. gtk/gtkcssimagebuiltin.c | 40 ++++++++++------------------------------ 1 file changed, 10 insertions(+), 30 deletions(-) commit effd40c39c6f7d6a668ca5ecf3ce7220caf6f5ac Author: Cédric Valmary Date: Mon May 9 20:49:18 2016 +0000 Updated Occitan translation po/oc.po | 1739 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 864 insertions(+), 875 deletions(-) commit 6e2b9a1413fce0130ad946436a75eb6324d45b22 Author: Emmanuele Bassi Date: Mon May 9 12:45:34 2016 +0100 docs: Update examples of matching key bindings The selector for matching GtkEntry has changed to `entry` after 3.20. https://bugzilla.gnome.org/show_bug.cgi?id=766166 gtk/gtkbindings.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit ce0a7fa5606f865211e0a8da6b37bae2b12cda01 Author: Chun-wei Fan Date: Mon May 9 15:42:37 2016 +0800 gdk/Makefile.am: Dist gdkmonitorprivate.h This file needs to be distributed with the tarball as well... gdk/Makefile.am | 1 + 1 file changed, 1 insertion(+) commit 8cda93d389a3d7c38667d88b5d4ef0dec145a5b9 Author: Chun-wei Fan Date: Mon May 9 15:35:26 2016 +0800 Visual Studio builds: Clean up projects a bit Consolidate the .lib's that we need to link to for GDK and GTK+ into the property sheets, and also link to setupapi.lib as that is needed by the port to the new GdkMonitor API. build/win32/vs10/gdk-3.vcxprojin | 18 +++++++++--------- build/win32/vs10/gtk-3.vcxprojin | 10 +++++----- build/win32/vs10/gtk3-build-defines.props | 20 ++++++++++++++++++-- build/win32/vs9/gdk-3.vcprojin | 16 ++++++++-------- build/win32/vs9/gtk-3.vcprojin | 8 ++++---- build/win32/vs9/gtk3-build-defines.vsprops | 16 ++++++++++++++++ 6 files changed, 60 insertions(+), 28 deletions(-) commit e24530d03bf2c7300736dd2a2829aca42fe94220 Author: Chun-wei Fan Date: Mon May 9 13:14:01 2016 +0800 gdk/win32/gdkmonitor-win32.c: Fix build on non-GCC WINBOOL is MinGW-specific, so change it to BOOL, which is universally available. Also, Visua Studio is more picky on where __stdcall (WINAPI) is placed, so fix that to be in-sync with what is done in the other sources. gdk/win32/gdkmonitor-win32.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) commit 534ab9a9f023673f2d72aa95d28123300e6422a6 Author: Georges Basile Stavracas Neto Date: Sun May 8 17:36:26 2016 -0300 placesview: update guiding list of protocols The previous list of protocols in the guidance popover was suboptimal and needed adjustments. This commit updates this list to match the latest mockups [1]. [1] https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/4847c79ea1aaf75046b3ec5bb1b167ac604d86ed/nautilus/nautilus-next/connect-to-server-wire.png https://bugzilla.gnome.org/show_bug.cgi?id=756570 gtk/ui/gtkplacesview.ui | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) commit 1b84d75d1069432f07c339f0b0a4d8703e5f28db Author: Timm Bäder Date: Sun May 8 21:33:53 2016 +0200 dialogs: remove 2px border width again gtk/ui/gtkdialog.ui | 1 + gtk/ui/gtkfilechooserdialog.ui | 1 + gtk/ui/gtkmessagedialog.ui | 1 + gtk/ui/gtkprintunixdialog.ui | 1 + 4 files changed, 4 insertions(+) commit 840faeada1114f0524487ea732e57f820ed17385 Author: Aurimas Černius Date: Sun May 8 18:30:49 2016 +0300 Updated Lithuanian translation po-properties/lt.po | 1625 ++++++++++++++++++++++++++------------------------- po/lt.po | 936 +++++++++++++++-------------- 2 files changed, 1340 insertions(+), 1221 deletions(-) commit d1d06bc47c21595042653fc4925b4ef417055230 Author: Rafael Fontenelle Date: Sun May 8 14:25:31 2016 +0000 Updated Brazilian Portuguese translation (cherry picked from commit 207b793316a90faff00d5ea6fbe483d5a184d066) po/pt_BR.po | 554 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 275 insertions(+), 279 deletions(-) commit fd81e801ab630400abbf13c3e1ef167691596f67 Author: Timm Bäder Date: Sun May 8 15:52:56 2016 +0200 tooltip: Include gtkwidgetprivate.h That's where gtk_widget_query_tooltip is defined. gtk/gtktooltip.c | 1 + 1 file changed, 1 insertion(+) commit 640c1b5a33e8ad68c8aec5d7096914d0e6e5bf53 Author: Timm Bäder Date: Sun May 8 15:34:28 2016 +0200 gdk: Fix parameter name mismatch gdk/gdkdisplay.h | 2 +- gdk/gdkmonitor.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit af49609b8f88f7802b8c32fe1a57c3397cf36b37 Author: Timm Bäder Date: Mon May 2 08:59:40 2016 +0200 infobar: Fix typo Style class names are prefixed with a '.' gtk/gtkinfobar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac5b48e40c7ab54b168627e389817030ef6c1620 Author: Matthias Clasen Date: Sat May 7 16:22:13 2016 -0400 gtk-demo: Fix revealer demo This only used by luck before. We are changing a property from the ::notify handler for that property. Now that GtkRevealer is notifying the property when it stops animations on unmap, we end up in a life lock situation where we never make it out of the notify queue. Fix this by not restarting the animation if the widget is unmapped. demos/gtk-demo/revealer.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) commit 3cba63b2f890f5437b99145b7500f9407c30128c Author: Ray Strode Date: Fri May 6 22:29:31 2016 -0400 widget: add missing detail to ::query-tooltip emission This was an oversight in commit dfb368e29bb58b4313b578f0ce75cfc8ead9a1. gtk/gtkwidget.c | 1 + 1 file changed, 1 insertion(+) commit ed147c88e167e0a9a5aeae0c54fc14adc801c74b Author: Matthias Clasen Date: Fri May 6 20:51:25 2016 -0400 tooltip: Add a missing * This was an oversight in the previous commit. gtk/gtktooltip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c1d1042892cf6c23cf995f38685a363674a5a053 Author: Matthias Clasen Date: Fri May 6 20:50:38 2016 -0400 gtk3-demo: Add a close button to the markup window demos/gtk-demo/markup.c | 1 + 1 file changed, 1 insertion(+) commit de3dabc865f2c7429b37fa47df48046064d1768b Author: Matthias Clasen Date: Fri May 6 20:47:49 2016 -0400 gtk-demo: Don't duplicate text in markup example I forgot to clear the buffer before inserting the new markup. Oops. demos/gtk-demo/markup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 82aa83b0f685f80343d2e60663d07ec51aecb688 Author: Matthieu Gautier Date: Wed May 4 12:42:40 2016 +0200 revealer: emit notify::child-revealed when animation stops Depending of float rounding during target calculation, the size of the GtkRevealer can be set to zero will the animation is not finished. If the GtkRevealer is in a GtkPaned, it will be hidden and so the animation will be stopped before it is finished. In this case, force the emission of the child-revealed signal to let client code know the animation is finished. https://bugzilla.gnome.org/show_bug.cgi?id=765973 gtk/gtkrevealer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) commit cd581c9e81b6a1c92b527c059df07d59ecd6c2eb Author: Matthias Clasen Date: Fri May 6 13:45:46 2016 -0400 Simplify our templates This is applying the new property name simplification. gtk/ui/gtkaboutdialog.ui | 44 ++-- gtk/ui/gtkappchooserdialog.ui | 24 +- gtk/ui/gtkappchooserwidget.ui | 20 +- gtk/ui/gtkassistant.ui | 72 +++--- gtk/ui/gtkcolorchooserdialog.ui | 12 +- gtk/ui/gtkcoloreditor.ui | 166 ++++++------- gtk/ui/gtkcombobox.ui | 6 +- gtk/ui/gtkdialog.ui | 11 +- gtk/ui/gtkfilechooserbutton.ui | 12 +- gtk/ui/gtkfilechooserdialog.ui | 11 +- gtk/ui/gtkfilechooserwidget.ui | 64 ++--- gtk/ui/gtkfontbutton.ui | 6 +- gtk/ui/gtkfontchooserdialog.ui | 12 +- gtk/ui/gtkfontchooserwidget.ui | 98 ++++---- gtk/ui/gtkinfobar.ui | 14 +- gtk/ui/gtklockbutton.ui | 6 +- gtk/ui/gtkmessagedialog.ui | 11 +- gtk/ui/gtkpagesetupunixdialog.ui | 96 +++---- gtk/ui/gtkpathbar.ui | 12 +- gtk/ui/gtkplacesview.ui | 212 +++++++--------- gtk/ui/gtkplacesviewrow.ui | 25 +- gtk/ui/gtkprintunixdialog.ui | 511 +++++++++++++++++++------------------- gtk/ui/gtkrecentchooserdefault.ui | 26 +- gtk/ui/gtkscalebutton.ui | 28 +-- gtk/ui/gtksearchbar.ui | 12 +- gtk/ui/gtksidebarrow.ui | 4 +- gtk/ui/gtkstatusbar.ui | 12 +- gtk/ui/gtktooltipwindow.ui | 19 +- gtk/ui/gtkvolumebutton.ui | 12 +- 29 files changed, 760 insertions(+), 798 deletions(-) commit 3c09783005fe74dfa9e15144766a7468281dfc23 Author: Matthias Clasen Date: Fri May 6 13:45:09 2016 -0400 Clean up builder parser data after parsing No need to have these linger around in qdata. gtk/gtkwidget.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit f16e58e9a76a8ea3778923cae5e1f396fb2571ca Author: Matthias Clasen Date: Fri May 6 13:42:30 2016 -0400 builder tool: Canonicalize property names When simplifying, convert property names to canonical form, so we don't waste time while looking them up later. gtk/gtk-builder-tool.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) commit 8ead17ee76dc789d34bb23395713443d2b0092a1 Author: Cédric Valmary Date: Fri May 6 18:31:42 2016 +0000 Updated Occitan translation po-properties/oc.po | 2042 +++++++++++++++++++++++++++------------------------ 1 file changed, 1068 insertions(+), 974 deletions(-) commit 1b8c9de09a70e34ade129d92a77250e8ddd6657a Author: Lapo Calamandrei Date: Fri May 6 19:34:12 2016 +0200 Adwaita: darken treeview exapanders gtk/theme/Adwaita/_common.scss | 4 ++-- gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++-- gtk/theme/Adwaita/gtk-contained.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) commit 55a76cbc312738ef6c6f591702a97a2170dfd57b Author: Lapo Calamandrei Date: Fri May 6 19:01:19 2016 +0200 Adwaita: cosmetic change gtk/theme/Adwaita/_common.scss | 1 - 1 file changed, 1 deletion(-) commit 5f5a02f3e522a082c77a0901f05d6cc76ada05fb Author: Lapo Calamandrei Date: Fri May 6 18:50:37 2016 +0200 Adwaita: relocate a selector relocate treview acceleditor > label in the treeview section and add a comment for a testcase. gtk/theme/Adwaita/_common.scss | 6 ++---- gtk/theme/Adwaita/gtk-contained-dark.css | 5 ++--- gtk/theme/Adwaita/gtk-contained.css | 5 ++--- 3 files changed, 6 insertions(+), 10 deletions(-) commit 0f116135f4a5033ce4e9dfa19f10624701fa615c Author: Matthias Clasen Date: Fri May 6 10:12:14 2016 -0400 Avoid emitting ::style-set by name GtkStyle is deprecated, but we still emit ::style-set quite a bit, so lets at least not be slow while doing it. gtk/deprecated/gtkstyle.c | 2 -- gtk/gtkwidget.c | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) commit 12dfb368e29bb58b4313b578f0ce75cfc8ead9a1 Author: Matthias Clasen Date: Fri May 6 09:54:24 2016 -0400 Don't emit ::query-tooltip by name This signal is emitted quite a bit, and we can easily avoid it. gtk/gtktooltip.c | 7 +------ gtk/gtkwidget.c | 19 +++++++++++++++++++ gtk/gtkwidgetprivate.h | 6 ++++++ 3 files changed, 26 insertions(+), 6 deletions(-) commit 64710def823e4d3e92f6e8523dc1f69c95af8e1f Author: Matthias Clasen Date: Fri May 6 09:38:18 2016 -0400 Stop storing has-tooltip in qdata This is queried quite a bit, and we have room for an extra bit in GtkWidgetPrivate. gtk/gtktooltip.c | 4 +--- gtk/gtkwidget.c | 31 ++++++++----------------------- gtk/gtkwidgetprivate.h | 1 + 3 files changed, 10 insertions(+), 26 deletions(-) commit 9fac83783c873e44507b085c6fac3f348d277c25 Author: Matthias Clasen Date: Fri May 6 07:54:22 2016 -0400 Don't use qdata for getting the default css style There's no point in using qdata for looking this up, since we only ever set it on the default screen anyway. gtk/gtkcssstaticstyle.c | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) commit 1de2f21994b5baa9517c5b09894b6d1daae4f41b Author: Lapo Calamandrei Date: Fri May 6 15:36:26 2016 +0200 Adwaita: tidy treeview style properties... ...removing a double definition in the process. gtk/theme/Adwaita/_common.scss | 15 ++++++++------- gtk/theme/Adwaita/gtk-contained-dark.css | 14 +++++++------- gtk/theme/Adwaita/gtk-contained.css | 14 +++++++------- 3 files changed, 22 insertions(+), 21 deletions(-) commit b938cfe5be41bf55aec9ced843b26f27518d3c9f Author: Matthias Clasen Date: Fri May 6 07:08:56 2016 -0400 settings: Fix font names *again* This is the last time, I hope. gtk/gtksettings.c | 1 + 1 file changed, 1 insertion(+) commit ff3264b4c56196f5a0575b6595df81b66e5c30cc Author: Matthias Clasen Date: Fri May 6 06:42:43 2016 -0400 widget: Store accessible in GtkWidgetPrivate Every widget may have one of these, and they are accessed somewhat frequently. gtk/gtkwidget.c | 118 ++++++++++++++++++++----------------------------- gtk/gtkwidgetprivate.h | 2 + 2 files changed, 50 insertions(+), 70 deletions(-) commit cb8817f710f0fa5cade175238e72fe3f3d43aa85 Author: Matthias Clasen Date: Fri May 6 00:46:17 2016 -0400 Ensure we initialize a quark first The style function here can also be called before the corresponding class_init had a chance to create the quark. Fix this. gtk/deprecated/gtkstyle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) commit d91b8c91d3da735b25f0f3f1754cbc043e0cd286 Author: Matthias Clasen Date: Fri May 6 00:45:05 2016 -0400 tooltip: Ensure our quark is not 0 Many of the tooltip functions can be called before a tooltip object is created, and thus initializing the quark in class_init is not good enough. gtk/gtktooltip.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) commit 360a3c16902ec80a3f0e69aba3b4f743a75efc1e Author: Matthias Clasen Date: Fri May 6 00:21:08 2016 -0400 Use a cheaper way to store settings per display This was another very frequent use of qdata. Since we typically have only one or two display objects, storing the display-settings association in a simple array is faster than using object data or a hash table. gtk/gtksettings.c | 118 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 72 insertions(+), 46 deletions(-) commit cca894b912910fe14650a48d618964a9b1651119 Author: Matthias Clasen Date: Thu May 5 18:51:30 2016 -0400 Use a cheaper way to store debug flags This was the most frequent use of qdata *by far*. gtk/gtkmain.c | 64 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 41 insertions(+), 23 deletions(-) commit 46edfaa89c6affd97fb4ba43fa73bc8d0474d601 Author: Matthias Clasen Date: Thu May 5 19:21:27 2016 -0400 Fix indentation mishap gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c50e774b2964c0d6d7251e195d75034b588ba326 Author: Matthias Clasen Date: Thu May 5 19:17:31 2016 -0400 Fix a typo gtk/gtkmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ebb894cd64a84ec99da493622132821740ff91ee Author: Christian Hergert Date: Fri May 6 11:31:41 2016 +0300 wayland: use g_signal_handler_disconnect() Use of g_signal_handlers_disconnect_by_func() needs to do more work than necessary to find all the matching handlers. Instead, just hold on to the signal identifier and remove it directly so we hit the fast path. Not terribly ground breaking in terms of performance gains, but its done enough to be worthwhile. https://bugzilla.gnome.org/show_bug.cgi?id=766049 gdk/wayland/gdkwindow-wayland.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) commit c27b8b48ab0d01e6276bb652157ed48080bcaed4 Author: Matthias Clasen Date: Thu May 5 15:37:21 2016 -0400 Update color name css style test Verify rebeccapurple too. testsuite/css/style/colornames.css | 1 + testsuite/css/style/colornames.nodes | 56 +++++++++++++++++++----------------- testsuite/css/style/colornames.ui | 1 + 3 files changed, 31 insertions(+), 27 deletions(-) commit 27210f523b291ee0372e57310a8af831218de8e4 Author: Matthias Clasen Date: Thu May 5 15:17:56 2016 -0400 scale: Fix mark positioning at the left/top edge We were failing to take the widget allocation.x/y into account when deciding whether we need to push in the mark. https://bugzilla.gnome.org/show_bug.cgi?id=765922 gtk/gtkscale.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 6b64c31f6df45af6d6e670b3ba698746cc0efdd1 Author: Matthias Clasen Date: Thu May 5 14:13:03 2016 -0400 Generalize the previous commit Update all xsettings when we get a screen, to prevent similar problems from occurring in the future. gtk/gtksettings.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) commit fe7be14db8efb08e72e22f60c2640cdc1fdfcd6e Author: Matthias Clasen Date: Thu May 5 13:30:55 2016 -0400 settings: Avoid a crash Christian Hergert reported seeing webkit crashes with recent GTK+. The stacktrace points at the CSS machinery calling into GtkSettings to get the font name, and then getting surprised by a property notification that triggers style validation. To avoid this, query the font name xsetting right away when we get set a screen. gtk/gtksettings.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) commit c14572fdae9bf6d34cd6af35dc572c509f1ae144 Author: Carlos Garnacho Date: Thu May 5 19:00:28 2016 +0200 x11: Rely on passive keyboard grabs with XI2 for DnD The active keyboard grab can be spared then. This way the passive key grabs allow other key combinations (eg. alt-tab) that are not mandatory to grab here. gdk/x11/gdkdnd-x11.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) commit 870a674283d9b59795c61ce24e713cde0a7fb7dc Author: Lapo Calamandrei Date: Thu May 5 18:36:03 2016 +0200 Adwaita: more flexible headerbar_fill mixin add an additional background layer as a parameter. gtk/theme/Adwaita/_drawing.scss | 11 +++++++---- gtk/theme/Adwaita/gtk-contained-dark.css | 6 ++---- gtk/theme/Adwaita/gtk-contained.css | 6 ++---- 3 files changed, 11 insertions(+), 12 deletions(-) commit 27c1cce726934f20d1f0cb962f658938ab34eb47 Author: Carlos Garnacho Date: Wed May 4 14:23:17 2016 +0200 searchenginetracker: Quote fts match so it's seen as a single phrase FTS5 has a complex enough syntax that it makes not much sense to wrap in simple search boxes. https://bugzilla.gnome.org/show_bug.cgi?id=765981 gtk/gtksearchenginetracker.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) commit df38db70a098c9c064602c732317576a222a11de Author: Timm Bäder Date: Thu May 5 11:21:56 2016 +0200 label: Also initialize text So gtk_label_get_text returns the default value of "". Broke the GtkModelButton default value test. gtk/gtklabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c1d1d46d34036056ff16d17aaf331d9de6d89db0 Author: Timm Bäder Date: Thu May 5 08:47:40 2016 +0200 cssgadget: Remove unused function gtk/gtkcssgadget.c | 23 ----------------------- 1 file changed, 23 deletions(-) commit f7e6385506ed2ad2a7e916a66d80355e47320493 Author: Timm Bäder Date: Wed May 4 22:24:52 2016 +0200 gtkrender: Remove superfluous cairo_save/restore calls These were all surrounding functions that either call cairo_save/cairo_restore themselves or don't need to. gtk/gtkrender.c | 82 --------------------------------------------------------- 1 file changed, 82 deletions(-) commit 1c4e60975024463ffa354cbebc51346917ccc2ac Author: Matthias Clasen Date: Wed May 4 16:05:40 2016 -0400 css node: Stop extraneous change notification The ::name and ::widget-type properties are entirely independent, no need to notify both when either changes. gtk/gtkcssnode.c | 2 -- 1 file changed, 2 deletions(-) commit bf66cd1e94f298131ac16fc6b64fee95b452e8b3 Author: Matthias Clasen Date: Wed May 4 15:05:08 2016 -0400 box: Only emit ::child-notify when necessary We can easily check if the values for expand, padding and so forth actually changed, so lets do it. gtk/gtkbox.c | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) commit 5b19747ef8cca357156c50f8ba5d8bc3a10085e9 Author: Matthias Clasen Date: Wed May 4 13:52:09 2016 -0400 Revert "When creating a widget path, use the widget type" This reverts commit 0d78b67bca8866a05d0d55d3d5c48aa7a90ff89e. As Benjamin points out: that'll break all widgets that query style properties in their init function. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0d78b67bca8866a05d0d55d3d5c48aa7a90ff89e Author: Matthias Clasen Date: Wed May 4 13:41:05 2016 -0400 When creating a widget path, use the widget type No need to pull the type out of the css node - its our own type. This will let us stop setting the type on the css node later on. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3ca9a218ec049c877820d676ba25950f5e38d2fe Author: Matthias Clasen Date: Wed May 4 13:38:47 2016 -0400 Set the proper state on the css node This will almost certainly overwritten before the widget gets to the screen, but while we are doing this, we might as well use the same state that we initialize the widgets state to. gtk/gtkwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 7df668f2acbf102bd03a7259921c82088a9ede6c Author: Matthias Clasen Date: Wed May 4 12:48:46 2016 -0400 css names are always set No need to check for it, we set the css name on GtkWidgetClass ourselves. gtk/gtkwidget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 0efe186d956bbdb75c7cbef4e95d56ca370d3ee7 Author: Timm Bäder Date: Wed May 4 18:55:33 2016 +0200 switch: Remove .slider from slider gadget As the documentation states, neither the switch nor the slider gadget should be using any style classes. gtk/gtkswitch.c | 1 - 1 file changed, 1 deletion(-) commit 4ba1f19b038021ae22dc9443ca010f20eface472 Author: Timm Bäder Date: Wed May 4 15:25:59 2016 +0200 switch: Create less pango layouts Instead of creating 2 pango layouts in every draw() and on in _get_content_size (and calling into gettext twice in both cases), just keep the layouts around and create them in only one place. gtk/gtkswitch.c | 95 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 60 insertions(+), 35 deletions(-) commit 1da048d19ac8921a9da843fc4376f927e620b8fb Author: Matthias Clasen Date: Wed May 4 11:19:03 2016 -0400 settings: Fix xsettings handling I was somehow under the misconception that we'd get GdkEventSettings events for all the xsettings at startup. That is not in general true, so we need to make sure that we check for the xsettings value before we use them, or derived fields. Update all the private getters to do so; and fix settings_update_font_values() to cope with font descriptions that might miss the family or size. gtk/gtksettings.c | 58 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 14 deletions(-) commit 1d0ba98d5df703c0936f2334733f68143f0831f2 Author: Matthias Clasen Date: Wed May 4 06:28:59 2016 -0400 settings: Ensure derived fields are initialized I mistakenly assumed that gtk_settings_init was already doing something to trigger a notify for all properties. It doesn't, so we have to ensure that settings_update_font_values() is called at least once. https://bugzilla.gnome.org/show_bug.cgi?id=765966 gtk/gtksettings.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) commit adc90b9e9db783f743f35e6fb8b26c1fe6c30eb4 Author: Matthias Clasen Date: Tue May 3 23:14:05 2016 -0400 wayland: Small improvements to update_direction Avoid memory allocation if possible, and use the proper min/max keycodes. gdk/wayland/gdkkeys-wayland.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) commit 09aa48b7485818120a31cac617be62bdeb91a23c Author: Matthias Clasen Date: Tue May 3 22:52:38 2016 -0400 wayland: Don't emit direction-changed unless it did We can easily check this, so lets do it. gdk/wayland/gdkdevice-wayland.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) commit 3b75cadc415c809189c8f77bd5710dd68498d2d5 Author: Matthias Clasen Date: Tue May 3 22:36:20 2016 -0400 trivial formatting fixes gdk/wayland/gdkdevice-wayland.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 449fd4a350da32175961934617a4ecbdc2e04e16 Author: Matthias Clasen Date: Tue May 3 22:15:17 2016 -0400 Use g_set_object in one more place gtk/gtkcsswidgetnode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 944f9d4f287d69b109aa50474aacc00d67b08574 Author: Timm Bäder Date: Tue May 3 19:26:02 2016 -0400 label: don't use set_text in gtk_label_new It would just set up lots of things with the default values, but a common case is that a few gtk_label_set_* calls follow. gtk/gtklabel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit e0ab19a8f0ac036abfc4d9e32cf049bfccdb1e2e Author: Kjartan Maraas Date: Tue May 3 23:23:11 2016 +0200 Updated Norwegian bokmål translation. po/nb.po | 3461 ++++++++++++++++++++++++-------------------------------------- 1 file changed, 1314 insertions(+), 2147 deletions(-) commit 4ae6f10ae9decc45c0da54b21895b693bd7bbc6f Author: Timm Bäder Date: Tue May 3 16:07:50 2016 -0400 label: minimum/natural size parameters are not nullable Stop comparing them to NULL. gtk/gtklabel.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) commit e75894da13e378e26df076f17cbd7e4ba6284e27 Author: Timm Bäder Date: Tue May 3 16:04:58 2016 -0400 label: Don't set out parameters twice We set them later again when we calculate the vertical size, so just move the general assignment to -1 into the horizontal branch. gtk/gtklabel.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit cb419794f89ad00a2e1755adb2670efa97cdb686 Author: Timm Bäder Date: Tue May 3 17:49:20 2016 +0200 widget: Remove useless NULL check We are checking for allocation != NULL at the beginning of the function already. This also means that the allocation parameter is not nullable. gtk/gtkwidget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 71b360cc8e72df4f7672c7eeeafb90f0c40b5cb6 Author: Timm Bäder Date: Tue May 3 10:58:02 2016 -0400 roundedbox: Initialize the hashtable key before using it In mem_hash, we are iterating over the individual bytes of the key, so make sure all of it is initialized. gtk/gtkroundedbox.c | 1 + 1 file changed, 1 insertion(+) commit a72c4576b2815c96b55164ebe27ad62f40108da7 Author: Benjamin Otte Date: Tue May 3 12:57:50 2016 +0200 cssimagebuiltin: Remove icons that don't draw anything anymore gtk/gtkcheckbutton.c | 4 ++-- gtk/gtkcssimagebuiltin.c | 6 ++---- gtk/gtkcsstypesprivate.h | 2 -- gtk/gtkmodelbutton.c | 6 ++---- gtk/gtkrender.c | 8 ++++---- 5 files changed, 10 insertions(+), 16 deletions(-) commit b049b3de25241d39e8c096d56a538d414632dd27 Author: Benjamin Otte Date: Mon May 2 19:51:41 2016 +0200 cssimagebuiltin: Remove unused variables gtk/gtkcssimagebuiltin.c | 20 +------------------- gtk/gtkcssimagebuiltinprivate.h | 2 -- 2 files changed, 1 insertion(+), 21 deletions(-) commit 2c2c60827e79f4780409dd97985d59ce70160503 Author: Benjamin Otte Date: Mon May 2 18:36:06 2016 +0200 widget: Remove useless comment gtk/gtkwidget.c | 3 --- 1 file changed, 3 deletions(-) commit e74ecfe22e75cf4ec57b36738a66d1fba2d6fd5c Author: Olivier Fourdan Date: Tue May 3 10:44:16 2016 +0200 wayland: fix up/down mix up in discrete events The wayland specification for discrete step information for scroll and other axes reads: | The discrete value carries the directional information. e.g. a | value of -2 is two steps towards the negative direction of this axis. mutter sets a value of 1 for SCROLL_DOWN events and -1 for SCROLL_UP events. gdkdevice Wayland backend does the opposite, it translates a positive discrete value as SCROLL_UP and a negative value as SCROLL_DOWN, which ends up inverting the scrolling direction. Fix the logic in gdkdevice Wayland to use a positive value as SCROLL_DOWN and a negative value as SCROLL_UP so that it matches mutter and weston logic. https://bugzilla.gnome.org/show_bug.cgi?id=765907 gdk/wayland/gdkdevice-wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit be201a5b71c7ce73ffd1fc8f1c6c264d82be9d95 Author: Matthias Clasen Date: Mon May 2 13:30:20 2016 -0400 css: Stop drawing double borders for builtins The fallback code for rendering builtin checks, radios and expanders was using border parameters. With the generic gadget borders using the same parameters, this was giving double borders. gtk/gtkcssimagebuiltin.c | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) commit 38181bc3d2fa329334ac74773047c362db10fcce Author: Timm Bäder Date: Sat Apr 30 21:06:07 2016 +0200 shadowsvalue: Don't draw invisible box shadows gtk/gtkcssshadowvalue.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit ef7ccab188ea27de30390d674c0690f90d0b21f5 Author: Matthias Clasen Date: Mon May 2 12:40:51 2016 -0400 defaultvalue test: Skip GdkMonitor::geometry We never return NULL for ::geometry and ::workarea. Just skip these properties. testsuite/gtk/defaultvalue.c | 5 +++++ 1 file changed, 5 insertions(+) commit 8dd8c4a9dedc92c93b512543f44942cf849c840e Author: Matthias Clasen Date: Mon May 2 12:40:24 2016 -0400 GdkMonitor: Fix refresh-rate property We were using g_value_set_boolean for an integer property. gdk/gdkmonitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b579fa82fe4559db72e6583745fef206c2b59db6 Author: Руслан Ижбулатов Date: Mon May 2 14:45:44 2016 +0000 Use default VFS, not a local one (it has no network) gtk/gtkplacesview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9a03fc906affbe509959b36dcef0eb179876d56b Author: Matthias Clasen Date: Mon May 2 07:38:26 2016 -0400 Fix gtk_paned_set_position to set position_set consistently As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=765676, we were failing to set position_set if the position did not change. gtk/gtkpaned.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) commit 264b2b78cd52a1e87d0090876d589b9ddbb8bc60 Author: Carlos Soriano Date: Mon May 2 11:56:23 2016 +0200 testnotebookdnd: add one GtkListBox as tab content To make sure we test regressions on widgets that bubble up motion handling and can trigger the motion handling code path on GtkNotebook. https://bugzilla.gnome.org/show_bug.cgi?id=764395 tests/testnotebookdnd.c | 51 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) commit ddb0740a212a077793f77df7b76f4fbd25af707e Author: Carlos Soriano Date: Mon May 2 10:19:12 2016 +0200 gtknotebook: avoid tab dnd from content Before commit 6c1bee2377eba8 we were setting an attribute of GtkNotebook to track the pressed button if the pressed button happened on the tab itself. Later in the motion handling code we were checking whether the private pressed button attribute was set or not in order to handle a tab dnd or not. In commit 6c1bee2377eba8 the code changed and set the pressed button variable unconditionally, which means, a motion event from within the tab content triggered a tab reordering. This happened only if the children hierarchy have a widget that bubbles up both button press event, which sets the private pressed button attribute; and motion events, which started the tab dnd checking the private pressed button attribute. A widget that experienced the regression was GtkListBox. In order to fix it, set the button pressed variable only when it press the tab itself, not the content. https://bugzilla.gnome.org/show_bug.cgi?id=764395 gtk/gtknotebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit bab628beb23f74e8035878e0c4cc54309b2a7995 Author: Руслан Ижбулатов Date: Sun May 1 19:00:25 2016 +0000 GtkPlacesView: check for network:// URI support before using it Specifically, this URI is not supported on Windows, but GFile will do its "best" and turn it into GLocalFile("$pwd/network"), with spectacularly bad results. https://bugzilla.gnome.org/show_bug.cgi?id=765858 gtk/gtkplacesview.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) commit cb6b5e4017c9b2d420ac71ba287c3fa16a16e509 Author: Carlos Garnacho Date: Sun May 1 20:05:56 2016 +0200 gdkevents: Free motion events discarded by motion compression Those should be freed together with their list link. gdk/gdkevents.c | 1 + 1 file changed, 1 insertion(+) commit 73e799474a31eee2fc38c51d891c4502e1de9a46 Author: Matthias Clasen Date: Sun May 1 13:25:51 2016 -0400 dnd: Make sure to free a stashed event I am not sure if this happens in practice, but better to be safe. gtk/gtkdnd.c | 3 +++ 1 file changed, 3 insertions(+) commit 0fe0ee897d8a02ee45254b6692470a520ae6f5e7 Author: Matthias Clasen Date: Sun May 1 13:23:12 2016 -0400 gesture: Don't leak stashed events These events were never freed. gtk/gtkgesture.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) commit a0472694283490a39392d1158e7a2e379962af79 Author: Matthias Clasen Date: Sun May 1 13:18:55 2016 -0400 Avoid copying an event Not a big deal, but we can be a bit more efficient when generating grab-broken events. gdk/gdkdisplay.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) commit a7ee3a6d806e66a661d3dc393494e5d1e8b6da92 Author: Matthias Clasen Date: Sun May 1 11:28:37 2016 -0400 Small docs improvement Cross reference from gdk_event_get_keycode to gdk_event_get_scancode. gdk/gdkevents.c | 2 ++ 1 file changed, 2 insertions(+) commit 8041c012fe41e9e03ba1f352b3d4a9ccec1e07a6 Author: Matthias Clasen Date: Sun May 1 11:22:55 2016 -0400 Drop unused macros These have been sitting here forever, unused. Time to drop them gdk/gdkevents.c | 6 ------ 1 file changed, 6 deletions(-) commit 6baac526b91ebb94ef4dee562eef989bc795ec91 Author: Matthias Clasen Date: Sun May 1 11:09:05 2016 -0400 x11: drop a useless list We were keeping all the event sources in a list, only to remove them at the end of their life. Not useful. gdk/x11/gdkeventsource.c | 6 ------ 1 file changed, 6 deletions(-) commit 75e44c50ed50499dd8f48261c40fb5001fa2b277 Author: Matthias Clasen Date: Sun May 1 11:06:33 2016 -0400 wayland: drop a useless list We were keeping all the event sources in a list, only to remove them at the end of their life. Not useful. gdk/wayland/gdkeventsource.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit de894f38b521d527881806b2733509acf69dfb5d Author: Matthias Clasen Date: Sun May 1 13:26:09 2016 -0400 Fix the build I forgot to add an include here. gtk/gtkcssenumvalue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a829b26de1b6e399c1ce3430fbeb191770e709f3 Author: Matthias Clasen Date: Sun May 1 10:52:31 2016 -0400 wayland: Tag the event source with the acutal display name gdk/wayland/gdkeventsource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 55ea6e4dcc4bbe6c7fc40c8e814ad2ee99b3b2e2 Author: Matthias Clasen Date: Sun May 1 10:51:41 2016 -0400 wayland: Make gdk_display_get_name work It should just return the same as gdk_screen_make_display_name. gdk/wayland/gdkdisplay-wayland.c | 8 +++++++- gdk/wayland/gdkscreen-wayland.c | 8 +------- 2 files changed, 8 insertions(+), 8 deletions(-) commit 309c6dfaf8a081166e28e4109db96c2292151edd Author: Matthias Clasen Date: Sun May 1 01:10:59 2016 -0400 css: Use setters for font size and family This avoid creating pango font descriptions all the time, when the gtk-font-name setting hasn't actually changed. gtk/gtkcssenumvalue.c | 25 +++++++------------------ gtk/gtkcssinitialvalue.c | 25 ++----------------------- 2 files changed, 9 insertions(+), 41 deletions(-) commit 71d68168171fb49f6436ca94eb0a87fe5a17c107 Author: Matthias Clasen Date: Sun May 1 01:10:33 2016 -0400 settings: Add setters for font family and size gtk/gtksettings.c | 53 ++++++++++++++++++++++++++++++++++++++++++++++++ gtk/gtksettingsprivate.h | 3 +++ 2 files changed, 56 insertions(+) commit 449732446bf85831290c9276eb407eb2e0e9bce0 Author: Matthias Clasen Date: Sun May 1 00:40:23 2016 -0400 treeview: Use getter for gtk-enable-animations gtk/gtktreeview.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) commit 8457dff08af03830d657bb8239439c155b0f94fa Author: Matthias Clasen Date: Sun May 1 00:40:08 2016 -0400 switch: Use getter for gtk-enable-animations gtk/gtkswitch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit df7247837539d013fd5f1231c956fd75db6c76fc Author: Matthias Clasen Date: Sun May 1 00:39:55 2016 -0400 stack: Use getter for gtk-enable-animations gtk/gtkstack.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit 5ee745dfeee2e4ffac7f7f76a62c3662024db80c Author: Matthias Clasen Date: Sun May 1 00:39:34 2016 -0400 scrolled window: Use getter for gtk-enable-animations gtk/gtkscrolledwindow.c | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) commit ff0107a4ac8d321cec5e5b8c9c8d583829084bc1 Author: Matthias Clasen Date: Sun May 1 00:39:18 2016 -0400 Use getter for gtk-enable-animations gtk/gtkrevealer.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) commit 9d038df7deeea0ea77d0546d77b6c979f5852f0c Author: Matthias Clasen Date: Sun May 1 00:39:03 2016 -0400 popover: Use getter for gtk-enable-animations gtk/gtkpopover.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) commit e502702dd405466215e24fc2c242e389bf07085f Author: Matthias Clasen Date: Sat Apr 30 23:15:20 2016 -0400 Use a variable consistently gdk/gdkwindow.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 417eb0ad9c3d32b9398d0b27e55ea48b8e399732 Author: Matthias Clasen Date: Sat Apr 30 22:39:26 2016 -0400 Use a better hash for arcs gtk/gtkroundedbox.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) commit e5de6dd8b13c62a9a4cea65f223ed963c8537c8d Author: Matthias Clasen Date: Sat Apr 30 22:00:35 2016 -0400 css: Use a getter for the enable-animations setting gtk/gtkcsswidgetnode.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 28625c16c057c22c1af8a12dd2aaa8124081cabc Author: Matthias Clasen Date: Sat Apr 30 22:00:19 2016 -0400 dnd: Use a getter for the drag threshold gtk/gtkdnd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) commit 8e62cee0758348e0a69f99048c0c357921603268 Author: Matthias Clasen Date: Sat Apr 30 22:00:06 2016 -0400 Add a few settings getters gtk/gtksettings.c | 34 ++++++++++++++++++++++++++++++++++ gtk/gtksettingsprivate.h | 3 +++ 2 files changed, 37 insertions(+) commit 4151b6715cd413da10de3216e90b754117f59a65 Author: Matthias Clasen Date: Sat Apr 30 21:06:38 2016 -0400 Trivial whitespace fix gdk/gdkframeclock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 98f16fdf7a74d88996f0837c1fdd3bd5d8e9cbf8 Author: Matthias Clasen Date: Sat Apr 30 20:59:16 2016 -0400 Use the new getter This avoids the use of generic api in the per-event code path. gdk/gdkwindow.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit 7f4b575fc35adf81ac12fafdc1a87029b045f1aa Author: Matthias Clasen Date: Sat Apr 30 20:52:09 2016 -0400 gdk: Add a private getter for GdkDevice::input-mode gdk/gdkdevice.c | 6 ++++++ gdk/gdkdeviceprivate.h | 2 ++ 2 files changed, 8 insertions(+) commit 172093db8c0e6602c09393b10b7156d600955975 Author: Matthias Clasen Date: Sat Apr 30 16:29:16 2016 -0400 Add a forgotten deprecation gdk_display_get_screen is marked as deprecated in the docs. gdk/gdkdisplay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3a095ad4547c98706bd1acece32a39925251f3a9 Author: Руслан Ижбулатов Date: Fri Apr 29 15:54:52 2016 +0000 W32: support cairo library in non-standard locations When checking for cairo_win32_surface_create_with_format in -lcairo, temporarily put CAIRO_LIBS into LIBS so that AC_CHECK_LIB() can find it in weird places like /usr/local/lib, where gcc would not look on its own. https://bugzilla.gnome.org/show_bug.cgi?id=765793 configure.ac | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) commit 15dbf35fd8d6da3fcfb7fbb3d1b235fef4c4b8fc Author: GNOME Translation Robot Date: Fri Apr 29 08:41:50 2016 +0000 Updated Scottish Gaelic translation po/gd.po | 294 ++++++++++++++++++++++++++++++--------------------------------- 1 file changed, 140 insertions(+), 154 deletions(-) commit 2655d929fe68c40d0140896b276d09b3d146f087 Author: Руслан Ижбулатов Date: Fri Apr 29 01:19:23 2016 +0000 W32: reword the error about required cairo version 1.14.x series does not contain the functionality needed by GTK+. Advise to use 1.15.x (1.15.2 is available) or 1.16.x (yet to be released). https://bugzilla.gnome.org/show_bug.cgi?id=765790 configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 7afc6b1fd52295635633d16be6f1641b883fe368 Author: Matthias Clasen Date: Wed Apr 27 00:00:19 2016 -0400 settings: Cache xsettings Instead of calling out to gdk every time an XSetting is requested, cache the value (we already have the property_values array anyway). https://bugzilla.gnome.org/show_bug.cgi?id=765579 gtk/gtksettings.c | 204 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 106 insertions(+), 98 deletions(-) commit 214870891761ce4437821e974c34da99d59eed96 Author: Matthias Clasen Date: Thu Apr 28 21:55:52 2016 -0400 box gadget: Redo expand flag handling We only keep one align flag per child, so it seems odd to keep separate h/v expand flags. Just keep one expand flag and interpret it according to orientation. Allow setting the expand flag for child widgets too, though, so we can make widget expand without interfering with the recursive widget expand flag. Update all callers. Use the new possibility of expanding child widgets to make the label of check and radio buttons expand. This fixes unexpected behavior of these widgets in RTL in some places. https://bugzilla.gnome.org/show_bug.cgi?id=765742 gtk/gtkboxgadget.c | 106 ++++++++++++++++++---------------------------- gtk/gtkboxgadgetprivate.h | 16 +++---- gtk/gtkcheckbutton.c | 3 +- gtk/gtkexpander.c | 6 +-- gtk/gtknotebook.c | 14 +++--- gtk/gtkrange.c | 11 +---- gtk/gtkspinbutton.c | 12 +++--- 7 files changed, 67 insertions(+), 101 deletions(-) commit 8a308dd072ae07b98b33dd68de43975f884cf1bb Author: Matthias Clasen Date: Thu Apr 28 21:30:01 2016 -0400 expander: Reverse alignments in RTL Flip alignments of the title gadget children. gtk/gtkexpander.c | 2 ++ 1 file changed, 2 insertions(+) commit 8bf148b006cf4bfd3085cae0f3137563998e97f0 Author: Matthias Clasen Date: Thu Apr 28 21:29:32 2016 -0400 check button: Reverse alignments in RTL Flip alignments for the box gadget children. gtk/gtkcheckbutton.c | 2 ++ 1 file changed, 2 insertions(+) commit 2919e344ca505e3a1ba5b2f24d0bccaafdcbdf26 Author: Matthias Clasen Date: Thu Apr 28 21:27:02 2016 -0400 box gadget: allow reversing alignments In RTL, we want to interpret GTK_ALIGN_START and _END in the opposite way. Since we don't give gadgets a text direction, just allow setting an align_reverse flag to the box gadget. gtk/gtkboxgadget.c | 34 ++++++++++++++++++++++++++++++---- gtk/gtkboxgadgetprivate.h | 2 ++ 2 files changed, 32 insertions(+), 4 deletions(-) commit 71c1e86e62f2d2805dbcea24221d63fac50763a7 Author: Lapo Calamandrei Date: Thu Apr 28 15:45:12 2016 +0200 Adwaita: refactor levelbar styling. gtk/theme/Adwaita/_common.scss | 30 +++++------------- gtk/theme/Adwaita/gtk-contained-dark.css | 50 +++++++++++++----------------- gtk/theme/Adwaita/gtk-contained.css | 52 ++++++++++++++------------------ 3 files changed, 51 insertions(+), 81 deletions(-) commit 0f1e42cd80c69e5d519111ed1aabad87bffccf35 Author: Rico Tzschichholz Date: Thu Apr 28 10:20:15 2016 +0200 broadway: Fix include rules in gdkbroadwaymonitor.h Fixes 044109c8c73f5c1d9eb470c857112c08a005b0ae gdk/broadway/gdkbroadwaymonitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 394fe0e67573cb5d5eac59acf51aedc67890ff90 Author: Daniel Mustieles Date: Thu Apr 28 08:06:10 2016 +0000 Updated Spanish translation po/es.po | 124 ++++++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 88 insertions(+), 36 deletions(-) commit 952d0fd23fa9dbcf26aedf5bfd91c54a6addaf49 Author: Matthias Clasen Date: Sun Apr 10 23:52:00 2016 -0400 window: Stop using gdk_screen_get_n_monitors gtk/gtkwindow.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 03d70f16369816729ae1f60ec35a5cec0b8de83e Author: Matthias Clasen Date: Sun Apr 10 23:44:05 2016 -0400 settings: Stop comparing screen numbers There is only one screen. gtk/gtksettings.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) commit f5d6688d3e3525e9d61e1155ae8ac0318af2290a Author: Matthias Clasen Date: Sun Apr 10 23:45:11 2016 -0400 window: Stop using screen width/height gtk/gtkwindow.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) commit 6ae2c24bdef30b743965afe9e9cc9556c0001eff Author: Matthias Clasen Date: Sun Apr 10 23:44:28 2016 -0400 treeview: Stop using screen width/height Popups should always be placed relative to a monitor. gtk/gtktreeview.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) commit 29396a1e5eb354010cba627b8a49b3ca2f4b776d Author: Matthias Clasen Date: Sun Apr 10 23:43:34 2016 -0400 label: Stop using screen width/height Popups should always be placed relative to a monitor. gtk/gtklabel.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit e9a58190af6e9a326f1da04af471f4315efa895f Author: Matthias Clasen Date: Sun Apr 10 23:42:57 2016 -0400 combobox: Stop using screen width/height Popups should always be placed relative to a monitor. gtk/gtkcombobox.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) commit b5fb9ae3b74ae0c1d2a20bd24457ea228dd3f9e3 Author: Matthias Clasen Date: Sun Apr 10 23:01:10 2016 -0400 gtk: Port to new monitor api Use the GdkDisplay monitor api instead of the GdkScreen one. gtk/gtkcombobox.c | 62 +++++++++++---------- gtk/gtkentry.c | 29 +++++----- gtk/gtkentrycompletion.c | 32 +++++------ gtk/gtklinkbutton.c | 19 +++---- gtk/gtkmenubutton.c | 40 +++++++------- gtk/gtkmenuitem.c | 34 ++++++------ gtk/gtkrecentchooserdefault.c | 41 +++++++------- gtk/gtktextview.c | 28 +++++----- gtk/gtktoolbar.c | 36 ++++++------- gtk/gtktooltip.c | 39 ++++++-------- gtk/gtktreeview.c | 7 +-- gtk/gtkwidget.c | 10 ++-- gtk/gtkwindow.c | 123 +++++++++++++++++------------------------- 13 files changed, 224 insertions(+), 276 deletions(-) commit 1b7d7c857f35e4834a522ced67dc0509445aae13 Author: Matthias Clasen Date: Sun Apr 10 22:59:53 2016 -0400 menu: Add new monitor api This will work better with the new monitor api in gdk. gtk/gtkmenu.c | 135 +++++++++++++++++++++++++++++++++++++--------------------- gtk/gtkmenu.h | 5 +++ 2 files changed, 91 insertions(+), 49 deletions(-) commit 3952bd60a56f3e942f9a2eced5924fd20a63a65a Author: Matthias Clasen Date: Sat Apr 2 19:22:36 2016 -0400 inspector: Port to new monitor api Adapt to new monitor apis, and show more information. gtk/inspector/general.c | 236 +++++++++++++++++++++++++++++------------------ gtk/inspector/general.ui | 24 ++--- 2 files changed, 158 insertions(+), 102 deletions(-) commit 026cb53875244d252b55110dd91efacf29a1657f Author: Руслан Ижбулатов Date: Wed Apr 20 07:36:00 2016 +0000 win32: Port to new monitor api configure.ac | 50 ++- gdk/win32/Makefile.am | 8 +- gdk/win32/gdkdisplay-win32.c | 208 +++++++++++ gdk/win32/gdkdisplay-win32.h | 6 + gdk/win32/gdkmonitor-win32.c | 833 +++++++++++++++++++++++++++++++++++++++++++ gdk/win32/gdkmonitor-win32.h | 57 +++ gdk/win32/gdkscreen-win32.c | 283 +++------------ gdk/win32/gdkwin32.h | 1 + gdk/win32/gdkwin32monitor.h | 50 +++ 9 files changed, 1250 insertions(+), 246 deletions(-) commit 5c1d0915afd1e1e5a84523da7a9597f9ad68df99 Author: Matthias Clasen Date: Wed Apr 27 23:08:25 2016 -0400 x11: Bring back fullscreen-on-all-monitors support It is unfortunate the EWMH requires Xinerama here - lets do this without the caching that was previously there, I don't think it is needed. gdk/x11/gdkscreen-x11.c | 45 +++++++++++++++++++++++++++++++++------------ gdk/x11/gdkwindow-x11.c | 14 ++++++-------- 2 files changed, 39 insertions(+), 20 deletions(-) commit d92fda2103bc79043465b5218323a14edd05183e Author: Matthias Clasen Date: Sun Apr 3 00:12:39 2016 -0400 x11: Port to new monitor api gdk/x11/Makefile.am | 3 + gdk/x11/gdkdisplay-x11.c | 39 +++ gdk/x11/gdkdisplay-x11.h | 3 + gdk/x11/gdkmonitor-x11.c | 102 +++++++ gdk/x11/gdkmonitor-x11.h | 43 +++ gdk/x11/gdkscreen-x11.c | 774 +++++++++++++++++++++++------------------------ gdk/x11/gdkscreen-x11.h | 8 +- gdk/x11/gdkwindow-x11.c | 5 +- gdk/x11/gdkx.h | 1 + gdk/x11/gdkx11monitor.h | 48 +++ 10 files changed, 620 insertions(+), 406 deletions(-) commit 79a0286ab13efd63cadfd2345d09d17387697592 Author: Matthias Clasen Date: Sun Apr 3 00:15:42 2016 -0400 x11: Drop Xinerama It may come back after the monitor conversion. gdk/x11/gdkscreen-x11.c | 295 ------------------------------------------------ gdk/x11/gdkscreen-x11.h | 3 - 2 files changed, 298 deletions(-) commit 044109c8c73f5c1d9eb470c857112c08a005b0ae Author: Matthias Clasen Date: Sat Apr 2 23:42:40 2016 -0400 broadway: Port to new monitor api gdk/broadway/Makefile.am | 3 ++ gdk/broadway/gdkbroadway.h | 1 + gdk/broadway/gdkbroadwaymonitor.h | 46 ++++++++++++++++++++++++++++ gdk/broadway/gdkdisplay-broadway.c | 39 ++++++++++++++++++++++++ gdk/broadway/gdkdisplay-broadway.h | 3 ++ gdk/broadway/gdkmonitor-broadway.c | 37 +++++++++++++++++++++++ gdk/broadway/gdkmonitor-broadway.h | 38 +++++++++++++++++++++++ gdk/broadway/gdkscreen-broadway.c | 62 ++++---------------------------------- 8 files changed, 173 insertions(+), 56 deletions(-) commit 9026289381b5a9a7d80d525109eb0929ddb83217 Author: Matthias Clasen Date: Sat Apr 2 10:18:56 2016 -0400 wayland: Port to new monitor api gdk/wayland/Makefile.am | 3 + gdk/wayland/gdkdisplay-wayland.c | 27 ++++ gdk/wayland/gdkdisplay-wayland.h | 2 + gdk/wayland/gdkmonitor-wayland.c | 64 +++++++++ gdk/wayland/gdkmonitor-wayland.h | 39 +++++ gdk/wayland/gdkscreen-wayland.c | 303 ++++++++++++++------------------------- gdk/wayland/gdkwayland.h | 1 + gdk/wayland/gdkwaylandmonitor.h | 48 +++++++ 8 files changed, 290 insertions(+), 197 deletions(-) commit a2f02f1ca80919fb81cb14e203de8c2f9bd3f256 Author: Matthias Clasen Date: Wed Apr 27 22:51:42 2016 -0400 integrate docs docs/reference/gdk/gdk-docs.sgml | 1 + docs/reference/gdk/gdk3-sections.txt | 29 +++++++++++++++++++++++++++++ docs/reference/gdk/gdk3.types | 1 + 3 files changed, 31 insertions(+) commit 0611cb4823c207c5468a9c1a8eac65c6eee7a214 Author: Matthias Clasen Date: Sat Apr 2 10:18:16 2016 -0400 screen: Implement old monitor apis generically Implement all the monitor-related GdkScreen apis based on GdkMonitor. gdk/gdkscreen.c | 194 +++++++++++++++++++++++++------------------------------- 1 file changed, 86 insertions(+), 108 deletions(-) commit b6c4ba0e2ad1e0a30a941594e4003399e74f5792 Author: Matthias Clasen Date: Mon Apr 25 09:07:56 2016 -0400 Add a fallback for unconverted backends If the monitor vfuncs are not implemented in a display class, fall back to providing a single monitor object representing the entire screen. This is not meant to be 'good enough', it is just to provide some implementation until all backends implement the monitor vfuncs. When that is the case, the fallback should be removed. gdk/gdkdisplay.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) commit 9d719b99893297bdd1675217ba9a7c8575cc0d80 Author: Matthias Clasen Date: Thu Mar 31 23:10:37 2016 -0400 display: Add new monitor apis This follows our general direction of moving functionality from GdkScreen to GdkDisplay. gdk/gdkdisplay.c | 232 ++++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkdisplay.h | 17 ++++ gdk/gdkdisplayprivate.h | 10 +++ 3 files changed, 259 insertions(+) commit 837244809e4ceca2209fbb513c7c71120e6a9231 Author: Matthias Clasen Date: Thu Mar 31 23:10:04 2016 -0400 Add GdkMonitor Add a simple object representing a monitor. gdk/Makefile.am | 2 + gdk/gdk.h | 1 + gdk/gdkmonitor.c | 602 ++++++++++++++++++++++++++++++++++++++++++++++++ gdk/gdkmonitor.h | 95 ++++++++ gdk/gdkmonitorprivate.h | 79 +++++++ 5 files changed, 779 insertions(+) commit 8fc11ef2a513b3029c208b2d37d3716998a9389c Author: Christian Hergert Date: Wed Apr 27 19:02:25 2016 -0700 Revert "iconhelper: check if surface was invalidated" This reverts commit 88d02583974659d1d37d825df78c79bee4c95d0e. gtk/gtkiconhelper.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) commit 96c18db0daf922e7f02f54c26043d1d2ac98f5cc Author: Руслан Ижбулатов Date: Tue Apr 26 21:45:15 2016 +0000 GtkTreeView: change child repositioning to preserve locality If there was a piece of text in the cell, then when the edit entry is shown for that cell, it should have a piece of text in it roughly at the same location. Therefore, when child widget is enlarged (child preferred size exceeds cell size), extra width should be added by extending either left or right edge depending on text direction. If after that the child sticks outside of the treeivew visible region, try to push it back inside (breaking its alignment with the cell), again, giving preference (i.e. adjusting it last) to either left or right edge depending on text direction. https://bugzilla.gnome.org/show_bug.cgi?id=765471 gtk/gtktreeview.c | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) commit 88d02583974659d1d37d825df78c79bee4c95d0e Author: Christian Hergert Date: Wed Apr 27 17:45:01 2016 -0700 iconhelper: check if surface was invalidated Fetching the style may cause the surface to be invalidated. gtk/gtkiconhelper.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) commit 055ce9f095fa66d4ea247ec24d8366d5080c9ebc Author: Balázs Meskó Date: Wed Apr 27 19:32:14 2016 +0000 Updated Hungarian translation po/hu.po | 849 ++++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 463 insertions(+), 386 deletions(-) commit 25c38df30e95f27bf1f07463663d0ccb4607216b Author: Daniel Mustieles Date: Wed Apr 27 21:07:11 2016 +0200 Updated Spanish translation po-properties/es.po | 1143 ++++++++++++++++++++++++++------------------------- 1 file changed, 592 insertions(+), 551 deletions(-) commit 0d55542359751d80c7ae7bf5b48806e6a9f07a23 Author: Lapo Calamandrei Date: Wed Apr 27 20:04:39 2016 +0200 Adwaita: add a background to cellrendertext gtk/theme/Adwaita/_common.scss | 7 +++++++ gtk/theme/Adwaita/gtk-contained-dark.css | 3 +++ gtk/theme/Adwaita/gtk-contained.css | 3 +++ 3 files changed, 13 insertions(+)