Re: GTK clipboard notification



On Thu, May 6, 2010 at 6:09 PM, Andreas Falkenhahn
<andreas airsoftsoftwair de> wrote:
>
> Hi,
>
> is there a way to get notified by GTK when the flavor type in the clipboard changes?
> I have an image app here and I'd like to disable my toolbar's paste button whenever
> there is something other than an image in the clipboard. So I'm wondering if there is
> any way to get notified when the clipboard flavor changes?
>
> Tks,
>
> Andreas
> --
> "Remember: It's nice to be important but it's more important to be nice!"
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>

Hi,

I'm also looking for a good solution for this task. Looking at the
docs, gtk_clipboard_request_targets() seems to be useful, since it
will call a callback function when a certain clipboard data is ready.

-- 
http://oproj.tuxfamily.org


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