Added parse_action option to dmenu

This commit is contained in:
Scoopta
2019-12-16 19:15:16 -08:00
parent 62861d3686
commit c248461260
3 changed files with 33 additions and 3 deletions

View File

@@ -95,7 +95,7 @@ static void get_search(GtkSearchEntry* entry, gpointer data) {
gtk_flow_box_invalidate_sort(GTK_FLOW_BOX(inner_box));
}
static char* parse_images(WofiPropertyBox* box, char* text, bool create_widgets) {
static char* parse_images(WofiPropertyBox* box, const char* text, bool create_widgets) {
char* ret = strdup("");
struct map* mode_map = map_init();
map_put(mode_map, "img", "true");
@@ -214,6 +214,10 @@ static char* parse_images(WofiPropertyBox* box, char* text, bool create_widgets)
}
}
char* wofi_parse_image_escapes(const char* text) {
return parse_images(NULL, text, false);
}
static GtkWidget* create_label(char* mode, char* text, char* search_text, char* action) {
GtkWidget* box = wofi_property_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
gtk_widget_set_name(box, "unselected");