Re: GTK clipboard notification

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

 



On Thu, May 6, 2010 at 6:09 PM, Andreas Falkenhahn
<andreas@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx
> 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
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux