From 48601665e3865fc708624527a459c1a9118b1d32 Mon Sep 17 00:00:00 2001 From: "saari%netscape.com" Date: Wed, 27 Jan 1999 04:20:20 +0000 Subject: [PATCH] mozilla/widget/src/xpwidgets/nsBaseWidget.h uncommented nsIMenuListener *mMenuListener for XPToolkit menus Index: nsBaseWidget.cpp =================================================================== RCS file: /m/pub/mozilla/widget/src/xpwidgets/nsBaseWidget.cpp uncommented mMenuListener code for XPToolkit menus --- widget/src/xpwidgets/nsBaseWidget.cpp | 6 +++--- widget/src/xpwidgets/nsBaseWidget.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/widget/src/xpwidgets/nsBaseWidget.cpp b/widget/src/xpwidgets/nsBaseWidget.cpp index 28481a14d25f..3d7505f34149 100644 --- a/widget/src/xpwidgets/nsBaseWidget.cpp +++ b/widget/src/xpwidgets/nsBaseWidget.cpp @@ -78,7 +78,7 @@ nsBaseWidget::nsBaseWidget() : mAppShell = nsnull; mMouseListener = nsnull; mEventListener = nsnull; - /*mMenuListener = nsnull;*/ + mMenuListener = nsnull; mClientData = nsnull; mContext = nsnull; mCursor = eCursor_standard; @@ -601,14 +601,14 @@ NS_METHOD nsBaseWidget::AddEventListener(nsIEventListener * aListener) * Processes a menu event * **/ -/* + NS_METHOD nsBaseWidget::AddMenuListener(nsIMenuListener * aListener) { NS_PRECONDITION(mMenuListener == nsnull, "Null menu listener"); mMenuListener = aListener; return NS_OK; } -*/ + /** * If the implementation of nsWindow supports borders this method MUST be overridden diff --git a/widget/src/xpwidgets/nsBaseWidget.h b/widget/src/xpwidgets/nsBaseWidget.h index 3d21dc87bd66..01818286e5f9 100644 --- a/widget/src/xpwidgets/nsBaseWidget.h +++ b/widget/src/xpwidgets/nsBaseWidget.h @@ -23,7 +23,7 @@ #include "nsIEnumerator.h" #include "nsIMouseListener.h" #include "nsIEventListener.h" -/*#include "nsIMenuListener.h"*/ +#include "nsIMenuListener.h" #include "nsIToolkit.h" #include "nsStringUtil.h" #include "nsString.h" @@ -79,7 +79,7 @@ public: NS_IMETHOD UpdateTooltips(nsRect* aNewTips[]); NS_IMETHOD AddMouseListener(nsIMouseListener * aListener); NS_IMETHOD AddEventListener(nsIEventListener * aListener); - /* NS_IMETHOD AddMenuListener(nsIMenuListener * aListener);*/ + NS_IMETHOD AddMenuListener(nsIMenuListener * aListener); NS_IMETHOD SetBounds(const nsRect &aRect); NS_IMETHOD GetBounds(nsRect &aRect); NS_IMETHOD GetBoundsAppUnits(nsRect &aRect, float aAppUnits); @@ -110,7 +110,7 @@ protected: nsIToolkit *mToolkit; nsIMouseListener *mMouseListener; nsIEventListener *mEventListener; - /* nsIMenuListener *mMenuListener;*/ + nsIMenuListener *mMenuListener; nscolor mBackground; nscolor mForeground; nsCursor mCursor;