aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-05-13 14:57:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-05-13 14:57:22 +0800
commitcf9a0987d91a362480ba13fc6f901c27c8e40a08 (patch)
tree55ce4e81256229d27e6f3f4c91a5202a8ebc8360 /mail/em-format-html-display.c
parent6c7aa314e8c8e87ea3db30d5d935ea45e95b7543 (diff)
downloadgsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar.gz
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar.bz2
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar.lz
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar.xz
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.tar.zst
gsoc2013-evolution-cf9a0987d91a362480ba13fc6f901c27c8e40a08.zip
re-enabled the reply to selection stuff. I worked out how to make it work;
2004-05-13 Not Zed <NotZed@Ximian.com> * em-folder-view.c (emfv_message_reply): re-enabled the reply to selection stuff. I worked out how to make it work; I think. * em-format-html-display.c (efhd_html_button_press_event): if we aren't on a clickable object, do a null popup event instead. * em-folder-view.c (emfv_format_popup_event): do the full popup if we aren't on anything (not on a uri or part). See #8414. svn path=/trunk/; revision=25894
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 2e210e743e..1ebc136303 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -584,31 +584,30 @@ efhd_html_button_press_event (GtkWidget *widget, GdkEventButton *event, EMFormat
const char *url;
gboolean res = FALSE;
gint offset;
+ EMFormatPURI *puri = NULL;
+ char *uri = NULL;
if (event->button != 3)
return FALSE;
e = ((GtkHTML *)widget)->engine;
obj = html_engine_get_object_at(e, event->x, event->y, &offset, FALSE);
- if (obj == NULL)
- return FALSE;
d(printf("popup button pressed\n"));
- if ( (url = html_object_get_src(obj)) != NULL
- || (url = html_object_get_url(obj, offset)) != NULL) {
- EMFormatPURI *puri;
- char *uri;
-
+ if ( obj != NULL
+ && ((url = html_object_get_src(obj)) != NULL
+ || (url = html_object_get_url(obj, offset)) != NULL)) {
uri = gtk_html_get_url_object_relative((GtkHTML *)widget, obj, url);
puri = em_format_find_puri((EMFormat *)efhd, uri);
d(printf("poup event, uri = '%s' part = '%p'\n", uri, puri?puri->part:NULL));
-
- g_signal_emit((GtkObject *)efhd, efhd_signals[EFHD_POPUP_EVENT], 0, event, uri, puri?puri->part:NULL, &res);
- g_free(uri);
}
+ g_signal_emit((GtkObject *)efhd, efhd_signals[EFHD_POPUP_EVENT], 0, event, uri, puri?puri->part:NULL, &res);
+
+ g_free(uri);
+
return res;
}