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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtklabel.pre:121:   //! of the label is clicked. Of course, you will need to create a GTK2.EventBox   //! to receive the events, and pack the label inside it, since labels are a   //! GTK2.NO_WINDOW widget. Remember when using the Pango.Layout functions you   //! need to convert to and from pixels using GTK2.PANGO_SCALE.   {    pgtk_verify_inited();    my_pop_n_elems(args);    {    gint x,y;    gtk_label_get_layout_offsets(GTK_LABEL(THIS->obj),&x,&y); -  push_text("x"); push_int(x); -  push_text("y"); push_int(y); +  ref_push_string(_STR("x")); push_int(x); +  ref_push_string(_STR("y")); push_int(y);    f_aggregate_mapping(4);    }   }   endrequire;      int get_mnemonic_keyval();   //! If the label has been set so that is has a mnemonic key, this function   //! returns the keyval used for the mnemonic accelerator. If there is no   //! mnemonic set up it returns GDK_VoidSymbol.   
pike.git/src/post_modules/GTK2/source/gtklabel.pre:212:      mapping(string:int) get_selection_bounds()   //! Gets the selected range of characters in the label. If there isn't a   //! selection, returns -1 for both start and end.   {    pgtk_verify_inited();    {    gint start,end;    int res=gtk_label_get_selection_bounds(GTK_LABEL(THIS->obj),&start,&end);    my_pop_n_elems(args); -  push_text("start"); +  ref_push_string(_STR("start"));    push_int(res?start:-1); -  push_text("end"); +  ref_push_string(_STR("end"));    push_int(res?end:-1);    f_aggregate_mapping(4);    }   }      int get_use_markup();   //! Returns whether the label's text is interpreted as marked up with the   //! Pango text markup language.      int get_use_underline();