[bitbake-devel] [PATCH 06/32] Hob: implement a self-defined notebook visual component for Hob

Wang, Shane shane.wang at intel.com
Fri Mar 2 07:06:51 UTC 2012


Joshua Lock wrote on 2012-03-01:

> 
> 
> On 29/02/12 06:15, Shane Wang wrote:
>> In recipe selection page, package selection page, and build details page,
> etc, there is a notebook component which is not gtk.Notebook in the design
> video.
>> We implement the visual component with a drawing area, and use it to
> replace the old notebook in recipe selection page and package selection
> page.
>> 
>> Signed-off-by: Liming An<limingx.l.an at intel.com>
>> Signed-off-by: Shane Wang<shane.wang at intel.com>
> 
> Code style comments below.
> 
> More importantly, have we made sure we can't use the stock notebook
> before we've implemented our own? The commit log tells me that we aren't
> using gtk.Notebook but doesn't tell me why?
1) General speaking, gtk.Notebook doesn't look like the design Belen worked out.
2) And we all agree Belen's design looks better, for example, there is an indicator to show how many recipes or packages are included, and how many issues happened when building? Very straightforward.
But technically, gtk.Notebook can't implement that. As far as we know, it can't.

3) Moreover, there is an entry for "search recipes", and "search packages". How to make it horizontal to the tabs is a problem to us.
Regarding those, we give up gtk.Notebook and use our own.

> 
> The implemented notebook is a reasonable start but it needs a lot of
> polish before I'd want to see it shipped.
> i.e. the green flashed border around the selected tabs is strange, the
> drawing looks a little jaggy, especially the orange circle (not a
> graphics guy so I don't know the right term) and I'm pretty certain the
> number in the circle isn't centred. Finally (for now) once I get to
> three digits the numbers don't fit in the circle.
I agree we also have some to improve our Notebook, say, the border and the circle.
If there is a jaggy, we can make it a rectangle instead of circle.
But to be frank, I don't think gtk.Notebook looks better.

> 
> I think the rationale would be useful as a comment in the class file too.
> 
> Cheers,
> Joshua

> +            # check which tab be clicked
> Why don't we just iterate the list here?
>	for child in self.children:
>			if child["x"] < x and etc.

Because we have
    self.current_child = i

Or we can do self.current_child = child (to an object)? Do you like this more?

--
Shane




More information about the bitbake-devel mailing list