~tigrangab/slingshot/command_fail_dialog

« back to all changes in this revision

Viewing changes to src/Widgets/SearchItem.vala

  • Committer: Tigran Gabrielyan
  • Date: 2013-09-02 04:37:06 UTC
  • Revision ID: tigrangab@gmail.com-20130902043706-izljj8y0s16sj9fm
Show error dialog if command failed

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
        public bool in_box = false;
33
33
        public int icon_size = 64;
34
 
        public signal void launch_app ();
 
34
        public signal bool launch_app ();
35
35
 
36
36
        public SearchItem (Backend.App app) {
37
37
            this.app = app;
56
56
 
57
57
            add (Utils.set_padding (vbox, 5, 0, 0, 78));
58
58
 
59
 
            this.launch_app.connect (app.launch);
 
59
            this.launch_app.connect (() => {
 
60
                return app.launch (get_parent ().get_toplevel () as Gtk.Window);
 
61
            });
60
62
        }
61
63
 
62
64
        protected override bool draw (Cairo.Context cr) {