Notification plugin: Remove spurious warning
authorHolger Berndt <hb@claws-mail.org>
Sun, 15 Mar 2015 19:55:59 +0000 (20:55 +0100)
committerHolger Berndt <hb@claws-mail.org>
Sun, 15 Mar 2015 19:55:59 +0000 (20:55 +0100)
src/plugins/notification/gtkhotkey/gtk-hotkey-x11-listener.c

index 9701ef3..02bf334 100644 (file)
@@ -134,10 +134,7 @@ gtk_hotkey_x11_listener_real_unbind_hotkey (GtkHotkeyListener   *base,
                                                                                        G_SIGNAL_MATCH_DATA | G_SIGNAL_MATCH_FUNC,
                                                                                        0, 0, NULL, gtk_hotkey_info_activated,
                                                                                        hotkey);
-       if (handler == 0) {
-               g_warning ("Failed to disconnect signal handler for hotkey '%s'",
-                                  gtk_hotkey_info_get_key_id (hotkey));
-       } else {
+       if (handler != 0) {
                g_signal_handler_disconnect (self, handler);
        }