Branch: Tag:

2005-12-18

2005-12-18 19:26:41 by Martin Nilsson <mani@lysator.liu.se>

Fixed warnings

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

32:    if (args>0 && Pike_sp[-args].type==PIKE_T_STRING) {    char *name, *stock_id=NULL;    struct pike_string *label=NULL,*tooltip=NULL; -  char *label2=NULL, *tooltip2=NULL; +  gchar *label2=NULL, *tooltip2=NULL;    GtkAction *ga;    get_all_args("create",args,"%s.%t%t%s",&name,&label,&tooltip,&stock_id);    if(label) {    ref_push_string(label);    f_string_to_utf8(1); -  label2 = STR0(Pike_sp[-1].u.string); +  label2 = GSTR0(Pike_sp[-1].u.string);    }    if(tooltip) {    ref_push_string(tooltip);    f_string_to_utf8(1); -  tooltip2 = STR0(Pike_sp[-1].u.string); +  tooltip2 = GSTR0(Pike_sp[-1].u.string);    }    ga=gtk_action_new(name,label2,tooltip2,stock_id);    if(tooltip) pop_stack();