GNOME Bugzilla – Bug 159216
Make the label on the capplet have selectable text
Last modified: 2006-10-27 08:36:29 UTC
So that one can cut and paste the command to be used to connect to vino.
Not as straightforward as it might seem because of the way VinoURL overrides the GtkLabel button_press handler
Created attachment 74466 [details] [review] Use GtkLinkButton instead of VinoURL This patch uses GtkLinkButton instead of VinoURL in the capplet. This does not make the text selectable, but gives the button a context menu which has a Copy operation. The button could be made GTK_RELIEF_NONE or made not to get centered. IMO it is better to leave things as they are. The patch does not remove the vino-url.{c,h} files, of course...
As you say, it's not perfect 'cause: - The label still isn't selectable - What you get when you "Copy URL" is the full "mailto" URL rather than the command Still, better than it was. Thanks 2006-10-27 Mark McLoughlin <mark@skynet.ie> Use GtkLinkButton instead of VinoURL. Patch from Mariano Suárez-Alvarez <mariano.suarezalvarez@gmail.com> in bug #159216. * vino/configure.in: require gtk+ 2.10 * vino/capplet/vino-preferences.c: use GtkLinkButton * vino/capplet/vino-url.[ch]: remove * vino/capplet/Makefile.am: remove vino-url.[ch]