[vlc-commits] Qt: hack for extraintf to select http, cli or telnet
Jean-Baptiste Kempf
git at videolan.org
Wed Feb 8 12:56:39 CET 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Feb 8 12:51:48 2012 +0100| [cf70aaa18f4eaf1a3ae139d1de968589a3c5b11a] | committer: Jean-Baptiste Kempf
Qt: hack for extraintf to select http, cli or telnet
This is not the most elegant and completly perfect, but it will do for
now...
Close #5986
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf70aaa18f4eaf1a3ae139d1de968589a3c5b11a
---
modules/gui/qt4/components/preferences_widgets.cpp | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 858431d..0159e30 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -772,6 +772,19 @@ void ModuleListConfigControl::finish( bool bycat )
{
checkbox_lists( p_parser );
}
+
+ /* Parental Advisory HACK:
+ * Selecting HTTP, RC and Telnet interfaces is difficult now
+ * since they are just the lua interface module */
+ if( p_cfg->i_type == CONFIG_SUBCATEGORY &&
+ !strcmp( module_get_object( p_parser ), "lua" ) &&
+ !strcmp( p_item->psz_name, "extraintf" ) &&
+ p_cfg->value.i == p_item->min.i )
+ {
+ checkbox_lists( "Web", "Lua HTTP", "http" );
+ checkbox_lists( "Telnet", "Lua Telnet", "telnet" );
+ checkbox_lists( "Console", "Lua CLI", "cli" );
+ }
}
module_config_free (p_config);
}
More information about the vlc-commits
mailing list