>From 47150c400e7e53ab6688e405c3822de9d7601ed1 Mon Sep 17 00:00:00 2001 From: Elias Toivanen Date: Thu, 29 Jan 2015 16:41:10 +0200 Subject: [PATCH] Tooltips for the rotation buttons in Displays When rotating a screen, the user has to first select the kind of rotation and then press Apply. However, the meaning of the symbolic icons may not be clear before actually pressing one of them. This patch adds appropriate tooltips to the buttons so that the user has a textual clue about what is going to happen. --- panels/display/cc-display-panel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c index 87bc375..306d6e0 100644 --- a/panels/display/cc-display-panel.c +++ b/panels/display/cc-display-panel.c @@ -1992,6 +1992,7 @@ show_setup_dialog (CcDisplayPanel *panel) GNOME_RR_ROTATION_90)) { priv->rotate_left_button = gtk_toggle_button_new (); + gtk_widget_set_tooltip_text (priv->rotate_left_button, _("Rotate counterclockwise by 90\xc2\xb0")); if (rotation == GNOME_RR_ROTATION_90) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->rotate_left_button), TRUE); g_signal_connect (priv->rotate_left_button, "clicked", @@ -2009,6 +2010,7 @@ show_setup_dialog (CcDisplayPanel *panel) GNOME_RR_ROTATION_180)) { priv->upside_down_button = gtk_toggle_button_new (); + gtk_widget_set_tooltip_text (priv->upside_down_button, _("Rotate by 180\xc2\xb0")); if (rotation == GNOME_RR_ROTATION_180) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->upside_down_button), TRUE); g_signal_connect (priv->upside_down_button, "clicked", @@ -2026,6 +2028,7 @@ show_setup_dialog (CcDisplayPanel *panel) GNOME_RR_ROTATION_270)) { priv->rotate_right_button = gtk_toggle_button_new (); + gtk_widget_set_tooltip_text (priv->rotate_right_button, _("Rotate clockwise by 90\xc2\xb0")); if (rotation == GNOME_RR_ROTATION_270) gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->rotate_right_button), TRUE); g_signal_connect (priv->rotate_right_button, "clicked", -- 1.9.3