src/gtkutils.c

changeset 9150
9c3bbd7d704c
parent 9123
d8db14e70d40
child 9497
1df8b47b083e
equal deleted inserted replaced
9149:eebf1d6f6a8b 9150:9c3bbd7d704c
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

mercurial