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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkentry.pre:45:      void create(int|mapping(string:mixed)|void maxlen_or_props)   //! Create a new W(Entry) widget.   {    pgtk2_verify_not_inited();    pgtk2_verify_setup();    if (args) {    if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {    INT_TYPE max;    GtkWidget *ge; -  get_all_args("create",args,"%i",&max); +  get_all_args(NULL,args,"%i",&max);    ge=gtk_entry_new();    gtk_entry_set_max_length(GTK_ENTRY(ge),max);    THIS->obj=G_OBJECT(ge);    } else {    INIT_WITH_PROPS(GTK_TYPE_ENTRY);    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *ge;    ge=gtk_entry_new();
pike.git/src/post_modules/GTK2/source/gtkentry.pre:152:   //! If set, this property overrides the inner-border style property.   //! Overriding the style-provided border is useful when you want to do   //! in-place editing of some text in a canvas or list widget, where   //! pixel-exact positioning of the entry is important.   {    pgtk2_verify_inited();    {    INT_TYPE l,r,t,b;    GtkBorder gb;    -  get_all_args("set_inner_border",args,"%i%i%i%i",&l,&r,&t,&b); +  get_all_args(NULL,args,"%i%i%i%i",&l,&r,&t,&b);    gb.left=l;    gb.right=r;    gb.top=t;    gb.bottom=b;    gtk_entry_set_inner_border(GTK_ENTRY(THIS->obj),&gb);    }    RETURN_THIS();   }   endrequire;