Hello community,

here is the log from the commit of package mate-calc for openSUSE:Factory 
checked in at 2019-05-16 22:03:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mate-calc (Old)
 and      /work/SRC/openSUSE:Factory/.mate-calc.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mate-calc"

Thu May 16 22:03:45 2019 rev:7 rq:682559 version:1.22.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/mate-calc/mate-calc.changes      2019-01-08 
12:28:28.104272831 +0100
+++ /work/SRC/openSUSE:Factory/.mate-calc.new.5148/mate-calc.changes    
2019-05-16 22:03:45.806638531 +0200
@@ -1,0 +2,19 @@
+Tue Mar  5 15:19:33 UTC 2019 - [email protected]
+
+- Update to version 1.22.0:
+  * UI: Avoid deprecated GtkButton:use-stock.
+  * UI: Drop all deprecated elements.
+  * Replace deprecated gtk_menu_popup.
+  * Avoid deprecated gtk_image_menu_item_new_from_stock.
+  * Increase accuracy range to 15.
+  * math-display: Avoid deprecated 'gtk_widget_modify_bg'
+  * Avoid deprecated g_type_class_add_private.
+  * Remove duplicated assignment.
+  * Disable deprecation warnings for distcheck.
+  * math-window: Fix memory leak.
+  * math-display.c: Avoid deprecated gtk_widget_ensure_style.
+  * ui files: Add missing icons in titles to dialogues.
+  * buttons-programming.ui: Fix buttons.
+- Rebase mate-calc-gtk-3.20.patch.
+
+-------------------------------------------------------------------

Old:
----
  mate-calc-1.20.3.tar.xz

New:
----
  mate-calc-1.22.0.tar.xz

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

Other differences:
------------------
++++++ mate-calc.spec ++++++
--- /var/tmp/diff_new_pack.56gbsM/_old  2019-05-16 22:03:46.362638011 +0200
+++ /var/tmp/diff_new_pack.56gbsM/_new  2019-05-16 22:03:46.366638007 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mate-calc
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,21 @@
 #
 
 
-%define _version 1.20
+%define _version 1.22
 Name:           mate-calc
-Version:        1.20.3
+Version:        1.22.0
 Release:        0
 Summary:        MATE Desktop calculator application
 License:        GPL-2.0-or-later
 Group:          System/GUI/Other
-Url:            https://mate-desktop.org/
+URL:            https://mate-desktop.org/
 Source:         
https://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
 # PATCH-FEATURE-OPENSUSE mate-calc-gtk-3.20.patch -- Restore GLib 2.48 and 
GTK+ 3.20 support.
 Patch0:         mate-calc-gtk-3.20.patch
 BuildRequires:  bison
 BuildRequires:  fdupes
 BuildRequires:  flex
-BuildRequires:  mate-common
+BuildRequires:  mate-common >= %{_version}
 BuildRequires:  pkgconfig
 BuildRequires:  update-desktop-files
 BuildRequires:  yelp-tools

++++++ mate-calc-1.20.3.tar.xz -> mate-calc-1.22.0.tar.xz ++++++
++++ 151204 lines of diff (skipped)

++++++ mate-calc-gtk-3.20.patch ++++++
--- /var/tmp/diff_new_pack.56gbsM/_old  2019-05-16 22:03:47.282637149 +0200
+++ /var/tmp/diff_new_pack.56gbsM/_new  2019-05-16 22:03:47.282637149 +0200
@@ -12,6 +12,112 @@
  
  PKG_CHECK_MODULES(MATE_CALC, [
      gtk+-3.0 >= $GTK_REQUIRED
+--- a/data/buttons-advanced.ui
++++ b/data/buttons-advanced.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated with glade 3.20.4 -->
+ <interface>
+-  <requires lib="gtk+" version="3.22"/>
++  <requires lib="gtk+" version="3.20"/>
+   <object class="GtkWindow" id="window1">
+     <property name="can_focus">False</property>
+     <child>
+--- a/data/buttons-basic.ui
++++ b/data/buttons-basic.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated with glade 3.20.4 -->
+ <interface>
+-  <requires lib="gtk+" version="3.22"/>
++  <requires lib="gtk+" version="3.20"/>
+   <object class="GtkWindow" id="window1">
+     <property name="can_focus">False</property>
+     <child>
+--- a/data/buttons-financial.ui
++++ b/data/buttons-financial.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated with glade 3.22.1 -->
+ <interface>
+-  <requires lib="gtk+" version="3.22"/>
++  <requires lib="gtk+" version="3.20"/>
+   <object class="GtkDialog" id="ctrm_dialog">
+     <property name="can_focus">False</property>
+     <property name="border_width">6</property>
+--- a/data/buttons-programming.ui
++++ b/data/buttons-programming.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated with glade 3.22.1 -->
+ <interface>
+-  <requires lib="gtk+" version="3.22"/>
++  <requires lib="gtk+" version="3.20"/>
+   <object class="GtkDialog" id="character_code_dialog">
+     <property name="can_focus">False</property>
+     <property name="border_width">6</property>
+--- a/data/preferences.ui
++++ b/data/preferences.ui
+@@ -1,7 +1,7 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated with glade 3.22.1 -->
+ <interface>
+-  <requires lib="gtk+" version="3.22"/>
++  <requires lib="gtk+" version="3.20"/>
+   <object class="GtkListStore" id="angle_unit_model">
+     <columns>
+       <!-- column-name label -->
+--- a/src/math-buttons.c
++++ b/src/math-buttons.c
+@@ -852,14 +852,48 @@ shift_cb(GtkWidget *widget, MathButtons
+     math_equation_shift(buttons->priv->equation, 
GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "shiftcount")));
+ }
+ 
++#if !GTK_CHECK_VERSION (3, 22, 0)
++static void
++popup_button_menu_position_under_widget (GtkMenu *menu,
++                                         int *x,
++                                         int *y,
++                                         gboolean *push_in,
++                                         gpointer user_data)
++{
++    GtkWidget *widget;
++    GtkAllocation allocation;
++    int border;
++
++    g_return_if_fail (GTK_IS_WIDGET (user_data));
++    g_return_if_fail (!gtk_widget_get_has_window (GTK_WIDGET (user_data)));
++
++    widget = GTK_WIDGET (user_data);
++    border = gtk_container_get_border_width (GTK_CONTAINER (widget));
++
++    gdk_window_get_origin (gtk_widget_get_window (widget), x, y);
++    gtk_widget_get_allocation (widget, &allocation);
++
++    *x += allocation.x + border;
++    *y += allocation.y + allocation.height + border;
++
++    *push_in = FALSE;
++}
++#endif
++
+ static void
+ popup_button_menu(GtkWidget *widget, GtkMenu *menu)
+ {
++#if GTK_CHECK_VERSION (3, 22, 0)
+     gtk_menu_popup_at_widget (menu,
+                               widget,
+                               GDK_GRAVITY_SOUTH_WEST,
+                               GDK_GRAVITY_NORTH_WEST,
+                               NULL);
++#else
++    gtk_menu_popup (menu, NULL, NULL,
++                    popup_button_menu_position_under_widget, widget,
++                    GDK_BUTTON_PRIMARY, GDK_CURRENT_TIME);
++#endif
+ }
+ 
+ 
 --- a/src/math-window.c
 +++ b/src/math-window.c
 @@ -199,11 +199,18 @@ static void redo_cb(GtkWidget *widget, M


Reply via email to