def make_toolbar(self): toolbarbox = ToolbarBox() self.set_toolbar_box(toolbarbox) toolbar = toolbarbox.toolbar button = ActivityToolbarButton(self) toolbar.insert(button, -1) separator = Gtk.SeparatorToolItem() separator.props.draw = False separator.set_expand(True) toolbar.insert(separator, -1) button = ToolButton("save-colors") button.set_tooltip(_("Save colors")) button.connect("clicked", self._save_colors) toolbar.insert(button, -1) button = StopButton(self) toolbar.insert(button, -1)