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

version» Context lines:

pike.git/src/post_modules/GTK2/source/gtklabel.pre:55:    }    pgtk2_pop_n_elems(args);    } else {    GtkWidget *gl;    gl=gtk_label_new(NULL);    THIS->obj=G_OBJECT(gl);    }    pgtk2__init_this_object();   }    - void set_text(string text); + void set_text(string text, mixed ... fmt)   //! Set the text in the label -  + { +  pgtk2_get_string_arg_with_sprintf(args); +  pgtk2_verify_inited(); +  gtk_label_set_text(GTK_LABEL(THIS->obj),Pike_sp[-1].u.string->str); +  pgtk2_return_this(1); + }      require pango;   void set_markup(string text);   //! Parses text which is marked up with the Pango text markup language,   //! setting the label's text and attribute list based on the parse results.      void set_markup_with_mnemonic(string text);   //! Parses text which is marked up with the Pango text markup language,   //! setting the label's text and attribute list based on the parse results.   //! If characters in text are preceded by an underscore, they are underline
pike.git/src/post_modules/GTK2/source/gtklabel.pre:172:   //! <p>   //! The target widget will be accelerated by emitting "mnemonic_activate" on   //! it. The default handler for this signal will activate the widget if there   //! are no mnemonic collisions and toggle focus between the colliding widgets   //! otherwise.      void set_selectable(int setting);   //! Selectable labels allow the user to select text from the label, for copy   //! and past.    - void set_text_with_mnemonic(string text); + void set_text_with_mnemonic(string text, mixed ... fmt)   //! Sets the label's text from the string text. If characters in text are   //! preceded by an underscore, they are underlined indicating that they   //! represent a keyboard accelerator called a mnemonic. The mnemonic key can   //! be used to activate another widget, chose automatically, or explicitly   //! using set_mnemonic_widget(). -  + { +  pgtk2_get_string_arg_with_sprintf(args); +  pgtk2_verify_inited(); +  gtk_label_set_text_with_mnemonic(GTK_LABEL(THIS->obj),Pike_sp[-1].u.string->str); +  pgtk2_return_this(1); + }      int get_justify();   //! Returns the justification of the label.      require gtk26;   int get_ellipsize();   //! Returns the ellipsizing position of the label.      int get_width_chars();   //! Retrieves the desired width, in characters.