[Xfce4-commits] [apps/parole] 01/02: Fix Show Playlist
noreply at xfce.org
noreply at xfce.org
Mon Jun 16 00:38:54 CEST 2014
This is an automated email from the git hooks/post-receive script.
bluesabre pushed a commit to branch master
in repository apps/parole.
commit 2bdcfa592189962c20d76a177e64c142ba3e8ca0
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sun Jun 15 18:38:28 2014 -0400
Fix Show Playlist
---
src/parole-player.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/parole-player.c b/src/parole-player.c
index 090387c..2659449 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -516,6 +516,8 @@ void parole_player_set_playlist_visible (ParolePlayer *player, gboolean visibili
gint window_w, window_h, playlist_w;
GtkAllocation *allocation = g_new0 (GtkAllocation, 1);
+ gtk_widget_set_tooltip_text (GTK_WIDGET(player->priv->showhide_playlist_button), visibility ? _("Hide Playlist"):_("Show Playlist"));
+
if (gtk_widget_get_visible (player->priv->playlist_nt) == visibility)
return;
@@ -528,6 +530,7 @@ void parole_player_set_playlist_visible (ParolePlayer *player, gboolean visibili
playlist_w = 220;
g_simple_toggle_action_set_active( player->priv->toggle_playlist_action, visibility );
+ gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM(player->priv->showhide_playlist_menu_item), visibility);
if ( visibility )
{
if ( !player->priv->full_screen )
@@ -3250,7 +3253,7 @@ parole_player_init (ParolePlayer *player)
/* Show/Hide Playlist */
player->priv->showhide_playlist_menu_item = GTK_WIDGET (gtk_builder_get_object (builder, "show-hide-list"));
- g_signal_connect(G_OBJECT(player->priv->showhide_playlist_menu_item), "activate", G_CALLBACK(parole_player_widget_activate_action), player->priv->toggle_playlist_action);
+ gtk_menu_item_set_label (GTK_MENU_ITEM(player->priv->showhide_playlist_menu_item), _("Show Playlist"));
player->priv->shuffle_menu_item = GTK_WIDGET (gtk_builder_get_object (builder, "shuffle"));
g_signal_connect(G_OBJECT(player->priv->shuffle_menu_item), "activate", G_CALLBACK(toggle_action_cb), player->priv->toggle_shuffle_action);
@@ -3498,8 +3501,7 @@ parole_player_init (ParolePlayer *player)
player->priv->last_h = h;
parole_player_set_playlist_visible(player, showhide);
- gtk_widget_set_tooltip_text (GTK_WIDGET(player->priv->showhide_playlist_button), _("Show Playlist"));
- gtk_menu_item_set_label (GTK_MENU_ITEM(player->priv->showhide_playlist_menu_item), _("Show Playlist"));
+ g_signal_connect(G_OBJECT(player->priv->showhide_playlist_menu_item), "activate", G_CALLBACK(parole_player_widget_activate_action), player->priv->toggle_playlist_action);
gtk_window_set_default_size (GTK_WINDOW (player->priv->window), w, h);
gtk_window_resize (GTK_WINDOW (player->priv->window), w, h);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list