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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkaction.pre:22:   //! int visible-vertical      signal activate;      void create(string|mapping(string:mixed) name_or_props, ?string label,    ?string tooltip, ?string stock_id)   //! Creates a new object.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup(); -  if (args>0 && Pike_sp[-args].type==PIKE_T_STRING) { +  if (args>0 && TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *name, *stock_id=NULL;    struct pike_string *label=NULL,*tooltip=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 = GSTR0(Pike_sp[-1].u.string);    }