1 // Code adapted from Stetic which is Copyright (c) 2004 Novell, Inc
6 namespace Circ
.Frontend
.GtkSharp
8 public class TabWidget
: HBox
13 public TabWidget(string tabName
, Notebook nb
, int index
)
15 tabLabel
= new Label(tabName
);
16 hl
= new Gtk
.Image (Gdk
.Pixbuf
.LoadFromResource("chat.png"));
18 this.PackStart (hl
, true, true, 0);
19 this.PackStart (tabLabel
, true, true, 3);
20 Button b
= new Button (new Gtk
.Image ("gtk-close", IconSize
.Menu
));
21 b
.Relief
= Gtk
.ReliefStyle
.None
;
22 b
.WidthRequest
= b
.HeightRequest
= 24;
24 b
.Clicked
+= delegate (object s
, EventArgs a
) {
28 this.PackStart (b
, false, false, 0);