Mercurial > pidgin.yaz
comparison plugins/relnot.c @ 7546:d60db7634542
[gaim-migrate @ 8160]
false alarm, win32 isn't as dumb as it looks
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 17 Nov 2003 22:55:41 +0000 |
parents | c81c18d63a09 |
children | c3fb280f5ad2 |
comparison
equal
deleted
inserted
replaced
7545:c81c18d63a09 | 7546:d60db7634542 |
---|---|
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 const char *build; | 89 char *url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), |
90 char *url; | |
91 #ifdef _WIN32 | 90 #ifdef _WIN32 |
92 build = "gaim-win32"; | 91 "gaim-win32" |
93 #else | 92 #else |
94 build = "gaim"; | 93 "gaim" |
95 #endif | 94 #endif |
96 url = g_strdup_printf("http://gaim.sourceforge.net/version.php?version=%s&build=%s", gaim_core_get_version(), build); | 95 ); |
97 gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL); | 96 gaim_url_fetch(url, TRUE, NULL, FALSE, version_fetch_cb, NULL); |
98 gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); | 97 gaim_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); |
99 g_free(url); | 98 g_free(url); |
100 } | 99 } |
101 } | 100 } |