[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/aim-toc aim-toc.c,1.13,1.14
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/aim-toc aim-toc.c,1.13,1.14 |
Date: |
Mon, 27 Jan 2003 12:13:05 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/aim-toc
In directory subversions:/tmp/cvs-serv13321/modules/aim-toc
Modified Files:
aim-toc.c
Log Message:
remove more gtk deps from modules
Index: aim-toc.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/aim-toc/aim-toc.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- aim-toc.c 25 Jan 2003 13:15:48 -0000 1.13
+++ aim-toc.c 27 Jan 2003 17:12:59 -0000 1.14
@@ -962,44 +962,17 @@
}
}
-static gint pixmaps = 0;
-static GdkPixmap * eb_aim_pixmap[AIM_OFFLINE+1];
-static GdkBitmap * eb_aim_bitmap[AIM_OFFLINE+1];
-
-static void eb_aim_init_pixmaps()
-{
- gint i;
- gchar ** xpm;
-
- for (i=AIM_ONLINE; i<=AIM_OFFLINE; i++) {
- switch(i) {
- case AIM_OFFLINE:
- xpm = aim_away_xpm;
- break;
- case AIM_AWAY:
- xpm = aim_away_xpm;
- break;
- default:
- xpm = aim_online_xpm;
- break;
- }
- eb_aim_pixmap[i] =
gdk_pixmap_create_from_xpm_d(statuswindow->window,
- &eb_aim_bitmap[i], NULL, xpm);
- }
- pixmaps = 1;
-}
-
-static void eb_aim_get_status_pixmap( eb_account * account, GdkPixmap ** pm,
GdkBitmap ** bm )
+static char **eb_aim_get_status_pixmap( eb_account * account)
{
struct eb_aim_account_data * aad;
- if (!pixmaps)
- eb_aim_init_pixmaps();
-
aad = account->protocol_account_data;
- *pm = eb_aim_pixmap[aad->status];
- *bm = eb_aim_bitmap[aad->status];
+ if (aad->status == AIM_ONLINE)
+ return aim_online_xpm;
+ else
+ return aim_away_xpm;
+
}
static gchar * eb_aim_get_status_string( eb_account * account )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/aim-toc aim-toc.c,1.13,1.14,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.48,1.49
- Next by Date:
[Ayttm-commits] CVS: ayttm/src gtkutils.c,NONE,1.1 gtkutils.h,NONE,1.1 Makefile.am,1.17,1.18 nomodule.c,1.8,1.9 service.h,1.12,1.13 status.c,1.38,1.39 util.c,1.28,1.29
- Previous by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.48,1.49
- Next by thread:
[Ayttm-commits] CVS: ayttm/src gtkutils.c,NONE,1.1 gtkutils.h,NONE,1.1 Makefile.am,1.17,1.18 nomodule.c,1.8,1.9 service.h,1.12,1.13 status.c,1.38,1.39 util.c,1.28,1.29
- Index(es):