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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtksourcelanguage.pre:104:   {    pgtk_verify_inited();    {    GtkSourceTagStyle *gs;    GdkColor *fg,*bg;    char *id;    get_all_args("get_tag_style",args,"%s",&id);    gs=gtk_source_language_get_tag_style(GTK_SOURCE_LANGUAGE(THIS->obj),id);    my_pop_n_elems(args);    if (gs) { -  push_text("default"); push_int(gs->is_default); -  push_text("mask"); push_int(gs->mask); +  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));    if (bg==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_tag_style",sizeof(GdkColor));    *fg=gs->foreground;    *bg=gs->background; -  push_text("foreground"); push_gdkobject(fg,color); -  push_text("background"); push_gdkobject(bg,color); -  push_text("italic"); push_int(gs->italic); -  push_text("bold"); push_int(gs->bold); -  push_text("underline"); push_int(gs->underline); -  push_text("strikethrough"); push_int(gs->strikethrough); +  ref_push_string(_STR("foreground")); push_gdkobject(fg,color); +  ref_push_string(_STR("background")); push_gdkobject(bg,color); +  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);    }   }      void set_tag_style(string id, ?mapping(string:mixed) style)   //! Sets the style of the tag id. If style is omitted, this function will   //! restore the default style.   {
pike.git/src/post_modules/GTK2/source/gtksourcelanguage.pre:193:    pgtk_verify_inited();    {    GtkSourceTagStyle *gs;    GdkColor *fg,*bg;    char *id;    get_all_args("get_tag_default_style",args,"%s",&id);    gs=gtk_source_language_get_tag_default_style(GTK_SOURCE_LANGUAGE(THIS->obj),    id);    my_pop_n_elems(args);    if (gs) { -  push_text("default"); push_int(gs->is_default); -  push_text("mask"); push_int(gs->mask); +  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_default_style",sizeof(GdkColor));    bg=(GdkColor *)g_malloc(sizeof(GdkColor));    if (bg==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("get_tag_default_style",sizeof(GdkColor));    *fg=gs->foreground;    *bg=gs->background; -  push_text("foreground"); push_gdkobject(fg,color); -  push_text("background"); push_gdkobject(bg,color); -  push_text("italic"); push_int(gs->italic); -  push_text("bold"); push_int(gs->bold); -  push_text("underline"); push_int(gs->underline); -  push_text("strikethrough"); push_int(gs->strikethrough); +  ref_push_string(_STR("foreground")); push_gdkobject(fg,color); +  ref_push_string(_STR("background")); push_gdkobject(bg,color); +  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);    }   }