Mercurial > pidgin.yaz
diff src/buddy_chat.c @ 3866:994b5c4d15dd
[gaim-migrate @ 4018]
leave me alone
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sun, 03 Nov 2002 07:32:07 +0000 |
parents | 80eaee3d5845 |
children | b697b53de7e6 |
line wrap: on
line diff
--- a/src/buddy_chat.c Sun Nov 03 01:19:45 2002 +0000 +++ b/src/buddy_chat.c Sun Nov 03 07:32:07 2002 +0000 @@ -1190,6 +1190,7 @@ GtkWidget *list; GtkCellRenderer *rend; GtkTreeViewColumn *col; + GtkWidget *tabby; char buf[BUF_LONG]; @@ -1246,7 +1247,19 @@ cont = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(cont), 5); - gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, gtk_label_new(b->name)); + + tabby = gtk_hbox_new(FALSE, 0); + b->close = gtk_button_new(); + gtk_container_add(GTK_CONTAINER(b->close), gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU)); + gtk_button_set_relief(GTK_BUTTON(b->close), GTK_RELIEF_NONE); + b->tab_label = gtk_label_new(b->name); + + gtk_signal_connect(GTK_OBJECT(b->close), "clicked", GTK_SIGNAL_FUNC(close_callback), b); + + gtk_box_pack_start(GTK_BOX(tabby), b->close, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(tabby), b->tab_label, FALSE, FALSE, 0); + gtk_widget_show_all(tabby); + gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, tabby); gtk_widget_show(cont); } else { win = gtk_window_new(GTK_WINDOW_TOPLEVEL);