Update project URL.

svn path=/trunk/netsurf/; revision=3073
This commit is contained in:
Michael Drake 2006-11-27 15:35:18 +00:00
parent 8e530e68ae
commit ba23e4b693
222 changed files with 561 additions and 561 deletions

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl -W
#
# This file is part of NetSurf, http://netsurf.sourceforge.net/
# This file is part of NetSurf, http://netsurf-browser.org/
# Licensed under the GNU General Public License,
# http://www.opensource.org/licenses/gpl-license
# Copyright 2003 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
@ -133,4 +133,4 @@ void bitmap_modified(struct bitmap *bitmap) {
*/
void bitmap_set_suspendable(struct bitmap *bitmap, void *private_word,
void (*invalidate)(struct bitmap *bitmap, void *private_word)) {
}
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
@ -931,7 +931,7 @@ void browser_window_reformat(struct browser_window *bw, int width, int height)
* \param all Scale all windows in the tree (ie work up aswell as down)
*/
void browser_window_set_scale(struct browser_window *bw, float scale, bool all)
void browser_window_set_scale(struct browser_window *bw, float scale, bool all)
{
while (bw->parent && all)
bw = bw->parent;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
@ -50,10 +50,10 @@ struct browser_window {
/** Window history structure. */
struct history *history;
/** Gesturer for this browser window */
struct _gesturer_state *gesturer;
/** Selection state */
struct selection *sel;
@ -116,13 +116,13 @@ struct browser_window {
/** Refresh interval (-1 if undefined) */
int refresh_interval;
/** Window dimensions */
int x0;
int y0;
int x1;
int y1;
/** Window characteristics */
enum {
BROWSER_WINDOW_NORMAL,
@ -130,33 +130,33 @@ struct browser_window {
BROWSER_WINDOW_FRAME,
BROWSER_WINDOW_FRAMESET,
} browser_window_type;
/** frameset characteristics */
int rows;
int cols;
/** frame dimensions */
struct frame_dimension frame_width;
struct frame_dimension frame_height;
int margin_width;
int margin_height;
/** frame name for targetting */
char *name;
/** frame characteristics */
bool no_resize;
frame_scrolling scrolling;
bool border;
colour border_colour;
/** iframe parent box */
struct box *box;
/** [cols * rows] children */
struct browser_window *children;
struct browser_window *parent;
/** [iframe_count] iframes */
int iframe_count;
struct browser_window *iframes;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>
@ -71,21 +71,21 @@ GestureRecogniser gesture_recogniser_create(void)
* \param gesture_str The gesture string to add
* \param gesture_tag The tag to return for this gesture
*/
void gesture_recogniser_add(GestureRecogniser recog,
void gesture_recogniser_add(GestureRecogniser recog,
const char* gesture_str, int gesture_tag)
{
InternalGesture g = malloc(sizeof(struct _internal_gesture));
InternalGesture g2,g3;
int i;
Gesturer gest = recog->gesture_users;
g->gesture_tag = gesture_tag;
g->gesture_len = strlen(gesture_str);
g->gesture = malloc(g->gesture_len);
for(i = 0; i < g->gesture_len; ++i)
g->gesture[i] = gesture_str[g->gesture_len - i - 1];
g2 = recog->gestures; g3 = NULL;
while( g2 && g->gesture_len < g2->gesture_len ) g3=g3, g2 = g2->next;
if( g3 == NULL ) {
@ -95,9 +95,9 @@ void gesture_recogniser_add(GestureRecogniser recog,
/* prev == something; we're inserting somewhere */
g3->next = g; g->next = g2;
}
if( recog->max_len < g->gesture_len ) recog->max_len = g->gesture_len;
while( gest != NULL ) {
gesturer_notify_recognition_change(gest);
gest = gest->next;
@ -132,7 +132,7 @@ void gesture_recogniser_destroy(GestureRecogniser recog)
* \param recog The recogniser.
* \param min_distance The minimum distance in pixels
*/
void gesture_recogniser_set_distance_threshold(GestureRecogniser recog,
void gesture_recogniser_set_distance_threshold(GestureRecogniser recog,
int min_distance)
{
recog->min_distance = min_distance * min_distance;
@ -144,7 +144,7 @@ void gesture_recogniser_set_distance_threshold(GestureRecogniser recog,
* \param recog The recogniser.
* \param max_nonmove The maximum number of non-movement adds.
*/
void gesture_recogniser_set_count_threshold(GestureRecogniser recog,
void gesture_recogniser_set_count_threshold(GestureRecogniser recog,
int max_nonmove)
{
recog->max_nonmove = max_nonmove;
@ -205,7 +205,7 @@ static void gesturer_notify_recognition_change(Gesturer gesturer)
{
char *new_gesture = calloc(gesturer->recogniser->max_len+1, 1);
int i;
for(i = 0; i < gesturer->elements; ++i)
for(i = 0; i < gesturer->elements; ++i)
new_gesture[i] = gesturer->gesture[i];
free(gesturer->gesture);
gesturer->gesture = new_gesture;
@ -260,14 +260,14 @@ static char gesturer_find_direction(Gesturer gesturer, int x, int y)
bool x_neg = dx < 0;
bool y_neg = dy < 0;
int i;
if( x_neg ) dx = -dx;
if( y_neg ) dy = -dy;
arc = atanf(dy/dx);
for( i = 0; i < 12; ++i ) {
if( directions[i].lower > arc || directions[i].upper <= arc )
continue; /* Not within this entry */
if( directions[i].x_neg != x_neg ||
if( directions[i].x_neg != x_neg ||
directions[i].y_neg != y_neg )
continue; /* Signs not matching */
return directions[i].direction;
@ -293,26 +293,26 @@ int gesturer_add_point(Gesturer gesturer, int x, int y)
{
int distance = ((gesturer->last_x - x) * (gesturer->last_x - x)) +
((gesturer->last_y - y) * (gesturer->last_y - y));
char last_direction = (gesturer->elements == 0) ? 0 :
char last_direction = (gesturer->elements == 0) ? 0 :
(gesturer->gesture[0]);
char this_direction = gesturer_find_direction(gesturer, x, y);
InternalGesture ig = gesturer->recogniser->gestures;
int ret = GESTURE_NONE;
if( distance < gesturer->recogniser->min_distance ) {
gesturer->bored_count++;
if( gesturer->elements &&
(gesturer->bored_count >=
if( gesturer->elements &&
(gesturer->bored_count >=
gesturer->recogniser->max_nonmove) ) {
LOG(("Bored now."));
gesturer_clear_points(gesturer);
}
if( gesturer->elements &&
gesturer->bored_count ==
if( gesturer->elements &&
gesturer->bored_count ==
(gesturer->recogniser->max_nonmove >> 1)) {
LOG(("Decided to look"));
while( ig && ig->gesture_len <= gesturer->elements ) {
if( strcmp(gesturer->gesture,
if( strcmp(gesturer->gesture,
ig->gesture) == 0 )
ret = ig->gesture_tag;
ig = ig->next;
@ -327,12 +327,12 @@ int gesturer_add_point(Gesturer gesturer, int x, int y)
if( this_direction == last_direction ) {
return GESTURE_NONE; /* Nothing */
}
/* Shunt the gesture one up */
if( gesturer->elements ) {
if( gesturer->elements == gesturer->nelements )
if( gesturer->elements == gesturer->nelements )
gesturer->elements--;
memmove(gesturer->gesture+1, gesturer->gesture,
memmove(gesturer->gesture+1, gesturer->gesture,
gesturer->elements);
}
gesturer->elements++;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>
@ -18,12 +18,12 @@ typedef struct _gesture_recogniser* GestureRecogniser;
typedef struct _gesturer_state* Gesturer;
GestureRecogniser gesture_recogniser_create(void);
void gesture_recogniser_add(GestureRecogniser recog,
void gesture_recogniser_add(GestureRecogniser recog,
const char* gesture_str, int gesture_tag);
void gesture_recogniser_destroy(GestureRecogniser recog);
void gesture_recogniser_set_distance_threshold(GestureRecogniser recog,
void gesture_recogniser_set_distance_threshold(GestureRecogniser recog,
int min_distance);
void gesture_recogniser_set_count_threshold(GestureRecogniser recog,
void gesture_recogniser_set_count_threshold(GestureRecogniser recog,
int max_nonmove);

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 James Bursa <bursa@users.sourceforge.net>
@ -169,7 +169,7 @@ struct history_entry *history_clone_entry(struct history *history,
free(new_entry);
return 0;
}
/* update references */
if (history->current == entry)
history->current = new_entry;
@ -291,7 +291,7 @@ void history_update(struct history *history, struct content *content)
history->current->page.title = strdup(content->title);
else
history->current->page.title = 0;
thumbnail_create(content, history->current->bitmap, 0);
}
@ -440,7 +440,7 @@ void history_layout(struct history *history)
time_t t = time(0);
struct tm *tp = localtime(&t);
bool shuffle = tp->tm_mon == 3 && tp->tm_mday == 1;
if (!history)
return;
@ -479,7 +479,7 @@ int history_layout_subtree(struct history *history,
if (history->width < x + WIDTH)
history->width = x + WIDTH;
if (!entry->forward) {
entry->x = x;
entry->y = y;
@ -556,7 +556,7 @@ bool history_redraw_entry(struct history *history,
struct history_entry *child;
colour c = entry == history->current ? 0x0000ff : 0x333333;
int tailsize = 5;
if (!plot.bitmap(entry->x, entry->y, WIDTH, HEIGHT,
entry->bitmap, 0xffffff))
return false;
@ -657,7 +657,7 @@ struct history_entry *history_find_position(struct history_entry *entry,
{
struct history_entry *child;
struct history_entry *found;
if (!entry)
return 0;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>
@ -230,7 +230,7 @@ bool knockout_plot_start(struct plotter_table *plotter)
assert(!memcmp(plotter, &knockout_plotters, sizeof(struct plotter_table)));
return true;
}
/* end any previous sessions */
if (knockout_entry_cur > 0)
knockout_plot_end();
@ -252,7 +252,7 @@ bool knockout_plot_end(void)
/* only output when we've finished any nesting */
if (--nested_depth == 0)
return knockout_plot_flush();
assert(nested_depth > 0);
return true;
}
@ -407,7 +407,7 @@ bool knockout_plot_flush(void)
knockout_box_cur = 0;
knockout_polygon_cur = 0;
knockout_list = NULL;
/* re-instate knockout plotters if we are still active */
if (nested_depth > 0)
knockout_set_plotters();
@ -443,7 +443,7 @@ void knockout_calculate(int x0, int y0, int x1, int y1, struct knockout_box *own
struct knockout_box *parent;
struct knockout_box *prev = NULL;
int nx0, ny0, nx1, ny1;
if (owner == NULL)
box = knockout_list;
else
@ -655,11 +655,11 @@ bool knockout_plot_polygon(int *p, unsigned int n, colour fill)
knockout_plot_flush();
return success;
}
/* ensure we have enough room right now */
if (knockout_polygon_cur + n * 2 >= KNOCKOUT_POLYGONS)
knockout_plot_flush();
/* copy our data */
dest = &(knockout_polygons[knockout_polygon_cur]);
memcpy(dest, p, n * 2 * sizeof(int));
@ -719,7 +719,7 @@ bool knockout_plot_clip(int clip_x0, int clip_y0,
clip_x0, clip_y0, clip_x1, clip_y1));
return false;
}
/* memorise clip for bitmap tiling */
clip_x0_cur = clip_x0;
clip_y0_cur = clip_y0;
@ -816,7 +816,7 @@ bool knockout_plot_bitmap_tile(int x, int y, int width, int height,
bool repeat_x, bool repeat_y)
{
int kx0, ky0, kx1, ky1;
/* get our bounds */
kx0 = clip_x0_cur;
ky0 = clip_y0_cur;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 Adrian Lees <adrianl@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 Adrian Lees <adrianl@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
@ -909,7 +909,7 @@ void tree_delete_node_internal(struct tree *tree, struct node *node, bool siblin
char *space;
assert(node);
if (tree->temp_selection == node)
tree->temp_selection = NULL;
if (tree->root == node)

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
@ -164,7 +164,7 @@ bool nsfont_split(const struct css_style *style,
*char_offset = index;
*actual_x = PANGO_PIXELS(rect.width);
return true;
}
@ -216,10 +216,10 @@ bool nsfont_paint(const struct css_style *style,
context = gdk_pango_context_get();
layout = pango_layout_new(context);
#endif
pango_layout_set_font_description(layout, desc);
pango_layout_set_text(layout, string, length);
#ifdef CAIRO_VERSION
pango_layout_get_pixel_size(layout, &width, &height);
cairo_move_to(current_cr, x, y - height);
@ -256,7 +256,7 @@ PangoFontDescription *nsfont_style_to_description(
PangoStyle styl = PANGO_STYLE_NORMAL;
assert(style->font_size.size == CSS_FONT_SIZE_LENGTH);
switch (style->font_family) {
case CSS_FONT_FAMILY_SERIF:
desc = pango_font_description_from_string(option_font_serif);
@ -275,16 +275,16 @@ PangoFontDescription *nsfont_style_to_description(
desc = pango_font_description_from_string(option_font_sans);
break;
}
if (style->font_size.value.length.unit == CSS_UNIT_PX)
size = style->font_size.value.length.value;
else
size = css_len2pt(&style->font_size.value.length, style);
if (size < abs(option_font_min_size / 10))
size = option_font_min_size / 10;
size *= PANGO_SCALE;
switch (style->font_style) {
@ -299,7 +299,7 @@ PangoFontDescription *nsfont_style_to_description(
}
pango_font_description_set_style(desc, styl);
switch (style->font_weight) {
case CSS_FONT_WEIGHT_NORMAL:
weight = PANGO_WEIGHT_NORMAL; break;
@ -323,7 +323,7 @@ PangoFontDescription *nsfont_style_to_description(
pango_font_description_set_absolute_size(desc, size);
else
pango_font_description_set_size(desc, size);
switch (style->font_variant) {
case CSS_FONT_VARIANT_SMALL_CAPS:
pango_font_description_set_variant(desc, PANGO_VARIANT_SMALL_CAPS);
@ -332,6 +332,6 @@ PangoFontDescription *nsfont_style_to_description(
default:
pango_font_description_set_variant(desc, PANGO_VARIANT_NORMAL);
}
return desc;
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
@ -182,7 +182,7 @@ void bitmap_modified(struct bitmap *bitmap) {
*/
void bitmap_set_suspendable(struct bitmap *bitmap, void *private_word,
void (*invalidate)(struct bitmap *bitmap, void *private_word)) {
}
}
static GdkPixbuf *
gtk_bitmap_generate_pretile(GdkPixbuf *primary, int repeat_x, int repeat_y)
@ -197,18 +197,18 @@ gtk_bitmap_generate_pretile(GdkPixbuf *primary, int repeat_x, int repeat_y)
int x,y,row;
/* This algorithm won't work if the strides are not multiples */
assert(target_stride == (primary_stride * repeat_x));
if (repeat_x == 1 && repeat_y == 1) {
g_object_ref(primary);
g_object_unref(result);
return primary;
}
for (y = 0; y < repeat_y; ++y) {
char *primary_buffer = (char *)gdk_pixbuf_get_pixels(primary);
for (row = 0; row < height; ++row) {
for (x = 0; x < repeat_x; ++x) {
memcpy(target_buffer,
memcpy(target_buffer,
primary_buffer, primary_stride);
target_buffer += primary_stride;
}
@ -245,7 +245,7 @@ gtk_bitmap_get_pretile_x(struct bitmap* bitmap)
bitmap->pretile_x = gtk_bitmap_generate_pretile(bitmap->primary, xmult, 1);
}
return bitmap->pretile_x;
}
/**

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -20,7 +20,7 @@ static bool nsgtk_completion_udb_callback(const char *url,
void nsgtk_completion_init(void)
{
nsgtk_completion_list = gtk_list_store_new(1, G_TYPE_STRING);
}
gboolean nsgtk_completion_match(GtkEntryCompletion *completion,
@ -34,7 +34,7 @@ gboolean nsgtk_completion_match(GtkEntryCompletion *completion,
/* TODO: work out why this works, when there's no code to implement
* it. I boggle. */
return TRUE;
}
@ -47,7 +47,7 @@ void nsgtk_completion_empty(void)
bool nsgtk_completion_udb_callback(const char *url, const struct url_data *data)
{
GtkTreeIter iter;
if (data->visits != 0) {
gtk_list_store_append(nsgtk_completion_list, &iter);
gtk_list_store_set(nsgtk_completion_list, &iter, 0, url, -1);

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>
@ -110,7 +110,7 @@ static char *find_resource(char *buf, const char *filename, const char *def)
} else {
realpath(def, buf);
}
return buf;
}
@ -121,14 +121,14 @@ static void check_homedir(void)
{
char *hdir = getenv("HOME");
char buf[BUFSIZ];
if (hdir == NULL) {
/* we really can't continue without a home directory. */
LOG(("HOME is not set - nowhere to store state!"));
die("NetSurf requires HOME to be set in order to run.\n");
}
snprintf(buf, BUFSIZ, "%s/.netsurf", hdir);
if (access(buf, F_OK) != 0) {
LOG(("You don't have a ~/.netsurf - creating one for you."));
@ -144,23 +144,23 @@ void gui_init(int argc, char** argv)
char buf[PATH_MAX];
gtk_init(&argc, &argv);
check_homedir();
find_resource(buf, "netsurf.glade", "./gtk/netsurf.glade");
LOG(("Using '%s' as Glade template file", buf));
glade_file_location = strdup(buf);
glade_init();
gladeWindows = glade_xml_new(glade_file_location, NULL, NULL);
if (gladeWindows == NULL)
die("Unable to load Glade window definitions.\n");
glade_xml_signal_autoconnect(gladeWindows);
wndTooltip = glade_xml_get_widget(gladeWindows, "wndTooltip");
labelTooltip = glade_xml_get_widget(gladeWindows, "tooltip");
nsgtk_completion_init();
nsgtk_completion_init();
find_resource(buf, "throbber.gif", "./gtk/throbber.gif");
nsgtk_throbber_initialise(buf);
@ -218,7 +218,7 @@ void gui_init(int argc, char** argv)
urldb_load(option_url_file);
urldb_load_cookies(option_cookie_file);
wndAbout = GTK_WINDOW(glade_xml_get_widget(gladeWindows, "wndAbout"));
gtk_label_set_text(GTK_LABEL(
glade_xml_get_widget(gladeWindows, "labelVersion")),
@ -232,7 +232,7 @@ void gui_init(int argc, char** argv)
void gui_init2(int argc, char** argv)
{
const char *addr = "http://netsurf.sourceforge.net/";
const char *addr = "http://netsurf-browser.org/";
if (option_homepage_url != NULL)
addr = option_homepage_url;
@ -347,10 +347,10 @@ void gui_create_form_select_menu(struct browser_window *bw,
struct form_option *option;
LOG(("Trying to open select menu..."));
for (i = 0, option = control->data.select.items; option;
i++, option = option->next) {
LOG(("Option: %s", option->text));
LOG(("Option: %s", option->text));
}
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -33,7 +33,7 @@ static void nsgtk_history_selection_changed(GtkTreeSelection *, gpointer);
void nsgtk_history_init(void)
{
GtkCellRenderer *renderer;
wndHistory = GTK_WINDOW(glade_xml_get_widget(gladeWindows,
"wndHistory"));
treeview = GTK_TREE_VIEW(glade_xml_get_widget(gladeWindows,
@ -44,21 +44,21 @@ void nsgtk_history_init(void)
G_TYPE_STRING, /* last visit */
G_TYPE_INT, /* nr. visits */
GDK_TYPE_PIXBUF); /* thumbnail */
selection = gtk_tree_view_get_selection(treeview);
gtk_tree_selection_set_mode(selection, GTK_SELECTION_SINGLE);
g_signal_connect(G_OBJECT(selection), "changed",
G_CALLBACK(nsgtk_history_selection_changed), NULL);
renderer = gtk_cell_renderer_text_new();
gtk_tree_view_insert_column_with_attributes(treeview, -1, "Title",
renderer,
"text",
COL_TITLE,
NULL);
gtk_tree_view_set_model(treeview, GTK_TREE_MODEL(history_tree));
nsgtk_history_update();
}
@ -82,40 +82,40 @@ bool nsgtk_history_add_internal(const char *url, const struct url_data *data)
COL_TOTALVISITS, data->visits,
-1);
}
return true;
}
void nsgtk_history_selection_changed(GtkTreeSelection *treesel, gpointer g)
{
GtkTreeIter iter;
if (gtk_tree_selection_get_selected(treesel, &history_tree, &iter))
{
gchar *b;
gint i;
char buf[20];
gtk_tree_model_get(history_tree, &iter, COL_ADDRESS, &b, -1);
gtk_label_set_text(GTK_LABEL(glade_xml_get_widget(gladeWindows,
"labelHistoryAddress")), b);
gtk_tree_model_get(history_tree, &iter, COL_LASTVISIT, &b, -1);
gtk_label_set_text(GTK_LABEL(glade_xml_get_widget(gladeWindows,
"labelHistoryLastVisit")), b);
gtk_tree_model_get(history_tree, &iter, COL_TOTALVISITS,
&i, -1);
snprintf(buf, 20, "%d", i);
gtk_label_set_text(GTK_LABEL(glade_xml_get_widget(gladeWindows,
"labelHistoryVisits")), buf);
}
else
{
}
}
@ -124,14 +124,14 @@ void nsgtk_history_row_activated(GtkTreeView *tv, GtkTreePath *path,
{
GtkTreeModel *model;
GtkTreeIter iter;
model = gtk_tree_view_get_model(tv);
if (gtk_tree_model_get_iter(model, &iter, path))
{
gchar *b;
gtk_tree_model_get(model, &iter, COL_ADDRESS, &b, -1);
browser_window_create((const char *)b, NULL, NULL, true);
}
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -65,8 +65,8 @@ void create_login_window(struct browser_window *bw, const char *host,
GladeXML *x = glade_xml_new(glade_file_location, NULL, NULL);
GtkWindow *wnd = GTK_WINDOW(glade_xml_get_widget(x, "wndLogin"));
GtkLabel *lhost, *lrealm;
GtkEntry *euser, *epass;
GtkLabel *lhost, *lrealm;
GtkEntry *euser, *epass;
GtkButton *bok, *bcan;
lhost = GTK_LABEL(glade_xml_get_widget(x, "labelLoginHost"));
@ -115,7 +115,7 @@ void create_login_window(struct browser_window *bw, const char *host,
/* make sure the username entry box currently has the focus */
gtk_widget_grab_focus(GTK_WIDGET(euser));
/* finally, show the window */
gtk_widget_show(GTK_WIDGET(wnd));
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -28,7 +28,7 @@ static GtkWidget *entryHomePageURL,
*checkRequestOverwrite,
*checkDisplayRecentURLs,
*checkSendReferer,
*comboProxyType,
*entryProxyHost,
*entryProxyPort,
@ -37,7 +37,7 @@ static GtkWidget *entryHomePageURL,
*spinMaxFetchers,
*spinFetchesPerHost,
*spinCachedConnections,
*checkUseCairo,
*checkResampleImages,
*spinAnimationSpeed,
@ -110,7 +110,7 @@ void nsgtk_options_init(void) {
void nsgtk_options_load(void) {
char b[20];
SET_ENTRY(entryHomePageURL, option_homepage_url);
SET_CHECK(checkHideAdverts, option_block_ads);
SET_CHECK(checkDisplayRecentURLs, option_url_suggestion);
@ -122,7 +122,7 @@ void nsgtk_options_load(void) {
SET_ENTRY(entryProxyPort, b);
SET_ENTRY(entryProxyUser, option_http_proxy_auth_user);
SET_ENTRY(entryProxyPassword, option_http_proxy_auth_pass);
SET_SPIN(spinMaxFetchers, option_max_fetchers);
SET_SPIN(spinFetchesPerHost, option_max_fetchers_per_host);
SET_SPIN(spinCachedConnections, option_max_cached_fetch_handles);
@ -156,7 +156,7 @@ void nsgtk_options_load(void) {
void nsgtk_options_save(void) {
char *b = NULL;
int i;
GET_ENTRY(entryHomePageURL, option_homepage_url);
GET_CHECK(checkDisplayRecentURLs, option_url_suggestion);
@ -178,23 +178,23 @@ void nsgtk_options_save(void) {
option_http_proxy_auth = OPTION_HTTP_PROXY_AUTH_NONE;
break;
}
GET_ENTRY(entryProxyHost, option_http_proxy_host);
GET_ENTRY(entryProxyPort, b);
option_http_proxy_port = atoi(b);
free(b);
GET_ENTRY(entryProxyUser, option_http_proxy_auth_user);
GET_ENTRY(entryProxyPassword, option_http_proxy_auth_pass);
GET_SPIN(spinMaxFetchers, option_max_fetchers);
GET_SPIN(spinFetchesPerHost, option_max_fetchers_per_host);
GET_SPIN(spinCachedConnections, option_max_cached_fetch_handles);
GET_SPIN(spinCachedConnections, option_max_cached_fetch_handles);
GET_CHECK(checkUseCairo, option_render_cairo);
GET_CHECK(checkResampleImages, option_render_resample);
GET_SPIN(spinAnimationSpeed, option_minimum_gif_delay);
option_minimum_gif_delay *= 10;
GET_FONT(fontSansSerif, option_font_sans);
GET_FONT(fontSerif, option_font_serif);
GET_FONT(fontMonospace, option_font_mono);
@ -202,7 +202,7 @@ void nsgtk_options_save(void) {
GET_FONT(fontFantasy, option_font_fantasy);
GET_COMBO(comboDefault, option_font_default);
option_font_default++;
GET_SPIN(spinDefaultSize, option_font_size);
option_font_size *= 10;
GET_SPIN(spinMinimumSize, option_font_min_size);

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Daniel Silverstone <dsilvers@digital-scurf.org>
@ -32,7 +32,7 @@ static gboolean ns_generic_gtk_callback(gpointer data)
return FALSE;
}
void schedule_remove(void (*callback)(void *p), void *p)
void schedule_remove(void (*callback)(void *p), void *p)
{
_nsgtkcallback *cb;
GList *l;
@ -47,7 +47,7 @@ void schedule_remove(void (*callback)(void *p), void *p)
}
}
void schedule(int t, void (*callback)(void *p), void *p)
void schedule(int t, void (*callback)(void *p), void *p)
{
_nsgtkcallback *cb = (_nsgtkcallback*)malloc(sizeof(_nsgtkcallback));
schedule_remove(callback, p);
@ -58,7 +58,7 @@ void schedule(int t, void (*callback)(void *p), void *p)
g_timeout_add(t * 10, ns_generic_gtk_callback, cb);
}
void schedule_run(void)
void schedule_run(void)
{
/* Nothing to do, the running is done via the gtk mainloop of joy */
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -22,32 +22,32 @@ bool nsgtk_throbber_initialise(const char *fn)
struct gif_animation *gif; /**< structure for gifread.c */
struct nsgtk_throbber *throb; /**< structure we generate */
int i;
FILE *fh = fopen(fn, "rb");
if (fh == NULL) {
LOG(("Unable to open throbber image '%s' for reading!", fn));
return false;
}
gif = (struct gif_animation *)malloc(sizeof(struct gif_animation));
throb = (struct nsgtk_throbber *)malloc(sizeof(struct nsgtk_throbber));
/* discover the size of the data file. */
fseek(fh, 0, SEEK_END);
gif->buffer_size = ftell(fh);
fseek(fh, 0, SEEK_SET);
/* allocate a block of sufficient size, and load the data in. */
gif->gif_data = (unsigned char *)malloc(gif->buffer_size);
fread(gif->gif_data, gif->buffer_size, 1, fh);
fclose(fh);
/* set current position within GIF file to beginning, in order to
* signal to gifread that we're brand new.
*/
gif->buffer_position = 0;
/* initialise the gif_animation structure. */
switch (gif_initialise(gif))
{
@ -69,9 +69,9 @@ bool nsgtk_throbber_initialise(const char *fn)
return false;
break;
}
throb->nframes = gif->frame_count;
if (throb->nframes < 2)
{
/* we need at least two frames - one for idle, one for active */
@ -97,35 +97,35 @@ bool nsgtk_throbber_initialise(const char *fn)
throb->framedata[i] = gdk_pixbuf_copy(
gtk_bitmap_get_primary(gif->frame_image));
}
gif_finalise(gif);
free(gif->gif_data);
free(gif);
/* debug code: save out each frame as a PNG to make sure decoding is
* working correctly.
* working correctly.
for (i = 0; i < throb->nframes; i++) {
char fname[20];
sprintf(fname, "frame%d.png", i);
gdk_pixbuf_save(throb->framedata[i], fname, "png", NULL, NULL);
}
*/
*/
nsgtk_throbber = throb;
return true;
return true;
}
void nsgtk_throbber_finalise(void)
{
int i;
for (i = 0; i < nsgtk_throbber->nframes; i++)
gdk_pixbuf_unref(nsgtk_throbber->framedata[i]);
free(nsgtk_throbber->framedata);
free(nsgtk_throbber);
nsgtk_throbber = NULL;
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>
@ -494,7 +494,7 @@ gboolean nsgtk_window_reload_button_clicked(GtkWidget *widget, gpointer data)
gboolean nsgtk_window_home_button_clicked(GtkWidget *widget, gpointer data)
{
struct gui_window *g = data;
static const char *addr = "http://netsurf.sourceforge.net/";
static const char *addr = "http://netsurf-browser.org/";
if (option_homepage_url != NULL)
addr = option_homepage_url;
@ -695,25 +695,25 @@ gboolean nsgtk_history_motion_notify_event(GtkWidget *widget,
struct gtk_history_window *gw = g;
const char *url;
int winx, winy;
// if (!option_history_tooltip)
// return TRUE;
url = history_position_url(gw->g->bw->history, event->x, event->y);
if (url == NULL) {
gtk_widget_hide(wndTooltip);
return TRUE;
}
gtk_label_set_text(labelTooltip, url);
gtk_window_get_position(gw->g->window, &winx, &winy);
LOG(("winx = %d, winy = %d, event->x = %d, event->y = %d",
winx, winy, event->x, event->y));
gtk_widget_show(GTK_WIDGET(wndTooltip));
gtk_window_move(wndTooltip, event->x + winx, event->y + winy);
return TRUE;
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,4 +1,4 @@
/* This s file is part of NetSurf, http://netsurf.sourceforge.net/
/* This s file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Rob Kendrick <rjek@rjek.com>

View File

@ -1932,7 +1932,7 @@
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes">http://netsurf.sourceforge.net/</property>
<property name="text" translatable="yes">http://netsurf-browser.org/</property>
<property name="has_frame">True</property>
<property name="invisible_char">●</property>
<property name="activates_default">False</property>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 John M Bell <jmb202@ecs.soton.ac.uk>
@ -118,7 +118,7 @@ bool nsgif_convert(struct content *c, int iwidth, int iheight) {
void nsgif_invalidate(struct bitmap *bitmap, void *private_word) {
struct gif_animation *gif = (struct gif_animation *)private_word;
gif->decoded_frame = -1;
}
@ -190,7 +190,7 @@ void nsgif_animate(void *p)
struct gif_animation *gif;
int delay;
int f;
/* Advance by a frame, updating the loop count accordingly
*/
gif = c->data.gif.gif;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
@ -925,9 +925,9 @@ static bool gif_next_LZW(struct gif_animation *gif) {
return false;
}
}
*stack_pointer++ = firstcode = table[1][code];
if ((code = max_code) < (1 << GIF_MAX_LZW)) {
table[0][code] = oldcode;
table[1][code] = firstcode;

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
#
# This file is part of NetSurf, http://netsurf.sourceforge.net/
# This file is part of NetSurf, http://netsurf-browser.org/
# Licensed under the GNU General Public License,
# http://www.opensource.org/licenses/gpl-license
#

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>
@ -53,7 +53,7 @@ bool directory_convert(struct content *c, int width, int height) {
if (!path) {
msg_data.error = messages_get("NoMemory");
content_broadcast(c, CONTENT_MSG_ERROR, msg_data);
return false;
return false;
}
nice_path = malloc(strlen(path) * 4 + 1);
if (!nice_path) {
@ -63,13 +63,13 @@ bool directory_convert(struct content *c, int width, int height) {
}
for (cnv = nice_path, tmp = path; *tmp != '\0'; *tmp++) {
if (*tmp == '<') {
*cnv++ = '&';
*cnv++ = 'l';
*cnv++ = '&';
*cnv++ = 'l';
*cnv++ = 't';
*cnv++ = ';';
} else if (*tmp == '>') {
*cnv++ = '&';
*cnv++ = 'g';
*cnv++ = '&';
*cnv++ = 'g';
*cnv++ = 't';
*cnv++ = ';';
} else {
@ -104,13 +104,13 @@ bool directory_convert(struct content *c, int width, int height) {
if ((entry->d_ino == 0) || (!strcmp(entry->d_name, ".")) ||
(!strcmp(entry->d_name, "..")))
continue;
snprintf(buffer, sizeof(buffer), "<a href=\"%s/%s\">%s</a>\n",
c->url, entry->d_name, entry->d_name);
htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0);
}
closedir(parent);
htmlParseChunk(c->data.html.parser, footer, sizeof(footer) - 1, 0);
c->type = CONTENT_HTML;
return html_convert(c, width, height);

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2006 Richard Wilson <info@tinct.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
@ -68,20 +68,20 @@ struct content_html_object {
struct content_html_frames {
int cols; /** number of columns in frameset */
int rows; /** number of rows in frameset */
struct frame_dimension width; /** frame width */
struct frame_dimension height; /** frame width */
int margin_width; /** frame margin width */
int margin_height; /** frame margin height */
char *name; /** frame name (for targetting) */
char *url; /** frame url */
bool no_resize; /** frame is not resizable */
frame_scrolling scrolling; /** scrolling characteristics */
bool border; /** frame has a border */
colour border_colour; /** frame border colour */
struct content_html_frames *children; /** [cols * rows] children */
};
@ -91,10 +91,10 @@ struct content_html_iframe {
int margin_width; /** frame margin width */
int margin_height; /** frame margin height */
char *name; /** frame name (for targetting) */
char *url; /** frame url */
frame_scrolling scrolling; /** scrolling characteristics */
bool border; /** frame has a border */
colour border_colour; /** frame border colour */

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2004 John M Bell <jmb202@ecs.soton.ac.uk>

View File

@ -1,5 +1,5 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* This file is part of NetSurf, http://netsurf-browser.org/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2005 Richard Wilson <info@tinct.net>

Some files were not shown because too many files have changed in this diff Show More