[project @ 2003-12-19 17:11:07 by bursa]

Add netsurf_version string.

svn path=/import/netsurf/; revision=435
This commit is contained in:
James Bursa 2003-12-19 17:11:07 +00:00
parent 07ddbc00e9
commit 4c80a24364
5 changed files with 9 additions and 5 deletions

View File

@ -11,6 +11,7 @@
#include <stdbool.h>
extern bool netsurf_quit;
extern const char * const netsurf_version;
#endif

2
desktop/version.c Normal file
View File

@ -0,0 +1,2 @@
const char * const netsurf_version = "Development Build";

View File

@ -17,7 +17,8 @@ OBJECTS = $(OBJECTS_COMMON) \
menus.o mouseactions.o \
options.o textselection.o theme.o window.o \
draw.o gif.o jpeg.o plugin.o png.o sprite.o \
about.o filetype.o font.o uri.o history.o
about.o filetype.o font.o uri.o history.o \
version.o
OBJECTS_DEBUG = $(OBJECTS_COMMON) \
netsurfd.o \
optionsd.o filetyped.o fontd.o

View File

@ -16,6 +16,7 @@
#include <stdio.h>
#include <unixlib/local.h> /* for __unixify */
#include "netsurf/desktop/netsurf.h"
#include "netsurf/riscos/about.h"
#include "netsurf/utils/log.h"
#include "netsurf/utils/messages.h"
@ -88,7 +89,7 @@ void about_create(void) {
/* Page header */
buf = xcalloc(strlen(pabouthdr) + 20, sizeof(char));
sprintf(buf, pabouthdr, populate_version());
sprintf(buf, pabouthdr, netsurf_version);
abt->header = xstrdup(buf);
xfree(buf);

View File

@ -15,6 +15,7 @@
#include "oslib/osgbpb.h"
#include "oslib/osspriteop.h"
#include "oslib/wimp.h"
#include "netsurf/desktop/netsurf.h"
#include "netsurf/riscos/gui.h"
#include "netsurf/riscos/options.h"
#include "netsurf/utils/log.h"
@ -68,9 +69,7 @@ void ro_gui_dialog_init(void)
dialog_info = ro_gui_dialog_create("info");
/* fill in about box version info */
ver = populate_version();
set_icon_string(dialog_info, 4, ver);
xfree(ver);
set_icon_string(dialog_info, 4, netsurf_version);
dialog_saveas = ro_gui_dialog_create("saveas");
dialog_config = ro_gui_dialog_create("config");