Filesystem utilities
Filesystem utilities — Functions for working with GIO
|
|
Includes
#include <gtk/gtk.h>
Functions
gtk_mount_operation_is_showing ()
gboolean
gtk_mount_operation_is_showing (GtkMountOperation *op);
Returns whether the GtkMountOperation is currently displaying
a window.
Returns
TRUE if op
is currently displaying a window
Since: 2.14
gtk_mount_operation_get_parent ()
GtkWindow *
gtk_mount_operation_get_parent (GtkMountOperation *op);
Gets the transient parent used by the GtkMountOperation
Returns
the transient parent for windows shown by op
.
[transfer none]
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.
Returns
the screen on which windows of op
are shown.
[transfer none]
Since: 2.14
gtk_show_uri ()
gboolean
gtk_show_uri (GdkScreen *screen,
const gchar *uri,
guint32 timestamp,
GError **error);
gtk_show_uri is deprecated and should not be used in newly-written code.
A convenience function for launching the default application
to show the uri. Like gtk_show_uri_on_window(), but takes a screen
as transient parent instead of a window.
Note that this function is deprecated as it does not pass the necessary
information for helpers to parent their dialog properly, when run from
sandboxed applications for example.
Since: 2.14
gtk_show_uri_on_window ()
gboolean
gtk_show_uri_on_window (GtkWindow *parent,
const char *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 (i.e. you
need to install gvfs to get support for uri schemes such as http://
or ftp://, as only local files are handled by GIO itself).
Typical examples are
Ideally the timestamp is taken from the event triggering
the gtk_show_uri() call. If timestamp is not known you can take
GDK_CURRENT_TIME.
This is the recommended call to be used as it passes information
necessary for sandbox helpers to parent their dialogs properly.
Since: 3.22
Types and Values
struct GtkMountOperation
struct GtkMountOperation;
This should not be accessed directly. Use the accessor functions below.
struct GtkMountOperationClass
struct GtkMountOperationClass {
GMountOperationClass parent_class;
};
Property Details
The “is-showing” property
“is-showing” gboolean
Are we showing a dialog.
Owner: GtkMountOperation
Flags: Read
Default value: FALSE
The “parent” property
“parent” GtkWindow *
The parent window.
Owner: GtkMountOperation
Flags: Read / Write
The “screen” property
“screen” GdkScreen *
The screen where this window will be displayed.
Owner: GtkMountOperation
Flags: Read / Write