diff src/buddy_chat.c @ 915:378c862a2381

[gaim-migrate @ 925] bmiller is damn cool. he did everything i asked for, the next day even. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 15 Sep 2000 18:24:32 +0000
parents 9f2afe5faed5
children fa681641643d
line wrap: on
line diff
--- a/src/buddy_chat.c	Fri Sep 15 16:51:31 2000 +0000
+++ b/src/buddy_chat.c	Fri Sep 15 18:24:32 2000 +0000
@@ -520,7 +520,7 @@
 	GtkWidget *hpaned;
 	GtkWidget *toolbar;
 
-	gboolean dispstyle;
+	int dispstyle;
 	
 	win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 	b->window = win;
@@ -532,7 +532,7 @@
 	gtk_window_set_policy(GTK_WINDOW(win), TRUE, TRUE, TRUE);
 	gtk_widget_realize(win);
 
-	dispstyle = (display_options & OPT_DISP_CHAT_SHOW_TEXT) ? TRUE : FALSE;
+	dispstyle = set_dispstyle(1);
 
 	close = picture_button2(win, _("Close"), cancel_xpm, dispstyle);
 	
@@ -763,13 +763,13 @@
 
 }
 
-static GtkWidget *change_text(GtkWidget *win, char *text, GtkWidget *button, char **xpm, int opt)
+static GtkWidget *change_text(GtkWidget *win, char *text, GtkWidget *button, char **xpm, int chat)
 {
-	gboolean dispstyle = (display_options & opt) ? TRUE : FALSE;
+	int dispstyle = set_dispstyle(chat);
 	GtkWidget *parent = button->parent;
 	gtk_widget_destroy(button);
 	button = picture_button2(win, text, xpm, dispstyle);
-	if (opt == OPT_DISP_CHAT_SHOW_TEXT)
+	if (chat == 1)
 		gtk_box_pack_start(GTK_BOX(parent), button, dispstyle, dispstyle, 5);
 	else
 		gtk_box_pack_end(GTK_BOX(parent), button, dispstyle, dispstyle, 0);
@@ -781,7 +781,7 @@
 {
 	GList *bcs = buddy_chats;
 	struct conversation *c;
-	int opt = OPT_DISP_CHAT_SHOW_TEXT;
+	int opt = 1;
 
 	while (bcs) {
 		c = (struct conversation *)bcs->data;
@@ -803,8 +803,8 @@
 	GList *bcs = conversations;
 	struct conversation *c;
 	GtkWidget *parent;
-	int opt = OPT_DISP_CONV_SHOW_TEXT;
-	gboolean dispstyle = (display_options & opt) ? TRUE : FALSE;
+	int opt = 0;
+	int dispstyle = set_dispstyle(0);
 
 	while (bcs) {
 		c = (struct conversation *)bcs->data;