Class
GtkNativeDialog
Description [src]
abstract class Gtk.NativeDialog : GObject.Object
{
/* No available fields */
}
Native dialogs are platform dialogs that don’t use GtkDialog
.
They are used in order to integrate better with a platform, by looking the same as other native applications and supporting platform specific features.
The GtkDialog
functions cannot be used on such objects,
but we need a similar API in order to drive them. The GtkNativeDialog
object is an API that allows you to do this. It allows you to set
various common properties on the dialog, as well as show and hide
it and get a GtkNativeDialog::response
signal when the user
finished with the dialog.
Note that unlike GtkDialog
, GtkNativeDialog
objects are not
toplevel widgets, and GTK does not keep them alive. It is your
responsibility to keep a reference until you are done with the object.
Instance methods
gtk_native_dialog_set_transient_for
Dialog windows should be set transient for the main application window they were spawned from.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct GtkNativeDialogClass {
void (* response) (
GtkNativeDialog* self,
int response_id
);
void (* show) (
GtkNativeDialog* self
);
void (* hide) (
GtkNativeDialog* self
);
void (* _gtk_reserved1) (
void
);
void (* _gtk_reserved2) (
void
);
void (* _gtk_reserved3) (
void
);
void (* _gtk_reserved4) (
void
);
}
Class structure for GtkNativeDialog
.
Class members
response: void (* response) ( GtkNativeDialog* self, int response_id )
Class handler for the
GtkNativeDialog::response
signal.show: void (* show) ( GtkNativeDialog* self )
No description available.
hide: void (* hide) ( GtkNativeDialog* self )
No description available.
_gtk_reserved1: void (* _gtk_reserved1) ( void )
No description available.
_gtk_reserved2: void (* _gtk_reserved2) ( void )
No description available.
_gtk_reserved3: void (* _gtk_reserved3) ( void )
No description available.
_gtk_reserved4: void (* _gtk_reserved4) ( void )
No description available.