diff src/gtkutils.c @ 5554:7b36d02031a2

[gaim-migrate @ 5955] More work done... Got some painful stuff to do now. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Fri, 30 May 2003 00:00:48 +0000
parents 80e4ba770f97
children 5e9babc828c4
line wrap: on
line diff
--- a/src/gtkutils.c	Thu May 29 23:44:44 2003 +0000
+++ b/src/gtkutils.c	Fri May 30 00:00:48 2003 +0000
@@ -343,21 +343,24 @@
 gaim_gtk_get_dispstyle(GaimConversationType type)
 {
 	int dispstyle = 2;
+	int value;
 
 	if (type == GAIM_CONV_CHAT) {
-		switch (chat_options & (OPT_CHAT_BUTTON_TEXT | OPT_CHAT_BUTTON_XPM)) {
+		value = gaim_prefs_get_int("/gaim/gtk/conversations/chat/button_type");
 
-			case OPT_CHAT_BUTTON_TEXT: dispstyle = 1; break;
-			case OPT_CHAT_BUTTON_XPM:  dispstyle = 0; break;
-			default:                   dispstyle = 2; break; /* both/neither */
+		switch (value) {
+			case GAIM_BUTTON_TEXT:  dispstyle = 1; break;
+			case GAIM_BUTTON_IMAGE: dispstyle = 0; break;
+			default:                dispstyle = 2; break; /* both/neither */
 		}
 	}
 	else if (type == GAIM_CONV_IM) {
-		switch (im_options & (OPT_IM_BUTTON_TEXT | OPT_IM_BUTTON_XPM)) {
+		value = gaim_prefs_get_int("/gaim/gtk/conversations/im/button_type");
 
-			case OPT_IM_BUTTON_TEXT: dispstyle = 1; break;
-			case OPT_IM_BUTTON_XPM:  dispstyle = 0; break;
-			default:                 dispstyle = 2; break; /* both/neither */
+		switch (value) {
+			case GAIM_BUTTON_TEXT:  dispstyle = 1; break;
+			case GAIM_BUTTON_IMAGE: dispstyle = 0; break;
+			default:                dispstyle = 2; break; /* both/neither */
 		}
 	}