Beispiel #1
0
/* get the priority of the match of string[id] */
static gint get_priority (guint id, guint n)
{
	GtkTextTag *tag;

        g_assert (n < HIGHLIGHT_MATCHES);
        tag = gtk_text_tag_table_lookup (highlight_tag_table,
                        mangle_name (id, n));
        g_assert (tag != NULL);
	return gtk_text_tag_get_priority (tag);
}
Beispiel #2
0
static VALUE
rg_priority(VALUE self)
{
    return INT2NUM(gtk_text_tag_get_priority(RVAL2GTKTEXTTAG(self)));
}
Beispiel #3
0
static VALUE
get_priority(VALUE self)
{
    return INT2NUM(gtk_text_tag_get_priority(GTK_TEXT_TAG(RVAL2GOBJ(self))));
}