diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-display.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index bbfb8ae06f..818905faf1 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2002-03-27 Dan Winship <danw@ximian.com> + + * mail-display.c (do_attachment_header): unset GTK_CAN_FOCUS on + the button so that it can't grab focus when you click it. + (do_signature): Likewise on the signature button. #3904 + 2002-03-26 Jeffrey Stedfast <fejj@ximian.com> Sync with yet-another-mail-config branch. diff --git a/mail/mail-display.c b/mail/mail-display.c index 81510d0800..a98f5418ba 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -913,6 +913,7 @@ do_attachment_header (GtkHTML *html, GtkHTMLEmbedded *eb, mainbox = gtk_hbox_new (FALSE, 0); button = gtk_button_new (); + GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_FOCUS); gtk_object_set_data (GTK_OBJECT (button), "MailDisplay", md); gtk_signal_connect (GTK_OBJECT (button), "clicked", @@ -945,6 +946,7 @@ do_attachment_header (GtkHTML *html, GtkHTMLEmbedded *eb, gtk_container_add (GTK_CONTAINER (button), hbox); popup = gtk_button_new (); + GTK_WIDGET_UNSET_FLAGS (popup, GTK_CAN_FOCUS); gtk_container_add (GTK_CONTAINER (popup), gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_ETCHED_IN)); @@ -1050,6 +1052,7 @@ do_signature (GtkHTML *html, GtkHTMLEmbedded *eb, pbl, NULL); button = gtk_button_new (); + GTK_WIDGET_UNSET_FLAGS (button, GTK_CAN_FOCUS); gtk_object_set_data (GTK_OBJECT (button), "MailDisplay", md); gtk_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (button_press), part); |