Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libshumate for openSUSE:Factory 
checked in at 2026-01-06 17:42:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libshumate (Old)
 and      /work/SRC/openSUSE:Factory/.libshumate.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libshumate"

Tue Jan  6 17:42:09 2026 rev:22 rq:1325357 version:1.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/libshumate/libshumate.changes    2025-10-14 
18:07:48.293479397 +0200
+++ /work/SRC/openSUSE:Factory/.libshumate.new.1928/libshumate.changes  
2026-01-06 17:43:09.962158693 +0100
@@ -1,0 +2,6 @@
+Sat Jan  3 12:19:03 UTC 2026 - Bjørn Lie <[email protected]>
+
+- Update to version 1.5.2:
+  + Add functionallity for zoom-on-double-click
+
+-------------------------------------------------------------------

Old:
----
  libshumate-1.5.1.obscpio

New:
----
  libshumate-1.5.2.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libshumate.spec ++++++
--- /var/tmp/diff_new_pack.90mngn/_old  2026-01-06 17:43:10.758191462 +0100
+++ /var/tmp/diff_new_pack.90mngn/_new  2026-01-06 17:43:10.762191628 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libshumate
 #
-# Copyright (c) 2025 SUSE LLC and contributors
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 %bcond_with profiling
 
 Name:           libshumate
-Version:        1.5.1
+Version:        1.5.2
 Release:        0
 Summary:        C library providing a GtkWidget to display maps
 License:        Apache-2.0 AND LGPL-2.1-or-later AND BSD-3-Clause AND CC0-1.0 
AND CC-BY-3.0 AND GFDL-1.2-only

++++++ _service ++++++
--- /var/tmp/diff_new_pack.90mngn/_old  2026-01-06 17:43:10.798193110 +0100
+++ /var/tmp/diff_new_pack.90mngn/_new  2026-01-06 17:43:10.802193274 +0100
@@ -4,7 +4,7 @@
     <param name="url">https://gitlab.gnome.org/GNOME/libshumate.git</param>
     <param name="scm">git</param>
     <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
-    <param name="revision">1.5.1</param>
+    <param name="revision">1.5.2</param>
     <param name="versionrewrite-pattern">(.*)\+0</param>
     <param name="versionrewrite-replacement">\1</param>
   </service>

++++++ libshumate-1.5.1.obscpio -> libshumate-1.5.2.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libshumate-1.5.1/NEWS new/libshumate-1.5.2/NEWS
--- old/libshumate-1.5.1/NEWS   2025-10-11 09:04:24.000000000 +0200
+++ new/libshumate-1.5.2/NEWS   2026-01-03 10:01:08.000000000 +0100
@@ -1,4 +1,9 @@
 ===================
+Version 1.5.2
+===================
+ - Add functionallity for zoom-on-double-click
+
+===================
 Version 1.5.1
 ===================
  - Updated translations
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libshumate-1.5.1/demos/shumate-demo-window.c 
new/libshumate-1.5.2/demos/shumate-demo-window.c
--- old/libshumate-1.5.1/demos/shumate-demo-window.c    2025-10-11 
09:04:24.000000000 +0200
+++ new/libshumate-1.5.2/demos/shumate-demo-window.c    2026-01-03 
10:01:08.000000000 +0100
@@ -263,6 +263,7 @@
 
   viewport = shumate_simple_map_get_viewport (self->map);
   shumate_viewport_set_max_zoom_level (viewport, 22);
+  shumate_map_set_zoom_on_double_click (shumate_simple_map_get_map 
(self->map), FALSE);
 
   /* Add the marker layers */
   self->marker_layer = shumate_marker_layer_new (viewport);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libshumate-1.5.1/meson.build 
new/libshumate-1.5.2/meson.build
--- old/libshumate-1.5.1/meson.build    2025-10-11 09:04:24.000000000 +0200
+++ new/libshumate-1.5.2/meson.build    2026-01-03 10:01:08.000000000 +0100
@@ -1,6 +1,6 @@
 project(
   'libshumate', 'c',
-  version: '1.5.1',
+  version: '1.5.2',
   license: 'LGPLv2.1+',
   meson_version: '>= 0.57.0',
   default_options: [
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libshumate-1.5.1/shumate/shumate-map.c 
new/libshumate-1.5.2/shumate/shumate-map.c
--- old/libshumate-1.5.1/shumate/shumate-map.c  2025-10-11 09:04:24.000000000 
+0200
+++ new/libshumate-1.5.2/shumate/shumate-map.c  2026-01-03 10:01:08.000000000 
+0100
@@ -648,7 +648,7 @@
                           double           y,
                           GtkGestureClick *click)
 {
-  if (n_press == 2)
+  if (n_press == 2 && self->zoom_on_double_click == TRUE)
     {
       double zoom_level = shumate_viewport_get_zoom_level (self->viewport);
       self->current_x = x;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libshumate-1.5.1/tests/map.c 
new/libshumate-1.5.2/tests/map.c
--- old/libshumate-1.5.1/tests/map.c    2025-10-11 09:04:24.000000000 +0200
+++ new/libshumate-1.5.2/tests/map.c    2026-01-03 10:01:08.000000000 +0100
@@ -4,6 +4,20 @@
 #include <shumate/shumate.h>
 
 static void
+emit_double_click (ShumateMap *map)
+{
+  g_autoptr(GListModel) controllers = gtk_widget_observe_controllers 
(GTK_WIDGET (map));
+  for (guint i = 0; i < g_list_model_get_n_items (controllers); i++) {
+      g_autoptr(GtkEventController) controller = g_list_model_get_item 
(controllers, i);
+
+      if (GTK_IS_GESTURE_CLICK (controller)) {
+          // emit a double click
+          g_signal_emit_by_name (controller, "pressed", 2, 10.0, 20.0);
+      }
+  }
+}
+
+static void
 test_map_add_layers (void)
 {
   ShumateMap *map = shumate_map_new ();
@@ -51,6 +65,29 @@
   shumate_map_remove_layer (map, layer3);
 }
 
+static void
+test_map_zoom_on_double_click_switch (void)
+{
+  ShumateMap *map = shumate_map_new ();
+  ShumateViewport *viewport = shumate_map_get_viewport (map);
+  // initial zoom is 10
+  double initial = 10;
+
+  // test: zoom on double click should NOT work
+  shumate_viewport_set_zoom_level (viewport, initial);
+  shumate_map_set_zoom_on_double_click (map, FALSE);
+  emit_double_click (map);
+  double actual = shumate_viewport_get_zoom_level (viewport);
+  g_assert_cmpfloat_with_epsilon (actual, initial, 0.0001);
+
+  // test: zoom on double click should work
+  shumate_viewport_set_zoom_level (viewport, initial);
+  shumate_map_set_zoom_on_double_click (map, TRUE);
+  emit_double_click (map);
+  actual = shumate_viewport_get_zoom_level (viewport);
+  g_assert_true (actual > initial);
+}
+
 int
 main (int argc, char *argv[])
 {
@@ -58,6 +95,7 @@
   gtk_init ();
 
   g_test_add_func ("/map/add-layers", test_map_add_layers);
+  g_test_add_func ("/map/zoom_on_double_click_switch", 
test_map_zoom_on_double_click_switch);
 
   return g_test_run ();
 }

++++++ libshumate.obsinfo ++++++
--- /var/tmp/diff_new_pack.90mngn/_old  2026-01-06 17:43:11.330215010 +0100
+++ /var/tmp/diff_new_pack.90mngn/_new  2026-01-06 17:43:11.334215176 +0100
@@ -1,5 +1,5 @@
 name: libshumate
-version: 1.5.1
-mtime: 1760166264
-commit: a232d5a98b3357036adbce04424679feec1d8907
+version: 1.5.2
+mtime: 1767430868
+commit: 869c0c6708697807564ebafaa398159354ca6651
 

Reply via email to