Functional search bar; search icon doesn't refresh if the search area is resized

however.

svn path=/trunk/netsurf/; revision=9755
This commit is contained in:
Chris Young 2009-12-22 23:04:59 +00:00
parent df64fb7903
commit b11df61394
2 changed files with 14 additions and 1 deletions

View File

@ -1145,6 +1145,18 @@ void ami_handle_msg(void)
browser_window_go(gwin->bw,(char *)storage, NULL, true);
break;
case GID_TOOLBARLAYOUT:
/* Need fixing: never gets here */
search_web_retrieve_ico(false);
break;
case GID_SEARCHSTRING:
GetAttr(STRINGA_TextVal,gwin->gadgets[GID_SEARCHSTRING],(ULONG *)&storage);
storage = (ULONG *)search_web_from_term((char *)storage);
browser_window_go(gwin->bw,(char *)storage, NULL, true);
break;
case GID_HOME:
browser_window_go(gwin->bw,option_homepage_url,NULL,true);
break;
@ -2273,7 +2285,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
WINDOW_ParentGroup, gwin->shared->gadgets[GID_MAIN] = VGroupObject,
// LAYOUT_CharSet,106,
LAYOUT_SpaceOuter, TRUE,
LAYOUT_AddChild, HGroupObject,
LAYOUT_AddChild, gwin->shared->gadgets[GID_TOOLBARLAYOUT] = HGroupObject,
LAYOUT_VertAlignment, LALIGN_CENTER,
LAYOUT_AddChild, gwin->shared->gadgets[GID_BACK] = ButtonObject,
GA_ID,GID_BACK,

View File

@ -60,6 +60,7 @@ enum
GID_SEARCHSTRING,
GID_SHOWALL,
GID_CASE,
GID_TOOLBARLAYOUT,
GID_HSCROLL,
GID_LAST
};