Mercurial > pidgin
comparison src/buddy.c @ 3159:fce1883cc608
[gaim-migrate @ 3175]
new shortcuts:
Ctrl-- Decrease Font Size
Ctrl-= Increase Font Size
Ctrl-0 Normal Font Size
Ctrl-F Select Font
Ctrl-C Text Color
Ctrl-W Close IM/Chat Window (or Tab, if using tabbed conversations)
Ctrl-N New IM/Chat Tab (if using tabbed conversations)
Ctrl-Z Minimize (Iconify) IM/Chat Window
-As suggested by Shreedeep K Bhachech
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Sat, 20 Apr 2002 08:10:13 +0000 |
| parents | a0a0b00f214b |
| children | 49fb2b634a2a |
comparison
equal
deleted
inserted
replaced
| 3158:ea6f8d8d74e5 | 3159:fce1883cc608 |
|---|---|
| 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 |
