Mercurial > pidgin.yaz
comparison plugins/relnot.c @ 7545:c81c18d63a09
[gaim-migrate @ 8159]
apparently mingwgcc can't handle my coolness
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 17 Nov 2003 22:50:47 +0000 |
parents | 6373f8060d90 |
children | d60db7634542 |
comparison
equal
deleted
inserted
replaced
7544:bf6bb674cbb7 | 7545:c81c18d63a09 |
---|---|
84 static void | 84 static void |
85 do_check(void) | 85 do_check(void) |
86 { | 86 { |
87 int last_check = gaim_prefs_get_int("/plugins/gtk/relnot/last_check"); | 87 int last_check = gaim_prefs_get_int("/plugins/gtk/relnot/last_check"); |
88 if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { | 88 if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { |
89 char *url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), | 89 const char *build; |
90 char *url; | |
90 #ifdef _WIN32 | 91 #ifdef _WIN32 |
91 "gaim-win32" | 92 build = "gaim-win32"; |
92 #else | 93 #else |
93 "gaim" | 94 build = "gaim"; |
94 #endif | 95 #endif |
95 ); | 96 url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), build); |
96 gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL); | 97 gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL); |
97 gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); | 98 gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); |
99 g_free(url); | |
98 } | 100 } |
99 } | 101 } |
100 | 102 |
101 static void | 103 static void |
102 signed_on_cb(GaimConnection *gc, void *data) { | 104 signed_on_cb(GaimConnection *gc, void *data) { |