[gnome-flashback] status-notifier-watcher: allow re-registration



commit afa5b8744e6225e462eeb4fd943200fa4ce1aa33
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Mar 28 21:12:25 2017 +0300

    status-notifier-watcher: allow re-registration

 .../libstatus-notifier-watcher/gf-sn-watcher-v0.c  |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gnome-flashback/libstatus-notifier-watcher/gf-sn-watcher-v0.c 
b/gnome-flashback/libstatus-notifier-watcher/gf-sn-watcher-v0.c
index 703f53b..3f5c556 100644
--- a/gnome-flashback/libstatus-notifier-watcher/gf-sn-watcher-v0.c
+++ b/gnome-flashback/libstatus-notifier-watcher/gf-sn-watcher-v0.c
@@ -225,10 +225,14 @@ gf_sn_watcher_v0_handle_register_host (GfSnWatcherV0Gen      *object,
 
   if (watch != NULL)
     {
+#if 0
       g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
                                              G_DBUS_ERROR_INVALID_ARGS,
                                              "Status Notifier Host with bus name '%s' and object path '%s' 
is already registered",
                                              bus_name, object_path);
+#endif
+
+      gf_sn_watcher_v0_gen_complete_register_host (object, invocation);
 
       return TRUE;
     }
@@ -285,10 +289,14 @@ gf_sn_watcher_v0_handle_register_item (GfSnWatcherV0Gen      *object,
 
   if (watch != NULL)
     {
+#if 0
       g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR,
                                              G_DBUS_ERROR_INVALID_ARGS,
                                              "Status Notifier Item with bus name '%s' and object path '%s' 
is already registered",
                                              bus_name, object_path);
+#endif
+
+      gf_sn_watcher_v0_gen_complete_register_item (object, invocation);
 
       return TRUE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]