summaryrefslogtreecommitdiff
path: root/atari/hotlist.c
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-11-22 00:10:55 +0100
committerOle Loots <ole@monochrom.net>2012-11-22 00:10:55 +0100
commitccdab30c9a93989df986def422c1ff68d0b80a18 (patch)
tree3febf906b5ccb522c460caf411e21c937fcdabc3 /atari/hotlist.c
parent0672d5e2c9e66fc12311ad41a566e56cee30f7e3 (diff)
downloadnetsurf-ccdab30c9a93989df986def422c1ff68d0b80a18.tar.gz
netsurf-ccdab30c9a93989df986def422c1ff68d0b80a18.tar.bz2
Completet scroll preprocessing, Hotlist fully works.
Diffstat (limited to 'atari/hotlist.c')
-rwxr-xr-xatari/hotlist.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/atari/hotlist.c b/atari/hotlist.c
index 7fbac3e7f..6685ba5ed 100755
--- a/atari/hotlist.c
+++ b/atari/hotlist.c
@@ -50,14 +50,17 @@ struct atari_hotlist hl;
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
{
+ NSTREEVIEW tv=NULL;
+ GRECT tb_area;
- printf("hotlist handle event...\n");
if(ev_out->emo_events & MU_MESAG){
switch (msg[0]) {
+
case WM_TOOLBAR:
- printf("toolbar event...%d\n", msg[4]);
- switch (msg[4]) {
+ tv = (NSTREEVIEW) guiwin_get_user_data(win);
+
+ switch (msg[4]) {
case TOOLBAR_HOTLIST_CREATE_FOLDER:
hotlist_add_folder(true);
break;
@@ -68,12 +71,18 @@ static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
case TOOLBAR_HOTLIST_DELETE:
hotlist_delete_selected();
+ guiwin_send_redraw(tv->window, NULL);
break;
case TOOLBAR_HOTLIST_EDIT:
hotlist_edit_selected();
break;
}
+
+ get_tree(TOOLBAR_HOTLIST)[msg[4]].ob_state &= ~OS_SELECTED;
+ guiwin_get_grect(tv->window, GUIWIN_AREA_TOOLBAR, &tb_area);
+ evnt_timer(150);
+ guiwin_send_redraw(tv->window, &tb_area);
break;
case WM_CLOSED: