aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-16 07:16:21 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-16 07:16:21 +0800
commit0ff3f18cf40dd18e7f54f20cf9b780852af650b3 (patch)
treee54ace61ebd97de8a3b2c1d658c6eecc5cf360ea /mail/em-format-html-display.c
parenta95607ef487f4fffabbb807ce5fcd71ad4d56a8b (diff)
downloadgsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar.gz
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar.bz2
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar.lz
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar.xz
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.tar.zst
gsoc2013-evolution-0ff3f18cf40dd18e7f54f20cf9b780852af650b3.zip
Startup files/folders.
2004-01-16 Not Zed <NotZed@Ximian.com> * default/C/Inbox: * default/C/Makefile.am: * default/Makefile.am: Startup files/folders. * em-migrate.c (emm_setup_initial): initial implementation of startup setup. (cp): Fix the test, we want exists AND size>0, not exists OR size>0. (cp): Fix the open, we can't use O_EXCL with empty, but present files. Another hack fix for #52880. ** See bug #52896. * em-format-html-display.c (efhd_html_button_press_event): do this based on get_object_at rather than get_point_at, so we get the offset properly. svn path=/trunk/; revision=24261
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 10f5d89d33..907b674f0a 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -570,26 +570,27 @@ static int
efhd_html_button_press_event (GtkWidget *widget, GdkEventButton *event, EMFormatHTMLDisplay *efhd)
{
HTMLEngine *e;
- HTMLPoint *point;
+ HTMLObject *obj;
const char *url;
gboolean res = FALSE;
+ gint offset;
if (event->button != 3)
return FALSE;
e = ((GtkHTML *)widget)->engine;
- point = html_engine_get_point_at(e, event->x, event->y, FALSE);
- if (point == NULL)
+ 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(point->object)) != NULL
- || (url = html_object_get_url(point->object, 0)) != NULL) {
+ if ( (url = html_object_get_src(obj)) != NULL
+ || (url = html_object_get_url(obj, offset)) != NULL) {
EMFormatPURI *puri;
char *uri;
- uri = gtk_html_get_url_object_relative((GtkHTML *)widget, point->object, url);
+ 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));
@@ -597,8 +598,6 @@ efhd_html_button_press_event (GtkWidget *widget, GdkEventButton *event, EMFormat
g_signal_emit((GtkObject *)efhd, efhd_signals[EFHD_POPUP_EVENT], 0, event, uri, puri?puri->part:NULL, &res);
g_free(uri);
}
-
- html_point_destroy(point);
return res;
}