[gimp] Fix unprelighting of the prelighted tag when there is no hit on any tag
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Fix unprelighting of the prelighted tag when there is no hit on any tag
- Date: Sat, 18 Jul 2009 17:24:33 +0000 (UTC)
commit 5d76dd9bc50f21fad20496324e02eb6eea1f87e1
Author: Michael Natterer <mitch gimp org>
Date: Sat Jul 18 19:23:26 2009 +0200
Fix unprelighting of the prelighted tag when there is no hit on any tag
app/widgets/gimptagpopup.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/app/widgets/gimptagpopup.c b/app/widgets/gimptagpopup.c
index 6465578..b762546 100644
--- a/app/widgets/gimptagpopup.c
+++ b/app/widgets/gimptagpopup.c
@@ -876,6 +876,7 @@ gimp_tag_popup_list_event (GtkWidget *widget,
else if (event->type == GDK_MOTION_NOTIFY)
{
GdkEventMotion *motion_event = (GdkEventMotion *) event;
+ PopupTagData *prelight = NULL;
gint x;
gint y;
gint i;
@@ -889,15 +890,16 @@ gimp_tag_popup_list_event (GtkWidget *widget,
if (gimp_tag_popup_is_in_tag (tag_data, x, y))
{
- if (popup->prelight != tag_data)
- {
- popup->prelight = tag_data;
- gtk_widget_queue_draw (widget);
- }
-
+ prelight = tag_data;
break;
}
}
+
+ if (prelight != popup->prelight)
+ {
+ popup->prelight = prelight;
+ gtk_widget_queue_draw (widget);
+ }
}
else if (event->type == GDK_BUTTON_RELEASE &&
! popup->single_select_disabled)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]