Only pop the tooltip down on a select set of events, not on any unknown
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtktooltips.c (gtk_tooltips_event_handler): Only pop the tooltip down on a select set of events, not on any unknown event. (#71157, Jody Goldberg) * gtk/gtktooltips.c (gtk_tooltips_event_handler): Fix some warnings.
This commit is contained in:
parent
a5915e5638
commit
b4edb9da99
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Thu Feb 14 00:10:09 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler): Only
|
||||||
|
pop the tooltip down on a select set of events, not
|
||||||
|
on any unknown event. (#71157, Jody Goldberg)
|
||||||
|
|
||||||
|
* gtk/gtktooltips.c (gtk_tooltips_event_handler):
|
||||||
|
Fix some warnings.
|
||||||
|
|
||||||
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
Thu Feb 14 00:02:21 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
* gtk/gtkcalendar.c (gtk_calendar_size_request): A bunch of
|
||||||
|
@ -523,7 +523,7 @@ gtk_tooltips_event_handler (GtkWidget *widget,
|
|||||||
|
|
||||||
if ((event->type == GDK_LEAVE_NOTIFY || event->type == GDK_ENTER_NOTIFY) &&
|
if ((event->type == GDK_LEAVE_NOTIFY || event->type == GDK_ENTER_NOTIFY) &&
|
||||||
event->crossing.detail == GDK_NOTIFY_INFERIOR)
|
event->crossing.detail == GDK_NOTIFY_INFERIOR)
|
||||||
return FALSE;
|
return;
|
||||||
|
|
||||||
old_tips_data = gtk_tooltips_data_get (widget);
|
old_tips_data = gtk_tooltips_data_get (widget);
|
||||||
tooltips = old_tips_data->tooltips;
|
tooltips = old_tips_data->tooltips;
|
||||||
@ -544,9 +544,12 @@ gtk_tooltips_event_handler (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
event_widget = gtk_get_event_widget (event);
|
if (event->type != GDK_KEY_PRESS && event->type != GDK_KEY_RELEASE)
|
||||||
if (event_widget != widget)
|
{
|
||||||
return FALSE;
|
event_widget = gtk_get_event_widget (event);
|
||||||
|
if (event_widget != widget)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
switch (event->type)
|
switch (event->type)
|
||||||
{
|
{
|
||||||
@ -585,14 +588,19 @@ gtk_tooltips_event_handler (GtkWidget *widget,
|
|||||||
tooltips->use_sticky_delay = use_sticky_delay;
|
tooltips->use_sticky_delay = use_sticky_delay;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
case GDK_BUTTON_PRESS:
|
||||||
|
case GDK_BUTTON_RELEASE:
|
||||||
|
case GDK_KEY_PRESS:
|
||||||
|
case GDK_KEY_RELEASE:
|
||||||
|
case GDK_PROXIMITY_IN:
|
||||||
|
case GDK_SCROLL:
|
||||||
gtk_tooltips_set_active_widget (tooltips, NULL);
|
gtk_tooltips_set_active_widget (tooltips, NULL);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user