Re: Copying unselectable text



Hi,

Guillaume Chazarain <gfc altern org> writes:

> Currently when some text is displayed in a GtkLabel, a GtkStatusbar
> or something like that, there can be no interaction with this
> text. I think it would be nice to add a contextual menu with a
> "Copy" item to grab the text from the widget.
> 
> Consider this scenario :
> 
> - An application pops up a message dialog reporting a problem
> - You want to send an e-mail to the maintainer about this message
> - You'd like to copy/paste the content of  the message dialog.
> 
> I don't think this is possible now. I suggest that with a
> right-click on the message text, and choosing Copy, the text would
> be copied.

A label in such a message dialog should be selectable so that it can
be copy-and-pasted. This is very well possible by calling
gtk_label_set_selectable() or by setting the "selectable" property on
the label.


Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]