summaryrefslogtreecommitdiffstats
path: root/src/app/mainWindow.h
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2024-10-06 10:41:24 +1000
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-10-06 17:38:04 +0900
commit39912d87d5982a40d5fd3633da12568d160b67c7 (patch)
treeb25213a9a2466b4367f81fe8d0def782ca32f569 /src/app/mainWindow.h
parent5100a0909b52226219ebe33342f1fb9ee7f8e49b (diff)
downloadcodeine-39912d87d5982a40d5fd3633da12568d160b67c7.tar.gz
codeine-39912d87d5982a40d5fd3633da12568d160b67c7.zip
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 <stigma@disroot.org> (cherry picked from commit f460840a5e1c4e6cc262177f2b60cebfe469d393)
Diffstat (limited to 'src/app/mainWindow.h')
-rw-r--r--src/app/mainWindow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/mainWindow.h b/src/app/mainWindow.h
index 6ba9e89..634d444 100644
--- a/src/app/mainWindow.h
+++ b/src/app/mainWindow.h
@@ -40,9 +40,9 @@ namespace Codeine
void engineStateChanged( Engine::State );
void init();
void showTime( int = -1 );
- void setChannels( const TQStringList& );
- void aboutToShowMenu();
void fullScreenToggled( bool );
+ void setAudioChannels(const TQStringList&) const;
+ void setSubtitleChannels(const TQStringList&) const;
private:
void setupActions();
@@ -50,7 +50,7 @@ namespace Codeine
bool load( const KURL& );
bool open( const KURL& );
- TQPopupMenu *menu( const char *name );
+ TQPopupMenu *menu(const TQString&);
virtual void timerEvent( TQTimerEvent* );
virtual void dragEnterEvent( TQDragEnterEvent* );