Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ayatana-ido for openSUSE:Factory 
checked in at 2025-04-30 19:04:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ayatana-ido (Old)
 and      /work/SRC/openSUSE:Factory/.ayatana-ido.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ayatana-ido"

Wed Apr 30 19:04:45 2025 rev:9 rq:1273591 version:0.10.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/ayatana-ido/ayatana-ido.changes  2024-12-23 
16:54:01.862820182 +0100
+++ /work/SRC/openSUSE:Factory/.ayatana-ido.new.30101/ayatana-ido.changes       
2025-04-30 19:04:58.447806136 +0200
@@ -1,0 +2,11 @@
+Wed Apr 30 07:31:22 UTC 2025 - Mike Gabriel <mike.gabr...@das-netzwerkteam.de>
+
+- Update to version 0.10.4: 
+  * src/idoscalemenuitem.c: Disable menu item selection
+  * src/idoscalemenuitem.c: Add ability to close the menu when the
+    slider's value changes.
+- Update to version 0.10.3:
+  * src/idoswitchmenuitem.c: Allow the switch to display an
+    accelerator.
+
+-------------------------------------------------------------------

Old:
----
  ayatana-ido-0.10.2.tar.gz

New:
----
  ayatana-ido-0.10.4.tar.gz

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

Other differences:
------------------
++++++ ayatana-ido.spec ++++++
--- /var/tmp/diff_new_pack.pewA36/_old  2025-04-30 19:05:00.111875502 +0200
+++ /var/tmp/diff_new_pack.pewA36/_new  2025-04-30 19:05:00.135876503 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ayatana-ido
 #
-# Copyright (c) 2021-2024 SUSE LLC
+# Copyright (c) 2021-2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -21,7 +21,7 @@
 %define sover   0
 %define typelib typelib-1_0-AyatanaIdo3-0_4
 Name:           ayatana-ido
-Version:        0.10.2
+Version:        0.10.4
 Release:        0
 Summary:        Ayatana Indicator Display Objects
 License:        GPL-3.0-only AND LGPL-3.0-only AND LGPL-2.1-only

++++++ ayatana-ido-0.10.2.tar.gz -> ayatana-ido-0.10.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ayatana-ido-0.10.2/CMakeLists.txt 
new/ayatana-ido-0.10.4/CMakeLists.txt
--- old/ayatana-ido-0.10.2/CMakeLists.txt       2024-04-08 12:03:15.000000000 
+0200
+++ new/ayatana-ido-0.10.4/CMakeLists.txt       2024-08-22 11:31:58.000000000 
+0200
@@ -52,7 +52,7 @@
 # Set global variables
 
 include(GNUInstallDirs)
-set(PROJECT_VERSION "0.10.2")
+set(PROJECT_VERSION "0.10.4")
 
 # Make everything
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ayatana-ido-0.10.2/ChangeLog 
new/ayatana-ido-0.10.4/ChangeLog
--- old/ayatana-ido-0.10.2/ChangeLog    2024-04-08 12:03:15.000000000 +0200
+++ new/ayatana-ido-0.10.4/ChangeLog    2024-08-22 11:31:58.000000000 +0200
@@ -1,6 +1,27 @@
+2024-08-22 Mike Gabriel
+
+        * release 0.10.4 (HEAD -> main, tag: 0.10.4)
+        * Merge branch 'tari01-pr/value-change-close' (4134bf3d)
+
+2024-07-17 Robert Tari
+
+        * src/idoscalemenuitem.c: Add ability to close the menu when the
+          slider's value changes (4446a18d)
+        * src/idoscalemenuitem.c: Disable menu item selection (1eaf28c9)
+
+2024-07-10 Mike Gabriel
+
+        * release 0.10.3 (9906cc1d) (tag: 0.10.3)
+        * Merge branch 'tari01-pr/switch-accelerator' (bd25ec74)
+
+2024-07-09 Robert Tari
+
+        * src/idoswitchmenuitem.c: Allow the switch to display an
+          accelerator. (255c93f5)
+
 2024-04-08 Mike Gabriel
 
-        * release 0.10.2 (HEAD -> main, tag: 0.10.2)
+        * release 0.10.2 (2bb2f321) (tag: 0.10.2)
         * Merge branch 'tari01-pr/expand-scale' (de33725f)
 
 2024-04-04 Robert Tari
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ayatana-ido-0.10.2/NEWS new/ayatana-ido-0.10.4/NEWS
--- old/ayatana-ido-0.10.2/NEWS 2024-04-08 12:03:15.000000000 +0200
+++ new/ayatana-ido-0.10.4/NEWS 2024-08-22 11:31:58.000000000 +0200
@@ -1,3 +1,14 @@
+Overview of changes in ayatana-ido 0.10.4
+
+  - src/idoscalemenuitem.c: Disable menu item selection
+  - src/idoscalemenuitem.c: Add ability to close the menu when the
+    slider's value changes.
+
+Overview of changes in ayatana-ido 0.10.3
+
+  - src/idoswitchmenuitem.c: Allow the switch to display an
+    accelerator.
+
 Overview of changes in ayatana-ido 0.10.2
 
   - src/idoscalemenuitem.c: Make page increment same as step increment.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ayatana-ido-0.10.2/src/idoscalemenuitem.c 
new/ayatana-ido-0.10.4/src/idoscalemenuitem.c
--- old/ayatana-ido-0.10.2/src/idoscalemenuitem.c       2024-04-08 
12:03:15.000000000 +0200
+++ new/ayatana-ido-0.10.4/src/idoscalemenuitem.c       2024-08-22 
11:31:58.000000000 +0200
@@ -78,6 +78,7 @@
   IdoRangeStyle         range_style;
   gboolean              ignore_value_changed;
   gboolean              has_focus;
+  gboolean              bCloseOnChange;
 } IdoScaleMenuItemPrivate;
 
 enum {
@@ -143,8 +144,16 @@
   /* The signal is not sent when it was set through
    * ido_scale_menu_item_set_value().  */
 
-  if (!priv->ignore_value_changed)
-    g_signal_emit (self, signals[VALUE_CHANGED], 0, gtk_range_get_value 
(range));
+    if (!priv->ignore_value_changed)
+    {
+        g_signal_emit (self, signals[VALUE_CHANGED], 0, gtk_range_get_value 
(range));
+
+        if (priv->bCloseOnChange)
+        {
+            GtkWidget *pParent = gtk_widget_get_parent (GTK_WIDGET (self));
+            gtk_menu_shell_deactivate (GTK_MENU_SHELL (pParent));
+        }
+    }
 }
 
 static void
@@ -367,7 +376,7 @@
 ido_scale_menu_item_init (IdoScaleMenuItem *self)
 {
   IdoScaleMenuItemPrivate *priv = ido_scale_menu_item_get_instance_private 
(self);
-
+  priv->bCloseOnChange = FALSE;
   priv->reverse_scroll = TRUE;
 
   gtk_widget_set_size_request (GTK_WIDGET (self), 200, -1);
@@ -475,8 +484,6 @@
 
   priv->has_focus = TRUE;
   gtk_widget_set_state_flags (priv->scale, GTK_STATE_FLAG_FOCUSED, FALSE);
-
-  GTK_MENU_ITEM_CLASS (ido_scale_menu_item_parent_class)->select (item);
 }
 
 static void
@@ -487,8 +494,6 @@
 
   priv->has_focus = FALSE;
   gtk_widget_unset_state_flags (priv->scale, GTK_STATE_FLAG_FOCUSED);
-
-  GTK_MENU_ITEM_CLASS (ido_scale_menu_item_parent_class)->deselect (item);
 }
 
 static gboolean
@@ -1122,6 +1127,7 @@
         g_signal_connect (pPrivate->scale, "format-value", G_CALLBACK 
(onFormatValue), NULL);
   }
 
+  g_menu_item_get_attribute (menuitem, "close-on-change", "b", 
&pPrivate->bCloseOnChange);
   min_icon = menu_item_get_icon (menuitem, "min-icon");
   max_icon = menu_item_get_icon (menuitem, "max-icon");
   ido_scale_menu_item_set_icons (IDO_SCALE_MENU_ITEM (item), min_icon, 
max_icon);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ayatana-ido-0.10.2/src/idoswitchmenuitem.c 
new/ayatana-ido-0.10.4/src/idoswitchmenuitem.c
--- old/ayatana-ido-0.10.2/src/idoswitchmenuitem.c      2024-04-08 
12:03:15.000000000 +0200
+++ new/ayatana-ido-0.10.4/src/idoswitchmenuitem.c      2024-08-22 
11:31:58.000000000 +0200
@@ -33,6 +33,7 @@
   GtkWidget * label;
   GtkWidget * image;
   GtkWidget * switch_w;
+  GtkWidget * accelerator;
 } IdoSwitchMenuItemPrivate;
 
 /***
@@ -168,13 +169,47 @@
       priv->label = gtk_label_new (NULL);
       gtk_widget_set_halign (priv->label, GTK_ALIGN_START);
       gtk_widget_show (priv->label);
-      gtk_box_pack_end (GTK_BOX (priv->content_area), priv->label, TRUE, TRUE, 
0);
+      gtk_box_pack_start (GTK_BOX (priv->content_area), priv->label, TRUE, 
TRUE, 0);
     }
 
   gtk_label_set_text (GTK_LABEL (priv->label), label);
 }
 
 /**
+ * ido_switch_menu_item_set_accelerator:
+ * @item: a #IdoSwitchMenuItem.
+ * @accelerator: a string to set as the accelerator of @item
+ *
+ * Set the accelerator of @item to @accelerator.
+ **/
+
+void ido_switch_menu_item_set_accelerator (IdoSwitchMenuItem *item, const 
gchar *accelerator)
+{
+    IdoSwitchMenuItemPrivate *priv;
+
+    g_return_if_fail (IDO_IS_SWITCH_MENU_ITEM (item));
+    g_return_if_fail (accelerator != NULL);
+
+    priv = ido_switch_menu_item_get_instance_private (item);
+
+    if (priv->accelerator == NULL)
+    {
+      priv->accelerator = gtk_label_new (NULL);
+      gtk_widget_set_halign (priv->accelerator, GTK_ALIGN_END);
+      GtkStyleContext *pContext = gtk_widget_get_style_context 
(priv->accelerator);
+      gtk_style_context_add_class (pContext, "accelerator");
+      gtk_widget_show (priv->accelerator);
+      gtk_box_pack_end (GTK_BOX (priv->content_area), priv->accelerator, 
FALSE, FALSE, 6);
+    }
+
+    guint nKey;
+    GdkModifierType cType;
+    gtk_accelerator_parse (accelerator, &nKey, &cType);
+    gchar *sText = gtk_accelerator_get_label (nKey, cType);
+    gtk_label_set_text (GTK_LABEL (priv->accelerator), sText);
+}
+
+/**
  * ido_switch_menu_item_set_icon:
  * @item: a #IdoSwitchMenuItem.
  * @icon: (allow-none): a #GIcon
@@ -248,6 +283,15 @@
       g_free (label);
     }
 
+    gchar *sAccelerator;
+    gboolean bAccelerator = g_menu_item_get_attribute (menuitem, "accel", "s", 
&sAccelerator);
+
+    if (bAccelerator)
+    {
+        ido_switch_menu_item_set_accelerator (IDO_SWITCH_MENU_ITEM (item), 
sAccelerator);
+        g_free (sAccelerator);
+    }
+
   serialized_icon = g_menu_item_get_attribute_value (menuitem, "icon", NULL);
   if (serialized_icon)
     {

Reply via email to