comparison src/gtkutils.c @ 9108:6a17b7e2e3b2

[gaim-migrate @ 9885] I did some more prefslashing. Test, discuss. I'll stay up for a bit. If nobody objects, let's tag and release. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 28 May 2004 05:53:34 +0000
parents b24967757d46
children 6ea36eac6f22
comparison
equal deleted inserted replaced
9107:f0be63d6d192 9108:6a17b7e2e3b2
207 gaim_gtk_get_dispstyle(GaimConversationType type) 207 gaim_gtk_get_dispstyle(GaimConversationType type)
208 { 208 {
209 int dispstyle = 2; 209 int dispstyle = 2;
210 int value; 210 int value;
211 211
212 if (type == GAIM_CONV_CHAT) { 212 value = gaim_prefs_get_int("/gaim/gtk/conversations/button_type");
213 value = gaim_prefs_get_int("/gaim/gtk/conversations/chat/button_type"); 213
214 214 switch (value) {
215 switch (value) { 215 case GAIM_BUTTON_TEXT: dispstyle = 1; break;
216 case GAIM_BUTTON_TEXT: dispstyle = 1; break; 216 case GAIM_BUTTON_IMAGE: dispstyle = 0; break;
217 case GAIM_BUTTON_IMAGE: dispstyle = 0; break; 217 default: dispstyle = 2; break; /* both/neither */
218 default: dispstyle = 2; break; /* both/neither */
219 }
220 }
221 else if (type == GAIM_CONV_IM) {
222 value = gaim_prefs_get_int("/gaim/gtk/conversations/im/button_type");
223
224 switch (value) {
225 case GAIM_BUTTON_TEXT: dispstyle = 1; break;
226 case GAIM_BUTTON_IMAGE: dispstyle = 0; break;
227 default: dispstyle = 2; break; /* both/neither */
228 }
229 } 218 }
230 219
231 return dispstyle; 220 return dispstyle;
232 } 221 }
233 222