diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 1 | ||||
-rw-r--r-- | mail/mail-accounts.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 67a3c77463..438a9b490e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -4,6 +4,7 @@ reason the etable was getting into some infinite resize loop or something. I probably did something wrong but I can't figure out what so I'm using a clist for now. + (account_cursor_change): Make sure that event is non-NULL here. 2002-03-27 Ettore Perazzoli <ettore@ximian.com> diff --git a/mail/mail-accounts.c b/mail/mail-accounts.c index 39458858de..370bbbcc11 100644 --- a/mail/mail-accounts.c +++ b/mail/mail-accounts.c @@ -362,7 +362,7 @@ account_double_click (ETable *table, int row, int col, GdkEvent *event, gpointer } #else static void -account_cursor_change (GtkCList *table, int row, int column, GdkEvent *event, gpointer user_data) +account_cursor_change (GtkCList *table, int row, int column, GdkEventButton *event, gpointer user_data) { MailAccountsTab *prefs = user_data; @@ -380,7 +380,7 @@ account_cursor_change (GtkCList *table, int row, int column, GdkEvent *event, gp gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_default), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_able), TRUE); - if (event->type == GDK_2BUTTON_PRESS) + if (event && event->type == GDK_2BUTTON_PRESS) account_edit_clicked (NULL, user_data); } else { gtk_widget_set_sensitive (GTK_WIDGET (prefs->mail_edit), FALSE); |