Lines Matching defs:kset
338 skin_keyset_add( SkinKeyset* kset, int sym, int mod, SkinKeyCommand command )
340 SkinKeyItem* item = kset->items;
341 SkinKeyItem* end = item + kset->num_items;
364 if (kset->num_items >= kset->max_items) {
365 int old_size = kset->max_items;
367 SkinKeyItem* new_items = realloc( kset->items, new_size*sizeof(SkinKeyItem) );
371 kset->items = new_items;
372 kset->max_items = new_size;
374 item = kset->items + kset->num_items++;
385 SkinKeyset* kset = calloc(1, sizeof(*kset));
388 if (kset == NULL)
421 skin_keyset_add( kset, sym, mod, command );
430 return kset;
441 D("kset new from:\n%s", text);
445 D("kset done result=%p", result);
451 skin_keyset_free( SkinKeyset* kset )
453 if (kset) {
454 free(kset->items);
455 kset->items = NULL;
456 kset->num_items = 0;
457 kset->max_items = 0;
458 free(kset);
464 skin_keyset_get_bindings( SkinKeyset* kset,
468 if (kset) {
470 SkinKeyItem* item = kset->items;
471 SkinKeyItem* end = item + kset->num_items;
492 skin_keyset_get_command( SkinKeyset* kset, int sym, int mod )
494 if (kset) {
495 SkinKeyItem* item = kset->items;
496 SkinKeyItem* end = item + kset->num_items;