Example #1
0
/*EXTL_DOC
 * Get important directories (the fields \var{userdir}, 
 * \var{sessiondir}, \var{searchpath} in the returned table).
 */
EXTL_SAFE
EXTL_EXPORT
ExtlTab ioncore_get_paths(ExtlTab tab)
{
    tab=extl_create_table();
    extl_table_sets_s(tab, "userdir", extl_userdir());
    extl_table_sets_s(tab, "sessiondir", extl_sessiondir());
    extl_table_sets_s(tab, "searchpath", extl_searchpath());
    return tab;
}
Example #2
0
/*EXTL_DOC
 * Define a substyle.
 */
EXTL_SAFE
EXTL_EXPORT
ExtlTab de_substyle(const char *pattern, ExtlTab tab)
{
    extl_table_sets_s(tab, "substyle_pattern", pattern);
    return extl_ref_table(tab);
}
Example #3
0
File: dock.c Project: dkogan/notion
static void dock_do_get(WDock *dock, ExtlTab conftab)
{
    extl_table_sets_s(conftab, dock_param_name.key,
                      region_name((WRegion*)dock));
    dock_param_extl_table_get(&dock_param_pos, conftab, dock->pos);
    dock_param_extl_table_get(&dock_param_grow, conftab, dock->grow);
    extl_table_sets_b(conftab, dock_param_is_auto.key, dock->is_auto);
    extl_table_sets_b(conftab, "save", dock->save);
}
Example #4
0
void ioncore_groupws_get(ExtlTab t)
{
    extl_table_sets_s(t, "float_placement_method",
                      (ioncore_placement_method==PLACEMENT_UDLR
                       ? "udlr"
                       : (ioncore_placement_method==PLACEMENT_LRUD
                          ? "lrud"
                          : "random")));
    extl_table_sets_i(t, "float_placement_padding", ioncore_placement_padding);
}
Example #5
0
File: dock.c Project: dkogan/notion
static void dock_param_extl_table_get(const WDockParam *param,
                                      ExtlTab conftab, int value)
{
    const char *s;

    s=stringintmap_key(param->map, value, NULL);
    if(s){
        extl_table_sets_s(conftab, param->key, s);
    }

}
Example #6
0
/*EXTL_DOC
 * Get ioncore basic settings. For details see \fnref{ioncore.set}.
 */
EXTL_SAFE
EXTL_EXPORT
ExtlTab ioncore_get()
{
    ExtlTab tab=extl_create_table();
    
    extl_table_sets_b(tab, "opaque_resize", ioncore_g.opaque_resize);
    extl_table_sets_b(tab, "warp", ioncore_g.warp_enabled);
    extl_table_sets_b(tab, "switchto", ioncore_g.switchto_new);
    extl_table_sets_i(tab, "dblclick_delay", ioncore_g.dblclick_delay);
    extl_table_sets_b(tab, "screen_notify", ioncore_g.screen_notify);
    extl_table_sets_b(tab, "framed_transients", ioncore_g.framed_transients);
    extl_table_sets_b(tab, "unsqueeze", ioncore_g.unsqueeze_enabled);
    extl_table_sets_b(tab, "autoraise", ioncore_g.autoraise);
    extl_table_sets_b(tab, "autosave_layout", ioncore_g.autosave_layout);
    extl_table_sets_i(tab, "focuslist_insert_delay", ioncore_g.focuslist_insert_delay);
    extl_table_sets_i(tab, "workspace_indicator_timeout", ioncore_g.workspace_indicator_timeout);
    extl_table_sets_b(tab, "activity_notification_on_all_screens",
                      ioncore_g.activity_notification_on_all_screens);

    extl_table_sets_s(tab, "window_stacking_request", 
                      stringintmap_key(win_stackrq, 
                                       ioncore_g.window_stacking_request,
                                       NULL));

    extl_table_sets_s(tab, "frame_default_index", 
                      stringintmap_key(frame_idxs, 
                                       ioncore_g.frame_default_index,
                                       NULL));
    
    extl_table_sets_s(tab, "mousefocus", (ioncore_g.no_mousefocus
                                          ? "disabled" 
                                          : "sloppy"));

    ioncore_get_moveres_accel(tab);
    
    ioncore_groupws_get(tab);
    
    return tab;
}