X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=blobdiff_plain;f=src%2Fmoonshot-identity-management-view.vala;h=2088e4927e5ad85bf28875e31e3b828fe6d26b01;hp=d9d7c5a28836768c4d2a118d15d5fdcac28ad491;hb=81776e951fb2848d2bc6706223697bf29bedba90;hpb=27e1a1441deccad56a7a5781e18f03c73f93bb9a diff --git a/src/moonshot-identity-management-view.vala b/src/moonshot-identity-management-view.vala index d9d7c5a..2088e49 100644 --- a/src/moonshot-identity-management-view.vala +++ b/src/moonshot-identity-management-view.vala @@ -511,11 +511,26 @@ public class IdentityManagerView : Window { filter.refilter(); redraw_id_card_widgets (); set_prompting_service(request.service); - show (); + make_visible(); } this.request_queue.push_tail (request); } + + /** Makes the window visible, or at least, notifies the user that the window + * wants to be visible. + * + * This differs from show() in that show() does not guarantee that the + * window will be moved to the foreground. Actually, neither does this + * method, because the user's settings and window manager may affect the + * behavior significantly. + */ + public void make_visible() + { + set_urgency_hint(true); + present(); + } + public IdCard check_add_password(IdCard identity, IdentityRequest request, IdentityManagerModel model) { IdCard retval = identity;