{
int lock_sliders;
int show_locked;
+ int keybindings_popup;
int card_num;
int channel;
const char *card;
Evas_Object *frame;
Evas_Object *lock_sliders;
Evas_Object *show_locked;
+ Evas_Object *keybindings_popup;
} general;
struct mixer_config_ui_cards
{
cfdata->conf = conf;
cfdata->lock_sliders = conf->lock_sliders;
cfdata->show_locked = conf->show_locked;
+ cfdata->keybindings_popup = conf->keybindings_popup;
cfdata->card = eina_stringshare_add(conf->card);
_mixer_fill_cards_info(cfdata);
_mixer_fill_channels_info(cfdata);
conf->lock_sliders = cfdata->lock_sliders;
conf->show_locked = cfdata->show_locked;
+ conf->keybindings_popup = cfdata->keybindings_popup;
card = eina_list_nth(cfdata->cards, cfdata->card_num);
if (card)
evas, _("Show both sliders when locked"), &cfdata->show_locked);
e_widget_disabled_set(ui->show_locked, !cfdata->lock_sliders);
e_widget_framelist_object_append(ui->frame, ui->show_locked);
+
+ ui->keybindings_popup = e_widget_check_add(
+ evas, _("Show Popup on volume change via keybindings"), &cfdata->keybindings_popup);
+ e_widget_framelist_object_append(ui->frame, ui->keybindings_popup);
}
static void
conf->channel_name = channel;
conf->lock_sliders = 1;
conf->show_locked = 0;
+ conf->keybindings_popup = 0;
return 1;
}
if (!ctxt->default_instance)
return;
- _mixer_popup_timer_new(ctxt->default_instance);
+ if (ctxt->default_instance->conf->keybindings_popup)
+ _mixer_popup_timer_new(ctxt->default_instance);
_mixer_volume_increase(ctxt->default_instance);
}
if (!ctxt->default_instance)
return;
- _mixer_popup_timer_new(ctxt->default_instance);
+ if (ctxt->default_instance->conf->keybindings_popup)
+ _mixer_popup_timer_new(ctxt->default_instance);
_mixer_volume_decrease(ctxt->default_instance);
}
if (!ctxt->default_instance)
return;
- _mixer_popup_timer_new(ctxt->default_instance);
+ if (ctxt->default_instance->conf->keybindings_popup)
+ _mixer_popup_timer_new(ctxt->default_instance);
_mixer_toggle_mute(ctxt->default_instance);
}
return NULL;
E_CONFIG_VAL(conf_edd, E_Mixer_Gadget_Config, lock_sliders, INT);
E_CONFIG_VAL(conf_edd, E_Mixer_Gadget_Config, show_locked, INT);
+ E_CONFIG_VAL(conf_edd, E_Mixer_Gadget_Config, keybindings_popup, INT);
E_CONFIG_VAL(conf_edd, E_Mixer_Gadget_Config, card, STR);
E_CONFIG_VAL(conf_edd, E_Mixer_Gadget_Config, channel_name, STR);