comparison src/buddy_chat.c @ 4201:511c2b63caa4

[gaim-migrate @ 4432] Some code cleanups to remove warnings and fix up indenting a little. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 04 Jan 2003 21:01:32 +0000
parents d3c8d2b40494
children 468f1ce401db
comparison
equal deleted inserted replaced
4200:c8fb43808a4b 4201:511c2b63caa4
40 40
41 /*#include "pixmaps/tb_forward.xpm"*/ 41 /*#include "pixmaps/tb_forward.xpm"*/
42 #include "pixmaps/join.xpm" 42 #include "pixmaps/join.xpm"
43 /*#include "pixmaps/close.xpm"*/ 43 /*#include "pixmaps/close.xpm"*/
44 #include "pixmaps/cancel.xpm" 44 #include "pixmaps/cancel.xpm"
45 #include "pixmaps/tmp_send.xpm"
46 #include "pixmaps/gnome_add.xpm"
47 #include "pixmaps/gnome_remove.xpm"
48 #include "pixmaps/block.xpm"
49 #include "pixmaps/warn.xpm"
50 #include "pixmaps/tb_search.xpm"
51 45
52 GtkWidget *joinchat; 46 GtkWidget *joinchat;
53 static struct gaim_connection *joinchatgc; 47 static struct gaim_connection *joinchatgc;
54 static GtkWidget *invite; 48 static GtkWidget *invite;
55 static GtkWidget *inviteentry; 49 static GtkWidget *inviteentry;
1505 } 1499 }
1506 1500
1507 static GtkWidget *change_text(GtkWidget *win, char *text, GtkWidget *button, char *stock, int chat) 1501 static GtkWidget *change_text(GtkWidget *win, char *text, GtkWidget *button, char *stock, int chat)
1508 { 1502 {
1509 int dispstyle = set_dispstyle(chat); 1503 int dispstyle = set_dispstyle(chat);
1510 GtkWidget *parent = button->parent;
1511 gtk_widget_destroy(button); 1504 gtk_widget_destroy(button);
1512 /* XXX button = picture_button2(win, text, xpm, dispstyle); */ 1505 /* XXX button = picture_button2(win, text, xpm, dispstyle); */
1513 button = gaim_pixbuf_button_from_stock((dispstyle == 0 ? NULL : text), 1506 button = gaim_pixbuf_button_from_stock((dispstyle == 0 ? NULL : text),
1514 (dispstyle == 1 ? NULL : stock), 1507 (dispstyle == 1 ? NULL : stock),
1515 GAIM_BUTTON_VERTICAL); 1508 GAIM_BUTTON_VERTICAL);
1568 { 1561 {
1569 GList *bcs = conversations; 1562 GList *bcs = conversations;
1570 struct conversation *c; 1563 struct conversation *c;
1571 GtkWidget *parent; 1564 GtkWidget *parent;
1572 int opt = 0; 1565 int opt = 0;
1573 int dispstyle = set_dispstyle(0);
1574 1566
1575 while (bcs) { 1567 while (bcs) {
1576 c = (struct conversation *)bcs->data; 1568 c = (struct conversation *)bcs->data;
1577 parent = c->send->parent; 1569 parent = c->send->parent;
1578 1570