set_xid


Description:

public void set_xid (uint xid)

This function is for X11-based applications (such as most Gtk/Qt applications on linux/unix) only.

You can use it to tell the external installer the XID of your main application window. That way the installer can make its own window transient to your application window during the installation.

If set, the XID will be passed to the installer via a --transient-for=XID command line option.

Gtk+/Gnome application should be able to obtain the XID of the top-level window like this:

##include <gtk/gtk.h>
##ifdef GDK_WINDOWING_X11
##include <gdk/gdkx.h>
##endif
...
##ifdef GDK_WINDOWING_X11
xid = GDK_WINDOW_XWINDOW (GTK_WIDGET (application_window)->window);
##endif
...

Parameters:

this

a InstallPluginsContext

xid

the XWindow ID (XID) of the top-level application