comparison src/conversation.c @ 1215:29b708cde8a7

[gaim-migrate @ 1225] :p committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 08 Dec 2000 07:55:14 +0000
parents b1454d019277
children 2528fc35aa32
comparison
equal deleted inserted replaced
1214:0baf39dc5437 1215:29b708cde8a7
1100 GdkBitmap *mask; 1100 GdkBitmap *mask;
1101 GdkPixmap *face = NULL; 1101 GdkPixmap *face = NULL;
1102 1102
1103 if (strlen(m) < 2) return face; 1103 if (strlen(m) < 2) return face;
1104 *len = 2; 1104 *len = 2;
1105 if ( !strncmp(m, ":)", 2) || 1105 if ( !strncmp(m, ":)", 2)) {
1106 !strncmp(m, "=)", 2)) {
1107 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, smile_xpm); 1106 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, smile_xpm);
1108 } else if (!strncmp(m, ":(", 2) || 1107 } else if (!strncmp(m, ":(", 2)) {
1109 !strncmp(m, "=(", 2)) {
1110 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, sad_xpm); 1108 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, sad_xpm);
1111 } else if (!strncmp(m, ";)", 2)) { 1109 } else if (!strncmp(m, ";)", 2)) {
1112 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, wink_xpm); 1110 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, wink_xpm);
1113 } else if (!strncmp(m, ":p", 2) ||
1114 !strncmp(m, ":P", 2)) {
1115 face = gdk_pixmap_create_from_xpm_d(window->window, &mask, trans, tongue_xpm);
1116 } 1111 }
1117 1112
1118 if (face || strlen(m) < 3) return face; 1113 if (face || strlen(m) < 3) return face;
1119 *len = 3; 1114 *len = 3;
1120 if ( !strncmp(m, ":-)", 3)) { 1115 if ( !strncmp(m, ":-)", 3)) {