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 9701ef3f0b9defaa8dfa95423838648ee88f9b44..02bf334107192ca17b6a581769a93974032e5a39 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);
                                                                                        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);
        }
        
                g_signal_handler_disconnect (self, handler);
        }