Added wofi_insert_widgets()

This allows modes to ask for wofi to query them for new entries
This commit is contained in:
Scoopta 2020-01-31 13:25:04 -08:00
parent 3693e89739
commit 3a80153e17
2 changed files with 6 additions and 0 deletions

View File

@ -42,6 +42,8 @@ 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);
bool wofi_allow_images(void); bool wofi_allow_images(void);
bool wofi_allow_markup(void); bool wofi_allow_markup(void);

View File

@ -626,6 +626,10 @@ struct widget* wofi_create_widget(struct mode* mode, char** text, char* search_t
return widget; return widget;
} }
void wofi_insert_widgets(struct mode* mode) {
gdk_threads_add_idle(_insert_widget, mode);
}
bool wofi_allow_images(void) { bool wofi_allow_images(void) {
return allow_images; return allow_images;
} }