~njpatel/gwibber/libgwibber-o-client-njpatel

« back to all changes in this revision

Viewing changes to client/tab-bar-item.vala

  • Committer: Neil Jagdish Patel
  • Date: 2011-06-19 14:55:06 UTC
  • Revision ID: neil.patel@canonical.com-20110619145506-vrcn3sjus9qbef62
New tab-bar work

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by Neil Jagdish Patel <njpatel@gmail.com>
17
17
 */
18
18
 
19
 
public class TabBarItem : Gtk.Button
 
19
public abstract class TabBarItem : Gtk.Button
20
20
{
21
21
  public string stream  { get; construct set; }
22
22
  public string tooltip { get; construct set; }
32
32
  } 
33
33
 
34
34
  private Gtk.Image _image;
35
 
 
36
35
  private bool _active = false;
37
36
 
38
37
  public TabBarItem (string stream, string icon_name, string tooltip = "")
42
41
 
43
42
  construct
44
43
  {
 
44
    set_size_request (40, 32);
 
45
 
45
46
    _image = new Gtk.Image.from_icon_name (icon_name, Gtk.IconSize.BUTTON);
46
47
    add (_image);
47
48
  }
51
52
    propagate_draw (_image, cr);
52
53
    return true;
53
54
  }
 
55
 
 
56
  // Should be implemented by sub-classes
 
57
  public abstract Gtk.Widget? get_toolbar ();
54
58
}