Top | ![]() |
![]() |
![]() |
![]() |
XviewerApplication *
xviewer_application_get_instance (void
);
Returns a singleton instance of XviewerApplication currently running. If not running yet, it will create one.
gboolean xviewer_application_open_window (XviewerApplication *application
,guint timestamp
,XviewerStartupFlags flags
,GError **error
);
Opens and presents an empty XviewerWindow to the user. If there is an empty window already open, this will be used. Otherwise, a new one will be instantiated.
application |
||
timestamp |
The timestamp of the user interaction which triggered this call
(see |
|
flags |
A set of XviewerStartupFlags influencing a new windows' state. |
|
error |
Return location for a GError, or NULL to ignore errors. |
gboolean xviewer_application_open_uri_list (XviewerApplication *application
,GSList *uri_list
,guint timestamp
,XviewerStartupFlags flags
,GError **error
);
Opens a list of images, from a list of URIs. See
xviewer_application_open_file_list()
for details.
application |
||
uri_list |
A list of URIs. |
[element-type utf8] |
timestamp |
The timestamp of the user interaction which triggered this call
(see |
|
flags |
A set of XviewerStartupFlags influencing a new windows' state. |
|
error |
Return location for a GError, or NULL to ignore errors. |
gboolean xviewer_application_open_file_list (XviewerApplication *application
,GSList *file_list
,guint timestamp
,XviewerStartupFlags flags
,GError **error
);
Opens a list of files in a XviewerWindow. If an XviewerWindow displaying the first image in the list is already open, this will be used. Otherwise, an empty XviewerWindow is used, either already existing or newly created. If the XVIEWER_STARTUP_SINGLE_WINDOW flag is set, the files are opened in the first XviewerWindow and no new one is opened.
application |
||
file_list |
A list of GFiles. |
[element-type GFile] |
timestamp |
The timestamp of the user interaction which triggered this call
(see |
|
flags |
A set of XviewerStartupFlags influencing a new windows' state. |
|
error |
Return location for a GError, or NULL to ignore errors. |
gboolean xviewer_application_open_uris (XviewerApplication *application
,gchar **uris
,guint timestamp
,XviewerStartupFlags flags
,GError **error
);
Opens a list of images, from a list of URI strings. See
xviewer_application_open_file_list()
for details.
application |
||
uris |
A GList of URI strings. |
|
timestamp |
The timestamp of the user interaction which triggered this call
(see |
|
flags |
A set of XviewerStartupFlags influencing a new windows' state. |
|
error |
Return location for a GError, or NULL to ignore errors. |
void
xviewer_application_screensaver_enable
(XviewerApplication *application
);
void
xviewer_application_screensaver_disable
(XviewerApplication *application
);