~artem-anufrij/scratch/Bugfix-1085718

« back to all changes in this revision

Viewing changes to src/Widgets/SplitView.vala

  • Committer: artem-anufrij
  • Date: 2014-11-12 20:19:40 UTC
  • mfrom: (1401.2.6 scratch)
  • Revision ID: artem-anufrij-20141112201940-59lc13e47qlk3jc9
move terminal back to bottombar if open two code views

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        public signal void welcome_shown ();
36
36
        public signal void welcome_hidden ();
37
37
        public signal void document_change (Scratch.Services.Document document);
 
38
        public signal void views_changed (uint count);
38
39
 
39
40
        private weak MainWindow window;
40
41
 
126
127
 
127
128
            // Enbale/Disable useless GtkActions about views
128
129
            check_actions ();
129
 
 
130
130
            return view;
131
131
        }
132
132
 
199
199
        private void check_actions () {
200
200
            window.main_actions.get_action ("NewView").sensitive = (views.length () < 2);
201
201
            window.main_actions.get_action ("RemoveView").sensitive = (views.length () > 1);
 
202
 
 
203
            views_changed (views.length ());
202
204
        }
203
205
    }
204
206
}
 
 
b'\\ No newline at end of file'