Mercurial > pidgin.yaz
comparison src/gtkutils.c @ 9150:05532ad61ed5
[gaim-migrate @ 9934]
recommit sean's prefs changes as promised, i'll look at the underscores
tomorrow
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 31 May 2004 03:38:47 +0000 |
parents | 6ea36eac6f22 |
children | 44a5bfa4730b |
comparison
equal
deleted
inserted
replaced
9149:108a0300135d | 9150:05532ad61ed5 |
---|---|
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 |