r9669 jmb - /trunk/libparserutils/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 01:04:26 2009
New Revision: 9669
URL: http://source.netsurf-browser.org?rev=9669&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/libparserutils/Makefile
Modified: trunk/libparserutils/Makefile
URL: http://source.netsurf-browser.org/trunk/libparserutils/Makefile?rev=9669&...
==============================================================================
--- trunk/libparserutils/Makefile (original)
+++ trunk/libparserutils/Makefile Fri Nov 6 01:04:26 2009
@@ -10,11 +10,12 @@
TESTRUNNER := $(PERL) build/testtools/testrunner.pl
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra -Werror
+# BeOS/Haiku standard library headers create warnings.
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
13 years, 4 months
r9668 jmb - /trunk/libnspng/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 01:03:44 2009
New Revision: 9668
URL: http://source.netsurf-browser.org?rev=9668&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/libnspng/Makefile
Modified: trunk/libnspng/Makefile
URL: http://source.netsurf-browser.org/trunk/libnspng/Makefile?rev=9668&r1=966...
==============================================================================
--- trunk/libnspng/Makefile (original)
+++ trunk/libnspng/Makefile Fri Nov 6 01:03:44 2009
@@ -8,11 +8,12 @@
include build/makefiles/Makefile.tools
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wnested-externs -Werror -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra
+ -Wmissing-declarations -Wnested-externs -pedantic
+# BeOS/Haiku standard library headers create warnings.
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
13 years, 4 months
r9667 jmb - /trunk/libnsgif/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 01:02:53 2009
New Revision: 9667
URL: http://source.netsurf-browser.org?rev=9667&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/libnsgif/Makefile
Modified: trunk/libnsgif/Makefile
URL: http://source.netsurf-browser.org/trunk/libnsgif/Makefile?rev=9667&r1=966...
==============================================================================
--- trunk/libnsgif/Makefile (original)
+++ trunk/libnsgif/Makefile Fri Nov 6 01:02:53 2009
@@ -8,11 +8,12 @@
include build/makefiles/Makefile.tools
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wnested-externs -Werror -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra
+ -Wmissing-declarations -Wnested-externs -pedantic
+# BeOS/Haiku standard library headers create warnings
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
13 years, 4 months
r9666 jmb - /trunk/libnsbmp/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 01:01:57 2009
New Revision: 9666
URL: http://source.netsurf-browser.org?rev=9666&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/libnsbmp/Makefile
Modified: trunk/libnsbmp/Makefile
URL: http://source.netsurf-browser.org/trunk/libnsbmp/Makefile?rev=9666&r1=966...
==============================================================================
--- trunk/libnsbmp/Makefile (original)
+++ trunk/libnsbmp/Makefile Fri Nov 6 01:01:57 2009
@@ -8,11 +8,12 @@
include build/makefiles/Makefile.tools
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra -Werror
+# BeOS/Haiku standard library headers create warnings
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
13 years, 4 months
r9665 jmb - /trunk/libcss/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 01:01:06 2009
New Revision: 9665
URL: http://source.netsurf-browser.org?rev=9665&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/libcss/Makefile
Modified: trunk/libcss/Makefile
URL: http://source.netsurf-browser.org/trunk/libcss/Makefile?rev=9665&r1=9664&...
==============================================================================
--- trunk/libcss/Makefile (original)
+++ trunk/libcss/Makefile Fri Nov 6 01:01:06 2009
@@ -10,11 +10,12 @@
TESTRUNNER := $(PERL) build/testtools/testrunner.pl
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
- -Wmissing-declarations -Wnested-externs -Werror -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra
+ -Wmissing-declarations -Wnested-externs -pedantic
+# BeOS/Haiku standard library headers create warnings.
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
13 years, 4 months
r9664 jmb - /trunk/hubbub/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 00:59:36 2009
New Revision: 9664
URL: http://source.netsurf-browser.org?rev=9664&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Additionally, conditionalise our -Werror usage on whether we're building for
BeOS/Haiku. On these platforms, the standard library headers result in warnings.
GCC 2 is quite happy to build this code on other platforms, so shouldn't be
the trigger for dropping -Werror (even if BeOS is the only target where GCC2 is
likely to be used).
Modified:
trunk/hubbub/Makefile
Modified: trunk/hubbub/Makefile
URL: http://source.netsurf-browser.org/trunk/hubbub/Makefile?rev=9664&r1=9663&...
==============================================================================
--- trunk/hubbub/Makefile (original)
+++ trunk/hubbub/Makefile Fri Nov 6 00:59:36 2009
@@ -10,11 +10,12 @@
TESTRUNNER := $(PERL) build/testtools/testrunner.pl
# Toolchain flags
-WARNFLAGS := -Wall -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -pedantic
-ifneq ($(GCCVER),2)
- WARNFLAGS := $(WARNFLAGS) -Wextra -Werror
+# BeOS/Haiku have standard library errors that issue warnings.
+ifneq ($(TARGET),beos)
+ WARNFLAGS := $(WARNFLAGS) -Werror
endif
CFLAGS := -D_BSD_SOURCE -I$(CURDIR)/include/ \
-I$(CURDIR)/src $(WARNFLAGS) $(CFLAGS)
13 years, 4 months
r9663 jmb - /trunk/dom/Makefile
by netsurf@semichrome.net
Author: jmb
Date: Fri Nov 6 00:40:36 2009
New Revision: 9663
URL: http://source.netsurf-browser.org?rev=9663&view=rev
Log:
-Wextra is only understood by GCC 3.4.6 or later.
It is a more descriptive synonym for -W.
Use -W instead which is understood by all common versions of GCC
(i.e. GCC 2.95 supports it, which is the oldest GCC version we have to support)
Modified:
trunk/dom/Makefile
Modified: trunk/dom/Makefile
URL: http://source.netsurf-browser.org/trunk/dom/Makefile?rev=9663&r1=9662&r2=...
==============================================================================
--- trunk/dom/Makefile (original)
+++ trunk/dom/Makefile Fri Nov 6 00:40:36 2009
@@ -10,7 +10,7 @@
TESTRUNNER := $(PERL) build/testtools/testrunner.pl
# Toolchain flags
-WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
+WARNFLAGS := -Wall -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Werror -pedantic
CFLAGS := -std=c99 -D_BSD_SOURCE -I$(CURDIR)/include/ \
13 years, 4 months
r9661 chris_y - /trunk/netsurf/amiga/gui.c
by netsurf@semichrome.net
Author: chris_y
Date: Wed Nov 4 02:06:52 2009
New Revision: 9661
URL: http://source.netsurf-browser.org?rev=9661&view=rev
Log:
Added F5 for reload, purely because I'm getting fed up of people asking for it.
Modified:
trunk/netsurf/amiga/gui.c
Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=9661&r1=9...
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Wed Nov 4 02:06:52 2009
@@ -820,6 +820,10 @@
}
else nskey = KEY_TAB;
break;
+ case RAWKEY_F5:
+ // don't translate
+ nskey = keycode;
+ break;
default:
if((chars = MapRawKey(ie,buffer,20,NULL)) > 0)
{
@@ -1348,6 +1352,11 @@
gui_window_set_scroll(gwin->bw->window,
gwin->bw->current_content->width,
gwin->bw->current_content->height);
+ break;
+
+ case RAWKEY_F5: // reload
+ if(browser_window_reload_available(gwin->bw))
+ browser_window_reload(gwin->bw,false);
break;
}
}
13 years, 4 months
r9660 chris_y - in /trunk/netsurf/amiga: gui.c menu.c
by netsurf@semichrome.net
Author: chris_y
Date: Tue Nov 3 17:17:57 2009
New Revision: 9660
URL: http://source.netsurf-browser.org?rev=9660&view=rev
Log:
PageUp/Down, Home/End etc page scrolling now working.
Most menu shortcuts now available even when the pointer is hovering over the browser
window (menu disabled mode)
RAmiga-R (reload page) and RAmiga-U (activate URL bar) available from keyboard
shortcuts but not from the menu.
This fixes unsat bug #81
Modified:
trunk/netsurf/amiga/gui.c
trunk/netsurf/amiga/menu.c
Modified: trunk/netsurf/amiga/gui.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/gui.c?rev=9660&r1=9...
==============================================================================
--- trunk/netsurf/amiga/gui.c (original)
+++ trunk/netsurf/amiga/gui.c Tue Nov 3 17:17:57 2009
@@ -1214,6 +1214,32 @@
* key presses. Context menus need to be changed to use MENUVERIFY not RMBTRAP */
switch(nskey)
{
+ case 'n':
+ if(option_kiosk_mode == false)
+ browser_window_create(gwin->bw->current_content->url,
+ gwin->bw, 0, true, false);
+ break;
+
+ case 't':
+ if(option_kiosk_mode == false)
+ browser_window_create(gwin->bw->current_content->url,
+ gwin->bw, 0, true, true);
+ break;
+
+ case 'k':
+ if(option_kiosk_mode == false)
+ browser_window_destroy(gwin->bw);
+ break;
+
+ case 'p':
+ ami_print_ui(gwin->bw->current_content);
+ break;
+
+ case 'q':
+ if(option_kiosk_mode == false)
+ ami_quit_netsurf();
+ break;
+
case 'a':
browser_window_key_press(gwin->bw, KEY_SELECT_ALL);
break;
@@ -1223,6 +1249,32 @@
browser_window_key_press(gwin->bw, KEY_CLEAR_SELECTION);
case 'v':
browser_window_key_press(gwin->bw, KEY_PASTE);
+ break;
+
+ case 'z':
+ browser_window_key_press(gwin->bw, KEY_CLEAR_SELECTION);
+ break;
+
+ case 'f':
+ ami_search_open(gwin->bw->window);
+ break;
+
+ case 'h':
+ if(option_kiosk_mode == false)
+ ami_open_tree(hotlist,AMI_TREE_HOTLIST);
+ break;
+
+/* The following aren't available from the menu at the moment */
+
+ case 'r': // reload
+ if(browser_window_reload_available(gwin->bw))
+ browser_window_reload(gwin->bw,false);
+ break;
+
+ case 'u': // open url
+ if(option_kiosk_mode == false)
+ ActivateGadget(gwin->gadgets[GID_URL],
+ gwin->win, NULL);
break;
}
}
@@ -1230,6 +1282,10 @@
{
if(!browser_window_key_press(gwin->bw, nskey))
{
+ GetAttr(SPACE_AreaBox,
+ gwin->gadgets[GID_BROWSER],
+ (ULONG *)&bbox);
+
gui_window_get_scroll(gwin->bw->window,
&gwin->bw->window->scrollx,
&gwin->bw->window->scrolly);
@@ -1258,6 +1314,40 @@
gui_window_set_scroll(gwin->bw->window,
gwin->bw->window->scrollx + 5,
gwin->bw->window->scrolly);
+ break;
+
+ case KEY_PAGE_UP:
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->window->scrollx,
+ gwin->bw->window->scrolly - bbox->Height);
+ break;
+
+ case KEY_PAGE_DOWN:
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->window->scrollx,
+ gwin->bw->window->scrolly + bbox->Height);
+ break;
+
+ case KEY_LINE_START: // page left
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->window->scrollx - bbox->Width,
+ gwin->bw->window->scrolly);
+ break;
+
+ case KEY_LINE_END: // page right
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->window->scrollx + bbox->Width,
+ gwin->bw->window->scrolly);
+ break;
+
+ case KEY_TEXT_START: // home
+ gui_window_set_scroll(gwin->bw->window, 0, 0);
+ break;
+
+ case KEY_TEXT_END: // end
+ gui_window_set_scroll(gwin->bw->window,
+ gwin->bw->current_content->width,
+ gwin->bw->current_content->height);
break;
}
}
Modified: trunk/netsurf/amiga/menu.c
URL: http://source.netsurf-browser.org/trunk/netsurf/amiga/menu.c?rev=9660&r1=...
==============================================================================
--- trunk/netsurf/amiga/menu.c (original)
+++ trunk/netsurf/amiga/menu.c Tue Nov 3 17:17:57 2009
@@ -615,7 +615,7 @@
if(gwin->bw->current_content->type <= CONTENT_CSS)
{
browser_window_key_press(gwin->bw, KEY_COPY_SELECTION);
- browser_window_key_press(gwin->bw, KEY_ESCAPE);
+ browser_window_key_press(gwin->bw, KEY_CLEAR_SELECTION);
}
else if(gwin->bw->current_content->bitmap)
{
13 years, 4 months