RE: Implementing HIG style frames with GtkFrame



> From: David Adam Bordoley [mailto:bordoley msu edu] 
> This is related to bug 96374. 
> 
> I'm interested in working on adding HIG style Frameless 
> frames to GtkFrame 
> and have time to work on it. The above bug has alot of 
> discussion on how 
> this could be implemented but none of the core maintainers 
> have commented. 
> As I understand it GtkAlignment provides the necessary api for adding 
> padding to the edge. Would the ideal way to implement this in 
> gtk be to add 
> an indent property to GtkFrame along with a special new 
> function such as 
> gtk_notebook_new_frameless? 
> 
> I'm a pretty inexperienced hacker, but this seems like a 
> somewhat simple 
> project to work on for someone new. Comments and suggestions 
> are appreciated 

As I say in the bug,
http://bugzilla.gnome.org/show_bug.cgi?id=96374
I don't believe a gtk_notebook_new_framless() makes sense, because that's
just a gtk_notebook_do_it_like_the_hig(). 

We just need to make it possible to be HIG-compliant without too much
difficulty. The GtkAlignment API change has made that mostly possible, but
we would still like to hide the GtkAlignment from the GtkFrame API. So, I
think a gtk_notebook_set_indent() (actually a property) is all we need.

Most of the rest of the HIG-by-default stuff should be dealt with by Glade,
I think.

Murray Cumming
murrayc usa net
www.murrayc.com 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]