Skip to content

Commit

Permalink
Changes: Get application launch context from the active display
Browse files Browse the repository at this point in the history
  • Loading branch information
mdamt committed Apr 3, 2012
1 parent cb1b5dd commit b400862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel-utils.vala
Expand Up @@ -104,7 +104,7 @@ namespace Utils {
}
var info = new DesktopAppInfo.from_filename (path);
try {
info.launch (null, new AppLaunchContext ());
info.launch (null, Gdk.Display.get_default ().get_app_launch_context ());
} catch (Error e) {
var dialog = new MessageDialog (null, DialogFlags.DESTROY_WITH_PARENT, MessageType.ERROR, ButtonsType.CLOSE, _("Error opening menu item %s: %s"), info.get_display_name (), e.message);
dialog.response.connect (() => {
Expand Down

0 comments on commit b400862

Please sign in to comment.