2.5 filebrowser
* start of filebrowser RNA * system files, bookmarks, etc. now nicely inside panels to allow collapsing etc. * filebrowser header now defined in space_filebrowser.py TODO: * button type for bookmarks etc. not final yet, at least should get centered still. Suggestions welcome here.
This commit is contained in:
@@ -104,6 +104,8 @@ static int panel_aligned(ScrArea *sa, ARegion *ar)
|
||||
SpaceButs *sbuts= sa->spacedata.first;
|
||||
return sbuts->align;
|
||||
}
|
||||
else if(sa->spacetype==SPACE_FILE && ar->regiontype == RGN_TYPE_CHANNELS)
|
||||
return BUT_VERTICAL;
|
||||
else if(ELEM(ar->regiontype, RGN_TYPE_UI, RGN_TYPE_TOOLS))
|
||||
return BUT_VERTICAL;
|
||||
|
||||
@@ -126,6 +128,8 @@ static int panels_re_align(ScrArea *sa, ARegion *ar, Panel **r_pa)
|
||||
}
|
||||
else if(ar->regiontype==RGN_TYPE_UI)
|
||||
return 1;
|
||||
else if(sa->spacetype==SPACE_FILE && ar->regiontype == RGN_TYPE_CHANNELS)
|
||||
return 1;
|
||||
|
||||
/* in case panel is added or disappears */
|
||||
for(pa=ar->panels.first; pa; pa=pa->next) {
|
||||
|
||||
Reference in New Issue
Block a user