mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[Script] Set type on Mode object.
This commit is contained in:
parent
be6db24667
commit
64ceb85eed
1 changed files with 2 additions and 0 deletions
|
@ -576,6 +576,7 @@ Mode *script_mode_parse_setup(const char *str) {
|
|||
sw->_get_icon = script_get_icon;
|
||||
sw->_get_completion = NULL, sw->_preprocess_input = NULL,
|
||||
sw->_get_display_value = _get_display_value;
|
||||
sw->type = MODE_TYPE_SWITCHER;
|
||||
return sw;
|
||||
}
|
||||
Mode *sw = g_malloc0(sizeof(*sw));
|
||||
|
@ -599,6 +600,7 @@ Mode *script_mode_parse_setup(const char *str) {
|
|||
sw->_get_icon = script_get_icon;
|
||||
sw->_get_completion = NULL, sw->_preprocess_input = NULL,
|
||||
sw->_get_display_value = _get_display_value;
|
||||
sw->type = MODE_TYPE_SWITCHER;
|
||||
|
||||
return sw;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue