[gnome-control-center] Tooltips for the rotation buttons in Displays
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Tooltips for the rotation buttons in Displays
- Date: Tue, 3 Feb 2015 14:40:34 +0000 (UTC)
commit ef72c19ebf8a5b26f7fda0bd724cd733609dd26f
Author: Elias Toivanen <eatoivan chem helsinki fi>
Date: Thu Jan 29 16:41:10 2015 +0200
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.
https://bugzilla.gnome.org/show_bug.cgi?id=743888
panels/display/cc-display-panel.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]