[Xfce4-commits] [apps/xfce4-notifyd] 01/01: Move warning to the correct position

noreply at xfce.org noreply at xfce.org
Thu Oct 5 00:22:57 CEST 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-notifyd.

commit 1e614d05d5e01d3b1742709a3900fa0aded2c974
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Oct 5 00:20:12 2017 +0200

    Move warning to the correct position
---
 xfce4-notifyd-config/main.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xfce4-notifyd-config/main.c b/xfce4-notifyd-config/main.c
index 6558dfa..7ab3d8f 100644
--- a/xfce4-notifyd-config/main.c
+++ b/xfce4-notifyd-config/main.c
@@ -314,10 +314,11 @@ xfce4_notifyd_mute_application (GtkListBox *known_applications_listbox,
             GValue *muted_application;
             muted_application = g_ptr_array_index (muted_applications, i);
             if (g_str_match_string (g_value_get_string (val), g_value_get_string (muted_application), FALSE) == TRUE) {
-                g_ptr_array_remove_index (muted_applications, i);
+                if (!g_ptr_array_remove_index (muted_applications, i))
+                    g_warning ("Could not remove %s from the list of muted applications. %i", new_app_name, i);
                 break;
             }
-            g_warning ("Could not remove %s from the list of muted applications.", new_app_name);
+
         }
 
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list