gtkplacesview: Add some missing button tooltips

The remove server button and the server list one had only icons,
so fix it by adding tooltips to them.
This commit is contained in:
Lukáš Tyrychtr
2024-11-15 15:27:04 +01:00
parent a34e95bc39
commit 6da8fcf5d9
2 changed files with 2 additions and 0 deletions

View File

@@ -590,6 +590,7 @@ populate_servers (GtkPlacesView *view)
gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
gtk_button_set_has_frame (GTK_BUTTON (button), FALSE);
gtk_widget_add_css_class (button, "sidebar-button");
gtk_widget_set_tooltip_text (button, _("Remove server"));
gtk_grid_attach (GTK_GRID (grid), button, 1, 0, 1, 2);
gtk_list_box_row_set_child (GTK_LIST_BOX_ROW (row), grid);

View File

@@ -275,6 +275,7 @@
<property name="direction">0</property>
<property name="popover">recent_servers_popover</property>
<property name="icon-name">pan-down-symbolic</property>
<property name="tooltip-text" translatable="yes">Show recent servers</property>
<style>
<class name="server-list-button"/>
</style>