make the current directory button bold
This commit is contained in:
parent
cab48e660b
commit
d37ec34b15
@ -114,6 +114,11 @@ class MainWindow(Gtk.Window):
|
|||||||
btn.connect("clicked", handler)
|
btn.connect("clicked", handler)
|
||||||
self.directory_vbox.pack_start(btn, False, False, 0)
|
self.directory_vbox.pack_start(btn, False, False, 0)
|
||||||
self.directory_buttons.append(btn)
|
self.directory_buttons.append(btn)
|
||||||
|
for i, btn in enumerate(self.directory_buttons):
|
||||||
|
if i == len(path_parts) - 1:
|
||||||
|
btn.get_child().set_markup("<b>%s</b>" % btn.caption)
|
||||||
|
else:
|
||||||
|
btn.get_child().set_label(btn.caption)
|
||||||
self.directory_vbox.show_all()
|
self.directory_vbox.show_all()
|
||||||
# TODO: finish
|
# TODO: finish
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user