commit a1b2e7c1c2fc308b76015e8b8ecb5eab233119cf Author: Matthias Clasen Date: Mon Aug 17 22:09:03 2015 -0400 3.17.7 NEWS | 16 ++++++++++++++++ configure.ac | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) commit e1fd87728dd841cf1d71025983107765e395b152 Author: Jonas Ådahl Date: Tue Aug 18 08:38:07 2015 +0800 wayland: Use g_get_prgname() to get the xdg_surface.set_app_id string Prior to this patch, the ID of the GtkApplication was always used for clients which were GtkApplications. This would only be guaranteed to be correct for D-Bus activatable programs. As a result, all non-D-Bus-activatable applications would set the wrong ID making the shell unable to find the corresponding .desktop file. This change makes it so that the GDK backend always uses the name passed to g_set_prgname, or the default value if not explicitly set, as this more often corresponds to the .desktop file. This means that in order to make D-Bus activatable applications set the correct application ID, they must, for now, manually call g_set_prgname() with their application ID (basename of the .desktop file). If g_get_prgname() returns NULL, fallback to gdk_get_program_class() even though it will most likely never be correct according to the xdg_surface.set_app_id specification. https://bugzilla.gnome.org/show_bug.cgi?id=746435 gdk/wayland/gdkwindow-wayland.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) commit af78792720989a39813ebefc5cd9add3cbff2811 Author: Carlos Soriano Date: Tue Aug 18 00:42:23 2015 +0200 gtkplacesview: allow to cancel connection to server We were not allowing to cancel the operation at all, and at most the operation was cancelled only when clicked connect again. Also due to gvfs bug 753735 we actually weren't cancelling at all, and therefore creating multiple dialogs. gtk/gtkplacesview.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) commit 8192a058a90a13e78cd79aa54d33b01229d55718 Author: Georges Basile Stavracas Neto Date: Mon Aug 17 14:25:18 2015 -0300 places-view: show a more verbose entry hint As pointed out by Allan, this is not very helpful. A call to action label fits better in this case. gtk/ui/gtkplacesview.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 3de1bd383afddd3b530b612f8539d1866388b88d Author: Emmanuele Bassi Date: Mon Aug 17 13:32:35 2015 +0100 flowbox: Sink the floating reference of model-based children We don't want to leak references if the widget created to represent the item in the model does not have a floating reference — which is usually what happens in bindings, as they automatically sink references when creating new instances. See commit 6e03e7e8 for the similar change in GtkListBox. gtk/gtkflowbox.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit e8063bcb210d729297cd4667c6a5c23ac0b477fc Author: Chun-wei Fan Date: Mon Aug 17 19:20:04 2015 +0800 MSVC Introspection Builds: Remove GCC Requirement Sorry, the last commit added a generated file instead of the template. G-I has been updated to not require a Windows GCC installation anymore to generate the .gir files, so update the NMake Makefiles that are used for this purpose. As a result, it is no longer necessary to define time_t for the .gir generation as we are on the same compiler throughout the process. build/gtk-introspection-msvc.mak.in | 14 ++++---------- build/introspection-msvc.mak | 16 +--------------- 2 files changed, 5 insertions(+), 25 deletions(-) commit 40a190520714a4cc91bf387a43f031fe3695bef5 Author: Chun-wei Fan Date: Mon Aug 17 19:18:03 2015 +0800 Revert "MSVC Introspection Builds: Remove GCC Requirement" This reverts commit aea7809f55ac520b9d2d5d9c1eea1345fabbd7a7. build/gtk-introspection-msvc.mak | 101 --------------------------------------- build/introspection-msvc.mak | 16 ++++++- 2 files changed, 15 insertions(+), 102 deletions(-) commit aea7809f55ac520b9d2d5d9c1eea1345fabbd7a7 Author: Chun-wei Fan Date: Mon Aug 17 19:11:53 2015 +0800 MSVC Introspection Builds: Remove GCC Requirement G-I has been updated to not require a Windows GCC installation anymore to generate the .gir files, so update the NMake Makefiles that are used for this purpose. As a result, it is no longer necessary to define time_t for the .gir generation as we are on the same compiler throughout the process. build/gtk-introspection-msvc.mak | 101 +++++++++++++++++++++++++++++++++++++++ build/introspection-msvc.mak | 16 +------ 2 files changed, 102 insertions(+), 15 deletions(-) commit ab09ffaa8cd38380f455ea51acf2474d0d31aad5 Author: Matthias Clasen Date: Mon Aug 17 01:36:37 2015 -0400 gtk-demo: Use top/bottom-margin for text views This lets us replace the hack of inserting tags in the first and last paragraph to set a above/below-paragraph space. demos/gtk-demo/main.c | 34 ++-------------------------------- demos/gtk-demo/main.ui | 4 ++++ 2 files changed, 6 insertions(+), 32 deletions(-) commit d1381569fdf2abde1535db1fcff07b3c767d396d Author: Sebastien Lafargue Date: Tue Dec 23 21:30:24 2014 +0100 text view: add padding and margin Add API to set top and bottom margins, and add the CSS padding from the theme to the programmatically set margins. https://bugzilla.gnome.org/show_bug.cgi?id=406159 docs/reference/gtk/gtk3-sections.txt | 4 + gtk/gtktextlayout.c | 17 +- gtk/gtktextlayout.h | 3 + gtk/gtktextview.c | 660 ++++++++++++++++++++++++++--------- gtk/gtktextview.h | 10 + 5 files changed, 534 insertions(+), 160 deletions(-) commit 825d1285e30351b6522b37b157d2275a48cc865f Author: Fran Dieguez Date: Mon Aug 17 01:31:09 2015 +0200 Updated Galician translations po/gl.po | 1220 +++++++++++++++++++++++++++++++++++++++----------------------- 1 file changed, 761 insertions(+), 459 deletions(-) commit 3d7647991a855e1255cfa9af6b7f9a49d630bb11 Author: Matthias Clasen Date: Sun Aug 16 18:20:12 2015 -0400 Add a test for gtk_flow_box_bind_model tests/listmodel.c | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) commit a7771867854c2d7ca54cd3266b9c665b4508c642 Author: Matthias Clasen Date: Sun Aug 16 18:05:33 2015 -0400 Add gtk_flow_box_bind_model docs/reference/gtk/gtk3-sections.txt | 3 + gtk/gtkflowbox.c | 116 ++++++++++++++++++++++++++++++++++- gtk/gtkflowbox.h | 22 +++++++ 3 files changed, 139 insertions(+), 2 deletions(-) commit 408358c9d99715e3f764575e3b026d1c111b6141 Author: Matthias Clasen Date: Sun Aug 16 18:04:49 2015 -0400 Add a test for g_list_box_bind_model tests/Makefile.am | 4 + tests/listmodel.c | 220 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 224 insertions(+) commit a6bb7a9a4661b7d29bb733b3c45ccd4edcf5de72 Author: Matthias Clasen Date: Sun Aug 16 18:11:50 2015 -0400 list box: Shorten some static function names gtk/gtklistbox.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) commit b24ce67c46b07c62679f8eb62d2259b46d895c07 Author: Christoph Reiter Date: Sun Aug 16 08:04:37 2015 +0200 Bump Pango requirement to 1.37.3 GTK+ now uses pango_attr_foreground_alpha_new, pango_attr_background_alpha_new, PANGO_ATTR_FOREGROUND_ALPHA, PANGO_ATTR_BACKGROUND_ALPHA, pango_renderer_set_alpha, pango_renderer_get_alpha, which were all added after 1.37.2. configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b93cb76fbc851a3a976f7670a3fb3a80f138d5c8 Author: Pedro Albuquerque Date: Sun Aug 16 06:10:06 2015 +0000 Updated Portuguese translation po-properties/pt.po | 168 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 96 insertions(+), 72 deletions(-) commit 775800f76e800979d3ff91ff2e78b7149ff6a960 Author: Matthias Clasen Date: Sat Aug 15 23:38:20 2015 -0400 popover: Don't restore stale default widget Only restore the saved default widget if the default hasn't been changed while the popover was visible. gtk/gtkpopover.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit b437f89c052e5d1a0bfc5521efc1eeedd4ad3f28 Author: Matthias Clasen Date: Sat Aug 15 22:20:16 2015 -0400 Add a note to gdk_screen_get_width/height_mm The values returned by these functions are not very well defined, recommend to use the monitor dimensions instead. gdk/gdkscreen.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) commit 02f3fe0671fe7b4f4068716773db01be7d4482e5 Author: Carlos Garnacho Date: Fri Aug 14 12:05:37 2015 +0200 wayland: calculate screen physical size A simple calculation is done so far (assuming monitor areas never overlap) so gdk_screen_get_width/height_mm return meaningful values. https://bugzilla.gnome.org/show_bug.cgi?id=753621 gdk/wayland/gdkscreen-wayland.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) commit 84bd32a09a25bee24ae7740e30bd75727695d744 Author: Matthias Clasen Date: Sat Aug 15 22:02:40 2015 -0400 popover: Optimize the transition There's no need to queue a resize here. https://bugzilla.gnome.org/show_bug.cgi?id=753568 gtk/gtkpopover.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) commit 0455e565171db938793d5d874d3a855335d04d7a Author: Matthias Clasen Date: Sat Aug 15 16:05:11 2015 -0400 window: Set name on idle Use gdk_threads_add_idle, and set a name on the source to aid debugging, as we do everywhere else. gtk/gtkwindow.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 568def7a869d204e4e0781dca0700a099f486d03 Author: Matthias Clasen Date: Sat Aug 15 16:04:09 2015 -0400 searc engine model: Set name on idle Use gdk_threads_add_idle, and set a name on the source to aid debugging, as we do everywhere else. gtk/gtksearchenginemodel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 73f1d62b6898e86aa24047e541c4def0243dcd64 Author: Matthias Clasen Date: Sat Aug 15 13:40:30 2015 -0400 Update release notes a bit README.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) commit 07942446d7025e15423ee0a484ebadd00c5ddea2 Author: Matthias Clasen Date: Sat Aug 15 11:16:46 2015 -0400 Fix a thinko in GtkLabel gtk/gtklabel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4453c4401f38e26a125b1f3d4bbf4bbeaa270d6d Author: Matthias Clasen Date: Sat Aug 15 11:07:54 2015 -0400 Support alpha in text cell renderer colors This is easily possible, now that Pango supports alpha. gtk/gtkcellrenderertext.c | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) commit 87981c8894e2430f832871e1650eb4b6831d8352 Author: Dušan Kazik Date: Sat Aug 15 09:57:23 2015 +0000 Updated Slovak translation po/sk.po | 405 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 207 insertions(+), 198 deletions(-) commit 0f871be508ba46f6feb67ec9af1b20e38fa957ac Author: Matthias Clasen Date: Tue Aug 11 21:35:24 2015 -0400 GtkLabel: Add alpha support for buildable attributes Make it possible to set foreground or background alpha in the builder ui support for Pango attributes. gtk/gtklabel.c | 8 ++++++++ 1 file changed, 8 insertions(+) commit e02acc7d71c458c960157a57e495e1fb12d51fd6 Author: Matthias Clasen Date: Tue Aug 11 21:25:51 2015 -0400 GtkTextDisplay: Use pango renderer alpha support We don't need to store our own copy of the colors anymore, now that PangoRenderer can do alpha. gtk/gtktextdisplay.c | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) commit 0de600c9ddd382cab12dace2c03217d35f1d43a8 Author: Matthias Clasen Date: Fri Aug 14 21:56:51 2015 -0400 Updates NEWS | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) commit 83c25169e8571a1c9f9009f34ca4bb5ca7f4e291 Author: Ray Strode Date: Fri Aug 14 11:24:44 2015 -0400 Revert "wayland: require WAYLAND_DISPLAY be set to open wayland display" This reverts commit 35489f5d31b20a390b45803d760f965391d0b57f. It snuck in when i was trying to push commit f4d2022d46e16e1fdec8ca9b107a9870155832bf gdk/wayland/gdkdisplay-wayland.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) commit f4d2022d46e16e1fdec8ca9b107a9870155832bf Author: Ray Strode Date: Fri Aug 14 11:03:43 2015 -0400 wayland: change wl_log level to G_LOG_LEVEL_DEBUG wl_log() currently logs using G_LOG_LEVEL_ERROR (which is fatal). The wayland client library doesn't expect this behavior. It uses wl_log to log recoverable errors. This commit changes the log level to G_LOG_LEVEL_DEBUG instead. https://bugzilla.gnome.org/show_bug.cgi?id=753635 gdk/wayland/gdkdisplay-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 35489f5d31b20a390b45803d760f965391d0b57f Author: Ray Strode Date: Fri Aug 14 10:23:31 2015 -0400 wayland: require WAYLAND_DISPLAY be set to open wayland display The wayland client libraries now require WAYLAND_DISPLAY be set to use them. See: http://cgit.freedesktop.org/wayland/wayland/commit/?id=fb7e13021730d0a5516ecbd3712ea4235e05d24d This commit makes _gdk_wayland_display_open bail early if WAYLAND_DISPLAY is unset, just as it does for XDG_RUNTIME_DIR. gdk/wayland/gdkdisplay-wayland.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit 4a26366ff2791b28c3f102cdb4a0a31bdaf42f5d Author: Руслан Ижбулатов Date: Fri Aug 14 12:12:01 2015 +0000 GDK W32: Add missing commas gdk/win32/gdkcursor-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit a6b52c4275849ab1a70f10db2d8e0b6796f0db61 Author: Matthias Clasen Date: Wed Aug 12 19:35:52 2015 -0400 Revert "Revert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes""" This reverts commit 8001b2c1b3b9b5535d20ec942c497ae0f0a4adc7. gtk/gtkwindow.c | 2 -- 1 file changed, 2 deletions(-) commit 5cea77de38f9380c5cb8860883264012d5ef03ed Author: Matthias Clasen Date: Wed Aug 12 19:35:10 2015 -0400 Revert "Revert "Revert "window: fix initial shadow width for maximized/fullscreen windows""" This reverts commit 968ac90e89f444e180d883a28bfd260b118f451d. gtk/gtkwindow.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) commit 8001b2c1b3b9b5535d20ec942c497ae0f0a4adc7 Author: Matthias Clasen Date: Wed Jul 22 23:16:44 2015 -0400 Revert "Revert "gtkwindow: Reset maximize / fullscreen_initially on state changes"" This reverts commit de2ea1ebaabd7550ca6f2a02bfbaa04ac92181fd. No reason in the commit message was given for the revert, and we need this for proper behavior on map. gtk/gtkwindow.c | 2 ++ 1 file changed, 2 insertions(+) commit 968ac90e89f444e180d883a28bfd260b118f451d Author: Jasper St. Pierre Date: Wed Aug 12 14:39:46 2015 -0700 Revert "Revert "window: fix initial shadow width for maximized/fullscreen windows"" This reverts commit 8b695cc7279270eabf7d2541cfd592608d0add38. No reason in the commit message was given for the revert, and we need this for proper behavior on map. gtk/gtkwindow.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) commit 45d15b302e318f3ba9fed7c5e146152ba0e97de6 Author: Carlos Garnacho Date: Thu Jul 9 19:36:30 2015 +0200 wayland: Implement touchpad gesture events On wayland, the gestures protocol defines a wl_pointer_gestures global object, that will match in number with wl_seats, swipe and pinch interfaces can be obtained from it, which events are translated into GdkEventTouchpadSwipe/Pinch events. gdk/wayland/gdkdevice-wayland.c | 245 +++++++++++++++++++++++++++++++++++++++ gdk/wayland/gdkdisplay-wayland.c | 6 + gdk/wayland/gdkdisplay-wayland.h | 1 + 3 files changed, 252 insertions(+) commit b037d4d628b212de03c0064b2163b315b6a955de Author: Carlos Garnacho Date: Mon Jul 20 17:22:33 2015 +0200 wayland: Add touchpad gestures protocol gdk/wayland/Makefile.am | 3 + gdk/wayland/protocol/pointer-gestures.xml | 172 ++++++++++++++++++++++++++++++ 2 files changed, 175 insertions(+) commit dc77989a1c67bce242873de0e7dc0b2f9ded6cb7 Author: Carlos Garnacho Date: Fri Jul 24 12:59:59 2015 +0200 gtkgesture: Add note to gtk_gesture_get_bounding_box() This is the only function that's will be semantically confusing with touchpad gesture events, explain what's to be expected there. gtk/gtkgesture.c | 6 ++++++ 1 file changed, 6 insertions(+) commit e55b3c6501c01c085ca0583e05e1f95b4705a70f Author: Carlos Garnacho Date: Thu Jul 9 19:35:12 2015 +0200 gtkgesture: Add touchpad gesture event bit to the controller evmask gtk/gtkgesture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 8e5be43e02a11499ff8b218632b646d0220ddd42 Author: Carlos Garnacho Date: Fri Jul 24 13:05:31 2015 +0200 gtkgesturedrag: Handle touchpad swipe events These will only trigger the gesture if it's been created with the same GtkGesture::n-points than n_fingers in the event. gtk/gtkgesturedrag.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit 5d17338b4d158f6b460c73b064e1c2f363007d9c Author: Carlos Garnacho Date: Fri Jul 24 13:03:09 2015 +0200 gtkgestureswipe: Handle touchpad swipe events These will only trigger the gesture if it's been created with the same GtkGesture::n-points than n_fingers in the event. gtk/gtkgestureswipe.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) commit 5f68a2877df13d25b17299c497cddf7de1096faa Author: Carlos Garnacho Date: Thu Jul 9 19:34:09 2015 +0200 gtkgesturerotate: Handle touchpad pinch events We let these through in GtkEventController::filter, and handle these especially on GtkGesture::update. gtk/gtkgesturerotate.c | 83 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 72 insertions(+), 11 deletions(-) commit 068a8449305b2674c6ff4c8ebc97fbe4782b9f35 Author: Carlos Garnacho Date: Thu Jul 9 19:31:27 2015 +0200 gtkgesturezoom: Handle touchpad pinch events We let these through in GtkEventController::filter, and handle these especially on GtkGesture::update. gtk/gtkgesturezoom.c | 53 ++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 45 insertions(+), 8 deletions(-) commit d756463d9b2ad1cf84c0ca4313a19227a89796b4 Author: Carlos Garnacho Date: Fri Jul 24 18:52:38 2015 +0200 gtkgesture: Add docs blurb about touchpad gestures Not too long though, the precautions to take are minimal. gtk/gtkgesture.c | 9 +++++++++ 1 file changed, 9 insertions(+) commit e736e8dcb997da651747804f069b5db8417c43bf Author: Carlos Garnacho Date: Fri Jul 24 11:48:44 2015 +0200 gtkgesture: Accumulate touchpad events' dx/dy in point data This will make the gesture "center" the pointer position, plus the accumulated dx/dy throughout the gesture progress. gtk/gtkgesture.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) commit 4457be688da16811d2e558519b566b2605de346d Author: Carlos Garnacho Date: Thu Jul 9 19:18:09 2015 +0200 gtkgesture: Handle touchpad events These will be mutually exclusive with touch events, so it won't be possible to trigger gestures through mixed input and whatnot. The accounting of touchpad events is slightly different, there will be a single internal PointData struct, stored in the hashtable with the NULL event sequence/key (same than pointer events in this regard), just that the events stored will be GdkEventTouchpad*, so will hold information about all fingers at once. But this difference is just internal, the GtkGesture API doesn't make explicit assumptions about the number of points (the closest to a per-point query API is gtk_gesture_get_sequences()). All signals emitted just contain the last changed GdkEventSequence, and API takes GdkEventSequences, so everything is consistent with sequence=NULL for touchpad events. gtk/gtkgesture.c | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 81 insertions(+), 6 deletions(-) commit 67ae7322e9569d106328ddab39296ffc9f64961a Author: Carlos Garnacho Date: Thu Jul 9 19:11:04 2015 +0200 gtkgesture: Refactor n-points querying into a single function Along the code, we're basically asking for 1) the total count of touchpoints, and 2) the number of active touchpoints (not denied nor ended). Wrap both usecases into a _gtk_gesture_get_n_physical_touchpoints(), and replace all occurrences. gtk/gtkgesture.c | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) commit 97e67e21a1e21215f1191a5be1f2fb102fb2d6a0 Author: Carlos Garnacho Date: Thu Jul 9 19:04:59 2015 +0200 gtkgesture: Filter out touchpad events by default. The gestures that don't want touchpad gesture events are majority, even those that want such events will only listen to subsets (eg. pinch, swipe,...). So it makes sense to ignore touchpad events by default, and let subclasses opt those in. gtk/gtkgesture.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 8b1c9c0687e4d2deb65a7235e97bd1a2e63447ab Author: Carlos Garnacho Date: Fri Jul 24 17:39:35 2015 +0200 gtkgesture: Refactor gtk_gesture_handle_event() We'll be dealing with event types and touchpad gesture phases, replace the switch by a battery of if/elses. Otherwise, it's just an style change. gtk/gtkgesture.c | 46 ++++++++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 20 deletions(-) commit 3808322f80e322195165a8162d9c8765a68bcc52 Author: Carlos Garnacho Date: Thu Jul 9 18:55:32 2015 +0200 eventcontroller: Add private ::filter method This will be used right before handle_event() in order to filter out events, useful to make the previous "no touchpad events" behavior the default, and have gesture subclasses include manually the touchpad events they handle. gtk/gtkeventcontroller.c | 4 ++++ gtk/gtkeventcontrollerprivate.h | 3 +++ 2 files changed, 7 insertions(+) commit 777ac92862529d9b9065a2f9e86f055bbfdd4b61 Author: Carlos Garnacho Date: Thu Jul 9 18:48:41 2015 +0200 gtkwidget: Ensure touchpad events trigger the bubbling phase For all other events, we run the bubble phase deep in the specific ::motion/button-press/release/touch handlers. For touchpad events, it doesn't make sense to use GtkWidgetClass slots if the intended way to deal with these are gestures, so we run the bubble phase directly from gtk_widget_event_internal(). gtk/gtkwidget.c | 4 ++++ 1 file changed, 4 insertions(+) commit 6cd45af8b0afb3758df6bc7679b651033b39c9c4 Author: Carlos Garnacho Date: Thu Jul 9 18:47:02 2015 +0200 gtkmain: Handle rewriting of event fields during grabs for touchpad events The window/coordinates will need translation in the case of touchpad gesture events, same than with other pointer events. gtk/gtkmain.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 5092febaf841939c7b3539ef447f43e1ce464037 Author: Carlos Garnacho Date: Thu Jul 9 18:44:09 2015 +0200 gdk: Proxy touchpad events through the client-side window hierarchy This includes poking the deepmost window, checking for the GDK_TOUCHPAD_GESTURE_MASK bit set, and translating coordinates in events accordingly. gdk/gdkwindow.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 1 deletion(-) commit 8c2b3930daa6d3886626907fbc79b812579b42d7 Author: Carlos Garnacho Date: Thu Jul 9 18:42:35 2015 +0200 gdk: Add GDK_TOUCHPAD_GESTURE_MASK to GdkEventMask Users will need to manually select on this in order to receive gesture events. gdk/gdktypes.h | 1 + gdk/gdkwindow.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) commit a3b402a9498787d2704f6ab228d3814683c946eb Author: Carlos Garnacho Date: Thu Jul 9 18:39:58 2015 +0200 gdk: Add touchpad gesture events and event types. Each gesture type has its separate GdkEvent struct, and begin/update/ end/cancel event types. There is support for multi-finger swipe (3-4 fingers), and 2-finger rotate/pinch gestures. docs/reference/gdk/gdk3-sections.txt | 2 + gdk/gdkevents.c | 44 ++++++++++++ gdk/gdkevents.h | 127 +++++++++++++++++++++++++++++++++++ 3 files changed, 173 insertions(+) commit 7281803169561f3932d23e9fe0c56826ccdd3b7e Author: Paolo Borelli Date: Wed Aug 12 08:12:36 2015 +0200 cellrendererpixbuf: do not clear the icon helper twice Do not call _gtk_icon_helper_clear explicitely when the properties are set, since the corresponding _gtk_icon_helper_set_* method already calls clear internally. While at it rename the reset function to make it clear that it is calling notify for the previous image type and avoid the notification if the image type is not changing. gtk/gtkcellrendererpixbuf.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) commit a1332167fb277dfb54a7111b73d594f2d753c7a9 Author: Matthias Clasen Date: Wed Aug 12 07:22:05 2015 -0400 color chooser: Reset show-editor on unmap We have a testcolorchooser test, with a --edit option. It was supposed to make the color chooser come up in edit mode, but it didn't work ever since we dropped the ::response handler. Fix it by resetting show-editor on unmap, instead of on map. This way, users can set show-editor before showing the dialog, and it will take effect. gtk/gtkcolorchooserdialog.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) commit 4a8ff565bc06d52806ea080cdb436a647d923d7c Author: David King Date: Tue Aug 11 16:06:17 2015 +0100 listbox: Describe behavior change in GtkListBoxCreateWidgetFunc Help applicaiton authors who may already be binding GtkListBox to a GListModel by describing the change for 3.18. https://bugzilla.gnome.org/show_bug.cgi?id=753392 gtk/gtklistbox.h | 5 +++++ 1 file changed, 5 insertions(+) commit c06de9723448e77ec409980d1b16b84b57b97f27 Author: Daniel Mustieles Date: Wed Aug 12 09:04:05 2015 +0200 Updated Spanish translation po-properties/es.po | 1054 +++++++++++++++++++++++++++------------------------ 1 file changed, 559 insertions(+), 495 deletions(-) commit bb3bc752d2aed1b98cb279c7810d0a0836fd867a Author: Daniel Mustieles Date: Wed Aug 12 09:03:50 2015 +0200 Updated Spanish translation po/es.po | 339 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 170 insertions(+), 169 deletions(-) commit 12e98498f6aa687a07034d9c054d20a2f74159e4 Author: Matthias Clasen Date: Tue Aug 11 20:57:52 2015 -0400 label: Flesh out pango attribute support A few attribute types were missing from the support: rise, letterspacing, fallback, font features. Add support for these. gtk/gtklabel.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) commit 2a03476c8fc10e8952143535ba889a0230675e8d Author: Kjartan Maraas Date: Tue Aug 11 19:58:17 2015 +0200 Updated Norwegian bokmål translation. po/nb.po | 1544 +++++++++++++++++++++++--------------------------------------- 1 file changed, 573 insertions(+), 971 deletions(-) commit 3197399fec6081314f4032a64ef3d8af6c0c34fe Author: Daniel Mustieles Date: Tue Aug 11 12:34:59 2015 +0200 Updated Spanish translation po/es.po | 489 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 247 insertions(+), 242 deletions(-) commit cf237eccbeea47d86deace9089cbc0f171218340 Author: Matthias Clasen Date: Tue Aug 11 00:09:39 2015 +0200 widget-factory: Add a lock button demos/widget-factory/widget-factory.c | 112 +++++++++++++++++++++ demos/widget-factory/widget-factory.ui | 171 +++++++++++++++++---------------- 2 files changed, 199 insertions(+), 84 deletions(-) commit aa9dd72e8f9bdccd9ea8e6f4f019aa7d037be489 Author: Matthias Clasen Date: Mon Aug 10 20:32:22 2015 +0200 font chooser: Make repeated Escape cancel the dialog The first Escape clears the search entry, the second Escape closes the dialog. gtk/gtkfontchooserwidget.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) commit 5f44339ce39e9d33652aa2d086bce87c98dd276e Author: Matthias Clasen Date: Mon Aug 10 20:21:33 2015 +0200 font chooser: Make the entry activate the default gtk/ui/gtkfontchooserwidget.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ecc8cd2369c26d7d0cde64be61c3be986e689f65 Author: Matthias Clasen Date: Mon Aug 10 20:17:58 2015 +0200 font chooser: Use browse as selection mode gtk/ui/gtkfontchooserwidget.ui | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 61ffb517bc9211c7007d9274a74c6a7c23a3a112 Author: Matthias Clasen Date: Mon Aug 10 20:15:26 2015 +0200 font chooser: Make Escape stop search gtk/gtkfontchooserwidget.c | 9 ++++++++- gtk/ui/gtkfontchooserwidget.ui | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) commit e548c7139496067dca2757124963e62ce115b4d1 Author: Georges Basile Stavracas Neto Date: Mon Aug 10 15:35:56 2015 -0300 placesview: show Disconnect instead of Eject Since we're dealing with networks, terms like "Eject" or the eject button are misleading, since we're not actually ejecting but disconnecting. Fix that by showing the appropriate icon and tooltip. gtk/gtkplacesview.c | 8 ++++++-- gtk/gtkplacesviewrow.c | 43 +++++++++++++++++++++++++++++++++++++++++++ gtk/gtkplacesviewrowprivate.h | 5 +++++ gtk/ui/gtkplacesviewrow.ui | 2 +- 4 files changed, 55 insertions(+), 3 deletions(-) commit 0dff2485165b13a7dd7264aff64a7dcce6e6bb5d Author: Georges Basile Stavracas Neto Date: Mon Aug 10 15:33:34 2015 -0300 placesview: sort by path As pointed out by Cosimo, we should sort the items according to their path. gtk/gtkplacesview.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) commit 025f74161d14b65345defdd263763c367be646a1 Author: Georges Basile Stavracas Neto Date: Mon Aug 10 15:24:43 2015 -0300 placesview: plug a leak gtk/gtkplacesview.c | 1 + 1 file changed, 1 insertion(+) commit 1219b67cdb14c904e7d956eff91a2c5152c1ce9b Author: Georges Basile Stavracas Neto Date: Mon Aug 10 14:46:23 2015 -0300 placesview: no url for networks We are not showing the URL of network locations anymore, since they are distracting and not necessary. The code, however, forgot to cleanup the URL, so we are still showing the URL for network locations. Fix that by properly cleanup the URL for network locations. gtk/gtkplacesview.c | 3 +++ 1 file changed, 3 insertions(+) commit 843a8791a6d2e9139cb0856daae965a291af49ef Author: Matthias Clasen Date: Mon Aug 10 16:38:04 2015 +0200 Adwaita: Don't leak underlines The .button:link .label selector matches any label "inside" a link button. And a label inside the context menu counts as inside for this purpose. This causes the text-decoration property to leak into the context menu, even though the property is not inherited. Avoid this by tightening the selector to .button:link > .label. https://bugzilla.gnome.org/show_bug.cgi?id=753451 gtk/theme/Adwaita/_common.scss | 2 +- gtk/theme/Adwaita/gtk-contained-dark.css | 203 +++++++++---------------------- gtk/theme/Adwaita/gtk-contained.css | 203 +++++++++---------------------- 3 files changed, 121 insertions(+), 287 deletions(-) commit 5e3d0b19b05d6cd9e9568a13ce2a33b4a3f219f3 Author: Georges Basile Stavracas Neto Date: Mon Aug 10 10:42:43 2015 -0300 placesview: jumps to the default location When we connect to a server, the default and expected behavior is going to the default location, which usually is the home directory or a writable directory. GtkPlacesSidebar behaves properly, while GtkPlacesView doesn't. Fix that by jumping to the default locations instead of the root location. gtk/gtkplacesview.c | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) commit 525732b6233686c388e5b20ab529099d54b377f9 Author: Daniel Mustieles Date: Mon Aug 10 09:17:16 2015 +0200 Updated Spanish translation po-properties/es.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b9bced693a9e181bec9f81d1f808df2f94c03d82 Author: Matthias Clasen Date: Sun Aug 9 23:39:14 2015 +0200 Remove some unused data gtk/gtkcalendar.c | 6 ------ 1 file changed, 6 deletions(-) commit 3eb0eaffe2e1c44fd59980690cceb502b9eed915 Author: Matthias Clasen Date: Sun Aug 9 23:39:00 2015 +0200 Remove an unused function gtk/gtkbuilder.c | 9 --------- 1 file changed, 9 deletions(-) commit 62dce64a48e5483eca82c1f52690b1774e57d249 Author: Matthias Clasen Date: Sun Aug 9 23:38:40 2015 +0200 Remove a self-assignment clang doesn't like those. gtk/gtkbbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0f851be3681553897b6965f4562767ae61860b9d Author: Matthias Clasen Date: Sun Aug 9 23:31:36 2015 +0200 Fix a doc comment typo gtk/gtkstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 0f6781788e13e5683a8bfeed150be51c7e84ccde Author: Necdet Yücel Date: Sun Aug 9 15:53:28 2015 +0000 Updated Turkish translation po/tr.po | 1265 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 639 insertions(+), 626 deletions(-) commit 37c09d92d21a90c20bd087ff4eaf438b7688aea2 Author: Pedro Albuquerque Date: Sun Aug 9 07:31:44 2015 +0000 Updated Portuguese translation po/pt.po | 107 ++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 53 deletions(-) commit 9ecfffa830f1afa58fb562f450b79438d3c9b0e1 Author: Matthias Clasen Date: Sat Aug 8 23:05:53 2015 +0200 Formatting fixes gtk/gtkplacessidebar.c | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) commit b54fab2b89f6365e4c51cae6bac8580dd53242ed Author: Matthias Clasen Date: Sat Aug 8 22:27:29 2015 +0200 HighContrast: Fix undershoot in sidebars This was just not implemented, and the sidebars solid white background color was inherited by undershoot rectangle. https://bugzilla.gnome.org/show_bug.cgi?id=753391 gtk/theme/HighContrast/_common.scss | 19 ++++++++++++++++++ gtk/theme/HighContrast/_drawing.scss | 39 ++++++++++++++++++++++++++++++++++++ gtk/theme/HighContrast/gtk.css | 33 ++++++++++++++++++++++++++++++ 3 files changed, 91 insertions(+) commit d6f51ef7b299f0bdc7522ced74482c510dc947b4 Author: Kalev Lember Date: Sat Aug 8 16:33:42 2015 +0200 listbox: Avoid using show_all on rows Don't use gtk_widget_show_all() on row widgets because that would unconditionally show all of its children. This might be unwanted in case the row implementation wants to keep some of its children hidden. This commit changes it to use show() instead of show_all() and relies on the row widget to control the visibility of its children itself as appropriate. https://bugzilla.gnome.org/show_bug.cgi?id=753392 gtk/gtklistbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 1f4f8833b1d8a1bd17fd86f93f024c524d6284ac Author: Aurimas Černius Date: Sat Aug 8 17:09:56 2015 +0300 Updated Lithuanian translation po/lt.po | 1552 ++++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 1008 insertions(+), 544 deletions(-) commit e2e2c96bac4a02d09b3d2fdab1ae30143a89755f Author: Jordi Mas Date: Sat Aug 8 15:20:14 2015 +0200 Update Catalan translation po-properties/ca.po | 4562 ++++++++++++++++++++++++++------------------------- 1 file changed, 2369 insertions(+), 2193 deletions(-) commit 6eaf5bd0f2f432ced83fbc4f379e1d289873d400 Author: Christoph Reiter Date: Thu Aug 6 21:36:57 2015 +0200 quartz: Implement CSD drag resize for all edges/corners Manual resizing for CSD windows only worked with the bottom right corner. This extends it to work for all corners and edges. https://bugzilla.gnome.org/show_bug.cgi?id=753329 gdk/quartz/GdkQuartzNSWindow.c | 88 ++++++++++++++++++++++++++++++------------ gdk/quartz/GdkQuartzNSWindow.h | 4 +- gdk/quartz/gdkwindow-quartz.c | 8 +--- 3 files changed, 67 insertions(+), 33 deletions(-) commit 27afd624cdeb0e57dcc58e8d55e4af8d72777b0b Author: Matthias Clasen Date: Sat Aug 8 10:02:49 2015 +0200 HighContrast: Improve GtkCalendar drawing Make days gray that are not in the current month. https://bugzilla.gnome.org/show_bug.cgi?id=753357 gtk/theme/HighContrast/_common.scss | 3 +++ gtk/theme/HighContrast/gtk.css | 2 ++ 2 files changed, 5 insertions(+) commit defc0cf5df61cf556f7f0afbb9e7e4d118313cc2 Author: Matthias Clasen Date: Thu Aug 6 14:51:25 2015 +0200 file chooser button: Fix some refcounting confusion GtkFileSystem has a complicated way to handle cancellables. You keep the cancellable pointer that is returned by _gtk_file_system_get_info and similar methods so that you can cancel the operation, but you do not own a reference to it. The only place where it is ok to unref a cancellable is in your callback, which gets handed a cancellable that you need to unref at the end. You are expected to compare it to the pointer you stashed away to find out if the operation has already been superseded by a newer call, in which case you disregard the results. GtkFileChooserButton was following these rules for most of the cancellables it keeps around, but it was sometimes unreffing the cancellables that are stored in the model, which could lead to refcount confusion and crashes. This commit makes it follow the rules for that case too, which fixes the crash in the bug below, and does not show up any leaks in valgrind under light testing. https://bugzilla.gnome.org/show_bug.cgi?id=737804 gtk/gtkfilechooserbutton.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) commit f0a1a0c0a42d1ba82be967fbbf7219ea27c11ebd Author: Chun-wei Fan Date: Thu Jul 30 14:52:10 2015 +0800 gtk/gtkcsstypesprivate.h: Fix Build The recent change to the enum declaration for GtkCssChange actually relied on compiler-dependent behavior, which also breaks the build on some non-GCC compilers, such as Visual Studio. As noted in the G_STATIC_ASSERT line just beneath this declaration, we need to change this enum declaration to #define's, in order to fix the build in such situations. https://bugzilla.gnome.org/show_bug.cgi?id=752814 gtk/gtkcsstypesprivate.h | 84 +++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 43 deletions(-)