[totem/wip/hadess/clean-private: 18/21] main: Use gtk_widget_set_sensitive() directly




commit 6b96ebbb7eac39e9c869418e8b91337051302bb8
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 7 13:37:23 2022 +0200

    main: Use gtk_widget_set_sensitive() directly
    
    As we already have a pointer to the right GtkWidget.

 src/totem-object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 3368e471c..a6818ea8a 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1931,7 +1931,7 @@ totem_object_set_mrl (TotemObject *totem,
                totem_object_set_sensitivity2 ("play", FALSE);
 
                /* Volume */
-               totem_controls_set_sensitivity ("volume_button", FALSE);
+               gtk_widget_set_sensitive (totem->volume, FALSE);
                totem->volume_sensitive = FALSE;
 
                /* Control popup */
@@ -1979,7 +1979,7 @@ totem_object_set_mrl (TotemObject *totem,
 
                /* Volume */
                caps = bacon_video_widget_can_set_volume (totem->bvw);
-               totem_controls_set_sensitivity ("volume_button", caps);
+               gtk_widget_set_sensitive (totem->volume, caps);
                totem->volume_sensitive = caps;
 
                /* Subtitle selection */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]