Branch: Tag:

2018-08-05

2018-08-05 13:00:00 by Martin Nilsson <nilsson@fastmail.com>

Avoid sending function name to get_all_args, GTK2 edition.

27:    GtkToolItem *gt;    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *icon; -  get_all_args("create",args,"%s",&icon); +  get_all_args(NULL,args,"%s",&icon);    gt=gtk_tool_button_new_from_stock(icon);    THIS->obj=G_OBJECT(gt);    } else if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct pike_string *t;    struct object *o1; -  get_all_args("create",args,"%o%T",&o1,&t); +  get_all_args(NULL,args,"%o%T",&o1,&t);    if (t && o1) {    ref_push_string(t);    f_string_to_utf8(1);