diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-07-07 19:35:54 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 21:49:42 +0300 |
commit | 87366694d82c8d4c7f0bc210e6baa0ccd651d0c2 (patch) | |
tree | 57c6a283eed4934c6041658effab17435ef2ff1c /command.c | |
parent | a2037a2effbd4622d0e8336245a9b14c3f886bde (diff) | |
download | mpv-87366694d82c8d4c7f0bc210e6baa0ccd651d0c2.tar.bz2 mpv-87366694d82c8d4c7f0bc210e6baa0ccd651d0c2.tar.xz |
Remove the internal GUI
The GUI is badly designed and too closely coupled to the internal
details of other code. The GUI code is in bad shape and unmaintained
for years. There is no indication that anyone would maintain it in the
future either. Even if someone did volunteer to implement a better
integrated GUI having the current code in the tree probably wouldn't
help much. So get rid of it.
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -57,9 +57,6 @@ #include "m_struct.h" #include "libmenu/menu.h" #endif -#ifdef CONFIG_GUI -#include "gui/interface.h" -#endif #include "mp_core.h" #include "mp_fifo.h" @@ -1022,11 +1019,6 @@ static int mp_property_fullscreen(m_option_t *prop, int action, void *arg, return M_PROPERTY_OK; case M_PROPERTY_STEP_UP: case M_PROPERTY_STEP_DOWN: -#ifdef CONFIG_GUI - if (use_gui) - guiGetEvent(guiIEvent, (char *) MP_CMD_GUI_FULLSCREEN); - else -#endif if (mpctx->video_out->config_ok) vo_control(mpctx->video_out, VOCTRL_FULLSCREEN, 0); mpctx->opts.fullscreen = vo_fs; @@ -2547,17 +2539,6 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) int n = cmd->args[0].v.i == 0 ? 1 : cmd->args[0].v.i; int force = cmd->args[1].v.i; -#ifdef CONFIG_GUI - if (use_gui) { - int i = 0; - if (n > 0) - for (i = 0; i < n; i++) - mplNext(); - else - for (i = 0; i < -1 * n; i++) - mplPrev(); - } else -#endif { if (!force && mpctx->playtree_iter) { play_tree_iter_t *i = @@ -3227,11 +3208,6 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) #endif default: -#ifdef CONFIG_GUI - if ((use_gui) && (cmd->id > MP_CMD_GUI_EVENTS)) - guiGetEvent(guiIEvent, (char *) cmd->id); - else -#endif mp_msg(MSGT_CPLAYER, MSGL_V, "Received unknown cmd %s\n", cmd->name); } |