~jaapz-b/switchboard/fix-1082736

« back to all changes in this revision

Viewing changes to Switchboard/switchboard-app.vala

  • Committer: David Gomes
  • Author(s): Jaap Broekhuizen
  • Date: 2012-11-24 14:39:43 UTC
  • mfrom: (342.1.1 embedded-alert)
  • Revision ID: davidrafagomes@gmail.com-20121124143943-sm4wmlif3wirpyvn
Let the 'no plugs found' message span the entire window, fixes bug #1082448. Approved by David Gomes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
            toolbar.set_hexpand (true);
129
129
 
130
130
            alert_view = new Granite.Widgets.EmbeddedAlert ();
 
131
            alert_view.set_vexpand (true);
131
132
            grid.attach (alert_view, 0, 2, 1, 1);
132
133
 
133
134
            main_window.add (grid);
205
206
 
206
207
        public void hide_alert () {
207
208
            alert_view.hide ();
208
 
            category_view.show ();
 
209
            scrollable_view.show ();
209
210
        }
210
211
 
211
212
        public void show_alert (string primary_text, string secondary_text, Gtk.MessageType type) {
212
213
            alert_view.set_alert (primary_text, secondary_text, null, true, type);
213
214
            alert_view.show ();
214
 
            category_view.hide ();
 
215
            scrollable_view.hide ();
215
216
        }
216
217
 
217
218
        public void load_plug (string title, string executable, bool @extern) {