mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
[project @ 2003-12-19 17:11:07 by bursa]
Add netsurf_version string. svn path=/import/netsurf/; revision=435
This commit is contained in:
parent
07ddbc00e9
commit
4c80a24364
@ -11,6 +11,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
extern bool netsurf_quit;
|
||||
extern const char * const netsurf_version;
|
||||
|
||||
#endif
|
||||
|
||||
|
2
desktop/version.c
Normal file
2
desktop/version.c
Normal file
@ -0,0 +1,2 @@
|
||||
const char * const netsurf_version = "Development Build";
|
||||
|
3
makefile
3
makefile
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user