fix Solaris/gcc bustage

This commit is contained in:
alecf%netscape.com 1998-11-12 19:19:09 +00:00
parent f4b68564d6
commit 422187a877
2 changed files with 4 additions and 4 deletions

View File

@ -185,8 +185,8 @@ NS_METHOD nsPopUpMenu::RemoveAll()
//-------------------------------------------------------------------------
void nsPopUpMenu::GetXY(GtkMenu *menu, gint *x, gint *y, gpointer user_data)
{
*x = mX;
*y = mY;
*x = ((nsPopUpMenu *)(user_data))->mX;
*y = ((nsPopUpMenu *)(user_data))->mY;
}
//-------------------------------------------------------------------------
@ -199,7 +199,7 @@ NS_METHOD nsPopUpMenu::ShowMenu(PRInt32 aX, PRInt32 aY)
NULL,
NULL,
GetXY,
NULL,
this,
0,
GDK_CURRENT_TIME);
return NS_OK;

View File

@ -52,7 +52,7 @@ public:
NS_IMETHOD InsertSeparator(const PRUint32 aCount);
NS_IMETHOD RemoveItem(const PRUint32 aCount);
NS_IMETHOD RemoveAll();
void nsPopUpMenu::GetXY(GtkMenu *menu, gint *x, gint *y, gpointer user_data);
static void nsPopUpMenu::GetXY(GtkMenu *menu, gint *x, gint *y, gpointer user_data);
NS_IMETHOD ShowMenu(PRInt32 aX, PRInt32 aY);
NS_IMETHOD GetNativeData(void*& aData);
NS_IMETHOD GetParent(nsIWidget*& aParent);