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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtklabel.pre:34:      void create(string|mapping(string:mixed)|void text_or_props)   //! Creates a new label.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    struct pike_string *t;    GtkWidget *gl; -  get_all_args("create",args,"%T",&t); +  get_all_args(NULL,args,"%T",&t);    if (t) {    ref_push_string(t);    f_string_to_utf8(1);    gl=gtk_label_new((char *)STR0(Pike_sp[-1].u.string));    pop_stack();    } else    gl=gtk_label_new(NULL);    THIS->obj=G_OBJECT(gl);    } else {    INIT_WITH_PROPS(GTK_TYPE_LABEL);