Mercurial > vim
comparison src/gui_gtk.c @ 840:2c885fab04e3 v7.0e06
updated for version 7.0e06
author | vimboss |
---|---|
date | Sat, 22 Apr 2006 22:33:57 +0000 |
parents | 5a7843c57316 |
children | 8cd729851562 |
comparison
equal
deleted
inserted
replaced
839:1f3b1021f002 | 840:2c885fab04e3 |
---|---|
785 } | 785 } |
786 else | 786 else |
787 # endif /* FEAT_TOOLBAR */ | 787 # endif /* FEAT_TOOLBAR */ |
788 { | 788 { |
789 /* No parent, must be a non-menubar menu */ | 789 /* No parent, must be a non-menubar menu */ |
790 if (parent->submenu_id == NULL) | 790 if (parent == NULL || parent->submenu_id == NULL) |
791 return; | 791 return; |
792 | 792 |
793 /* Make place for the possible tearoff handle item. Not in the popup | 793 /* Make place for the possible tearoff handle item. Not in the popup |
794 * menu, it doesn't have a tearoff item. */ | 794 * menu, it doesn't have a tearoff item. */ |
795 if (parent != NULL && !menu_is_popup(parent->name)) | 795 if (!menu_is_popup(parent->name)) |
796 ++idx; | 796 ++idx; |
797 | 797 |
798 if (menu_is_separator(menu->name)) | 798 if (menu_is_separator(menu->name)) |
799 { | 799 { |
800 /* Separator: Just add it */ | 800 /* Separator: Just add it */ |