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:78:   }      string get_text();   //! Returns the contents of the entry widget.      void set_visibility(int visiblep);   //! 0 indicates invisible text (password boxes, as an example)      void set_invisible_char(int ch);   //! Sets the character to use in place of the actual text when - //! set_invisibility() has been called to set text visibility to false. i.e. + //! set_visibility() has been called to set text visibility to false. i.e.   //! this is the character used in "password" mode to show the user how many   //! characters have been type. The default invisible char is an asterisk   //! ('*'). If you set the invisible char to 0, then the user will get no   //! feedback at all; there will be no text on the screen as they type.      void set_max_length(int maxlen);   //! Sets the maximum allowed length of the contents. If the current contents   //! are longer than the given length, then they will be truncated to fit.   //! Range is 0-65536. 0 means no maximum.      int get_activates_default();   //! Retrieves the value set by set_activates_default().      int get_has_frame();   //! Gets the value set by set_has_frame().      require gtk216;   void set_icon_from_pixbuf(int icon_pos,GDK2.Pixbuf b); -  + //! Set the icon from the given in-memory image, or 0 to remove the icon at + //! that position. +    void set_icon_from_stock(int icon_pos,string id); -  + //! Set the icon using a stock icon. To remove the icon, use + //! set_icon_from_pixbuf().   endrequire;      require gtk210;   array get_inner_border()   //! This function returns the entry's inner-border property.   {    pgtk2_verify_inited();    pgtk2_pop_n_elems(args);    {    const GtkBorder *gb;
pike.git/src/post_modules/GTK2/source/gtkentry.pre:147:   //! 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;