Mercurial > pidgin.yaz
changeset 6357:1fa4410d2e13
[gaim-migrate @ 6856]
Not much--I changed the code to show idle time for irc so it uses the core
sec_to_text function or whatever it's called. THEN I fixed a compile
error, AND THEN I fixed a compile warning, AND NOW I'm commiting. AND THEN
the storm released its fury upon the soil
...they should have known because he told them so...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 02 Aug 2003 15:27:00 +0000 |
parents | ee0044f3e377 |
children | 8ba58b296cc1 |
files | src/gtknotify.c src/protocols/irc/msgs.c src/protocols/jabber/jabber.c |
diffstat | 3 files changed, 4 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtknotify.c Sat Aug 02 09:02:22 2003 +0000 +++ b/src/gtknotify.c Sat Aug 02 15:27:00 2003 +0000 @@ -48,7 +48,7 @@ static void message_response_cb(GtkDialog *dialog, gint id, GtkWidget *widget) { - gaim_notify_close(GAIM_NOTIFY_MESSAGE, data); + gaim_notify_close(GAIM_NOTIFY_MESSAGE, widget); } static void
--- a/src/protocols/irc/msgs.c Sat Aug 02 09:02:22 2003 +0000 +++ b/src/protocols/irc/msgs.c Sat Aug 02 15:27:00 2003 +0000 @@ -171,7 +171,6 @@ GaimConnection *gc; GString *info; char *str; - int idle_days, idle_hours, idle_minutes, idle_seconds; if (!irc->whois.nick) { gaim_debug(GAIM_DEBUG_WARNING, "irc", "Unexpected End of WHOIS for %s\n", args[1]); @@ -206,15 +205,9 @@ g_free(irc->whois.channels); } if (irc->whois.idle) { - idle_days=irc->whois.idle / 86400; - idle_hours=(irc->whois.idle % 86400) / 3600; - idle_minutes=(irc->whois.idle % 3600) / 60; - idle_seconds=irc->whois.idle % 60; - g_string_append_printf(info, ngettext( - "<b>Idle for:</b> %d day, %02d:%02d:%02d<br>", - "<b>Idle for:</b> %d days, %02d:%02d:%02d<br>", - idle_days), - idle_days, idle_hours, idle_minutes, idle_seconds); + gchar *timex = sec_to_text(irc->whois.idle); + g_string_append_printf(info, _("<b>Idle for:</b> %s<br>"), timex); + g_free(timex); g_string_append_printf(info, "<b>%s:</b> %s", _("Online since"), ctime(&irc->whois.signon)); } if (!strcmp(irc->whois.nick, "Paco-Paco")) {
--- a/src/protocols/jabber/jabber.c Sat Aug 02 09:02:22 2003 +0000 +++ b/src/protocols/jabber/jabber.c Sat Aug 02 15:27:00 2003 +0000 @@ -3885,26 +3885,6 @@ } /* - * Find the tag name for a label - * - * Returns NULL on not found - */ -static char *tag_for_label(const char *label) -{ - struct vcard_template *vc_tp = vcard_template_data; - char *p = NULL; - - for(vc_tp = vcard_template_data; vc_tp->label != NULL; ++vc_tp) { - if(strcmp(label, vc_tp->label) == 0) { - p = vc_tp->tag; - break; - } - } - - return(p); -} - -/* * Send vCard info to Jabber server */ static void jabber_set_info(GaimConnection *gc, const char *info)