~vvort/slingshot/tooltip_fix

« back to all changes in this revision

Viewing changes to src/Widgets/Grid.vala

  • Committer: Vort
  • Date: 2016-04-17 04:16:55 UTC
  • Revision ID: vvort@yandex.ru-20160417041655-5bgw97is7n3l5cy6
Fix tooltip appearance (lp:1444396)

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
            stack.add_titled (current_grid, page.number.to_string (), page.number.to_string ());
79
79
 
80
80
            // Fake grids in case there are not enough apps to fill the grid
81
 
            current_grid.attach (new Gtk.Grid (), 0, 0, (int)page.columns, (int)page.rows);
 
81
            for (var row = 0; row < page.rows; row++)
 
82
                for (var column = 0; column < page.columns; column++)
 
83
                    current_grid.attach (new Gtk.Grid (), column, row, 1, 1);
82
84
        }
83
85
 
84
86
        public void append (Gtk.Widget widget) {
85
87
            update_position ();
86
88
 
 
89
            current_grid.get_child_at ((int)current_col, (int)current_row).destroy ();
87
90
            current_grid.attach (widget, (int)current_col, (int)current_row, 1, 1);
88
91
            current_col++;
89
92
            current_grid.show ();