aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Leach <jasonleach@usa.net>2001-01-10 12:43:59 +0800
committerJacob Leach <jleach@src.gnome.org>2001-01-10 12:43:59 +0800
commit8ae4adc356c01ab057eabde5434d835173c5afd4 (patch)
treee28b27fbc7334421b667943e7da29278c417362a
parent424ce09c9f625b13513f345bc94d80c22b922043 (diff)
downloadgsoc2013-evolution-8ae4adc356c01ab057eabde5434d835173c5afd4.tar.gz
gsoc2013-evolution-8ae4adc356c01ab057eabde5434d835173c5afd4.tar.zst
gsoc2013-evolution-8ae4adc356c01ab057eabde5434d835173c5afd4.zip
Bugfix for #1077: scrollwheel doesn't work while hovering over an
2001-01-09 Jason Leach <jasonleach@usa.net> * mail-display.c (pixmap_press): Bugfix for #1077: scrollwheel doesn't work while hovering over an attachment icon. svn path=/trunk/; revision=7354
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-display.c17
2 files changed, 15 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 89572a95bd..4a2f3cebd7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-09 Jason Leach <jasonleach@usa.net>
+
+ * mail-display.c (pixmap_press): Bugfix for #1077: scrollwheel
+ doesn't work while hovering over an attachment icon.
+
2001-01-09 Jeffrey Stedfast <fejj@helixcode.com>
* mail-config-druid.glade: Moved to mail-config.glade
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 43f61138ad..7bca9aa67c 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -305,7 +305,7 @@ inline_cb (GtkWidget *widget, gpointer user_data)
}
static gboolean
-pixmap_press (GtkWidget *ebox, GdkEventButton *event, gpointer user_data)
+pixmap_press (GtkWidget *ebox, GdkEventButton *event, EScrollFrame *user_data)
{
EPopupMenu menu[] = {
{ N_("Save to Disk..."), NULL,
@@ -320,11 +320,14 @@ pixmap_press (GtkWidget *ebox, GdkEventButton *event, gpointer user_data)
MailMimeHandler *handler;
int mask = 0;
- if (event->button != 3)
- return FALSE;
+ if (event->button != 3) {
+ gtk_propagate_event (GTK_WIDGET (user_data),
+ (GdkEvent *)event);
+ return TRUE;
+ }
- part = gtk_object_get_data (user_data, "CamelMimePart");
- handler = mail_lookup_handler (gtk_object_get_data (user_data,
+ part = gtk_object_get_data (GTK_OBJECT (ebox), "CamelMimePart");
+ handler = mail_lookup_handler (gtk_object_get_data (GTK_OBJECT (ebox),
"mime_type"));
/* Save item */
@@ -369,7 +372,7 @@ pixmap_press (GtkWidget *ebox, GdkEventButton *event, gpointer user_data)
mask |= 2;
}
- e_popup_menu_run (menu, event, mask, 0, user_data);
+ e_popup_menu_run (menu, event, mask, 0, ebox);
g_free (menu[1].name);
g_free (menu[2].name);
return TRUE;
@@ -617,7 +620,7 @@ on_object_requested (GtkHTML *html, GtkHTMLEmbedded *eb, gpointer data)
(GDestroyNotify)g_free);
gtk_signal_connect (GTK_OBJECT (ebox), "button_press_event",
- GTK_SIGNAL_FUNC (pixmap_press), ebox);
+ GTK_SIGNAL_FUNC (pixmap_press), md->scroll);
gtk_container_add (GTK_CONTAINER (ebox), pbl->pixmap);
gtk_widget_show_all (ebox);