~artem-anufrij/webby-browser/edit-functionality

« back to all changes in this revision

Viewing changes to src/WebAppWindow.vala

  • Committer: Erasmo Marín
  • Date: 2015-02-26 02:11:02 UTC
  • Revision ID: erasmo.marin@gmail.com-20150226021102-qml0cb3bvo2f4vga
better loading, added missing Gtk.main_quit

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        this.set_titlebar (headerbar);
49
49
        set_default_size (1000, 600);
50
50
 
 
51
        this.destroy.connect (Gtk.main_quit);
 
52
 
51
53
        web_app.external_request.connect ( () => {
52
54
            print("Web app external request\n");
 
55
            web_app.set_transition_type (Gtk.StackTransitionType.SLIDE_LEFT);
53
56
            headerbar.set_title_mode (WebBar.title_mode.BROWSER);
54
57
            web_app.set_visible_child_name ("external");
55
58
        });
57
60
        headerbar.back_event.connect ( () => {
58
61
            print ("back");
59
62
            headerbar.set_title_mode (WebBar.title_mode.TITLE);
 
63
            web_app.set_transition_type (Gtk.StackTransitionType.SLIDE_RIGHT);
60
64
            web_app.set_visible_child_name ("app");
61
65
            web_app.external_view.close();
62
66
            web_app.external_view.load_uri ("about:blank");