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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtksourcelanguage.pre:10:      signal tag_style_changed;      string get_name();   //! Returns the localized name of the language.      string get_section();   //! Returns the localized section of the language. Each language belongs to a   //! section (ex. HTML belongs to the Markup section).    + not gtksourceview20;   array(GTK2.SourceTag) get_tags()   //! Returns a list of tags for this language.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GSList *gsl,*gs2;    int i=0;    gsl=gs2=gtk_source_language_get_tags(GTK_SOURCE_LANGUAGE(THIS->obj));    while (gs2) {    push_gobjectclass(gs2->data,pgtk2_source_tag_program);    i++;    gs2=g_slist_next(gs2);    }    f_aggregate(i);    g_slist_free(gsl);    }   } -  + endrequire;      int get_escape_char();   //! Gets the value of the ESC character in the given language.      array(string) get_mime_types()   //! Returns a list of mime types for this language.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {
pike.git/src/post_modules/GTK2/source/gtksourcelanguage.pre:91:   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    GtkSourceStyleScheme *gss;    gss=gtk_source_language_get_style_scheme(GTK_SOURCE_LANGUAGE(THIS->obj));    push_gobjectclass(gss,pgtk2_source_style_scheme_program);    }   }    + not gtksourceview20;   mapping(string:mixed) get_tag_style(string id)   //! Gets the style of the tag id. If the style is not defined, then returns   //! the default style.   {    pgtk2_verify_inited();    {    GtkSourceTagStyle *gs;    GdkColor *fg,*bg;    char *id;    get_all_args("get_tag_style",args,"%s",&id);
pike.git/src/post_modules/GTK2/source/gtksourcelanguage.pre:214:    ref_push_string(_STR("background")); push_gdkobject(bg,color,1);    ref_push_string(_STR("italic")); push_int(gs->italic);    ref_push_string(_STR("bold")); push_int(gs->bold);    ref_push_string(_STR("underline")); push_int(gs->underline);    ref_push_string(_STR("strikethrough")); push_int(gs->strikethrough);    f_aggregate_mapping(16);    } else    push_int(0);    }   } +  + endrequire;