Just realized I didn't answer your question.

Well, I investigated that a long time ago. Before using a GtkToolbar as a base 
for this widget, I tried other widgets as well. Initially I used the obvious 
widget: GtkStatusbar. A day later I realized that it didn't have any kind of 
theming capabilities. It doesn't accept padding, borders or gradients. The 
other issue with GtkStatusbars is that the label is packed on the left, and any 
child widget is packed on the right. I modified the draw method and installed 
the required style properties (padding, border) to the widget, but the code was 
unnecessarily full of hacks and the issue with the label was still there.

On the other hand, GtkToolbar had everything I needed: full theming support, 
container capabilities, etc. It only required a couple of CSS hacks to make it 
look as slim as a normal GtkStatusbar and get rid of the toolbar-specific 
stuff. Besides, adding message context capabilities to this widget is way 
easier than hacking the draw method on a normal statusbar IMHO.

Again, thank you for the review. I'll welcome any other suggestion(s) you have 
:)
-- 
https://code.launchpad.net/~victored/granite/statusbar/+merge/104277
Your team elementaryart (old) is subscribed to branch lp:granite.

-- 
Mailing list: https://launchpad.net/~elementaryart
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~elementaryart
More help   : https://help.launchpad.net/ListHelp

Reply via email to