1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Added check for latest release

This commit is contained in:
James Booth 2012-10-23 23:30:01 +01:00
parent abec6ae07c
commit f8a4d21ab3
2 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,7 @@ profanity_SOURCES = src/command.c src/contact.c src/history.c src/jabber.h \
src/contact_list.c src/input_win.c src/log.h src/profanity.c \
src/prof_history.c src/ui.h src/common.h src/ contact_list.h src/jabber.c \
src/main.c src/profanity.h src/prof_history.h src/chat_log.c \
src/chat_log.h src/tinyurl.c src/tinyurl.h
src/chat_log.h src/tinyurl.c src/tinyurl.h src/release.c src/release.h
TESTS = tests/testsuite
check_PROGRAMS = tests/testsuite

View File

@ -42,6 +42,7 @@
#include "contact_list.h"
#include "log.h"
#include "preferences.h"
#include "release.h"
#include "ui.h"
#define CONS_WIN_TITLE "_cons"
@ -838,6 +839,13 @@ cons_about(void)
wprintw(_cons_win, "Type '/help' to show complete help.\n");
_win_show_time(_cons_win);
wprintw(_cons_win, "\n");
char *latest_release = release_get_latest();
_win_show_time(_cons_win);
wprintw(_cons_win, "RELEASE: %s", latest_release);
free(latest_release);
_win_show_time(_cons_win);
wprintw(_cons_win, "\n");
prefresh(_cons_win, 0, 0, 1, 0, rows-3, cols-1);