From 39912d87d5982a40d5fd3633da12568d160b67c7 Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 6 Oct 2024 10:41:24 +1000 Subject: Fix channel selection menus disappearing When adding/removing an action to/from the toolbar, the aspect ratio, audio channel, and subtitle channel menus would disappear from the parent settings menu. My understanding is that this happened because nothing was keeping those menus present (plugged?) when other actions were plugged/unplugged. This changes it so "Aspect Ratio", "Subtitles", and "Audio Channels" each are a TDESelectAction that is dynamically filled with items. This way, each popup menu is still present after other actions being plugged/unplugged. Resolves: TDE/codeine#24 Signed-off-by: mio (cherry picked from commit f460840a5e1c4e6cc262177f2b60cebfe469d393) --- src/app/xineEngine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/app/xineEngine.h') diff --git a/src/app/xineEngine.h b/src/app/xineEngine.h index 638bc01..6f8170a 100644 --- a/src/app/xineEngine.h +++ b/src/app/xineEngine.h @@ -83,7 +83,8 @@ namespace Codeine void stateChanged( Engine::State ); void statusMessage( const TQString& ); void titleChanged( const TQString& ); - void channelsChanged( const TQStringList& ); + void audioChannelsChanged( const TQStringList &); + void subtitleChannelsChanged( const TQStringList &); private: static void xineEventListener( void*, const xine_event_t* ); -- cgit v1.2.3