[project @ 2003-12-21 22:05:05 by jmb]

Clean up version string related mess.

svn path=/import/netsurf/; revision=438
This commit is contained in:
John Mark Bell 2003-12-21 22:05:05 +00:00
parent d6f9f025f2
commit 96bbdbc7ab
3 changed files with 2 additions and 38 deletions

View File

@ -65,8 +65,6 @@ static void set_icon_string_i(wimp_w w, wimp_i i, int num);
void ro_gui_dialog_init(void)
{
char *ver;
dialog_info = ro_gui_dialog_create("info");
/* fill in about box version info */
set_icon_string(dialog_info, 4, netsurf_version);
@ -232,7 +230,7 @@ void ro_gui_dialog_click_config_br(wimp_pointer *pointer)
break;
case ICON_CONFIG_BR_EXPLAIN:
bw = create_browser_window(browser_TITLE | browser_TOOLBAR |
browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 320, 256);
browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 320, 256, NULL);
gui_window_show(bw->window);
browser_window_open_location(bw, GESTURES_URL);
break;
@ -295,7 +293,7 @@ void ro_gui_dialog_click_config_th(wimp_pointer *pointer)
break;
case ICON_CONFIG_TH_GET:
bw = create_browser_window(browser_TITLE | browser_TOOLBAR |
browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 480, 320);
browser_SCROLL_X_ALWAYS | browser_SCROLL_Y_ALWAYS, 480, 320, NULL);
gui_window_show(bw->window);
browser_window_open_location(bw, THEMES_URL);
break;

View File

@ -292,36 +292,3 @@ bool is_dir(const char *path)
return S_ISDIR(s.st_mode) ? true : false;
}
/**
* Fills in the version string.
* The release version is defined in the Messages file.
*/
char *populate_version(void) {
const char *version = "%s (%s %s %s)"; /**< version string prototype */
char *p;
char *day;
char *mon;
char *year;
char *temp = xcalloc(12, sizeof(char));
char *ret = xcalloc(30, sizeof(char));
sprintf(temp, "%s", __DATE__);
p = strchr(temp, ' ');
*p = 0;
mon = strdup(temp);
if (strchr(p+1, ' ') == p+1)
day = p+2;
else
day = p+1;
p = strchr(day, ' ');
*p = 0;
year = p+1;
sprintf(ret, version, messages_get("Version:CVS Test Build"), day, mon, year);
xfree(temp);
return ret;
}

View File

@ -27,6 +27,5 @@ char *squash_tolat1(xmlChar *s);
char *url_join(const char* new, const char* base);
char *get_host_from_url(char* url);
bool is_dir(const char *path);
char * populate_version(void);
#endif