~elementary-pantheon/slingshot/trunk

« back to all changes in this revision

Viewing changes to src/SlingshotView.vala

  • Committer: RabbitBot
  • Author(s): Corentin Noël
  • Date: 2014-10-16 21:01:26 UTC
  • mfrom: (463.1.2 slingshot)
  • Revision ID: rabbitbot-20141016210126-mz32tpz6fwndvmi2
Adapt to category bar size.

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
            stack.transition_type = Gtk.StackTransitionType.SLIDE_LEFT_RIGHT;
180
180
 
181
181
            // Create the "NORMAL_VIEW"
182
 
            var scrolled_normal = new Gtk.ScrolledWindow (null, null);
183
 
            scrolled_normal.set_size_request (calculate_grid_width (), calculate_grid_height ());
184
182
            grid_view = new Widgets.Grid (default_rows, default_columns);
185
 
            scrolled_normal.add_with_viewport (grid_view);
186
 
            stack.add_named (scrolled_normal, "normal");
 
183
            stack.add_named (grid_view, "normal");
187
184
 
188
185
            // Create the "CATEGORY_VIEW"
189
186
            category_view = new Widgets.CategoryView (this);
190
 
            category_view.set_size_request (calculate_grid_width (), calculate_grid_height ());
191
187
            stack.add_named (category_view, "category");
192
188
 
193
189
            // Create the "SEARCH_VIEW"
194
190
            search_view = new Widgets.SearchView (this);
195
 
            search_view.set_size_request (calculate_grid_width (), calculate_grid_height ());
196
191
            search_view.start_search.connect ((match, target) => {
197
192
                search.begin (search_entry.text, match, target);
198
193
            });
316
311
 
317
312
                categories = app_system.get_categories ();
318
313
                apps = app_system.get_apps ();
319
 
 
320
314
                populate_grid_view ();
321
315
                category_view.setup_sidebar ();
322
316
            });