Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
3865:66b8dcba9751 | 3866:994b5c4d15dd |
---|---|
1188 GtkWidget *sep; | 1188 GtkWidget *sep; |
1189 GtkListStore *ls; | 1189 GtkListStore *ls; |
1190 GtkWidget *list; | 1190 GtkWidget *list; |
1191 GtkCellRenderer *rend; | 1191 GtkCellRenderer *rend; |
1192 GtkTreeViewColumn *col; | 1192 GtkTreeViewColumn *col; |
1193 GtkWidget *tabby; | |
1193 | 1194 |
1194 char buf[BUF_LONG]; | 1195 char buf[BUF_LONG]; |
1195 | 1196 |
1196 /*int dispstyle = set_dispstyle(1);*/ | 1197 /*int dispstyle = set_dispstyle(1);*/ |
1197 | 1198 |
1244 } else | 1245 } else |
1245 win = b->window = all_chats; | 1246 win = b->window = all_chats; |
1246 | 1247 |
1247 cont = gtk_vbox_new(FALSE, 5); | 1248 cont = gtk_vbox_new(FALSE, 5); |
1248 gtk_container_set_border_width(GTK_CONTAINER(cont), 5); | 1249 gtk_container_set_border_width(GTK_CONTAINER(cont), 5); |
1249 gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, gtk_label_new(b->name)); | 1250 |
1251 tabby = gtk_hbox_new(FALSE, 0); | |
1252 b->close = gtk_button_new(); | |
1253 gtk_container_add(GTK_CONTAINER(b->close), gtk_image_new_from_stock(GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU)); | |
1254 gtk_button_set_relief(GTK_BUTTON(b->close), GTK_RELIEF_NONE); | |
1255 b->tab_label = gtk_label_new(b->name); | |
1256 | |
1257 gtk_signal_connect(GTK_OBJECT(b->close), "clicked", GTK_SIGNAL_FUNC(close_callback), b); | |
1258 | |
1259 gtk_box_pack_start(GTK_BOX(tabby), b->close, FALSE, FALSE, 0); | |
1260 gtk_box_pack_start(GTK_BOX(tabby), b->tab_label, FALSE, FALSE, 0); | |
1261 gtk_widget_show_all(tabby); | |
1262 gtk_notebook_append_page(GTK_NOTEBOOK(chat_notebook), cont, tabby); | |
1250 gtk_widget_show(cont); | 1263 gtk_widget_show(cont); |
1251 } else { | 1264 } else { |
1252 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 1265 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
1253 b->window = win; | 1266 b->window = win; |
1254 gtk_object_set_user_data(GTK_OBJECT(win), b); | 1267 gtk_object_set_user_data(GTK_OBJECT(win), b); |