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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtkentry.pre:28:   signal delete_from_cursor;   signal insert_at_cursor;   signal move_cursor;   signal paste_clipboard;   signal populate_popup;   signal toggle_overwrite;      void create(int|mapping(string:mixed)|void maxlen_or_props)   //! Create a new W(Entry) widget.   { -  pgtk_verify_not_inited(); -  pgtk_verify_setup(); +  pgtk2_verify_not_inited(); +  pgtk2_verify_setup();    if (args) {    if (Pike_sp[-args].type==PIKE_T_INT) {    INT_TYPE max;    GtkWidget *ge;    get_all_args("create",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);    } -  my_pop_n_elems(args); +  pgtk2_pop_n_elems(args);    } else {    GtkWidget *ge;    ge=gtk_entry_new();    THIS->obj=G_OBJECT(ge);    } -  pgtk__init_this_object(); +  pgtk2__init_this_object();   }      void set_text(string text);   //! Set the text to the specified string, replacing the current contents.      string get_text();   //! Returns the contents of the entry widget.      void set_visibility(int visiblep);   //! 0 indicates invisible text (password boxes, as an example)
pike.git/src/post_modules/GTK2/source/gtkentry.pre:136:   //! <p>   //! Also useful to convert mouse events into coordinates inside the   //! Pango.Layout, e.g. to take some action if some part of the entry text   //! is clicked.   //! <p>   //! Keep in mind that the layout text may contain a preedit string, so   //! layout_index_to_text_index() and text_index_to_layout_index() are needed   //! to convert byte indices in the layout to byte indices in the entry   //! contents.   { -  pgtk_verify_inited(); -  my_pop_n_elems(args); +  pgtk2_verify_inited(); +  pgtk2_pop_n_elems(args);    {    gint x,y;       gtk_entry_get_layout_offsets(GTK_ENTRY(THIS->obj),&x,&y);    ref_push_string(_STR("x")); push_int(x);    ref_push_string(_STR("y")); push_int(y);    f_aggregate_mapping(4);    }   }