Fix Escape key closing color dialogs in /Display/Color common prefs.
authorAndrej Kacian <ticho@claws-mail.org>
Fri, 10 Jul 2015 08:44:13 +0000 (10:44 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Fri, 10 Jul 2015 08:44:13 +0000 (10:44 +0200)
src/prefs_msg_colors.c

index bd1c82b..4593055 100644 (file)
@@ -746,7 +746,7 @@ static gboolean quote_colors_set_dialog_key_pressed(GtkWidget *widget,
        if (event) {
                switch (event->keyval) {
                        case GDK_KEY_Escape:
        if (event) {
                switch (event->keyval) {
                        case GDK_KEY_Escape:
-                               gtk_button_clicked(GTK_BUTTON(&button_cancel));
+                               gtk_button_clicked(GTK_BUTTON(button_cancel));
                                return TRUE;
                        case GDK_KEY_Return: 
                        case GDK_KEY_KP_Enter:
                                return TRUE;
                        case GDK_KEY_Return: 
                        case GDK_KEY_KP_Enter: