Branch: Tag:

2005-12-17

2005-12-17 23:25:58 by Marcus Comstedt <marcus@mc.pp.se>

More UTF-8 fixes.

Rev: src/post_modules/GTK2/source/common_draw.inc:1.3
Rev: src/post_modules/GTK2/source/gnomedruidpagestandard.pre:1.5
Rev: src/post_modules/GTK2/source/gtkaction.pre:1.4
Rev: src/post_modules/GTK2/source/gtkaspectframe.pre:1.4
Rev: src/post_modules/GTK2/source/gtkcellview.pre:1.5
Rev: src/post_modules/GTK2/source/gtkcheckmenuitem.pre:1.4
Rev: src/post_modules/GTK2/source/gtkcolorselectiondialog.pre:1.4
Rev: src/post_modules/GTK2/source/gtkeditable.inc:1.4
Rev: src/post_modules/GTK2/source/gtkexpander.pre:1.4
Rev: src/post_modules/GTK2/source/gtkfilechooserbutton.pre:1.5
Rev: src/post_modules/GTK2/source/gtkfilechooserdialog.pre:1.4
Rev: src/post_modules/GTK2/source/gtkfileselection.pre:1.4
Rev: src/post_modules/GTK2/source/gtkfontselectiondialog.pre:1.4
Rev: src/post_modules/GTK2/source/gtkimagemenuitem.pre:1.4
Rev: src/post_modules/GTK2/source/gtkmenuitem.pre:1.5
Rev: src/post_modules/GTK2/source/gtkradioaction.pre:1.5

13:       if (args) {    if (Pike_sp[-args].type==PIKE_T_STRING) { -  char *s1; +  struct pike_string *s1;    GtkStockItem item;    GtkWidget *gi; -  int t; +  int t=0;    -  get_all_args("create",args,"%s",&s1); -  t=gtk_stock_lookup(s1,&item); +  get_all_args("create",args,"%t",&s1); +  if(s1->size_shift==0) +  t=gtk_stock_lookup(STR0(s1),&item);    if (t) -  gi=gtk_image_menu_item_new_from_stock(s1,NULL); -  else -  gi=gtk_image_menu_item_new_with_label(s1); +  gi=gtk_image_menu_item_new_from_stock(STR0(s1),NULL); +  else { +  ref_push_string(s1); +  f_string_to_utf8(1); +  gi=gtk_image_menu_item_new_with_label(STR0(Pike_sp[-1].u.string)); +  pop_stack(); +  }    THIS->obj=G_OBJECT(gi);    } else {    INIT_WITH_PROPS(GTK_TYPE_IMAGE_MENU_ITEM);