comparison src/gtkimhtml.c @ 7801:9db4ec5e6bca

[gaim-migrate @ 8447] 1. Things are better when they compile 2. Ctrl-up and Ctrl-down will work with formatting. 3. closing tags are still effed up. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 08 Dec 2003 00:52:54 +0000
parents 1eb2c09b9a86
children 317f43c8287c
comparison
equal deleted inserted replaced
7800:1eb2c09b9a86 7801:9db4ec5e6bca
641 } 641 }
642 642
643 /* The callback for an event on a link tag. */ 643 /* The callback for an event on a link tag. */
644 gboolean tag_event(GtkTextTag *tag, GObject *imhtml, GdkEvent *event, GtkTextIter *arg2, char *url) { 644 gboolean tag_event(GtkTextTag *tag, GObject *imhtml, GdkEvent *event, GtkTextIter *arg2, char *url) {
645 GdkEventButton *event_button = (GdkEventButton *) event; 645 GdkEventButton *event_button = (GdkEventButton *) event;
646 if (imhtml->editable) 646 if (GTK_IMHTML(imhtml)->editable)
647 return FALSE; 647 return FALSE;
648 if (event->type == GDK_BUTTON_RELEASE) { 648 if (event->type == GDK_BUTTON_RELEASE) {
649 if (event_button->button == 1) { 649 if (event_button->button == 1) {
650 GtkTextIter start, end; 650 GtkTextIter start, end;
651 /* we shouldn't open a URL if the user has selected something: */ 651 /* we shouldn't open a URL if the user has selected something: */