forked from AuroraMiddleware/gtk
Inherit submenu direction from the parent menu.
2004-12-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit submenu direction from the parent menu.
This commit is contained in:
parent
e77e1e24c2
commit
2833c7ee94
@ -1,5 +1,8 @@
|
||||
2004-12-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
|
||||
submenu direction from the parent menu.
|
||||
|
||||
* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
|
||||
Return a boolean indicating whether an item in the submenu
|
||||
was selected.
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
|
||||
submenu direction from the parent menu.
|
||||
|
||||
* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
|
||||
Return a boolean indicating whether an item in the submenu
|
||||
was selected.
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
|
||||
submenu direction from the parent menu.
|
||||
|
||||
* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
|
||||
Return a boolean indicating whether an item in the submenu
|
||||
was selected.
|
||||
|
@ -1,5 +1,8 @@
|
||||
2004-12-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Inherit
|
||||
submenu direction from the parent menu.
|
||||
|
||||
* gtk/gtkmenushell.c (gtk_menu_shell_select_submenu_first):
|
||||
Return a boolean indicating whether an item in the submenu
|
||||
was selected.
|
||||
|
@ -1105,9 +1105,7 @@ gtk_menu_item_position_menu (GtkMenu *menu,
|
||||
case GTK_LEFT_RIGHT:
|
||||
parent_menu_item = GTK_MENU (widget->parent)->parent_menu_item;
|
||||
parent_xthickness = widget->parent->style->xthickness;
|
||||
if (parent_menu_item &&
|
||||
!GTK_MENU (widget->parent)->torn_off &&
|
||||
!GTK_MENU_SHELL (menu)->active)
|
||||
if (parent_menu_item && !GTK_MENU (widget->parent)->torn_off)
|
||||
menu_item->submenu_direction = GTK_MENU_ITEM (parent_menu_item)->submenu_direction;
|
||||
else if (direction == GTK_TEXT_DIR_LTR)
|
||||
menu_item->submenu_direction = GTK_DIRECTION_RIGHT;
|
||||
|
Loading…
Reference in New Issue
Block a user