[project @ 2004-12-09 12:07:32 by rjw]
Fix GTK build. Lose xcalloc() from history. svn path=/import/netsurf/; revision=1396
This commit is contained in:
parent
58b68f7130
commit
bd652a750a
|
@ -104,7 +104,6 @@ struct node *tree_create_folder_node(struct node *parent, const char *title);
|
|||
struct node *tree_create_leaf_node(struct node *parent, const char *title);
|
||||
void tree_set_node_sprite(struct node *node, const char *sprite,
|
||||
const char *expanded);
|
||||
void tree_set_node_sprite_folder(struct node *node);
|
||||
struct node *tree_create_URL_node(struct node *parent, const char *title,
|
||||
const char *url, int filetype, int add_date, int last_date,
|
||||
int visits);
|
||||
|
@ -133,5 +132,6 @@ void tree_draw_node_expansion(struct tree *tree, struct node *node);
|
|||
void tree_recalculate_node_element(struct node_element *element);
|
||||
void tree_update_URL_node(struct node *node);
|
||||
void tree_resized(struct tree *tree);
|
||||
void tree_set_node_sprite_folder(struct node *node);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -94,3 +94,12 @@ void tree_update_URL_node(struct node *node) {
|
|||
*/
|
||||
void tree_resized(struct tree *tree) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets a node element as having a folder sprite
|
||||
*
|
||||
* \param node the node to update
|
||||
*/
|
||||
void tree_set_node_sprite_folder(struct node *node) {
|
||||
}
|
||||
|
|
|
@ -433,7 +433,11 @@ void ro_gui_history_redraw_tree(struct history_entry *he,
|
|||
area, (osspriteop_id)header,
|
||||
colourtrans_CURRENT_MODE, colourtrans_CURRENT_PALETTE,
|
||||
0, colourtrans_GIVEN_SPRITE, 0, 0, &size);
|
||||
table = xcalloc(size, 1);
|
||||
table = calloc(size, 1);
|
||||
if (!table) {
|
||||
LOG(("Insufficient memory for calloc"));
|
||||
warn_user("NoMemory", 0);
|
||||
} else {
|
||||
xcolourtrans_generate_table_for_sprite(
|
||||
area, (osspriteop_id)header,
|
||||
colourtrans_CURRENT_MODE, colourtrans_CURRENT_PALETTE,
|
||||
|
@ -448,9 +452,10 @@ void ro_gui_history_redraw_tree(struct history_entry *he,
|
|||
area, (osspriteop_id)header,
|
||||
x0 + he->x * FULL_WIDTH + MARGIN,
|
||||
y0 - he->y * FULL_HEIGHT - FULL_HEIGHT + MARGIN,
|
||||
osspriteop_USE_MASK | osspriteop_USE_PALETTE, &factors, table);
|
||||
|
||||
xfree(table);
|
||||
osspriteop_USE_MASK | osspriteop_USE_PALETTE,
|
||||
&factors, table);
|
||||
free(table);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -466,7 +471,6 @@ void ro_gui_history_redraw_tree(struct history_entry *he,
|
|||
y0 - he->y * FULL_HEIGHT - HEIGHT - MARGIN - 24,
|
||||
NULL, NULL, 0);
|
||||
|
||||
|
||||
colourtrans_set_gcol(os_COLOUR_MID_DARK_GREY, 0,
|
||||
os_ACTION_OVERWRITE, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue