Commit 6be4d665 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Open submenus on click. (#128968, Martin Jeppesen)

2004-11-24  Matthias Clasen  <mclasen@redhat.com>

	Open submenus on click.  (#128968, Martin Jeppesen)

	* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
	activate items with submenus after the timeout, just select
	them.

	* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
	submenus popup immediately on click, regardless of popup
	delay.
parent 25ee10fe
2004-11-24 Matthias Clasen <mclasen@redhat.com>
Open submenus on click. (#128968, Martin Jeppesen)
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
activate items with submenus after the timeout, just select
them.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
submenus popup immediately on click, regardless of popup
delay.
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Rework confusing error message. (#151742,
......
2004-11-24 Matthias Clasen <mclasen@redhat.com>
Open submenus on click. (#128968, Martin Jeppesen)
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
activate items with submenus after the timeout, just select
them.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
submenus popup immediately on click, regardless of popup
delay.
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Rework confusing error message. (#151742,
......
2004-11-24 Matthias Clasen <mclasen@redhat.com>
Open submenus on click. (#128968, Martin Jeppesen)
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
activate items with submenus after the timeout, just select
them.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
submenus popup immediately on click, regardless of popup
delay.
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Rework confusing error message. (#151742,
......
2004-11-24 Matthias Clasen <mclasen@redhat.com>
Open submenus on click. (#128968, Martin Jeppesen)
* gtk/gtkmenushell.c (gtk_menu_shell_button_release): Don't
activate items with submenus after the timeout, just select
them.
* gtk/gtkmenuitem.c (gtk_real_menu_item_select): Make
submenus popup immediately on click, regardless of popup
delay.
2004-11-23 Matthias Clasen <mclasen@redhat.com>
* configure.in: Rework confusing error message. (#151742,
......
......@@ -843,9 +843,12 @@ gtk_real_menu_item_select (GtkItem *item)
gint popup_delay;
if (menu_item->timer)
g_source_remove (menu_item->timer);
popup_delay = get_popup_delay (menu_item);
{
g_source_remove (menu_item->timer);
popup_delay = 0;
}
else
popup_delay = get_popup_delay (menu_item);
if (popup_delay > 0)
{
......
......@@ -508,10 +508,10 @@ gtk_menu_shell_button_release (GtkWidget *widget,
_gtk_menu_item_is_selectable (menu_item))
{
if (GTK_MENU_ITEM (menu_item)->submenu == NULL)
{
gtk_menu_shell_activate_item (menu_shell, menu_item, TRUE);
return TRUE;
}
gtk_menu_shell_activate_item (menu_shell, menu_item, TRUE);
else
gtk_menu_item_select (menu_item);
return TRUE;
}
else if (menu_item &&
!_gtk_menu_item_is_selectable (menu_item) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment