Libxfce4ui api review, round 2

Mike Massonnet mmassonnet at gmail.com
Sat Jul 11 14:44:35 CEST 2009


2009/7/11 Nick Schermer <nickschermer at gmail.com>:
> Maybe another worthy addition could be an implementation for
> xselection checking for single instance applications. I think we use
> this here and there...

How about hard-depending on libunique?

Mike

> gboolean
> xfce_acquire_selection (const gchar *name, gboolean force,
> GDestroyNotify callback_function, gpointer user_data, GError **error);
>
> name: name of the selection.
> force: force to get the selection.
> callback_function: triggered when someone else took the selection, use
> to quit this instance.
> user_data: pointer for the GDestroyNotify callback.
> error: Reason why false was returned (selection error or because the
> selection was already acquired).
> return value: %TRUE if selection was succesfully set, %FALSE if the
> selection was already acquired or failed.
>
> Duno about the GError parameter...
>
> Nick
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>



More information about the Xfce4-dev mailing list