https://bugs.launchpad.net/moonshot-ui/+bug/1279798
authorDan Breslau <dbreslau@painless-security.com>
Mon, 4 Apr 2016 17:13:37 +0000 (13:13 -0400)
committerDan Breslau <dbreslau@painless-security.com>
Mon, 4 Apr 2016 17:13:37 +0000 (13:13 -0400)
("UI doesn't take focus when already open")

The problem was that simply calling Window.show() doesn't mean that the window
is brought to the foreground. Actually, there is nothing that guarantees this,
because the user's settings and choice of window manager may affect the
behavior. However, research and experimentation shows that calling these
two Gtk.Window methods:

        set_urgency_hint(true);
        present();

does not bring the window to the foreground either, but does at least cause
the user to be notified that the window wants attention, much like the way
Windows may make a taskbar icon flash orange.

Makefile.am

index 0994d1f..7cd9a6a 100644 (file)
@@ -192,7 +192,7 @@ EXTRA_DIST = webprovisioning/moonshot.xml $(dbusservice_in_files) \
        README.webprovisioning README.windows \
        moonshot-dbus-launch \
        moonshot-ui.spec \
-       vapi/moonshot-gnome-keyring.vapi
+       vapi/moonshot-gnome-keyring.vapi libmoonshot/libmoonshot.vapi
 
 noinst_PROGRAMS = \
         examples/client \