GtkFileChooser: Tweak Grid View & List View button tooltips
authorsunflowerskater <sunflowerskater@tutanota.com>
Sat, 17 Dec 2022 21:21:10 +0000 (18:21 -0300)
committersunflowerskater <sunflowerskater@tutanota.com>
Sat, 17 Dec 2022 21:21:10 +0000 (18:21 -0300)
The tooltips from the Grid View & List View buttons are unnecessarily long and look different from the tooltips used in Nautilus.

This commit makes the tooltips to be consistent with Nautilus and, consequently, makes them shorter.

gtk/gtkfilechooserwidget.c
gtk/ui/gtkfilechooserwidget.ui

index 70c4cabb842113bebf2a1ff5be487ed2aba9190a..ed85b0eb9e49585b77e55b39de57bae3410c4a1a 100644 (file)
@@ -1699,13 +1699,13 @@ set_view_type (GtkFileChooserWidget *impl,
     case VIEW_TYPE_LIST:
       child = impl->browse_files_column_view;
       icon_name = "view-grid-symbolic";
-      tooltip_text = _("Switch to grid view");
+      tooltip_text = _("Grid View");
       break;
 
     case VIEW_TYPE_GRID:
       child = impl->browse_files_grid_view;
       icon_name = "view-list-symbolic";
-      tooltip_text = _("Switch to list view");
+      tooltip_text = _("List View");
       break;
 
     default:
index 7d15ccb052b22ee83cb1558a4644aa4baddb3a0a..6faecfe9eb6c8f8b0af1902077fc5dd620d17195 100644 (file)
@@ -63,7 +63,7 @@
                                           <object class="GtkButton" id="browse_toggle_view_button">
                                             <property name="icon-name">view-grid-symbolic</property>
                                             <property name="action-name">item.toggle-view</property>
-                                            <property name="tooltip-text" translatable="yes">Switch to grid view</property>
+                                            <property name="tooltip-text" translatable="yes">Grid View</property>
                                           </object>
                                         </child>
                                         <child>