~midori/midori/trunk

« back to all changes in this revision

Viewing changes to extensions/tabby.vala

  • Committer: Tarmac
  • Author(s): André Stösel
  • Date: 2013-12-12 14:20:49 UTC
  • mfrom: (6507.1.2 tabby-execute-commands)
  • Revision ID: tarmac-20131212142049-cu9r6742coxkid30
execute commands given at start time

Show diffs side-by-side

added added

removed removed

Lines of Context:
666
666
                this.storage.restore_last_sessions ();
667
667
            }
668
668
 
 
669
            /* FIXME: execute_commands should be called before session creation */
 
670
            GLib.Idle.add (this.execute_commands);
 
671
 
 
672
            return false;
 
673
        }
 
674
 
 
675
        private bool execute_commands () {
 
676
            Midori.App app = this.get_app ();
 
677
            unowned string?[] commands = app.get_data ("execute-commands");
 
678
 
 
679
            if (commands != null) {
 
680
                app.send_command (commands);
 
681
            }
 
682
 
669
683
            return false;
670
684
        }
671
685