set_xid
Description:
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 | |
xid |
the XWindow ID (XID) of the top-level application |