app: use g_signal_connect_object() to connect the history to the color dialog

It crashed when the history changed after a dialog way destroyed.