зеркало из https://github.com/mozilla/pjs.git
Implement nsIWidget::Flash() for unix. This is part of bug #18518. r=pavlov,a=chofmann
This commit is contained in:
Родитель
ad41dabfdb
Коммит
666571fef3
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче