1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

[Script] Set type on Mode object.

This commit is contained in:
Dave Davenport 2023-07-03 18:10:22 +02:00
parent be6db24667
commit 64ceb85eed

View file

@ -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;
}