~hakermania/synapse-project/synapse-project

« back to all changes in this revision

Viewing changes to src/ui/tile-view/tile-view.vala

  • Committer: Rico Tzschichholz
  • Date: 2016-02-27 15:10:45 UTC
  • Revision ID: ricotz@ubuntu.com-20160227151045-752y5rjoadmyieo3
src: Drop "using Gtk;"

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 *
20
20
 */
21
21
 
22
 
using Gtk;
23
 
 
24
22
namespace UI.Widgets
25
23
{
26
 
  public class TileView : EventBox
 
24
  public class TileView : Gtk.EventBox
27
25
  {
28
26
    private List<Tile> tiles = new List<Tile> ();
29
 
    private Box box = new Box (Gtk.Orientation.VERTICAL, 0);
 
27
    private Gtk.Box box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
30
28
 
31
29
    public int icon_size { get; construct set; default = 48; }
32
30
 
158
156
    public virtual void on_tile_size_allocated (Gtk.Widget w, Gtk.Allocation alloc)
159
157
    {
160
158
      Tile tile = w as Tile;
161
 
      ScrolledWindow? scroll = null;
 
159
      Gtk.ScrolledWindow? scroll = null;
162
160
 
163
161
      scroll = this.get_parent () == null ?
164
 
        null : this.get_parent ().get_parent () as ScrolledWindow;
 
162
        null : this.get_parent ().get_parent () as Gtk.ScrolledWindow;
165
163
      if (scroll == null)
166
164
      {
167
165
        return;