mirror of
https://github.com/lbonn/rofi
synced 2025-02-16 21:08:31 +00: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…
Add table
Reference in a new issue