Synopsis#include <gtk/gtk.h> typedef GtkMountOperation; GMountOperation* gtk_mount_operation_new (GtkWindow *parent); gboolean gtk_mount_operation_is_showing (GtkMountOperation *op); void gtk_mount_operation_set_parent (GtkMountOperation *op, GtkWindow *parent); GtkWindow* gtk_mount_operation_get_parent (GtkMountOperation *op); void gtk_mount_operation_set_screen (GtkMountOperation *op, GdkScreen *screen); GdkScreen* gtk_mount_operation_get_screen (GtkMountOperation *op); gboolean gtk_show_uri (GdkScreen *screen, const gchar *uri, guint32 timestamp, GError **error); Description
The functions and objects described here make working with GTK+ and
GIO more convenient. GtkMountOperation is needed when mounting volumes
and
DetailsGtkMountOperationtypedef struct GtkMountOperation GtkMountOperation;
GtkMountOperation is an implementation of GMountOperation that
can be used with GIO functions for mounting volumes such as
When necessary, GtkMountOperation shows dialogs to ask for passwords.
gtk_mount_operation_new ()GMountOperation* gtk_mount_operation_new (GtkWindow *parent); Creates a new GtkMountOperation
Since 2.14 gtk_mount_operation_is_showing ()gboolean gtk_mount_operation_is_showing (GtkMountOperation *op); Returns whether the GtkMountOperation is currently displaying a window.
Since 2.14 gtk_mount_operation_set_parent ()void gtk_mount_operation_set_parent (GtkMountOperation *op, GtkWindow *parent); Sets the transient parent for windows shown by the GtkMountOperation.
Since 2.14 gtk_mount_operation_get_parent ()GtkWindow* gtk_mount_operation_get_parent (GtkMountOperation *op); Gets the transient parent used by the GtkMountOperation
Since 2.14 gtk_mount_operation_set_screen ()void gtk_mount_operation_set_screen (GtkMountOperation *op, GdkScreen *screen); Sets the screen to show windows of the GtkMountOperation on.
Since 2.14 gtk_mount_operation_get_screen ()GdkScreen* gtk_mount_operation_get_screen (GtkMountOperation *op); Gets the screen on which windows of the GtkMountOperation will be shown.
Since 2.14 gtk_show_uri ()gboolean gtk_show_uri (GdkScreen *screen, const gchar *uri, guint32 timestamp, GError **error); This is a convenience function for launching the default application to show the uri. The uri must be of a form understood by GIO. Typical examples are
Ideally the timestamp is taken from the event triggering
the
This function can be used as a replacement for
Since 2.14 |