Make the text in the toolbar of the toolbox dependant on the text size
and minimum style.TOOLBOX_TAB_LABEL_WIDTH
This commit is contained in:
parent
ee4a4ece7c
commit
bdbdc5bc87
@ -60,7 +60,8 @@ class Toolbox(gtk.VBox):
|
|||||||
|
|
||||||
def add_toolbar(self, name, toolbar):
|
def add_toolbar(self, name, toolbar):
|
||||||
label = gtk.Label(name)
|
label = gtk.Label(name)
|
||||||
label.set_size_request(style.TOOLBOX_TAB_LABEL_WIDTH, -1)
|
width, height = label.size_request()
|
||||||
|
label.set_size_request(max(width, style.TOOLBOX_TAB_LABEL_WIDTH), -1)
|
||||||
label.set_alignment(0.0, 0.5)
|
label.set_alignment(0.0, 0.5)
|
||||||
|
|
||||||
event_box = gtk.EventBox()
|
event_box = gtk.EventBox()
|
||||||
|
Loading…
Reference in New Issue
Block a user