From e66c822c869dbede237233b95f8af2c3315d71d7 Mon Sep 17 00:00:00 2001 From: Damon Chaplin Date: Sat, 18 Aug 2001 02:49:40 +0000 Subject: stop signal emission so the GtkButton class method doesn't mess up the 2001-08-17 Damon Chaplin * mail-display.c (pixmap_press): stop signal emission so the GtkButton class method doesn't mess up the popup menu. Hopefully fixes bug #1828. svn path=/trunk/; revision=12192 --- mail/ChangeLog | 5 +++++ mail/mail-display.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/mail/ChangeLog b/mail/ChangeLog index dd33957fc7..eebd24807b 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-08-17 Damon Chaplin + + * mail-display.c (pixmap_press): stop signal emission so the GtkButton + class method doesn't mess up the popup menu. Hopefully fixes bug #1828. + 2001-08-17 Zbigniew Chyla * mail-search.c (mail_search_construct): Put _() instead of N_() diff --git a/mail/mail-display.c b/mail/mail-display.c index 0a6631d4c7..f352476bb4 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -363,6 +363,10 @@ pixmap_press (GtkWidget *widget, GdkEventButton *event, EScrollFrame *user_data) return TRUE; } + /* Stop the signal, since we don't want the button's class method to + mess up our popup. */ + gtk_signal_emit_stop_by_name (GTK_OBJECT (widget), "button_press_event"); + part = gtk_object_get_data (GTK_OBJECT (widget), "CamelMimePart"); handler = mail_lookup_handler (gtk_object_get_data (GTK_OBJECT (widget), "mime_type")); -- cgit v1.2.3