mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-25 13:55:34 -05:00
9fda280be1
Instead of having a global list of entries to highlight urgent/active, you can now to it per row.
41 lines
992 B
C
41 lines
992 B
C
#ifndef ROFI_MODES_DMENU_SCRIPT_SHARED_H
|
|
#define ROFI_MODES_DMENU_SCRIPT_SHARED_H
|
|
|
|
#include <glib.h>
|
|
#include <mode.h>
|
|
#include <stdint.h>
|
|
|
|
typedef struct {
|
|
/** Entry content. (visible part) */
|
|
char *entry;
|
|
/** Icon name to display. */
|
|
char *icon_name;
|
|
/** Async icon fetch handler. */
|
|
uint32_t icon_fetch_uid;
|
|
uint32_t icon_fetch_size;
|
|
/** Hidden meta keywords. */
|
|
char *meta;
|
|
|
|
/** info */
|
|
char *info;
|
|
|
|
/** non-selectable */
|
|
gboolean nonselectable;
|
|
|
|
/** urgent */
|
|
gboolean urgent;
|
|
/** active */
|
|
gboolean active;
|
|
} DmenuScriptEntry;
|
|
/**
|
|
* @param sw Unused
|
|
* @param entry The entry to update.
|
|
* @param buffer The buffer to parse.
|
|
* @param length The buffer length.
|
|
*
|
|
* Updates entry with the parsed values from buffer.
|
|
*/
|
|
void dmenuscript_parse_entry_extras(G_GNUC_UNUSED Mode *sw,
|
|
DmenuScriptEntry *entry, char *buffer,
|
|
size_t length);
|
|
#endif // ROFI_MODES_DMENU_SCRIPT_SHARED_H
|