[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src status.c,1.53,1.54
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src status.c,1.53,1.54 |
Date: |
Mon, 17 Mar 2003 10:03:12 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv16293/src
Modified Files:
status.c
Log Message:
tooltip to track people status
Index: status.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/status.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- status.c 17 Mar 2003 14:44:56 -0000 1.53
+++ status.c 17 Mar 2003 15:03:10 -0000 1.54
@@ -831,17 +831,30 @@
else if (update_contact)
gtk_label_set_text(ea->account_contact->status, c);
- /*if (update_contact) {
- time_t mytime = time(NULL);
- char *status_line = g_strdup_printf(
- "%s since %s",
+ if (update_contact) {
+ time_t t;
+ struct tm *mytime;
+ char buff[128];
+ char *status = RUN_SERVICE(ea)->get_status_string(ea);
+ char *status_line = NULL;
+
+ time(&t);
+ mytime = localtime(&t);
+
+ strftime(buff, 128, "%H:%M (%b %d)", mytime);
+ status_line = g_strdup_printf(
+ _("%s since %s"),
+ strlen(status)?status:"Online", buff);
+ if(!status_tips)
+ status_tips = gtk_tooltips_new();
gtk_tooltips_set_tip(GTK_TOOLTIPS(status_tips),
ea->account_contact->list_item,
- RUN_SERVICE(ea)->get_status_string(ea),
+ status_line,
_("status info here"));
- }*/
+ g_free(status_line);
+ }
g_free(c);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src status.c,1.53,1.54,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.338,1.339 configure.in,1.333,1.334
- Next by Date:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.70,1.71
- Previous by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.338,1.339 configure.in,1.333,1.334
- Next by thread:
[Ayttm-commits] CVS: ayttm/modules/msn2 msn.C,1.70,1.71
- Index(es):