Branch: Tag:

2006-01-14

2006-01-14 01:11:30 by Martin Nilsson <mani@lysator.liu.se>

Use low_.._lookup(m,pike_string*) instead of simple_..._lookup(m,char*)

Rev: src/post_modules/GTK2/source/gdkpixbuf.pre:1.11
Rev: src/post_modules/GTK2/source/gtkactiongroup.pre:1.4
Rev: src/post_modules/GTK2/source/gtkcolorselection.pre:1.6
Rev: src/post_modules/GTK2/source/gtkfilechooserdialog.pre:1.9
Rev: src/post_modules/GTK2/source/gtksourcebuffer.pre:1.4
Rev: src/post_modules/GTK2/source/gtksourcelanguage.pre:1.5
Rev: src/post_modules/GTK2/source/gtksourcetag.pre:1.4

149:    sts=gtk_source_tag_style_new();    if (sts==NULL)    SIMPLE_OUT_OF_MEMORY_ERROR("set_bracket_match_style",sizeof(GtkSourceTagStyle)); -  sv=simple_mapping_string_lookup(m,"default"); +  sv=low_mapping_string_lookup(m,_STR("default"));    if (sv)    sts->is_default=PGTK_GETINT(sv); -  sv=simple_mapping_string_lookup(m,"mask"); +  sv=low_mapping_string_lookup(m,_STR("mask"));    if (sv)    sts->mask=PGTK_GETINT(sv); -  sv=simple_mapping_string_lookup(m,"foreground"); +  sv=low_mapping_string_lookup(m,_STR("foreground"));    if (sv) {    if (sv->type==PIKE_T_OBJECT && get_gdkobject(sv->u.object,color))    sts->foreground=*(GdkColor *)get_gdkobject(sv->u.object,color);    } -  sv=simple_mapping_string_lookup(m,"background"); +  sv=low_mapping_string_lookup(m,_STR("background"));    if (sv) {    if (sv->type==PIKE_T_OBJECT && get_gdkobject(sv->u.object,color))    sts->background=*(GdkColor *)get_gdkobject(sv->u.object,color);    } -  sv=simple_mapping_string_lookup(m,"italic"); +  sv=low_mapping_string_lookup(m,_STR("italic"));    if (sv)    sts->italic=PGTK_GETINT(sv); -  sv=simple_mapping_string_lookup(m,"bold"); +  sv=low_mapping_string_lookup(m,_STR("bold"));    if (sv)    sts->bold=PGTK_GETINT(sv); -  sv=simple_mapping_string_lookup(m,"underline"); +  sv=low_mapping_string_lookup(m,_STR("underline"));    if (sv)    sts->underline=PGTK_GETINT(sv); -  sv=simple_mapping_string_lookup(m,"strikethrough"); +  sv=low_mapping_string_lookup(m,_STR("strikethrough"));    if (sv)    sts->strikethrough=PGTK_GETINT(sv);    }