Beispiel #1
0
int
clip_GTK_ENTRYCOMPLETIONDELETEACTION(ClipMachine * ClipMachineMemory)
{
   C_object *ccompletion = _fetch_co_arg(ClipMachineMemory);

   gint      index = _clip_parni(ClipMachineMemory, 2);

   CHECKCOBJ(ccompletion, GTK_IS_ENTRY_COMPLETION(ccompletion->object));
   CHECKARG(2, NUMERIC_type_of_ClipVarType);

   index--;
   gtk_entry_completion_delete_action(GTK_ENTRY_COMPLETION(ccompletion->object), index);

   return 0;
 err:
   return 1;
}
static VALUE
rg_delete_action(VALUE self, VALUE index)
{
    gtk_entry_completion_delete_action(_SELF(self), NUM2INT(index));
    return self;
}