13 #define TEMP_DB_PATH "tmp/global_awars"
103 printf(
"AWAR_AWM_MASK changed, calling apply_sensitivity(%i)\n", mask);
111 printf(
"AWAR_AW_FOCUS_FOLLOWS_MOUSE changed, calling apply_focus_policy(%i)\n", focus);
117 #define OPENURL "open"
119 #define OPENURL "xdg-open"
122 #define MAX_GLOBAL_AWARS 5
129 declared_awar[declared_awar_count++] = awar;
155 for (
int a = 0; a<declared_awar_count && !
error; ++a) {
GB_ERROR make_global() __ATTR__USERESULT
static bool in_global_awar_cb
const char * get_db_path(const AW_awar *awar)
#define AWAR_SAVED_DB_PATH
static void awar_updated_cb(AW_root *, AW_awar *awar)
static AW_awar * declared_awar[MAX_GLOBAL_AWARS]
GB_ERROR GB_write_string(GBDATA *gbd, const char *s)
GB_ERROR GB_add_callback(GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb)
GB_ERROR ARB_bind_global_awars(GBDATA *gb_main)
static void db_updated_cb(GBDATA *gbd, AW_awar *awar)
const char * GBS_global_string(const char *templat,...)
AW_awar * add_callback(const RootCallback &cb)
GB_ERROR GB_await_error()
#define AWAR_ARB_TREE_RENAMED
static int declared_awar_count
static void AWAR_AWM_MASK_changed_cb(AW_root *awr)
static void error(const char *msg)
char * read_as_string() const
void declare_awar_global(AW_awar *awar)
static GBDATA * gb_main4awar
AW_awar * awar(const char *awar)
void ARB_declare_global_awars(AW_root *aw_root, AW_default aw_def)
GB_ERROR write_as_string(const char *aw_string)
#define AWAR_AW_FOCUS_FOLLOWS_MOUSE
AW_awar * awar_int(const char *var_name, long default_value=0, AW_default default_file=AW_ROOT_DEFAULT)
void apply_focus_policy(bool follow_mouse)
bool ARB_in_expert_mode(AW_root *awr)
bool ARB_global_awars_initialized()
void apply_sensitivity(AW_active mask)
static void AWAR_AW_FOCUS_FOLLOWS_MOUSE_changed_cb(AW_root *awr)
GB_transaction ta(gb_var)
GB_CSTR GB_read_char_pntr(GBDATA *gbd)
AW_awar * awar_string(const char *var_name, const char *default_value="", AW_default default_file=AW_ROOT_DEFAULT)
GBDATA * GB_search(GBDATA *gbd, const char *fieldpath, GB_TYPES create)