Amiga window data structures
by Michael Drake
I have been looking at stopping the Amiga front end from #including
desktop/browser_private.h, like I did for the Windows front end earlier
this week.
The big problem with the Amiga code at the moment is that the tabs
implementation seems to depend on being able to dereference struct
browser_window (bw), to get to the struct gui_window (gw).
So, for example, to set the Amiga front end's scroll offset for the
window, it starts with a struct gui_window_2 (gw2), which I assume is the
main window containing all the tabs, then it goes to the bw (representing
current tab?), then the gw:
gw2->bw->gw->scroll_y
The gui management of tabs should not depend on core data structures.
I suggest that the gw2 be changed to have a pointer to a gw representing
the current tab, and add a pointer to bw entry in the gw. So to get the
scroll_y it would be:
gw2->gw->scroll_y
And to use the core browser_window_* functions, you'd be passing the bw
from:
gw2->gw->bw
Does that seem doable Chris?
--
Michael Drake (tlsa) http://www.netsurf-browser.org/
9 years
Developer weekend and AGM
by Daniel Silverstone
Hi all,
We're intending to have a developer weekend in Manchester later this year
in order to get some more headway into some of the meatier problems.
We'll also roll-up the AGM into that meeting, just to make our lives easier.
Therefore, if you are thinking of attending the dev weekend, be aware we'll be
AGMing too. And if you just want to attend the AGM, please still fill out the
doodle, but indicate AGM-only in your name field.
So if you're thinking of attending either, please fill out the below. We have
limited accomodation at developer abodes, but there's plenty of hotels etc.
Codethink (my employer) has graciously allowed us to have one of the meeting
rooms here which has a projector and whiteboards, and we have guest internets,
plenty of tea and coffee and biscuits (though we may have to acquire our own
milk)
Please use this link to fill out the poll: http://doodle.com/h9ka9itta8ycrb9f
Thanks,
Daniel.
--
Daniel Silverstone http://www.netsurf-browser.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69
9 years
New User - Hello to all - some Ideas concerning Netsurf for arm
by Christian Lepper
Hello,
my Name is Christian, Im from Germany/Munich.
i work on a embedded Plattform with Freescales iMX28 (arm).
Since some days i tried to get NetSurf working on this Plattform.
And with some small changes now i have first nsfb bin which is runable ;-)
Im not firm with your bugtracking systems...
so i send my suggestions here in hope to find the right person who can
handle this Info,
or just stick my nose to the right place for it ;-)
We use framebuffer with SDL-1.2
Found Hints/Probs/Bugs in Make Process:
1. in $(TARGET_WORKSPACE)/netsurf/Makefile Line 140
Change
STRIP=strip
To
STRIP?=strip
Makes it possible to use the strip from my (external) Toolchain;
else it always uses the HOST strip which cant handle my arm compiled bin.
2. My Ubuntu shell has severe Probs handling the defined funcs from env.sh
I had to change all names from e.g. ns-package-install to ns_package_install
I didnt figure out why my machine has a Problem with the '-' in the names..
But changing it to '_' solved the Probs.
3. Compiling Error cause of double typedef'd : typedef struct fbtk_widget_s
fbtk_widget_t;
In work/netsurf/framebuffer/fbtk.h and work/netsurf/framebuffer/gui.h
I changed to this:
./framebuffer/gui.h:23:
//typedef struct fbtk_widget_s fbtk_widget_t;
./framebuffer/gui.h:73:
//void gui_resize(fbtk_widget_t *root, int width, int height);
void gui_resize(struct fbtk_widget_s *root, int width, int height);
than it compiled.
4. Compile warning/error:
After a make clean, first run of make gives this error:
COMPILE: framebuffer/font_internal.c
framebuffer/font_internal.c:33:26: warning: font-ns-sans.h: No such file or
directory
framebuffer/font_internal.c: In function 'fb_get_glyph':
framebuffer/font_internal.c:263: error: 'fb_bold_italic_section_table'
undeclared (first use in this function)
framebuffer/font_internal.c:263: error: (Each undeclared identifier is
reported only once
.....
But in second try of make this file seems to be installed... maybe some
changes in make order/sequence?
And maybe this will disappear in the moment i get freetype compiled and
linked to Netsurf.
Suggestions:
- Why not use "SDL-ttf" which handles freetype fonts in a good and portable
manner?
Questions:
- Somebody got libmozjs running with NetSurf under arm?
- running nsfb gives a browser window but no website appears just left
bottom said "BadEncoding".
Webserver gets a "http OK" so i think the data is delivered to the
browser.
Doing something wrong?
Hope i could help a bit... or just give some confusing Info's.
Thanks in advance
Chris
9 years, 1 month
Embeddable web view in apps
by Richard Gale
It seems like netsurf is a great candidate for providing HTML based UI in apps. Is this something anyone has tried from a technical point of view?
Does the current licensing support this for paid for apps or is netsurf licensable for such purposes?
Thanks,Richard.
9 years, 1 month
[PATCH] gtk: Fix typo, Maintinance -> Maintenance.
by Anthony J. Bentley
---
gtk/res/options.gtk2.ui | 4 ++--
gtk/res/options.gtk3.ui | 4 ++--
resources/FatMessages | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gtk/res/options.gtk2.ui b/gtk/res/options.gtk2.ui
index 9c2f5c6..ade2b83 100644
--- a/gtk/res/options.gtk2.ui
+++ b/gtk/res/options.gtk2.ui
@@ -1759,8 +1759,8 @@
<placeholder/>
</child>
<child>
- <object class="GtkButton" id="buttonCacheMaintinance">
- <property name="label" translatable="yes">preferencesCacheMaintinance</property>
+ <object class="GtkButton" id="buttonCacheMaintenance">
+ <property name="label" translatable="yes">preferencesCacheMaintenance</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
diff --git a/gtk/res/options.gtk3.ui b/gtk/res/options.gtk3.ui
index ac43583..70e7809 100644
--- a/gtk/res/options.gtk3.ui
+++ b/gtk/res/options.gtk3.ui
@@ -1899,8 +1899,8 @@
<placeholder/>
</child>
<child>
- <object class="GtkButton" id="buttonCacheMaintinance">
- <property name="label" translatable="yes">preferencesCacheMaintinance</property>
+ <object class="GtkButton" id="buttonCacheMaintenance">
+ <property name="label" translatable="yes">preferencesCacheMaintenance</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
diff --git a/resources/FatMessages b/resources/FatMessages
index 9eb7426..35d8663 100644
--- a/resources/FatMessages
+++ b/resources/FatMessages
@@ -2389,7 +2389,7 @@ en.gtk.preferencesCache:<b>Cache</b>
en.gtk.preferencesCacheMemory:Memory cache size
en.gtk.preferencesCacheDisc:Disc cache size
en.gtk.preferencesCacheExpire:Expire cache entries after
-en.gtk.preferencesCacheMaintinance:Maintinance
+en.gtk.preferencesCacheMaintenance:Maintenance
en.gtk.preferencesCacheDays:days
en.gtk.preferencesNetworkTabtitle:Network
--
2.1.2
9 years, 1 month
[PATCH] Fix relative move commands following a path close.
by Paul Mecklenburg
---
src/svgtiny.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/svgtiny.c b/src/svgtiny.c
index 5be977f..0757e5f 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -407,6 +407,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
float last_x = 0, last_y = 0;
float last_cubic_x = 0, last_cubic_y = 0;
float last_quad_x = 0, last_quad_y = 0;
+ float subpath_first_x = 0, subpath_first_y = 0;
svgtiny_setup_state_local(&state);
@@ -472,6 +473,10 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
= x;
p[i++] = last_cubic_y = last_quad_y = last_y
= y;
+ if (*command == 'M' || *command == 'm') {
+ subpath_first_x = x;
+ subpath_first_y = y;
+ }
s += n;
plot_command = svgtiny_PATH_LINE;
} while (sscanf(s, "%f %f %n", &x, &y, &n) == 2);
@@ -481,6 +486,10 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
/*LOG(("closepath"));*/
p[i++] = svgtiny_PATH_CLOSE;
s += n;
+ last_cubic_x = last_quad_x = last_x
+ = subpath_first_x;
+ last_cubic_y = last_quad_y = last_y
+ = subpath_first_y;
/* horizontal lineto (H, h) (1 argument) */
} else if (sscanf(s, " %1[Hh] %f %n", command, &x, &n) == 2) {
--
1.9.1
9 years, 1 month
Need Guidance to start contributing to netsurf
by Naman Bhayani
Hello sir,
I am Naman,i study EEE,2nd year at BITS Pilani.
I am relatively new to opensource contribution.I have started contributing
since a few days and i am actively contributing BinPy organisation,and it
participated in gsoc 2014.
My Github Profile: https://github.com/Rapternmn
My skills:C,C++,Python,Basic web development.
I am willing to learn a lot more things.
Please tell me what do i need to know to start contributing to netsurf and
how should i begin contributing?
Thank you very much
9 years, 2 months
[PATCH] Fix relative move commands following a path close.
by Paul Mecklenburg
---
src/svgtiny.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/svgtiny.c b/src/svgtiny.c
index 5be977f..df49338 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -407,6 +407,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
float last_x = 0, last_y = 0;
float last_cubic_x = 0, last_cubic_y = 0;
float last_quad_x = 0, last_quad_y = 0;
+ float subpath_first_x = 0, subpath_first_y = 0;
svgtiny_setup_state_local(&state);
@@ -468,6 +469,10 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
x += last_x;
y += last_y;
}
+ if (plot_command == svgtiny_PATH_MOVE) {
+ subpath_first_x = x;
+ subpath_first_y = y;
+ }
p[i++] = last_cubic_x = last_quad_x = last_x
= x;
p[i++] = last_cubic_y = last_quad_y = last_y
@@ -481,6 +486,10 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
/*LOG(("closepath"));*/
p[i++] = svgtiny_PATH_CLOSE;
s += n;
+ last_cubic_x = last_quad_x = last_x
+ = subpath_first_x;
+ last_cubic_y = last_quad_y = last_y
+ = subpath_first_y;
/* horizontal lineto (H, h) (1 argument) */
} else if (sscanf(s, " %1[Hh] %f %n", command, &x, &n) == 2) {
--
1.9.1
9 years, 2 months
Server downtime
by Rob Kendrick
Hi,
Sadly one of our servers suffered a bit of an oopsy yesterday evening at
around 1745 (see URL below), which required us to go to one data centre
to pick up a spare server and then go to another to install it. It
should all be working now (as of around 2130). For NetSurf, the machine
handled mailing lists, website, and git.
Please let me know if there are any outstanding problems.
http://www.rjek.com/octopus-heatsink.jpeg <-- unleaded solder holding
down heat sink on the south bridge failed, probably due to a combination
of age, stress, and thermal cycling.
B.
9 years, 2 months