mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 05:27:00 +03:00
Create a layout group for favicon, URL and the new favourites star. This makes the balance bar work again.
This commit is contained in:
parent
ff9163f8bf
commit
24e5b2ec16
58
amiga/gui.c
58
amiga/gui.c
@ -3511,35 +3511,37 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw,
|
||||
ButtonEnd,
|
||||
CHILD_WeightedWidth,0,
|
||||
CHILD_WeightedHeight,0,
|
||||
LAYOUT_AddChild, g->shared->objects[GID_ICON] = SpaceObject,
|
||||
GA_ID, GID_ICON,
|
||||
SPACE_MinWidth, 16,
|
||||
SPACE_MinHeight, 16,
|
||||
SPACE_Transparent, FALSE,
|
||||
// SPACE_RenderHook, &g->shared->favicon_hook,
|
||||
SpaceEnd,
|
||||
CHILD_WeightedWidth,0,
|
||||
CHILD_WeightedHeight,0,
|
||||
LAYOUT_AddChild, g->shared->objects[GID_URL] =
|
||||
NewObject(urlStringClass, NULL,
|
||||
STRINGA_MaxChars, 2000,
|
||||
GA_ID, GID_URL,
|
||||
GA_RelVerify, TRUE,
|
||||
GA_HintInfo, g->shared->helphints[GID_URL],
|
||||
GA_TabCycle, TRUE,
|
||||
STRINGA_Buffer, g->shared->svbuffer,
|
||||
STRINGVIEW_Header, URLHistory_GetList(),
|
||||
StringEnd,
|
||||
LAYOUT_AddChild, HGroupObject, // FavIcon, URL bar and hotlist star
|
||||
LAYOUT_VertAlignment, LALIGN_CENTER,
|
||||
LAYOUT_AddChild, g->shared->objects[GID_ICON] = SpaceObject,
|
||||
GA_ID, GID_ICON,
|
||||
SPACE_MinWidth, 16,
|
||||
SPACE_MinHeight, 16,
|
||||
SPACE_Transparent, FALSE,
|
||||
// SPACE_RenderHook, &g->shared->favicon_hook,
|
||||
SpaceEnd,
|
||||
CHILD_WeightedWidth, 0,
|
||||
CHILD_WeightedHeight, 0,
|
||||
LAYOUT_AddChild, g->shared->objects[GID_URL] =
|
||||
NewObject(urlStringClass, NULL,
|
||||
STRINGA_MaxChars, 2000,
|
||||
GA_ID, GID_URL,
|
||||
GA_RelVerify, TRUE,
|
||||
GA_HintInfo, g->shared->helphints[GID_URL],
|
||||
GA_TabCycle, TRUE,
|
||||
STRINGA_Buffer, g->shared->svbuffer,
|
||||
STRINGVIEW_Header, URLHistory_GetList(),
|
||||
StringEnd,
|
||||
|
||||
LAYOUT_AddChild, g->shared->objects[GID_FAVE] = ButtonObject,
|
||||
GA_ID, GID_FAVE,
|
||||
GA_RelVerify, TRUE,
|
||||
// GA_HintInfo, g->shared->helphints[GID_FAVE],
|
||||
BUTTON_RenderImage, g->shared->objects[GID_FAVE_ADD],
|
||||
ButtonEnd,
|
||||
CHILD_WeightedWidth,0,
|
||||
CHILD_WeightedHeight,0,
|
||||
|
||||
LAYOUT_AddChild, g->shared->objects[GID_FAVE] = ButtonObject,
|
||||
GA_ID, GID_FAVE,
|
||||
GA_RelVerify, TRUE,
|
||||
// GA_HintInfo, g->shared->helphints[GID_FAVE],
|
||||
BUTTON_RenderImage, g->shared->objects[GID_FAVE_ADD],
|
||||
ButtonEnd,
|
||||
CHILD_WeightedWidth, 0,
|
||||
CHILD_WeightedHeight, 0,
|
||||
LayoutEnd,
|
||||
// GA_ID, GID_TOOLBARLAYOUT,
|
||||
// GA_RelVerify, TRUE,
|
||||
// LAYOUT_RelVerify, TRUE,
|
||||
|
Loading…
Reference in New Issue
Block a user