예제 #1
0
        public Category(Tiles.TileGroupInfo info, int columns)
        {
            WidgetFlags |= WidgetFlags.NoWindow;

            header = new Gtk.HBox(false, 0);

            headerExpander = new Gtk.Expander("<big><b>" + GLib.Markup.EscapeText(info.Name) + "</b></big>");
            ((Gtk.Label)headerExpander.LabelWidget).SetAlignment(0.0f, 0.5f);
            headerExpander.UseMarkup    = true;
            headerExpander.UseUnderline = true;
            headerExpander.Show();
            header.PackStart(headerExpander, true, true, 0);

            headerExpander.Activated += OnActivated;

            scope = Tiles.Utils.TileGroupToScopeType(info.Group);

            position = new Gtk.Label();
            position.ModifyFg(Gtk.StateType.Normal, position.Style.Base(Gtk.StateType.Selected));
            header.PackStart(position, false, false, 0);
            position.Show();

            prev = MakeButton(header, Gtk.Stock.GoBack, OnPrev);
            next = MakeButton(header, Gtk.Stock.GoForward, OnNext);

            header.Show();
            header.Parent         = this;
            header.SizeRequested += HeaderSizeRequested;

            tiles   = new SortedTileList(Beagle.Search.SortType.Relevance);
            Columns = columns;

            UpdateButtons();
            Expanded = true;
        }
예제 #2
0
 public TileCategory(Tiles.TileGroupInfo info, Gtk.SizeGroup size_group) : base(info, 2)
 {
     this.size_group = size_group;
 }
예제 #3
0
 public ListCategory(Tiles.TileGroupInfo info) : base(info, 1)
 {
     col1 = new Gtk.SizeGroup(Gtk.SizeGroupMode.Horizontal);
     col2 = new Gtk.SizeGroup(Gtk.SizeGroupMode.Horizontal);
     col3 = new Gtk.SizeGroup(Gtk.SizeGroupMode.Horizontal);
 }