Changed the signature of wofi_create_widget() to use arrays instead of pointers
This commit is contained in:
parent
7494cb1c7c
commit
5538191317
@ -40,7 +40,7 @@ void wofi_remove_cache(struct mode* mode, const char* cmd);
|
||||
|
||||
struct wl_list* wofi_read_cache(struct mode* mode);
|
||||
|
||||
struct widget* wofi_create_widget(struct mode* mode, char** text, char* search_text, char** actions, size_t action_count);
|
||||
struct widget* wofi_create_widget(struct mode* mode, char* text[], char* search_text, char* actions[], size_t action_count);
|
||||
|
||||
void wofi_insert_widgets(struct mode* mode);
|
||||
|
||||
|
@ -625,7 +625,7 @@ struct wl_list* wofi_read_cache(struct mode* mode) {
|
||||
return cache;
|
||||
}
|
||||
|
||||
struct widget* wofi_create_widget(struct mode* mode, char** text, char* search_text, char** actions, size_t action_count) {
|
||||
struct widget* wofi_create_widget(struct mode* mode, char* text[], char* search_text, char* actions[], size_t action_count) {
|
||||
struct widget* widget = malloc(sizeof(struct widget));
|
||||
widget->mode = strdup(mode->name);
|
||||
widget->text = malloc(action_count * sizeof(char*));
|
||||
|
Loading…
Reference in New Issue
Block a user