Only call gtk_window_present on an alert dialog if the activation state of the window is changing to active.  The signal gets sent even when windows are going inactive (to make the frame light blue), but we only want to do anything if the window is trying to become active.
Only call gtk_window_present on an alert dialog if the
activation state of the window is changing to active.  The
signal gets sent even when windows are going inactive (to make
the frame light blue), but we only want to do anything if
the window is trying to become active.

This seems fvwm specific in that gtk_window_present actually
changes focus in fvwm (in compiz/metacity, it just causes the
window to throb in the taskbar).

BUG=19292

Review URL: http://codereview.chromium.org/165502


git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@23452 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser