[Xfce4-commits] [apps/parole] 01/01: Mini mode is non-resizable, exiting mini mode restores playlist state

noreply at xfce.org noreply at xfce.org
Tue Feb 7 04:08:18 CET 2017


This is an automated email from the git hooks/post-receive script.

bluesabre pushed a commit to branch master
in repository apps/parole.

commit 1fe4b8cc8660d45c420fab8ff3bb0ced8d3fa548
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Mon Feb 6 22:08:10 2017 -0500

    Mini mode is non-resizable, exiting mini mode restores playlist state
---
 src/parole-player.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/parole-player.c b/src/parole-player.c
index ad7e5cb..6453709 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -2110,10 +2110,17 @@ parole_player_reset_controls (ParolePlayer *player, gboolean fullscreen)
             gtk_widget_show(player->priv->label_divider);
 
             gtk_window_resize (GTK_WINDOW (player->priv->window), 256, 256);
+            gtk_widget_set_size_request (GTK_WIDGET (player->priv->window), 256, 256);
+            gtk_window_set_default_size (GTK_WINDOW (player->priv->window), 256, 256);
+            gtk_window_set_resizable (GTK_WINDOW (player->priv->window), FALSE);
         }
 
         else
         {
+            gtk_widget_set_size_request (GTK_WIDGET (player->priv->window), -1, -1);
+            gtk_window_set_default_size (GTK_WINDOW (player->priv->window), -1, -1);
+            gtk_window_set_resizable (GTK_WINDOW (player->priv->window), TRUE);
+
             gtk_widget_show (player->priv->audiobox_text);
             gtk_widget_show (player->priv->fullscreen_button);
             gtk_widget_hide(player->priv->label_divider);
@@ -2124,6 +2131,8 @@ parole_player_reset_controls (ParolePlayer *player, gboolean fullscreen)
             {
                 gtk_widget_show (player->priv->menu_bar);
                 gtk_widget_show (player->priv->showhide_playlist_button);
+                if ( gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (player->priv->showhide_playlist_button)) )
+                    gtk_widget_show (player->priv->playlist_nt);
                 gtk_window_resize (GTK_WINDOW (player->priv->window), w, h);
             }
         }
@@ -2762,7 +2771,6 @@ parole_player_handle_key_press (GdkEventKey *ev, ParolePlayer *player)
             parole_media_list_open_location (player->priv->list);
             break;
 #endif
-        break;
         /*
          * Pass these to the media list and tell it to
          * grab the focus
@@ -4053,7 +4061,7 @@ static gboolean
 get_has_file_extension (gchar* filename, gchar* extension)
 {
     gchar *lowercase = NULL;
-    gboolean has_ext = FALSE;
+    gboolean has_ext;
 
     lowercase = g_utf8_strdown (filename, g_utf8_strlen(filename, -1));
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list