diff options
author | Bastien Nocera <hadess@hadess.net> | 2022-02-17 22:47:42 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2022-02-17 22:47:42 +0100 |
commit | 062fa5204a1b0ea3641f05fb239e970f61550865 (patch) | |
tree | 7369648a9e071c765e3bcbc95247a0ad93c3e461 /src | |
parent | 14e577920e0f566a9701329c5ba05f2356033645 (diff) | |
download | totem-062fa5204a1b0ea3641f05fb239e970f61550865.tar.gz |
main: Keep controls up when paused or stopped
Diffstat (limited to 'src')
-rw-r--r-- | src/totem-object.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/totem-object.c b/src/totem-object.c index ac1f821d9..45f2b9739 100644 --- a/src/totem-object.c +++ b/src/totem-object.c @@ -96,6 +96,8 @@ static void update_media_menu_items (TotemObject *totem); static void playlist_changed_cb (GtkWidget *playlist, TotemObject *totem); static void play_pause_set_label (TotemObject *totem, TotemStates state); static void totem_object_set_mrl_and_play (TotemObject *totem, const char *mrl, const char *subtitle); +static void mark_popup_busy (TotemObject *totem, const char *reason); +static void unmark_popup_busy (TotemObject *totem, const char *reason); /* Callback functions for GtkBuilder */ G_MODULE_EXPORT gboolean main_window_destroy_cb (GtkWidget *widget, GdkEvent *event, TotemObject *totem); @@ -1278,10 +1280,6 @@ totem_remote_setting_get_type (void) } static void -unmark_popup_busy (TotemObject *totem, - const char *reason); - -static void reset_seek_status (TotemObject *totem) { /* Release the lock and reset everything so that we @@ -1512,6 +1510,7 @@ totem_object_play (TotemObject *totem) play_pause_set_label (totem, retval ? STATE_PLAYING : STATE_STOPPED); if (retval != FALSE) { + unmark_popup_busy (totem, "paused"); if (totem->has_played_emitted == FALSE) { totem_file_has_played (totem, totem->mrl); totem->has_played_emitted = TRUE; @@ -1640,6 +1639,7 @@ totem_object_stop (TotemObject *totem) totem_playlist_set_at_start (totem->playlist); update_buttons (totem); bacon_video_widget_stop (totem->bvw); + mark_popup_busy (totem, "paused"); play_pause_set_label (totem, STATE_STOPPED); mrl = totem_playlist_get_current_mrl (totem->playlist, &subtitle); if (mrl != NULL) { @@ -1662,6 +1662,7 @@ totem_object_pause (TotemObject *totem) { if (bacon_video_widget_is_playing (totem->bvw) != FALSE) { bacon_video_widget_pause (totem->bvw); + mark_popup_busy (totem, "paused"); play_pause_set_label (totem, STATE_PAUSED); } } |