From: Christian H. <ch...@us...> - 2002-12-17 11:03:48
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv27643 Modified Files: conversation.c buddy_chat.c Log Message: The saved style is once again used on chat and IM windows. You may notice that your style is set to Pictures, and until now, your IM and chat windows have been Pictures & Text. If you prefer it this way, you'll need to set your preferences to that. Index: conversation.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/conversation.c,v retrieving revision 1.448 retrieving revision 1.449 diff -u -d -r1.448 -r1.449 --- conversation.c 17 Dec 2002 06:53:49 -0000 1.448 +++ conversation.c 17 Dec 2002 11:03:44 -0000 1.449 @@ -2795,6 +2795,7 @@ GtkWidget *label; GtkWidget *menubar; GtkWidget *tabby; + int dispstyle = set_dispstyle(0); c->sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); @@ -3005,7 +3006,10 @@ */ /* Put the send button on the right */ - send = gaim_pixbuf_button_from_stock(_("Send"), "gtk-convert", GAIM_BUTTON_VERTICAL); + send = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Send")), + (dispstyle == 1 ? NULL : "gtk-convert"), + GAIM_BUTTON_VERTICAL); c->send = send; gtk_signal_connect(GTK_OBJECT(send), "clicked", GTK_SIGNAL_FUNC(send_callback), c); gtk_box_pack_end(GTK_BOX(bbox), send, FALSE, FALSE, 0); @@ -3018,30 +3022,45 @@ /* And put the other buttons on the left */ if (c->gc && find_buddy(c->gc, c->name) != NULL) { - add = gaim_pixbuf_button_from_stock(_("Remove"), "gtk-remove", GAIM_BUTTON_VERTICAL); + add = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Remove")), + (dispstyle == 1 ? NULL : "gtk-remove"), + GAIM_BUTTON_VERTICAL); gtk_object_set_user_data(GTK_OBJECT(add), c); } else - add = gaim_pixbuf_button_from_stock(_("Add"), "gtk-add", GAIM_BUTTON_VERTICAL); + add = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Add")), + (dispstyle == 1 ? NULL : "gtk-add"), + GAIM_BUTTON_VERTICAL); c->add = add; gtk_signal_connect(GTK_OBJECT(add), "clicked", GTK_SIGNAL_FUNC(add_callback), c); gtk_box_pack_start(GTK_BOX(bbox), add, FALSE, FALSE, 0); gtk_widget_show(add); - warn = gaim_pixbuf_button_from_stock(_("Warn"), "gtk-dialog-warning", GAIM_BUTTON_VERTICAL); + warn = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Warn")), + (dispstyle == 1 ? NULL : "gtk-dialog-warning"), + GAIM_BUTTON_VERTICAL); c->warn = warn; gtk_signal_connect(GTK_OBJECT(warn), "clicked", GTK_SIGNAL_FUNC(warn_callback), c); gtk_box_pack_start(GTK_BOX(bbox), warn, FALSE, FALSE, 0); gtk_widget_show(warn); - info = gaim_pixbuf_button_from_stock(_("Info"), "gtk-find", GAIM_BUTTON_VERTICAL); + info = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Info")), + (dispstyle == 1 ? NULL : "gtk-find"), + GAIM_BUTTON_VERTICAL); c->info = info; gtk_signal_connect(GTK_OBJECT(info), "clicked", GTK_SIGNAL_FUNC(info_callback), c); gtk_box_pack_start(GTK_BOX(bbox), info, FALSE, FALSE, 0); gtk_widget_show(info); - block = gaim_pixbuf_button_from_stock(_("Block"), "gtk-stop", GAIM_BUTTON_VERTICAL); + block = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Block")), + (dispstyle == 1 ? NULL : "gtk-stop"), + GAIM_BUTTON_VERTICAL); c->block = block; gtk_signal_connect(GTK_OBJECT(block), "clicked", GTK_SIGNAL_FUNC(block_callback), c); gtk_box_pack_start(GTK_BOX(bbox), block, FALSE, FALSE, 0); Index: buddy_chat.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/buddy_chat.c,v retrieving revision 1.181 retrieving revision 1.182 diff -u -d -r1.181 -r1.182 --- buddy_chat.c 17 Dec 2002 06:53:50 -0000 1.181 +++ buddy_chat.c 17 Dec 2002 11:03:44 -0000 1.182 @@ -1194,7 +1194,7 @@ char buf[BUF_LONG]; - /*int dispstyle = set_dispstyle(1);*/ + int dispstyle = set_dispstyle(1); if (chat_options & OPT_CHAT_ONE_WINDOW) { if (!all_chats) { @@ -1432,7 +1432,11 @@ */ /* Send */ - button = gaim_pixbuf_button_from_stock(_("Send"), "gtk-convert", GAIM_BUTTON_VERTICAL); + button = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Send")), + (dispstyle == 1 ? NULL : "gtk-convert"), + GAIM_BUTTON_VERTICAL); + gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(send_callback), b); gtk_widget_show(button); @@ -1444,7 +1448,11 @@ gtk_box_pack_start(GTK_BOX(bbox), sep, FALSE, FALSE, 0); /* Invite */ - button = gaim_pixbuf_button_from_stock(_("Invite"), "gtk-jump-to", GAIM_BUTTON_VERTICAL); + button = gaim_pixbuf_button_from_stock( + (dispstyle == 0 ? NULL : _("Invite")), + (dispstyle == 1 ? NULL : "gtk-jump-to"), + GAIM_BUTTON_VERTICAL); + gtk_signal_connect(GTK_OBJECT(button), "clicked", GTK_SIGNAL_FUNC(invite_callback), b); gtk_widget_show(button); gtk_box_pack_end(GTK_BOX(bbox), button, FALSE, FALSE, 0); |