Hello community,

here is the log from the commit of package libayatana-appindicator for 
openSUSE:Factory checked in at 2019-01-21 10:51:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libayatana-appindicator (Old)
 and      /work/SRC/openSUSE:Factory/.libayatana-appindicator.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libayatana-appindicator"

Mon Jan 21 10:51:36 2019 rev:3 rq:665365 version:0.5.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/libayatana-appindicator/libayatana-appindicator.changes
  2018-08-22 14:19:24.422217243 +0200
+++ 
/work/SRC/openSUSE:Factory/.libayatana-appindicator.new.28833/libayatana-appindicator.changes
       2019-01-21 10:51:43.143919884 +0100
@@ -1,0 +2,7 @@
+Sun Jan 13 19:146:00 UTC 2019 - [email protected]
+
+- Changed the activate-support patch to signal an "activate-event"
+  so users can create callbacks themselves.
+  Original patch from Yichao Yu <[email protected]>.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ libayatana-appindicator.spec ++++++
--- /var/tmp/diff_new_pack.8JateO/_old  2019-01-21 10:51:45.015917613 +0100
+++ /var/tmp/diff_new_pack.8JateO/_new  2019-01-21 10:51:45.015917613 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libayatana-appindicator
 #
-# 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
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -33,7 +33,7 @@
 Patch0:         libayatanaappindicator-disable-werror.patch
 # PATCH-FIX-OPENSUSE libayatana-appindicator-fix-mono-dir.patch 
[email protected] -- Fix location of .pc files.
 Patch1:         libayatana-appindicator-fix-mono-dir.patch
-# PATCH-FIX-OPENSUSE libayatana-appindicator-activate-support.patch 
[email protected] -- Open menu on the left-click action.
+# PATCH-FIX-OPENSUSE libayatana-appindicator-activate-support.patch 
[email protected] -- Send "activate-event" signal on the left-click action.
 Patch2:         libayatana-appindicator-activate-support.patch
 BuildRequires:  fdupes
 BuildRequires:  mate-common

++++++ libayatana-appindicator-activate-support.patch ++++++
--- /var/tmp/diff_new_pack.8JateO/_old  2019-01-21 10:51:45.043917579 +0100
+++ /var/tmp/diff_new_pack.8JateO/_new  2019-01-21 10:51:45.047917574 +0100
@@ -1,28 +1,126 @@
+--- a/bindings/mono/libayatana-appindicator-api.metadata
++++ b/bindings/mono/libayatana-appindicator-api.metadata
+@@ -13,6 +13,8 @@
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='connection_changed']"
 name="cname">connection-changed</attr>
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='scroll_event']"
 name="name">ScrollEvent</attr>
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='scroll_event']"
 name="cname">scroll-event</attr>
++      <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='activate_event']"
 name="name">ActivateEvent</attr>
++      <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='activate_event']"
 name="cname">activate-event</attr>
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='new_icon']"
 name="name">NewIcon</attr>
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='new_icon']"
 name="cname">new-icon</attr>
+       <attr 
path="/api/namespace/object[@cname='AppIndicator']/signal[@field_name='new_icon_theme_path']"
 name="name">NewIconThemePath</attr>
 --- a/src/app-indicator.c
 +++ b/src/app-indicator.c
-@@ -1191,6 +1191,12 @@ bus_method_call (GDBusConnection * conne
+@@ -118,6 +118,7 @@ enum {
+       CONNECTION_CHANGED,
+       NEW_ICON_THEME_PATH,
+       SCROLL_EVENT,
++      ACTIVATE_EVENT,
+       LAST_SIGNAL
+ };
+ 
+@@ -606,6 +607,20 @@ app_indicator_class_init (AppIndicatorCl
+                                         
_application_service_marshal_VOID__INT_UINT,
+                                         G_TYPE_NONE, 2, G_TYPE_INT, 
GDK_TYPE_SCROLL_DIRECTION);
+ 
++      /**
++       * AppIndicator::activate-event:
++       * @arg0: The #AppIndicator object
++       *
++       * Signaled when the #AppIndicator receives a activate event.
++       */
++      signals[ACTIVATE_EVENT] = 
g_signal_new(APP_INDICATOR_SIGNAL_ACTIVATE_EVENT,
++                                       G_TYPE_FROM_CLASS(klass),
++                                       G_SIGNAL_RUN_LAST,
++                                       G_STRUCT_OFFSET (AppIndicatorClass, 
activate_event),
++                                       NULL, NULL,
++                                       NULL,
++                                       G_TYPE_NONE, 0);
++
+       /* DBus interfaces */
+       if (item_node_info == NULL) {
+               GError * error = NULL;
+@@ -1191,6 +1206,8 @@ bus_method_call (GDBusConnection * conne
                {
                        gtk_widget_activate (menuitem);
                }
 +      } else if (g_strcmp0(method, "Activate") == 0) {
-+              GtkMenu * menu = app_indicator_get_menu(app);
-+              if (menu != NULL) {
-+                      gtk_menu_popup(menu, NULL, NULL, NULL, NULL, 1,
-+                                     gtk_get_current_event_time());
-+              }
++                      g_signal_emit(G_OBJECT(app), signals[ACTIVATE_EVENT], 
0);
        } else {
                g_warning("Calling method '%s' on the app-indicator and it's 
unknown", method);
        }
+@@ -1227,6 +1244,13 @@ bus_get_prop (GDBusConnection * connecti
+                       return 
g_variant_new_string(priv->absolute_attention_icon_name);
+               }
+               return g_variant_new_string(priv->attention_icon_name ? 
priv->attention_icon_name : "");
++      } else if (g_strcmp0(property, "ToolTip") == 0) {
++                      const char *title = priv->title;
++                      if (!title)
++                                      title = g_get_application_name();
++                      if (!title)
++                                      title = "";
++                      return g_variant_new ("(sa(iiay)ss)", priv->icon_name, 
NULL, title, "");
+       } else if (g_strcmp0(property, "Title") == 0) {
+               const gchar * output = NULL;
+               if (priv->title == NULL) {
+@@ -1679,19 +1703,7 @@ status_icon_changes (AppIndicator * self
+ static void
+ status_icon_activate (GtkStatusIcon * icon, gpointer data)
+ {
+-      GtkMenu * menu = app_indicator_get_menu(APP_INDICATOR(data));
+-      if (menu == NULL)
+-              return;
+-
+-      gtk_menu_popup(menu,
+-                     NULL, /* Parent Menu */
+-                     NULL, /* Parent item */
+-                     gtk_status_icon_position_menu,
+-                     icon,
+-                     1, /* Button */
+-                     gtk_get_current_event_time());
+-
+-      return;
++      g_signal_emit(G_OBJECT(data), signals[ACTIVATE_EVENT], 0);
+ }
+ 
+ /* Handles the right-click action by the status icon by showing
+--- a/src/app-indicator.h
++++ b/src/app-indicator.h
+@@ -119,6 +119,7 @@ G_BEGIN_DECLS
+ #define APP_INDICATOR_SIGNAL_CONNECTION_CHANGED  "connection-changed"
+ #define APP_INDICATOR_SIGNAL_NEW_ICON_THEME_PATH "new-icon-theme-path"
+ #define APP_INDICATOR_SIGNAL_SCROLL_EVENT        "scroll-event"
++#define APP_INDICATOR_SIGNAL_ACTIVATE_EVENT      "activate-event"
+ 
+ /**
+  * AppIndicatorCategory:
+@@ -228,7 +229,7 @@ struct _AppIndicatorClass {
+       void (*app_indicator_reserved_3)(void);
+       void (*app_indicator_reserved_4)(void);
+       void (*app_indicator_reserved_5)(void);
+-      void (*app_indicator_reserved_6)(void);
++      void (*activate_event)(AppIndicator *indicator, gpointer user_data);
+ };
+ 
+ /**
 --- a/src/notification-item.xml
 +++ b/src/notification-item.xml
-@@ -31,6 +31,10 @@
-               <method name="XAyatanaSecondaryActivate">
-                       <arg type="u" name="timestamp" direction="in" />
-               </method>
+@@ -9,6 +9,7 @@
+               <property name="IconName" type="s" access="read" />
+               <property name="IconAccessibleDesc" type="s" access="read" />
+               <property name="AttentionIconName" type="s" access="read" />
++              <property name="ToolTip" type="(sa(iiay)ss)" access="read" />
+               <property name="AttentionAccessibleDesc" type="s" access="read" 
/>
+               <property name="Title" type="s" access="read" />
+               <!-- An additional path to add to the theme search path
+@@ -20,6 +21,10 @@
+               <property name="XAyatanaOrderingIndex" type="u" access="read" />
+ 
+ <!-- Methods -->
 +              <method name="Activate">
 +                      <arg type="i" name="x" direction="in" />
 +                      <arg type="i" name="y" direction="in" />
 +              </method>
- 
- <!-- Signals -->
-               <signal name="NewIcon">
+               <method name="Scroll">
+                       <arg type="i" name="delta" direction="in" />
+                       <arg type="s" name="orientation" direction="in" />


Reply via email to