Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libhandy for openSUSE:Factory checked in at 2021-05-06 22:51:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libhandy (Old) and /work/SRC/openSUSE:Factory/.libhandy.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libhandy" Thu May 6 22:51:47 2021 rev:19 rq:890138 version:1.2.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libhandy/libhandy.changes 2021-04-24 23:07:07.619222895 +0200 +++ /work/SRC/openSUSE:Factory/.libhandy.new.2988/libhandy.changes 2021-05-06 22:51:56.446919373 +0200 @@ -1,0 +2,11 @@ +Fri Apr 30 16:25:03 UTC 2021 - Dominique Leuenberger <[email protected]> + +- Update to version 1.2.2: + + HdySqueezer: + - Make the vertical orientation work. + - Fix usage of xalign with RTL. + + HdyComboRow: Focus selected row when opening the popover. + + HdyAvatar: Fix a crash when loading icons. + + Demo: Fix RTL sidebar icons. + +------------------------------------------------------------------- Old: ---- libhandy-1.2.1.obscpio New: ---- libhandy-1.2.2.obscpio ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libhandy.spec ++++++ --- /var/tmp/diff_new_pack.uyg9SU/_old 2021-05-06 22:51:57.002917080 +0200 +++ /var/tmp/diff_new_pack.uyg9SU/_new 2021-05-06 22:51:57.002917080 +0200 @@ -22,7 +22,7 @@ %define with_glade 1 Name: libhandy -Version: 1.2.1 +Version: 1.2.2 Release: 0 Summary: A GTK+ library to develop UI for mobile devices License: LGPL-2.1-or-later ++++++ _service ++++++ --- /var/tmp/diff_new_pack.uyg9SU/_old 2021-05-06 22:51:57.026916981 +0200 +++ /var/tmp/diff_new_pack.uyg9SU/_new 2021-05-06 22:51:57.026916981 +0200 @@ -2,7 +2,7 @@ <service name="obs_scm" mode="disabled"> <param name="url">https://gitlab.gnome.org/GNOME/libhandy.git</param> <param name="scm">git</param> - <param name="revision">refs/tags/1.2.1</param> + <param name="revision">refs/tags/1.2.2</param> <param name="versionformat">@PARENT_TAG@</param> </service> <service mode="buildtime" name="tar" /> ++++++ libhandy-1.2.1.obscpio -> libhandy-1.2.2.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/NEWS new/libhandy-1.2.2/NEWS --- old/libhandy-1.2.1/NEWS 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/NEWS 2021-04-26 15:51:07.000000000 +0200 @@ -1,4 +1,18 @@ ============= +Version 1.2.2 +============= + +- HdySqueezer: + - Make the vertical orientation work. + - Fix usage of xalign with RTL. +- HdyComboRow: + - Focus selected row when opening the popover. +- HdyAvatar: + - Fix a crash when loading icons. +- Demo: + - Fix RTL sidebar icons. + +============= Version 1.2.1 ============= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/examples/icons/scalable/actions/view-sidebar-end-symbolic-rtl.svg new/libhandy-1.2.2/examples/icons/scalable/actions/view-sidebar-end-symbolic-rtl.svg --- old/libhandy-1.2.1/examples/icons/scalable/actions/view-sidebar-end-symbolic-rtl.svg 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/examples/icons/scalable/actions/view-sidebar-end-symbolic-rtl.svg 2021-04-26 15:51:07.000000000 +0200 @@ -5,35 +5,11 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" - xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="4.2333331mm" height="4.2333331mm" viewBox="0 0 4.2333331 4.2333331" version="1.1" - id="svg10539" - sodipodi:docname="view-sidebar-end-symbolic.svg" - inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> - <sodipodi:namedview - pagecolor="#ffffff" - bordercolor="#666666" - borderopacity="1" - objecttolerance="10" - gridtolerance="10" - guidetolerance="10" - inkscape:pageopacity="0" - inkscape:pageshadow="2" - inkscape:window-width="1920" - inkscape:window-height="1016" - id="namedview8" - showgrid="false" - inkscape:zoom="51.04843" - inkscape:cx="7.9999996" - inkscape:cy="7.9999996" - inkscape:window-x="0" - inkscape:window-y="0" - inkscape:window-maximized="1" - inkscape:current-layer="svg10539" /> + id="svg10539"> <defs id="defs10533" /> <metadata @@ -44,21 +20,21 @@ <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title /> + <dc:title></dc:title> </cc:Work> </rdf:RDF> </metadata> <g id="layer1" - transform="matrix(-1,0,0,1,-40.972619,-342.50834)"> + transform="translate(45.205952,-342.50834)"> <path id="rect10509" - style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1;marker:none" - d="M 3,2 C 1.9093002,2 1,2.9093039 1,4 v 8 c 0,1.090696 0.9093002,2 2,2 h 10 c 1.090704,0 2,-0.909304 2,-2 V 4 C 15,2.9093039 14.090704,2 13,2 Z m 0,2 h 3 v 8 H 3 Z m 4,0 h 6 v 8 H 7 Z" + style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.99999994;marker:none" + d="M 3 2 C 1.9093002 2 1 2.9093039 1 4 L 1 12 C 1 13.090696 1.9093002 14 3 14 L 13 14 C 14.090704 14 15 13.090696 15 12 L 15 4 C 15 2.9093039 14.090704 2 13 2 L 3 2 z M 3 4 L 6 4 L 6 12 L 3 12 L 3 4 z M 7 4 L 13 4 L 13 12 L 7 12 L 7 4 z " transform="matrix(0.26458333,0,0,0.26458333,-45.205952,342.50834)" /> <rect transform="matrix(0,-1,-1,0,0,0)" - style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:0.35;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.264583;marker:none" + style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:0.35;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.26458332;marker:none" id="rect10511" width="2.1166327" height="0.79374611" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/examples/icons/scalable/actions/view-sidebar-start-symbolic-rtl.svg new/libhandy-1.2.2/examples/icons/scalable/actions/view-sidebar-start-symbolic-rtl.svg --- old/libhandy-1.2.1/examples/icons/scalable/actions/view-sidebar-start-symbolic-rtl.svg 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/examples/icons/scalable/actions/view-sidebar-start-symbolic-rtl.svg 2021-04-26 15:51:07.000000000 +0200 @@ -5,11 +5,35 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="4.2333331mm" height="4.2333331mm" viewBox="0 0 4.2333331 4.2333331" version="1.1" - id="svg10539"> + id="svg10539" + sodipodi:docname="view-sidebar-end-symbolic.svg" + inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1920" + inkscape:window-height="1016" + id="namedview8" + showgrid="false" + inkscape:zoom="51.04843" + inkscape:cx="7.9999996" + inkscape:cy="7.9999996" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg10539" /> <defs id="defs10533" /> <metadata @@ -20,21 +44,21 @@ <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> - <dc:title></dc:title> + <dc:title /> </cc:Work> </rdf:RDF> </metadata> <g id="layer1" - transform="translate(45.205952,-342.50834)"> + transform="matrix(-1,0,0,1,-40.972619,-342.50834)"> <path id="rect10509" - style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.99999994;marker:none" - d="M 3 2 C 1.9093002 2 1 2.9093039 1 4 L 1 12 C 1 13.090696 1.9093002 14 3 14 L 13 14 C 14.090704 14 15 13.090696 15 12 L 15 4 C 15 2.9093039 14.090704 2 13 2 L 3 2 z M 3 4 L 6 4 L 6 12 L 3 12 L 3 4 z M 7 4 L 13 4 L 13 12 L 7 12 L 7 4 z " + style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:1;marker:none" + d="M 3,2 C 1.9093002,2 1,2.9093039 1,4 v 8 c 0,1.090696 0.9093002,2 2,2 h 10 c 1.090704,0 2,-0.909304 2,-2 V 4 C 15,2.9093039 14.090704,2 13,2 Z m 0,2 h 3 v 8 H 3 Z m 4,0 h 6 v 8 H 7 Z" transform="matrix(0.26458333,0,0,0.26458333,-45.205952,342.50834)" /> <rect transform="matrix(0,-1,-1,0,0,0)" - style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:0.35;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.26458332;marker:none" + style="color:#bebebe;display:inline;overflow:visible;visibility:visible;opacity:0.35;fill:#241f31;fill-opacity:1;stroke:none;stroke-width:0.264583;marker:none" id="rect10511" width="2.1166327" height="0.79374611" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/meson.build new/libhandy-1.2.2/meson.build --- old/libhandy-1.2.1/meson.build 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/meson.build 2021-04-26 15:51:07.000000000 +0200 @@ -1,5 +1,5 @@ project('libhandy', 'c', - version: '1.2.1', + version: '1.2.2', license: 'LGPL-2.1+', meson_version: '>= 0.49.0', default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ], diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/src/hdy-avatar.c new/libhandy-1.2.2/src/hdy-avatar.c --- old/libhandy-1.2.1/src/hdy-avatar.c 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/src/hdy-avatar.c 2021-04-26 15:51:07.000000000 +0200 @@ -348,7 +348,8 @@ pixbuf = load_from_gicon_async_finish (res, &error); - if (!g_error_matches (error, HDY_AVATAR_ICON_ERROR, HDY_AVATAR_ICON_ERROR_EMPTY) && + if (error && + !g_error_matches (error, HDY_AVATAR_ICON_ERROR, HDY_AVATAR_ICON_ERROR_EMPTY) && !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) { g_warning ("Failed to load icon: %s", error->message); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/src/hdy-combo-row.c new/libhandy-1.2.2/src/hdy-combo-row.c --- old/libhandy-1.2.1/src/hdy-combo-row.c 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/src/hdy-combo-row.c 2021-04-26 15:51:07.000000000 +0200 @@ -266,9 +266,15 @@ { HdyComboRow *self = HDY_COMBO_ROW (row); HdyComboRowPrivate *priv = hdy_combo_row_get_instance_private (self); + GtkListBoxRow *selected_row = + gtk_list_box_get_row_at_index (GTK_LIST_BOX (priv->list), + priv->selected_index); if (gtk_widget_get_visible (GTK_WIDGET (priv->image))) gtk_popover_popup (priv->popover); + + if (GTK_IS_WIDGET (selected_row)) + gtk_widget_grab_focus (GTK_WIDGET (selected_row)); } static void diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libhandy-1.2.1/src/hdy-squeezer.c new/libhandy-1.2.2/src/hdy-squeezer.c --- old/libhandy-1.2.1/src/hdy-squeezer.c 2021-04-13 15:11:05.000000000 +0200 +++ new/libhandy-1.2.2/src/hdy-squeezer.c 2021-04-26 15:51:07.000000000 +0200 @@ -692,9 +692,13 @@ if (self->last_visible_surface != NULL) { gint width_diff = gtk_widget_get_allocated_width (widget) - self->last_visible_surface_allocation.width; gint height_diff = gtk_widget_get_allocated_height (widget) - self->last_visible_surface_allocation.height; + float xalign = self->xalign; + + if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) + xalign = 1 - xalign; cairo_set_source_surface (cr, self->last_visible_surface, - width_diff * self->xalign, + width_diff * xalign, height_diff * self->yalign); cairo_set_operator (cr, CAIRO_OPERATOR_ADD); cairo_paint_with_alpha (cr, MAX (1.0 - progress, 0)); @@ -831,12 +835,22 @@ if (self->last_visible_child != NULL) { int min, nat; - gtk_widget_get_preferred_width (self->last_visible_child->widget, &min, &nat); - child_allocation.width = MAX (min, allocation->width); - gtk_widget_get_preferred_height_for_width (self->last_visible_child->widget, - child_allocation.width, - &min, &nat); - child_allocation.height = MAX (min, allocation->height); + + if (self->orientation == GTK_ORIENTATION_HORIZONTAL) { + gtk_widget_get_preferred_width (self->last_visible_child->widget, &min, &nat); + child_allocation.width = MAX (min, allocation->width); + gtk_widget_get_preferred_height_for_width (self->last_visible_child->widget, + child_allocation.width, + &min, &nat); + child_allocation.height = MAX (min, allocation->height); + } else { + gtk_widget_get_preferred_height (self->last_visible_child->widget, &min, &nat); + child_allocation.height = MAX (min, allocation->height); + gtk_widget_get_preferred_width_for_height (self->last_visible_child->widget, + child_allocation.height, + &min, &nat); + child_allocation.width = MAX (min, allocation->width); + } gtk_widget_size_allocate (self->last_visible_child->widget, &child_allocation); } @@ -846,22 +860,25 @@ if (self->visible_child) { int min, nat; - GtkAlign valign; gtk_widget_get_preferred_height_for_width (self->visible_child->widget, - allocation->width, - &min, &nat); - if (self->interpolate_size) { - valign = gtk_widget_get_valign (self->visible_child->widget); - child_allocation.height = MAX (nat, allocation->height); - if (valign == GTK_ALIGN_END && - child_allocation.height > allocation->height) - child_allocation.y -= nat - allocation->height; - else if (valign == GTK_ALIGN_CENTER && - child_allocation.height > allocation->height) - child_allocation.y -= (nat - allocation->height) / 2; + allocation->width, &min, &nat); + child_allocation.width = MAX (child_allocation.width, min); + + gtk_widget_get_preferred_width_for_height (self->visible_child->widget, + allocation->height, &min, &nat); + child_allocation.height = MAX (child_allocation.height, min); + + if (child_allocation.width > allocation->width) { + if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) + child_allocation.x = (allocation->width - child_allocation.width) * (1 - self->xalign); + else + child_allocation.x = (allocation->width - child_allocation.width) * self->xalign; } + if (child_allocation.height > allocation->height) + child_allocation.y = (allocation->height - child_allocation.height) * self->yalign; + gtk_widget_size_allocate (self->visible_child->widget, &child_allocation); } } ++++++ libhandy.obsinfo ++++++ --- /var/tmp/diff_new_pack.uyg9SU/_old 2021-05-06 22:51:57.206916239 +0200 +++ /var/tmp/diff_new_pack.uyg9SU/_new 2021-05-06 22:51:57.210916222 +0200 @@ -1,5 +1,5 @@ name: libhandy -version: 1.2.1 -mtime: 1618319465 -commit: e6e5b4f747d43f10ad2af18060bf1c1d034c9c1a +version: 1.2.2 +mtime: 1619445067 +commit: 09f36006b26f41a2bb383b0c853e954c5792cfe1
