GtkMenuShell patch
- From: Mitsuru Oka <oka debian or jp>
- To: gtk-devel-list gnome org
- Subject: GtkMenuShell patch
- Date: Tue, 10 Oct 2000 03:00:23 +0900
Hi,
I suggest following patch which modify an action of
GtkMenuBar class. If you click your menu item on
the menu bar, submenu will be listed. And once more,
you click the menu item, submenu will popdown.
I think this is natural action for me more than current
implementation.
Any comments are welcome. Thanks.
--
Mitsuru Oka
*** gtkmenushell.c.orig Tue Oct 10 02:45:07 2000
--- gtkmenushell.c Tue Oct 10 02:45:43 2000
***************
*** 509,516 ****
/* If the button click was very fast, or we ended up on a submenu,
* leave the menu up
*/
! if (!deactivate ||
! (menu_item && (menu_shell->active_menu_item == menu_item)))
{
deactivate = FALSE;
menu_shell->ignore_leave = TRUE;
--- 509,517 ----
/* If the button click was very fast, or we ended up on a submenu,
* leave the menu up
*/
! if (!menu_shell->ignore_leave &&
! (!deactivate ||
! (menu_item && (menu_shell->active_menu_item == menu_item))))
{
deactivate = FALSE;
menu_shell->ignore_leave = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]