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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkcomboboxentry.pre:13:   void create(string|GTK2.TreeModel|mapping(string:mixed)|void model,    ?int text_column)   //! Create a new ComboBoxEntry, either empty or with a model.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    GtkWidget *gcb;    if (TYPEOF(Pike_sp[-args]) == PIKE_T_STRING) {    char *text; -  get_all_args("create",args,"%s",&text); +  get_all_args(NULL,args,"%s",&text);    gcb=gtk_combo_box_entry_new_text();    THIS->obj=G_OBJECT(gcb);    } else if (TYPEOF(Pike_sp[-args]) == PIKE_T_OBJECT) {    struct object *o1;    INT_TYPE text_column; -  get_all_args("create",args,"%o%i",&o1,&text_column); +  get_all_args(NULL,args,"%o%i",&o1,&text_column);    gcb=gtk_combo_box_entry_new_with_model(    GTK_TREE_MODEL(get_gobject(o1)),text_column);    THIS->obj=G_OBJECT(gcb);    } else {    INIT_WITH_PROPS(GTK_TYPE_COMBO_BOX_ENTRY);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gcb;    gcb=gtk_combo_box_entry_new();