vte r2285 - in trunk: . src



Author: behdad
Date: Tue Dec  2 10:50:54 2008
New Revision: 2285
URL: http://svn.gnome.org/viewvc/vte?rev=2285&view=rev

Log:
2008-12-02  Behdad Esfahbod  <behdad gnome org>

        Bug 541441 â Dehighlight links on visibility notify?

        * src/vte.c (vte_terminal_focus_in), (vte_terminal_enter):  Move match
        highlight enabling into "enter" event instead of "focus in".



Modified:
   trunk/ChangeLog
   trunk/src/vte.c

Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c	(original)
+++ trunk/src/vte.c	Tue Dec  2 10:50:54 2008
@@ -7167,10 +7167,6 @@
 		gtk_im_context_focus_in(terminal->pvt->im_context);
 		_vte_invalidate_cursor_once(terminal, FALSE);
 		_vte_terminal_set_pointer_visible(terminal, TRUE);
-
-		vte_terminal_match_hilite_show(terminal,
-				terminal->pvt->mouse_last_x,
-				terminal->pvt->mouse_last_y);
 	}
 
 	return FALSE;
@@ -7216,6 +7212,13 @@
 	if (GTK_WIDGET_CLASS (vte_terminal_parent_class)->enter_notify_event) {
 		ret = GTK_WIDGET_CLASS (vte_terminal_parent_class)->enter_notify_event (widget, event);
 	}
+	if (GTK_WIDGET_REALIZED (widget)) {
+		VteTerminal *terminal = VTE_TERMINAL (widget);
+		/* Hilite any matches. */
+		vte_terminal_match_hilite_show(terminal,
+					  event->x - VTE_PAD_WIDTH,
+					  event->y - VTE_PAD_WIDTH);
+	}
 	return ret;
 }
 static gboolean



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]