[RFC Patch] gnome-terminal use gtk_clipboard_wait_is_text_available when 'Edit' menu selected
Xavier Toth
txtoth at gmail.com
Mon Mar 17 19:49:23 UTC 2008
I wonder how many other gtk application use this technique to figure
out whether to enable the 'Paste' menu
On Mon, Mar 17, 2008 at 12:16 PM, Colin Walters <walters at redhat.com> wrote:
>
> On Mon, 2008-03-17 at 12:04 -0500, Xavier Toth wrote:
> > This patch replaces the use of gtk_clipboard_request_text with
> > gtk_clipboard_wait_is_text_available when
> > the 'Edit' menu is selected. gtk_clipboard_wait_is_text_available will
> > be a little faster as it doesn't retreive
> > the text and selection or clipbord managers will only receive one
> > selection-request-event for the data when
> > the 'Paste' occurs if it ever does. Without this change
> > selection-request-event listeners like selection or
> > clipboard managers receive two selection-request-event one when the
> > 'Edit' menu is selected and the other
> > when 'Paste' is selected and there is no way to differentiate them.
>
> Hi,
>
> Thanks for the patch! The best place for this is:
> http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-terminal
>
>
> --
> fedora-devel-list mailing list
> fedora-devel-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>
More information about the fedora-devel-list
mailing list