[Xfce4-commits] <parole:master> More tooltips.
Sean Davis
noreply at xfce.org
Wed Jan 23 14:10:01 CET 2013
Updating branch refs/heads/master
to 67272f5fd851791cc66609a4b3392d6363163660 (commit)
from acf1ad4b07faec700fd85982a05672404bd29c57 (commit)
commit 67272f5fd851791cc66609a4b3392d6363163660
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Jan 23 07:03:48 2013 -0500
More tooltips.
data/interfaces/parole.ui | 10 +++++++---
data/interfaces/playlist.ui | 6 ++++++
src/parole-player.c | 5 +++++
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/data/interfaces/parole.ui b/data/interfaces/parole.ui
index 92e3308..fdc099a 100644
--- a/data/interfaces/parole.ui
+++ b/data/interfaces/parole.ui
@@ -477,9 +477,9 @@
<property name="use_underline">True</property>
<property name="image">image_volume_up</property>
<property name="use_stock">False</property>
- <accelerator key="KP_Add" signal="activate"/>
- <accelerator key="equal" signal="activate"/>
<accelerator key="plus" signal="activate"/>
+ <accelerator key="equal" signal="activate"/>
+ <accelerator key="KP_Add" signal="activate"/>
<signal name="activate" handler="parole_player_volume_up" swapped="no"/>
</object>
</child>
@@ -492,8 +492,8 @@
<property name="use_underline">True</property>
<property name="image">image_volume_down</property>
<property name="use_stock">False</property>
- <accelerator key="minus" signal="activate"/>
<accelerator key="KP_Subtract" signal="activate"/>
+ <accelerator key="minus" signal="activate"/>
<signal name="activate" handler="parole_player_volume_down" swapped="no"/>
</object>
</child>
@@ -805,6 +805,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Previous</property>
<property name="use_action_appearance">False</property>
<property name="image">image_play_prev</property>
<property name="relief">none</property>
@@ -823,6 +824,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Play</property>
<property name="use_action_appearance">False</property>
<property name="image">image_play_pause</property>
<property name="relief">none</property>
@@ -841,6 +843,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Next</property>
<property name="use_action_appearance">False</property>
<property name="image">image_play_next</property>
<property name="relief">none</property>
@@ -962,6 +965,7 @@ audio-volume-medium</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
+ <property name="tooltip_text" translatable="yes">Fullscreen</property>
<property name="use_action_appearance">False</property>
<property name="image">image_fullscreen</property>
<property name="relief">none</property>
diff --git a/data/interfaces/playlist.ui b/data/interfaces/playlist.ui
index 6086771..898fd26 100644
--- a/data/interfaces/playlist.ui
+++ b/data/interfaces/playlist.ui
@@ -253,6 +253,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Add…</property>
<property name="use_action_appearance">False</property>
<property name="image">image_add</property>
<property name="focus_on_click">False</property>
@@ -270,6 +271,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Remove</property>
<property name="use_action_appearance">False</property>
<property name="image">image_remove</property>
<property name="focus_on_click">False</property>
@@ -287,6 +289,7 @@
<property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Clear</property>
<property name="use_action_appearance">False</property>
<property name="image">image_clear</property>
<property name="focus_on_click">False</property>
@@ -303,6 +306,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Repeat</property>
<property name="use_action_appearance">False</property>
<property name="image">image_repeat</property>
<property name="focus_on_click">False</property>
@@ -319,6 +323,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Shuffle</property>
<property name="use_action_appearance">False</property>
<property name="image">image_shuffle</property>
<property name="focus_on_click">False</property>
@@ -335,6 +340,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
+ <property name="tooltip_text" translatable="yes">Playlist options</property>
<property name="use_action_appearance">False</property>
<property name="image">image_settings</property>
<property name="focus_on_click">False</property>
diff --git a/src/parole-player.c b/src/parole-player.c
index 8448da2..3f8d007 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1339,6 +1339,7 @@ parole_player_playing (ParolePlayer *player, const ParoleStream *stream)
gtk_widget_set_sensitive (player->priv->play_pause, TRUE);
parole_player_set_playpause_button_image (player->priv->play_pause, GTK_STOCK_MEDIA_PAUSE);
+ gtk_widget_set_tooltip_text(player->priv->play_pause, _("Pause"));
gtk_widget_set_sensitive (player->priv->range, seekable);
@@ -1392,7 +1393,10 @@ parole_player_paused (ParolePlayer *player)
gtk_widget_set_sensitive (player->priv->play_pause, TRUE);
if ( player->priv->user_seeking == FALSE)
+ {
parole_player_set_playpause_button_image (player->priv->play_pause, GTK_STOCK_MEDIA_PLAY);
+ gtk_widget_set_tooltip_text(player->priv->play_pause, _("Play"));
+ }
if ( pix )
g_object_unref (pix);
@@ -1425,6 +1429,7 @@ parole_player_stopped (ParolePlayer *player)
gtk_widget_set_sensitive (player->priv->seekb, FALSE);
parole_player_set_playpause_button_image (player->priv->play_pause, GTK_STOCK_MEDIA_PLAY);
+ gtk_widget_set_tooltip_text(player->priv->play_pause, _("Play"));
parole_media_list_set_row_pixbuf (player->priv->list, player->priv->row, NULL);
More information about the Xfce4-commits
mailing list