summaryrefslogtreecommitdiffstats
path: root/src/app/extern.h
diff options
context:
space:
mode:
authormio <[email protected]>2024-10-06 10:41:24 +1000
committermio <[email protected]>2024-10-06 17:16:41 +1000
commitf460840a5e1c4e6cc262177f2b60cebfe469d393 (patch)
tree97a47405e1714970d9eda9616ac3450a0ca2ccfb /src/app/extern.h
parentcc8974895a02a98823419846e75f23651aa0abc0 (diff)
downloadcodeine-f460840a5e1c4e6cc262177f2b60cebfe469d393.tar.gz
codeine-f460840a5e1c4e6cc262177f2b60cebfe469d393.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 <[email protected]>
Diffstat (limited to 'src/app/extern.h')
-rw-r--r--src/app/extern.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/extern.h b/src/app/extern.h
index 442b4d3..410f459 100644
--- a/src/app/extern.h
+++ b/src/app/extern.h
@@ -9,7 +9,7 @@ extern "C"
typedef struct xine_s xine_t;
}
-class TQPopupMenu;
+class TDESelectAction;
class TQWidget;
namespace Codeine
@@ -22,7 +22,7 @@ namespace Codeine
void showVideoSettingsDialog( TQWidget* );
void showXineConfigurationDialog( TQWidget*, xine_t* );
- void insertAspectRatioMenuItems( TQPopupMenu* );
+ void insertAspectRatioMenuItems( TDESelectAction* );
}
#endif