aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-03-28 04:36:28 +0800
committerDan Winship <danw@src.gnome.org>2002-03-28 04:36:28 +0800
commit5165918a9f49e4dd2e3f7d203035f8b29c2f9b05 (patch)
tree369bda73cc271aa0aab5c36004f405ba9a4f5827 /mail/mail-display.c
parentf829289c850f79cd657d60e6b4bc5f9cd6aa0a70 (diff)
downloadgsoc2013-evolution-5165918a9f49e4dd2e3f7d203035f8b29c2f9b05.tar.gz
gsoc2013-evolution-5165918a9f49e4dd2e3f7d203035f8b29c2f9b05.tar.zst
gsoc2013-evolution-5165918a9f49e4dd2e3f7d203035f8b29c2f9b05.zip
unset GTK_CAN_FOCUS on the button so that it can't grab focus when you
* 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 svn path=/trunk/; revision=16261
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c3
1 files changed, 3 insertions, 0 deletions
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);