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

   gint      index = _clip_parni(ClipMachineMemory, 2);

   gchar    *text = _clip_parc(ClipMachineMemory, 3);

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

   index--;
   LOCALE_TO_UTF(text);
   gtk_entry_completion_insert_action_markup(GTK_ENTRY_COMPLETION(ccompletion->object), index, text);
   FREE_TEXT(text);

   return 0;
 err:
   return 1;
}
static VALUE
rg_insert_action_markup(VALUE self, VALUE index, VALUE markup)
{
    gtk_entry_completion_insert_action_markup(_SELF(self), NUM2INT(index), RVAL2CSTR(markup));
    return self;
}