comparison src/conversation.c @ 754:bcae3ff49680

[gaim-migrate @ 764] You can now optionally tell gaim to display text in the convo window buttons. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Thu, 24 Aug 2000 17:37:25 +0000
parents cd62f69d187e
children c5f455b6f79a
comparison
equal deleted inserted replaced
753:cd62f69d187e 754:bcae3ff49680
424 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name); 424 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name);
425 debug_print(debug_buff); 425 debug_print(debug_buff);
426 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name)); 426 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name));
427 build_edit_tree(); 427 build_edit_tree();
428 gtk_widget_destroy(c->add_button); 428 gtk_widget_destroy(c->add_button);
429 c->add_button = picture_button2(c->window, NULL, gnome_add_xpm); 429 c->add_button = picture_button(c->window, NULL, gnome_add_xpm);
430 gtk_signal_connect(GTK_OBJECT(c->add_button), "clicked", GTK_SIGNAL_FUNC(add_callback), c); 430 gtk_signal_connect(GTK_OBJECT(c->add_button), "clicked", GTK_SIGNAL_FUNC(add_callback), c);
431 gtk_box_pack_end(GTK_BOX(parent), c->add_button, FALSE, FALSE, 0); 431 gtk_box_pack_end(GTK_BOX(parent), c->add_button, FALSE, FALSE, 0);
432 gtk_box_reorder_child(GTK_BOX(parent), c->add_button, 1); 432 gtk_box_reorder_child(GTK_BOX(parent), c->add_button, 1);
433 gtk_widget_show(c->add_button); 433 gtk_widget_show(c->add_button);
434 } 434 }
1482 GtkWidget *vbox; 1482 GtkWidget *vbox;
1483 GtkWidget *vbox2; 1483 GtkWidget *vbox2;
1484 GtkWidget *paned; 1484 GtkWidget *paned;
1485 GtkWidget *add; 1485 GtkWidget *add;
1486 GtkWidget *toolbar; 1486 GtkWidget *toolbar;
1487 1487 int dispstyle;
1488
1488 win = gtk_window_new(GTK_WINDOW_TOPLEVEL); 1489 win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
1489 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, TRUE); 1490 gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, TRUE);
1490 1491
1491 gtk_widget_realize(win); 1492 gtk_widget_realize(win);
1492 aol_icon(win->window); 1493 aol_icon(win->window);
1493 1494
1494 c->window = win; 1495 c->window = win;
1495 1496
1496 1497 if (display_options & OPT_DISP_CONV_SHOW_TEXT)
1497 send = picture_button2(win, _("Send"), tmp_send_xpm); 1498 {
1498 info = picture_button2(win, _("Info"), tb_search_xpm); 1499 dispstyle = TRUE;
1499 warn = picture_button2(win, _("Warn"), warn_xpm); 1500 }
1500 close = picture_button2(win, _("Close"), cancel_xpm); 1501 else
1502 {
1503 dispstyle = FALSE;
1504 }
1505
1506 send = picture_button2(win, _("Send"), tmp_send_xpm, dispstyle);
1507 info = picture_button2(win, _("Info"), tb_search_xpm, dispstyle);
1508 warn = picture_button2(win, _("Warn"), warn_xpm, dispstyle);
1509 close = picture_button2(win, _("Close"), cancel_xpm, dispstyle);
1501 if (find_buddy(c->name) != NULL) 1510 if (find_buddy(c->name) != NULL)
1502 add = picture_button2(win, _("Remove"), gnome_remove_xpm); 1511 add = picture_button2(win, _("Remove"), gnome_remove_xpm, dispstyle);
1503 else 1512 else
1504 add = picture_button2(win, _("Add"), gnome_add_xpm); 1513 add = picture_button2(win, _("Add"), gnome_add_xpm, dispstyle);
1505 block = picture_button2(win, _("Block"), block_xpm); 1514 block = picture_button2(win, _("Block"), block_xpm, dispstyle);
1506 1515
1507 /* use a slicker look if the user wants to */ 1516 /* use a slicker look if the user wants to */
1508 if (display_options & OPT_DISP_COOL_LOOK) 1517 if (display_options & OPT_DISP_COOL_LOOK)
1509 { 1518 {
1510 gtk_button_set_relief(GTK_BUTTON(send), GTK_RELIEF_NONE); 1519 gtk_button_set_relief(GTK_BUTTON(send), GTK_RELIEF_NONE);
1568 gtk_signal_connect(GTK_OBJECT(block), "clicked", GTK_SIGNAL_FUNC(block_callback), c); 1577 gtk_signal_connect(GTK_OBJECT(block), "clicked", GTK_SIGNAL_FUNC(block_callback), c);
1569 1578
1570 gtk_signal_connect(GTK_OBJECT(entry), "key_press_event", GTK_SIGNAL_FUNC(keypress_callback), c); 1579 gtk_signal_connect(GTK_OBJECT(entry), "key_press_event", GTK_SIGNAL_FUNC(keypress_callback), c);
1571 gtk_widget_set_usize(entry, 300, 25); 1580 gtk_widget_set_usize(entry, 300, 25);
1572 1581
1573 gtk_box_pack_end(GTK_BOX(bbox), close, FALSE, FALSE, 0); 1582 gtk_box_pack_end(GTK_BOX(bbox), close, dispstyle, dispstyle, 0);
1574 gtk_box_pack_end(GTK_BOX(bbox), add, FALSE, FALSE, 0); 1583 gtk_box_pack_end(GTK_BOX(bbox), add, dispstyle, dispstyle, 0);
1575 gtk_box_pack_end(GTK_BOX(bbox), block, FALSE, FALSE, 0); 1584 gtk_box_pack_end(GTK_BOX(bbox), block, dispstyle, dispstyle, 0);
1576 gtk_box_pack_end(GTK_BOX(bbox), warn, FALSE, FALSE, 0); 1585 gtk_box_pack_end(GTK_BOX(bbox), warn, dispstyle, dispstyle, 0);
1577 gtk_box_pack_end(GTK_BOX(bbox), info, FALSE, FALSE, 0); 1586 gtk_box_pack_end(GTK_BOX(bbox), info, dispstyle, dispstyle, 0);
1578 gtk_box_pack_end(GTK_BOX(bbox), send, FALSE, FALSE, 0); 1587 gtk_box_pack_end(GTK_BOX(bbox), send, dispstyle, dispstyle, 0);
1579 1588
1580 /* pack and fill the rest */ 1589 /* pack and fill the rest */
1581 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 5); 1590 gtk_box_pack_start(GTK_BOX(vbox), sw, TRUE, TRUE, 5);
1582 gtk_box_pack_start(GTK_BOX(vbox2), toolbar, FALSE, FALSE, 5); 1591 gtk_box_pack_start(GTK_BOX(vbox2), toolbar, FALSE, FALSE, 5);
1583 gtk_box_pack_start(GTK_BOX(vbox2), entry, TRUE, TRUE, 5); 1592 gtk_box_pack_start(GTK_BOX(vbox2), entry, TRUE, TRUE, 5);