src/buddy.c

changeset 3159
15816c95c61c
parent 3154
79a95c2f99e6
child 3188
a71bad9ff940
equal deleted inserted replaced
3158:47352d96c3c9 3159:15816c95c61c
31 #include <dlfcn.h> 31 #include <dlfcn.h>
32 #endif /* GAIM_PLUGINS */ 32 #endif /* GAIM_PLUGINS */
33 #include <string.h> 33 #include <string.h>
34 #include <stdio.h> 34 #include <stdio.h>
35 #include <stdlib.h> 35 #include <stdlib.h>
36 #include <ctype.h>
36 #include <math.h> 37 #include <math.h>
37 #include <time.h> 38 #include <time.h>
38 #include <unistd.h> 39 #include <unistd.h>
39 40
40 #include <gdk/gdkkeysyms.h> 41 #include <gdk/gdkkeysyms.h>
1192 if (widget == NULL || gc == NULL || pixmap == NULL || mask == NULL) 1193 if (widget == NULL || gc == NULL || pixmap == NULL || mask == NULL)
1193 return; 1194 return;
1194 1195
1195 style = gtk_widget_get_style( widget ); 1196 style = gtk_widget_get_style( widget );
1196 1197
1197 if (gc->prpl->list_icon) 1198 if (gc->prpl->list_icon) {
1198 if (gc->prpl->protocol == PROTO_OSCAR) { 1199 if (gc->prpl->protocol == PROTO_OSCAR) {
1199 if (isdigit(*gc->username)) { 1200 if (isdigit(*gc->username)) {
1200 xpm = gc->prpl->list_icon(0); 1201 xpm = gc->prpl->list_icon(0);
1201 } else { 1202 } else {
1202 xpm = gc->prpl->list_icon(0x10); 1203 xpm = gc->prpl->list_icon(0x10);
1203 } 1204 }
1204 } else { 1205 } else {
1205 xpm = gc->prpl->list_icon (0); 1206 xpm = gc->prpl->list_icon (0);
1206 } 1207 }
1208 }
1207 if (xpm == NULL) 1209 if (xpm == NULL)
1208 xpm = (char **)no_icon_xpm; 1210 xpm = (char **)no_icon_xpm;
1209 1211
1210 *pixmap = gdk_pixmap_create_from_xpm_d(widget->window, mask, &style->bg[GTK_STATE_NORMAL], xpm); 1212 *pixmap = gdk_pixmap_create_from_xpm_d(widget->window, mask, &style->bg[GTK_STATE_NORMAL], xpm);
1211 } 1213 }
1824 int pos = group_number(group); 1826 int pos = group_number(group);
1825 GdkPixmap *pm; 1827 GdkPixmap *pm;
1826 GdkBitmap *bm; 1828 GdkBitmap *bm;
1827 GtkStyle *style; 1829 GtkStyle *style;
1828 GtkStyle *style2; 1830 GtkStyle *style2;
1829 int j;
1830 1831
1831 g->name = g_strdup(group); 1832 g->name = g_strdup(group);
1832 1833
1833 g->item = gtk_tree_item_new(); 1834 g->item = gtk_tree_item_new();
1834 1835

mercurial