diff --git a/widget/src/xlib/nsWidget.cpp b/widget/src/xlib/nsWidget.cpp index 33ff80210fa..43688193087 100644 --- a/widget/src/xlib/nsWidget.cpp +++ b/widget/src/xlib/nsWidget.cpp @@ -325,6 +325,13 @@ NS_IMETHODIMP nsWidget::SetFocus(void) return NS_OK; } +NS_IMETHODIMP nsWidget::SetName(const char * aName) +{ + mName = aName; + + return NS_OK; +} + Window nsWidget::GetFocusWindow(void) { diff --git a/widget/src/xlib/nsWidget.h b/widget/src/xlib/nsWidget.h index bd710a1fd9d..f0116d2babb 100644 --- a/widget/src/xlib/nsWidget.h +++ b/widget/src/xlib/nsWidget.h @@ -80,6 +80,7 @@ public: NS_IMETHOD Enable(PRBool bState); NS_IMETHOD SetFocus(void); + NS_IMETHOD SetName(const char * aName); NS_IMETHOD SetBackgroundColor(const nscolor &aColor); virtual nsIFontMetrics* GetFont(void); NS_IMETHOD SetFont(const nsFont &aFont);