Implement nsIWidget::Flash() for unix. This is part of bug #18518. r=pavlov,a=chofmann

git-svn-id: svn://10.0.0.236/trunk@55859 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blizzard%redhat.com
1999-12-10 20:23:21 +00:00
parent 59b22cff6c
commit 94bdfd96ef
2 changed files with 15 additions and 0 deletions

View File

@@ -1738,6 +1738,20 @@ NS_IMETHODIMP nsWindow::Resize(PRInt32 aX, PRInt32 aY, PRInt32 aWidth,
return NS_OK;
}
NS_IMETHODIMP nsWindow::Flash(void)
{
// get the next up moz area
GtkWidget *top_mozarea = GetMozArea();
if (top_mozarea) {
GtkWidget *top_window = gtk_widget_get_toplevel(top_mozarea);
if (top_window) {
// this will raise the toplevel window
gdk_window_show(top_window->window);
}
}
return NS_OK;
}
/* virtual */ void
nsWindow::OnRealize(GtkWidget *aWidget)
{

View File

@@ -81,6 +81,7 @@ public:
NS_IMETHOD SetBackgroundColor(const nscolor &aColor);
NS_IMETHOD SetCursor(nsCursor aCursor);
NS_IMETHOD SetFocus(void);
NS_IMETHOD Flash(void);
void QueueDraw();
void UnqueueDraw();