~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 12:48:27 UTC
  • mfrom: (159.2.27 client-gtk3)
  • Revision ID: neil.patel@canonical.com-20110619124827-4agvjitrl6e38q2p
Merge in kens work as well as add some updates. Should have done the merge and my work separately but I forgot to commit after the merge :)

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 class TabBarItem : Gtk.ToggleButton
20
20
{
21
21
  public string stream  { get; construct set; }
22
22
  public string tooltip { get; construct set; }
24
24
  public TabBarItem (string stream, string icon, string tooltip = "")
25
25
  {
26
26
    //FIXME: This is temporary
27
 
    var image = new Gtk.Image.from_stock (icon, Gtk.IconSize.BUTTON);
 
27
    var image = new Gtk.Image.from_icon_name (icon, Gtk.IconSize.BUTTON);
28
28
 
29
29
    Object (stream:stream, image:image, tooltip:tooltip, relief:Gtk.ReliefStyle.NONE);
30
30
  }