# HG changeset patch # User SHiNE CsyFeK # Date 1224687788 0 # Node ID 4edf366822362d5ae043bbc52eb9edc8b8b900a3 # Parent 119d85c40d751ef50b3a047c6340367bad8201dd 2008.10.07 - lonicerae * Added some defensive code for 'action' series functions of qq.c 2008.10.07 - lonicerae * Update 'version display' * Merge lonicerae and ccpaging into trunk diff -r 119d85c40d75 -r 4edf36682236 libpurple/protocols/qq/ChangeLog --- a/libpurple/protocols/qq/ChangeLog Wed Oct 22 15:00:47 2008 +0000 +++ b/libpurple/protocols/qq/ChangeLog Wed Oct 22 15:03:08 2008 +0000 @@ -1,3 +1,9 @@ +2008.10.07 - lonicerae + * Update 'version display' + +2008.10.07 - lonicerae + * Added some defensive code for 'action' series functions of qq.c + 2008.10.07 - ccpaging * Update buddy icon diff -r 119d85c40d75 -r 4edf36682236 libpurple/protocols/qq/Makefile.am --- a/libpurple/protocols/qq/Makefile.am Wed Oct 22 15:00:47 2008 +0000 +++ b/libpurple/protocols/qq/Makefile.am Wed Oct 22 15:03:08 2008 +0000 @@ -59,6 +59,11 @@ libqq_la_LDFLAGS = -module -avoid-version +CURRENT_REVISION=$(shell \ + awk 'BEGIN {"grep node .hg_archival.txt" | getline rev; \ + rev=substr(rev,7,6); \ + print rev}') + if STATIC_QQ st = -DPURPLE_STATIC_PRPL @@ -80,4 +85,5 @@ -I$(top_builddir)/libpurple \ -DQQ_BUDDY_ICON_DIR=\"$(datadir)/pixmaps/purple/buddy_icons/qq\" \ $(DEBUG_CFLAGS) \ - $(GLIB_CFLAGS) + $(GLIB_CFLAGS) \ + -DOPENQ_VERSION=\"$(CURRENT_REVISION)\" diff -r 119d85c40d75 -r 4edf36682236 libpurple/protocols/qq/qq.c --- a/libpurple/protocols/qq/qq.c Wed Oct 22 15:00:47 2008 +0000 +++ b/libpurple/protocols/qq/qq.c Wed Oct 22 15:03:08 2008 +0000 @@ -58,7 +58,10 @@ #define OPENQ_AUTHOR "Puzzlebird" #define OPENQ_WEBSITE "http://openq.sourceforge.net" + +#ifndef OPENQ_VERSION #define OPENQ_VERSION DISPLAY_VERSION +#endif static GList *server_list_build(gchar select) { @@ -701,7 +704,7 @@ g_string_append(info, _("Feel free to join us! :)")); g_string_append(info, ""); - title = g_strdup_printf(_("About OpenQ %s"), OPENQ_VERSION); + title = g_strdup_printf(_("About OpenQ r%s"), OPENQ_VERSION); purple_notify_formatted(gc, NULL, title, NULL, info->str, NULL, NULL); g_free(title);