[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.27,1.28
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.27,1.28 |
Date: |
Mon, 27 Jan 2003 12:13:05 -0500 |
Update of /cvsroot/ayttm/ayttm/modules/yahoo2
In directory subversions:/tmp/cvs-serv13321/modules/yahoo2
Modified Files:
yahoo.c
Log Message:
remove more gtk deps from modules
Index: yahoo.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/modules/yahoo2/yahoo.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- yahoo.c 27 Jan 2003 09:00:35 -0000 1.27
+++ yahoo.c 27 Jan 2003 17:12:59 -0000 1.28
@@ -2044,36 +2044,22 @@
return acct;
}
-static gint pixmaps = 0;
-static GdkPixmap *eb_yahoo_pixmap[2];
-static GdkBitmap *eb_yahoo_bitmap[2];
-
-static void eb_yahoo_init_pixmaps()
-{
- eb_yahoo_pixmap[0] = gdk_pixmap_create_from_xpm_d(statuswindow->window,
- &eb_yahoo_bitmap[0], NULL, yahoo_online_xpm);
-
- eb_yahoo_pixmap[1] = gdk_pixmap_create_from_xpm_d(statuswindow->window,
- &eb_yahoo_bitmap[1], NULL, yahoo_away_xpm);
-
- pixmaps = 1;
-}
-
-static void eb_yahoo_get_status_pixmap(eb_account * ea, GdkPixmap ** pm,
GdkBitmap ** bm)
+static char **eb_yahoo_get_status_pixmap(eb_account * ea)
{
eb_yahoo_account_data *yad;
- if (!pixmaps)
- eb_yahoo_init_pixmaps();
+ /*if (!pixmaps)
+ eb_yahoo_init_pixmaps();*/
yad = ea->protocol_account_data;
if(yad->away < 0 || yad->away > 1)
WARNING(("%s->away is %d", ea->handle, yad->away));
- *pm = eb_yahoo_pixmap[!(!(yad->away))];
- *bm = eb_yahoo_bitmap[!(!(yad->away))];
-
+ if (yad->away)
+ return yahoo_away_xpm;
+ else
+ return yahoo_online_xpm;
}
static gchar *eb_yahoo_get_status_string(eb_account * ea)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/modules/yahoo2 yahoo.c,1.27,1.28,
Colin Leroy <address@hidden> <=
- Prev 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
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.19,1.20
- Previous 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
- Next by thread:
[Ayttm-commits] CVS: ayttm/modules/workwizu workwizu.c,1.19,1.20
- Index(es):