Skip to content
Snippets Groups Projects
Commit 6311232b authored by rods%netscape.com's avatar rods%netscape.com
Browse files

Changed GetItemAt to return a nsISupports instead of a nsIMenuItem, this is

because a menu can hold both other menus and menu items.
parent d05a1b9d
No related branches found
No related tags found
No related merge requests found
...@@ -100,10 +100,10 @@ class nsIMenu : public nsISupports { ...@@ -100,10 +100,10 @@ class nsIMenu : public nsISupports {
NS_IMETHOD GetItemCount(PRUint32 &aCount) = 0; NS_IMETHOD GetItemCount(PRUint32 &aCount) = 0;
/** /**
* Returns a Menu Item at a specified Index * Returns a Menu or Menu Item at a specified Index
* *
*/ */
NS_IMETHOD GetItemAt(const PRUint32 aCount, nsIMenuItem *& aMenuItem) = 0; NS_IMETHOD GetItemAt(const PRUint32 aCount, nsISupports *& aMenuItem) = 0;
/** /**
* Inserts a Menu Item at a specified Index * Inserts a Menu Item at a specified Index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment