pike.git / src / post_modules / GTK2 / source / gtksourcestylescheme.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtksourcestylescheme.pre:1:   /* -*- C -*- */   require gtksourceview;      class GTK2.SourceStyleScheme; + //!      %{   #include "gtksourceview/gtksourceview.h"   %}      not gtksourceview20;   mapping(string:mixed) get_tag_style(string name)   //! Gets the tag associated with the given name in this style.   {    pgtk2_verify_inited();    {    GtkSourceTagStyle *gs;    char *name;    GdkColor *fg,*bg; -  get_all_args("get_tag_style",args,"%s",&name); +  get_all_args(NULL,args,"%s",&name);    gs=gtk_source_style_scheme_get_tag_style((GtkSourceStyleScheme *)THIS->obj,    name);    pgtk2_pop_n_elems(args);    if (gs) {    ref_push_string(_STR("default")); push_int(gs->is_default);    ref_push_string(_STR("mask")); push_int(gs->mask);    fg=(GdkColor *)g_malloc(sizeof(GdkColor));    if (fg==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_tag_style",sizeof(GdkColor));    bg=(GdkColor *)g_malloc(sizeof(GdkColor));