forked from enlightenment/terminology
video: no need to force emotion engine anymore
This commit is contained in:
parent
787472cb92
commit
2259519d10
|
@ -1,5 +1,5 @@
|
||||||
.\" Manpage for Terminology
|
.\" Manpage for Terminology
|
||||||
.TH TERMINOLOGY 1 "Feb 15, 2020" "1.7.0" "Terminology man page"
|
.TH TERMINOLOGY 1 "Apr 12, 2020" "1.7.0" "Terminology man page"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
Terminology \- Terminal Emulator written with EFL (Enlightenment Foundation Libraries).
|
Terminology \- Terminal Emulator written with EFL (Enlightenment Foundation Libraries).
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
@ -96,11 +96,6 @@ Set font (NAME/SIZE for scalable, NAME for bitmap.
|
||||||
Type: STR.
|
Type: STR.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B \-v=VIDEO\-MODULE, \-\-video-module=VIDEO\-MODULE
|
|
||||||
Set emotion module to use. Choices are: \fBauto\fP, \fBgstreamer\fP,
|
|
||||||
\fBxine\fP, \fBgeneric\fP.
|
|
||||||
.
|
|
||||||
.TP
|
|
||||||
.B \-l=LOGIN, \-\-login=LOGIN
|
.B \-l=LOGIN, \-\-login=LOGIN
|
||||||
Run the shell as a login shell.
|
Run the shell as a login shell.
|
||||||
Type: BOOL.
|
Type: BOOL.
|
||||||
|
|
|
@ -110,7 +110,7 @@ config_init(void)
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
(edd_base, Config, "tab_zoom", tab_zoom, EET_T_DOUBLE);
|
(edd_base, Config, "tab_zoom", tab_zoom, EET_T_DOUBLE);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
(edd_base, Config, "vidmod", vidmod, EET_T_INT);
|
(edd_base, Config, "vidmod", _vidmod, EET_T_INT); /* DEPRECATED */
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
(edd_base, Config, "jump_on_change", jump_on_change, EET_T_UCHAR);
|
(edd_base, Config, "jump_on_change", jump_on_change, EET_T_UCHAR);
|
||||||
EET_DATA_DESCRIPTOR_ADD_BASIC
|
EET_DATA_DESCRIPTOR_ADD_BASIC
|
||||||
|
@ -283,7 +283,6 @@ config_sync(const Config *config_src, Config *config)
|
||||||
config->scrollback = config_src->scrollback;
|
config->scrollback = config_src->scrollback;
|
||||||
config->tab_zoom = config_src->tab_zoom;
|
config->tab_zoom = config_src->tab_zoom;
|
||||||
config->hide_cursor = config_src->hide_cursor;
|
config->hide_cursor = config_src->hide_cursor;
|
||||||
config->vidmod = config_src->vidmod;
|
|
||||||
config->jump_on_keypress = config_src->jump_on_keypress;
|
config->jump_on_keypress = config_src->jump_on_keypress;
|
||||||
config->jump_on_change = config_src->jump_on_change;
|
config->jump_on_change = config_src->jump_on_change;
|
||||||
config->flicker_on_key = config_src->flicker_on_key;
|
config->flicker_on_key = config_src->flicker_on_key;
|
||||||
|
@ -547,7 +546,6 @@ config_new(void)
|
||||||
config->theme = eina_stringshare_add("default.edj");
|
config->theme = eina_stringshare_add("default.edj");
|
||||||
config->background = NULL;
|
config->background = NULL;
|
||||||
config->tab_zoom = 0.5;
|
config->tab_zoom = 0.5;
|
||||||
config->vidmod = 0;
|
|
||||||
config->opacity = 50;
|
config->opacity = 50;
|
||||||
config->cg_width = 80;
|
config->cg_width = 80;
|
||||||
config->cg_height = 24;
|
config->cg_height = 24;
|
||||||
|
@ -633,7 +631,7 @@ config_load(void)
|
||||||
LIM(config->font.size, 3, 400);
|
LIM(config->font.size, 3, 400);
|
||||||
LIM(config->scrollback, 0, 131072);
|
LIM(config->scrollback, 0, 131072);
|
||||||
LIM(config->tab_zoom, 0.0, 1.0);
|
LIM(config->tab_zoom, 0.0, 1.0);
|
||||||
LIM(config->vidmod, 0, 4)
|
LIM(config->_vidmod, 0, 4)
|
||||||
|
|
||||||
/* upgrade to v3 */
|
/* upgrade to v3 */
|
||||||
config->active_links = EINA_TRUE;
|
config->active_links = EINA_TRUE;
|
||||||
|
@ -798,7 +796,6 @@ config_fork(const Config *config)
|
||||||
CPY(scrollback);
|
CPY(scrollback);
|
||||||
CPY(tab_zoom);
|
CPY(tab_zoom);
|
||||||
CPY(hide_cursor);
|
CPY(hide_cursor);
|
||||||
CPY(vidmod);
|
|
||||||
CPY(jump_on_change);
|
CPY(jump_on_change);
|
||||||
CPY(jump_on_keypress);
|
CPY(jump_on_keypress);
|
||||||
CPY(flicker_on_key);
|
CPY(flicker_on_key);
|
||||||
|
|
|
@ -58,7 +58,7 @@ struct _Config
|
||||||
const char *background;
|
const char *background;
|
||||||
double tab_zoom;
|
double tab_zoom;
|
||||||
double hide_cursor;
|
double hide_cursor;
|
||||||
int vidmod;
|
int _vidmod; /* DEPRECATED */
|
||||||
int opacity;
|
int opacity;
|
||||||
int shine;
|
int shine;
|
||||||
int cg_width;
|
int cg_width;
|
||||||
|
|
|
@ -434,11 +434,6 @@ main_ipc_new(Ipc_Instance *inst)
|
||||||
unsetenv("DESKTOP_STARTUP_ID");
|
unsetenv("DESKTOP_STARTUP_ID");
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *emotion_choices[] = {
|
|
||||||
"auto", "gstreamer", "xine", "generic", "gstreamer1",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
static Ecore_Getopt options = {
|
static Ecore_Getopt options = {
|
||||||
PACKAGE_NAME,
|
PACKAGE_NAME,
|
||||||
"%prog [options]",
|
"%prog [options]",
|
||||||
|
@ -473,9 +468,6 @@ static Ecore_Getopt options = {
|
||||||
" 'v' for vertical and 'h' for horizontal."
|
" 'v' for vertical and 'h' for horizontal."
|
||||||
" Can be used multiple times. eg -S vhvv or --split hv"
|
" Can be used multiple times. eg -S vhvv or --split hv"
|
||||||
" More description available on the man page.")),
|
" More description available on the man page.")),
|
||||||
ECORE_GETOPT_CHOICE ('v', "video-module",
|
|
||||||
gettext_noop("Set emotion module to use."), emotion_choices),
|
|
||||||
|
|
||||||
ECORE_GETOPT_STORE_BOOL('l', "login",
|
ECORE_GETOPT_STORE_BOOL('l', "login",
|
||||||
gettext_noop("Run the shell as a login shell.")),
|
gettext_noop("Run the shell as a login shell.")),
|
||||||
ECORE_GETOPT_STORE_BOOL('m', "video-mute",
|
ECORE_GETOPT_STORE_BOOL('m', "video-mute",
|
||||||
|
@ -796,7 +788,6 @@ EAPI_MAIN int
|
||||||
elm_main(int argc, char **argv)
|
elm_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *geometry = NULL;
|
char *geometry = NULL;
|
||||||
char *video_module = NULL;
|
|
||||||
Eina_Bool quit_option = EINA_FALSE;
|
Eina_Bool quit_option = EINA_FALSE;
|
||||||
Eina_Bool single = EINA_FALSE;
|
Eina_Bool single = EINA_FALSE;
|
||||||
Eina_Bool no_wizard = EINA_FALSE;
|
Eina_Bool no_wizard = EINA_FALSE;
|
||||||
|
@ -824,7 +815,6 @@ elm_main(int argc, char **argv)
|
||||||
ECORE_GETOPT_VALUE_STR(instance.icon_name),
|
ECORE_GETOPT_VALUE_STR(instance.icon_name),
|
||||||
ECORE_GETOPT_VALUE_STR(instance.font),
|
ECORE_GETOPT_VALUE_STR(instance.font),
|
||||||
ECORE_GETOPT_VALUE_STR(instance.startup_split),
|
ECORE_GETOPT_VALUE_STR(instance.startup_split),
|
||||||
ECORE_GETOPT_VALUE_STR(video_module),
|
|
||||||
|
|
||||||
ECORE_GETOPT_VALUE_BOOL(instance.login_shell),
|
ECORE_GETOPT_VALUE_BOOL(instance.login_shell),
|
||||||
ECORE_GETOPT_VALUE_BOOL(instance.video_mute),
|
ECORE_GETOPT_VALUE_BOOL(instance.video_mute),
|
||||||
|
@ -963,22 +953,6 @@ elm_main(int argc, char **argv)
|
||||||
_configure_instance(&instance);
|
_configure_instance(&instance);
|
||||||
|
|
||||||
|
|
||||||
if (video_module)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
for (i = 0; i < (int)EINA_C_ARRAY_LENGTH(emotion_choices); i++)
|
|
||||||
{
|
|
||||||
if (video_module == emotion_choices[i])
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i == EINA_C_ARRAY_LENGTH(emotion_choices))
|
|
||||||
i = 0; /* ecore getopt shouldn't let this happen, but... */
|
|
||||||
instance.config->vidmod = i;
|
|
||||||
instance.config->temporary = EINA_TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (geometry)
|
if (geometry)
|
||||||
{
|
{
|
||||||
if (sscanf(geometry,"%ix%i+%i+%i", &instance.w, &instance.h,
|
if (sscanf(geometry,"%ix%i+%i+%i", &instance.w, &instance.h,
|
||||||
|
|
|
@ -785,31 +785,12 @@ _type_mov_init(Evas_Object *obj)
|
||||||
{
|
{
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
double vol;
|
double vol;
|
||||||
char *modules[] =
|
|
||||||
{
|
|
||||||
NULL,
|
|
||||||
"gstreamer",
|
|
||||||
"xine",
|
|
||||||
"vlc",
|
|
||||||
"gstreamer1"
|
|
||||||
};
|
|
||||||
char *mod = NULL;
|
|
||||||
Media *sd = evas_object_smart_data_get(obj);
|
Media *sd = evas_object_smart_data_get(obj);
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, -1);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, -1);
|
||||||
|
|
||||||
emotion_init();
|
emotion_init();
|
||||||
o = sd->o_img = emotion_object_add(evas_object_evas_get(obj));
|
o = sd->o_img = emotion_object_add(evas_object_evas_get(obj));
|
||||||
if ((sd->config->vidmod >= 0) &&
|
|
||||||
(sd->config->vidmod < (int)EINA_C_ARRAY_LENGTH(modules)))
|
|
||||||
mod = modules[sd->config->vidmod];
|
|
||||||
if (!emotion_object_init(o, mod))
|
|
||||||
{
|
|
||||||
ERR(_("Could not Initialize the emotion module '%s'"), mod);
|
|
||||||
evas_object_del(sd->o_img);
|
|
||||||
sd->o_img = NULL;
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
evas_object_smart_callback_add(o, "frame_decode",
|
evas_object_smart_callback_add(o, "frame_decode",
|
||||||
_cb_mov_frame_decode, obj);
|
_cb_mov_frame_decode, obj);
|
||||||
evas_object_smart_callback_add(o, "frame_resize",
|
evas_object_smart_callback_add(o, "frame_resize",
|
||||||
|
|
|
@ -16,7 +16,6 @@ terminology_sources = ['private.h',
|
||||||
'options_behavior.c', 'options_behavior.h',
|
'options_behavior.c', 'options_behavior.h',
|
||||||
'options_keys.c', 'options_keys.h',
|
'options_keys.c', 'options_keys.h',
|
||||||
'options_helpers.c', 'options_helpers.h',
|
'options_helpers.c', 'options_helpers.h',
|
||||||
'options_video.c', 'options_video.h',
|
|
||||||
'options_elm.c', 'options_elm.h',
|
'options_elm.c', 'options_elm.h',
|
||||||
'sel.c', 'sel.h',
|
'sel.c', 'sel.h',
|
||||||
'miniview.c', 'miniview.h',
|
'miniview.c', 'miniview.h',
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "options_theme.h"
|
#include "options_theme.h"
|
||||||
#include "options_background.h"
|
#include "options_background.h"
|
||||||
#include "options_colors.h"
|
#include "options_colors.h"
|
||||||
#include "options_video.h"
|
|
||||||
#include "options_behavior.h"
|
#include "options_behavior.h"
|
||||||
#include "options_keys.h"
|
#include "options_keys.h"
|
||||||
#include "options_helpers.h"
|
#include "options_helpers.h"
|
||||||
|
@ -23,7 +22,6 @@ enum option_mode {
|
||||||
OPTION_THEME,
|
OPTION_THEME,
|
||||||
OPTION_BACKGROUND,
|
OPTION_BACKGROUND,
|
||||||
OPTION_COLORS,
|
OPTION_COLORS,
|
||||||
OPTION_VIDEO,
|
|
||||||
OPTION_KEYS,
|
OPTION_KEYS,
|
||||||
OPTION_HELPERS,
|
OPTION_HELPERS,
|
||||||
OPTION_ELM,
|
OPTION_ELM,
|
||||||
|
@ -90,7 +88,6 @@ _cb_opdt_hide_done(void *data,
|
||||||
case OPTION_THEME: options_theme(ctx->opbox, ctx->term); break;
|
case OPTION_THEME: options_theme(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_BACKGROUND: options_background(ctx->opbox, ctx->term); break;
|
case OPTION_BACKGROUND: options_background(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_COLORS: options_colors(ctx->opbox, ctx->term, ctx->bg); break;
|
case OPTION_COLORS: options_colors(ctx->opbox, ctx->term, ctx->bg); break;
|
||||||
case OPTION_VIDEO: options_video(ctx->opbox, ctx->term); break;
|
|
||||||
case OPTION_KEYS: options_keys(ctx->opbox, ctx->term); break;
|
case OPTION_KEYS: options_keys(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_HELPERS: options_helpers(ctx->opbox, ctx->term); break;
|
case OPTION_HELPERS: options_helpers(ctx->opbox, ctx->term); break;
|
||||||
case OPTION_ELM: options_elm(ctx->opbox, ctx->term); break;
|
case OPTION_ELM: options_elm(ctx->opbox, ctx->term); break;
|
||||||
|
@ -222,7 +219,6 @@ options_show(Evas_Object *win, Evas_Object *base, Evas_Object *bg, Evas_Object *
|
||||||
ITEM_APPEND("preferences-desktop-theme", _("Theme"), THEME);
|
ITEM_APPEND("preferences-desktop-theme", _("Theme"), THEME);
|
||||||
ITEM_APPEND("background", _("Background"), BACKGROUND);
|
ITEM_APPEND("background", _("Background"), BACKGROUND);
|
||||||
ITEM_APPEND("preferences-desktop-theme", _("Colors"), COLORS);
|
ITEM_APPEND("preferences-desktop-theme", _("Colors"), COLORS);
|
||||||
ITEM_APPEND("video-display", _("Video"), VIDEO);
|
|
||||||
ITEM_APPEND("preferences-desktop-keyboard-shortcuts", _("Keys"), KEYS);
|
ITEM_APPEND("preferences-desktop-keyboard-shortcuts", _("Keys"), KEYS);
|
||||||
ITEM_APPEND("system-run", _("Helpers"), HELPERS);
|
ITEM_APPEND("system-run", _("Helpers"), HELPERS);
|
||||||
ITEM_APPEND("preferences-color", _("Toolkit"), ELM);
|
ITEM_APPEND("preferences-color", _("Toolkit"), ELM);
|
||||||
|
|
|
@ -1,165 +0,0 @@
|
||||||
#include "private.h"
|
|
||||||
|
|
||||||
#include <Elementary.h>
|
|
||||||
#include "config.h"
|
|
||||||
#include "termio.h"
|
|
||||||
#include "options.h"
|
|
||||||
#include "options_video.h"
|
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
_cb_op_video_mute_chg(void *data,
|
|
||||||
Evas_Object *obj,
|
|
||||||
void *_event EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *term = data;
|
|
||||||
Config *config = termio_config_get(term);
|
|
||||||
config->mute = elm_check_state_get(obj);
|
|
||||||
main_media_mute_update(config);
|
|
||||||
config_save(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
_cb_op_video_visualize_chg(void *data,
|
|
||||||
Evas_Object *obj,
|
|
||||||
void *_event EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *term = data;
|
|
||||||
Config *config = termio_config_get(term);
|
|
||||||
config->visualize = elm_check_state_get(obj);
|
|
||||||
main_media_visualize_update(config);
|
|
||||||
config_save(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
_cb_op_video_vidmod_chg(void *data,
|
|
||||||
Evas_Object *obj,
|
|
||||||
void *_event EINA_UNUSED)
|
|
||||||
{
|
|
||||||
Evas_Object *term = data;
|
|
||||||
Config *config = termio_config_get(term);
|
|
||||||
int v = elm_radio_value_get(obj);
|
|
||||||
if (v == config->vidmod) return;
|
|
||||||
config->vidmod = v;
|
|
||||||
main_media_update(config);
|
|
||||||
config_save(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
options_video(Evas_Object *opbox, Evas_Object *term)
|
|
||||||
{
|
|
||||||
Evas_Object *o, *fr, *bx0, *op_vidmod;
|
|
||||||
Config *config = termio_config_get(term);
|
|
||||||
|
|
||||||
fr = o = elm_frame_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
elm_object_text_set(o, _("Video"));
|
|
||||||
elm_box_pack_end(opbox, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
|
|
||||||
bx0 = o = elm_box_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
|
||||||
elm_object_content_set(fr, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
|
|
||||||
|
|
||||||
o = elm_check_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, _("Audio muted"));
|
|
||||||
elm_check_state_set(o, config->mute);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_mute_chg, term);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* TODO: visualizing type configuration
|
|
||||||
*/
|
|
||||||
o = elm_check_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, _("Audio visualized"));
|
|
||||||
elm_check_state_set(o, config->visualize);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_visualize_chg, term);
|
|
||||||
|
|
||||||
o = elm_separator_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_separator_horizontal_set(o, EINA_TRUE);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
|
|
||||||
o = elm_label_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, 0.0, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, 0.0, 0.5);
|
|
||||||
elm_object_text_set(o, _("Video Engine:"));
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
|
|
||||||
op_vidmod = o = elm_radio_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, _("Automatic"));
|
|
||||||
elm_radio_state_value_set(o, 0);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_vidmod_chg, term);
|
|
||||||
|
|
||||||
o = elm_radio_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, "Gstreamer");
|
|
||||||
elm_radio_state_value_set(o, 1);
|
|
||||||
elm_radio_group_add(o, op_vidmod);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_vidmod_chg, term);
|
|
||||||
|
|
||||||
o = elm_radio_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, "Xine");
|
|
||||||
elm_radio_state_value_set(o, 2);
|
|
||||||
elm_radio_group_add(o, op_vidmod);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_vidmod_chg, term);
|
|
||||||
|
|
||||||
o = elm_radio_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, "VLC");
|
|
||||||
elm_radio_state_value_set(o, 3);
|
|
||||||
elm_radio_group_add(o, op_vidmod);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_vidmod_chg, term);
|
|
||||||
|
|
||||||
o = elm_radio_add(opbox);
|
|
||||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(o, EVAS_HINT_FILL, 0.5);
|
|
||||||
elm_object_text_set(o, "Gstreamer 1.X");
|
|
||||||
elm_radio_state_value_set(o, 4);
|
|
||||||
elm_radio_group_add(o, op_vidmod);
|
|
||||||
elm_box_pack_end(bx0, o);
|
|
||||||
evas_object_show(o);
|
|
||||||
evas_object_smart_callback_add(o, "changed",
|
|
||||||
_cb_op_video_vidmod_chg, term);
|
|
||||||
|
|
||||||
elm_radio_value_set(o, config->vidmod);
|
|
||||||
|
|
||||||
evas_object_size_hint_weight_set(opbox, EVAS_HINT_EXPAND, 0.0);
|
|
||||||
evas_object_size_hint_align_set(opbox, EVAS_HINT_FILL, 0.0);
|
|
||||||
evas_object_show(o);
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
#ifndef _OPTIONS_VIDEO_H__
|
|
||||||
#define _OPTIONS_VIDEO_H__ 1
|
|
||||||
|
|
||||||
void options_video(Evas_Object *opbox, Evas_Object *term);
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -3909,15 +3909,6 @@ termio_add(Evas_Object *win, Config *config,
|
||||||
Evas *e;
|
Evas *e;
|
||||||
Evas_Object *obj, *g;
|
Evas_Object *obj, *g;
|
||||||
Termio *sd;
|
Termio *sd;
|
||||||
char *modules[] =
|
|
||||||
{
|
|
||||||
NULL,
|
|
||||||
"gstreamer",
|
|
||||||
"xine",
|
|
||||||
"vlc",
|
|
||||||
"gstreamer1"
|
|
||||||
};
|
|
||||||
char *mod = NULL;
|
|
||||||
Ecore_Window window_id;
|
Ecore_Window window_id;
|
||||||
|
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(win, NULL);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(win, NULL);
|
||||||
|
@ -3929,10 +3920,6 @@ termio_add(Evas_Object *win, Config *config,
|
||||||
sd = evas_object_smart_data_get(obj);
|
sd = evas_object_smart_data_get(obj);
|
||||||
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, obj);
|
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, obj);
|
||||||
|
|
||||||
if ((config->vidmod >= 0) &&
|
|
||||||
(config->vidmod < (int)EINA_C_ARRAY_LENGTH(modules)))
|
|
||||||
mod = modules[config->vidmod];
|
|
||||||
|
|
||||||
sd->cursor.shape = config->cursor_shape;
|
sd->cursor.shape = config->cursor_shape;
|
||||||
termio_config_set(obj, config);
|
termio_config_set(obj, config);
|
||||||
sd->term = term;
|
sd->term = term;
|
||||||
|
@ -3968,7 +3955,7 @@ termio_add(Evas_Object *win, Config *config,
|
||||||
_smart_cb_drop, obj);
|
_smart_cb_drop, obj);
|
||||||
|
|
||||||
window_id = elm_win_window_id_get(win);
|
window_id = elm_win_window_id_get(win);
|
||||||
sd->pty = termpty_new(cmd, login_shell, cd, w, h, config, mod, title,
|
sd->pty = termpty_new(cmd, login_shell, cd, w, h, config, title,
|
||||||
window_id);
|
window_id);
|
||||||
if (!sd->pty)
|
if (!sd->pty)
|
||||||
{
|
{
|
||||||
|
|
|
@ -531,8 +531,8 @@ _is_shell_valid(const char *cmd)
|
||||||
|
|
||||||
Termpty *
|
Termpty *
|
||||||
termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
int w, int h, Config *config, const char *emotion_mod,
|
int w, int h, Config *config, const char *title,
|
||||||
const char *title, Ecore_Window window_id)
|
Ecore_Window window_id)
|
||||||
{
|
{
|
||||||
Termpty *ty;
|
Termpty *ty;
|
||||||
const char *pty;
|
const char *pty;
|
||||||
|
@ -770,11 +770,6 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
putenv("TERM=xterm");
|
putenv("TERM=xterm");
|
||||||
}
|
}
|
||||||
putenv("XTERM_256_COLORS=1");
|
putenv("XTERM_256_COLORS=1");
|
||||||
if (emotion_mod)
|
|
||||||
{
|
|
||||||
snprintf(buf, sizeof(buf), "EMOTION_ENGINE=%s", emotion_mod);
|
|
||||||
putenv(buf);
|
|
||||||
}
|
|
||||||
if (window_id)
|
if (window_id)
|
||||||
{
|
{
|
||||||
snprintf(buf, sizeof(buf), "WINDOWID=%lu", window_id);
|
snprintf(buf, sizeof(buf), "WINDOWID=%lu", window_id);
|
||||||
|
|
|
@ -273,8 +273,8 @@ void termpty_init(void);
|
||||||
void termpty_shutdown(void);
|
void termpty_shutdown(void);
|
||||||
|
|
||||||
Termpty *termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
Termpty *termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
int w, int h, Config *config, const char *emotion_mod,
|
int w, int h, Config *config, const char *title,
|
||||||
const char *title, Ecore_Window window_id);
|
Ecore_Window window_id);
|
||||||
void termpty_free(Termpty *ty);
|
void termpty_free(Termpty *ty);
|
||||||
void termpty_config_update(Termpty *ty, Config *config);
|
void termpty_config_update(Termpty *ty, Config *config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue