Skip to content

Commit

Permalink
xlgui/properties: Add tooltip text to Clear buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohannes committed Mar 10, 2021
1 parent 29ebe47 commit 6343c7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xlgui/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,12 @@ def __init__(self, parent, parent_grid, field, tag_name, value, multi_id):
self.label.set_text(_('%s:') % name)
self.label.create_pango_context()

self.clear_button = Gtk.Button()
self.clear_button.set_image(
Gtk.Image.new_from_icon_name('edit-clear', Gtk.IconSize.BUTTON)
self.clear_button = Gtk.Button(
image=Gtk.Image.new_from_icon_name('edit-clear', Gtk.IconSize.BUTTON),
relief=Gtk.ReliefStyle.NONE,
# TRANSLATORS: Remove tag value
tooltip_text=_("Clear"),
)
self.clear_button.set_relief(Gtk.ReliefStyle.NONE)
self.clear_button.connect("clicked", self.clear)

if not isinstance(field, PropertyField):
Expand Down

0 comments on commit 6343c7b

Please sign in to comment.