format-chooser: Add tooltip to the preview button

Doing so, this button will also be a11y-labelled.
This commit is contained in:
Automeris naranja 2024-04-29 20:59:10 -03:00
parent 043af788c1
commit 89c58252ed

View file

@ -265,6 +265,7 @@ region_widget_new (CcFormatChooser *self,
gtk_box_append (GTK_BOX (box), check);
button = gtk_button_new_from_icon_name ("view-reveal-symbolic");
gtk_widget_set_tooltip_text (button, _("Preview"));
gtk_widget_add_css_class (button, "flat");
g_signal_connect_object (button, "clicked", G_CALLBACK (preview_button_clicked_cb),
self, G_CONNECT_SWAPPED);