| Top | Description | Object Hierarchy | Implemented Interfaces |
#define EOG_APP struct EogApplication; EogApplication * eog_application_get_instance (void); gboolean eog_application_open_window (EogApplication *application,guint timestamp,EogStartupFlags flags,GError **error); gboolean eog_application_open_uri_list (EogApplication *application,GSList *uri_list,guint timestamp,EogStartupFlags flags,GError **error); gboolean eog_application_open_file_list (EogApplication *application,GSList *file_list,guint timestamp,EogStartupFlags flags,GError **error); gboolean eog_application_open_uris (EogApplication *application,gchar **uris,guint timestamp,EogStartupFlags flags,GError **error); EggToolbarsModel * eog_application_get_toolbars_model (EogApplication *application); void eog_application_save_toolbars_model (EogApplication *application); void eog_application_reset_toolbars_model (EogApplication *app); void eog_application_screensaver_enable (EogApplication *application); void eog_application_screensaver_disable (EogApplication *application);
EogApplication * eog_application_get_instance (void);
Returns a singleton instance of EogApplication currently running. If not running yet, it will create one.
Returns : |
a running EogApplication. [transfer none] |
gboolean eog_application_open_window (EogApplication *application,guint timestamp,EogStartupFlags flags,GError **error);
Opens and presents an empty EogWindow to the user. If there is an empty window already open, this will be used. Otherwise, a new one will be instantiated.
|
An EogApplication. |
|
The timestamp of the user interaction which triggered this call
(see gtk_window_present_with_time()). |
|
A set of EogStartupFlags influencing a new windows' state. |
|
Return location for a GError, or NULL to ignore errors. |
Returns : |
FALSE if application is invalid, TRUE otherwise |
gboolean eog_application_open_uri_list (EogApplication *application,GSList *uri_list,guint timestamp,EogStartupFlags flags,GError **error);
Opens a list of images, from a list of URIs. See
eog_application_open_file_list() for details.
|
An EogApplication. |
|
A list of URIs. [element-type utf8] |
|
The timestamp of the user interaction which triggered this call
(see gtk_window_present_with_time()). |
|
A set of EogStartupFlags influencing a new windows' state. |
|
Return location for a GError, or NULL to ignore errors. |
Returns : |
Currently always TRUE. |
gboolean eog_application_open_file_list (EogApplication *application,GSList *file_list,guint timestamp,EogStartupFlags flags,GError **error);
Opens a list of files in a EogWindow. If an EogWindow displaying the first image in the list is already open, this will be used. Otherwise, an empty EogWindow is used, either already existing or newly created. If the EOG_STARTUP_SINGLE_WINDOW flag is set, the files are opened in the first EogWindow and no new one is opened.
|
An EogApplication. |
|
A list of GFiles. [element-type GFile] |
|
The timestamp of the user interaction which triggered this call
(see gtk_window_present_with_time()). |
|
A set of EogStartupFlags influencing a new windows' state. |
|
Return location for a GError, or NULL to ignore errors. |
Returns : |
Currently always TRUE. |
gboolean eog_application_open_uris (EogApplication *application,gchar **uris,guint timestamp,EogStartupFlags flags,GError **error);
Opens a list of images, from a list of URI strings. See
eog_application_open_file_list() for details.
|
an EogApplication |
|
A GList of URI strings. |
|
The timestamp of the user interaction which triggered this call
(see gtk_window_present_with_time()). |
|
A set of EogStartupFlags influencing a new windows' state. |
|
Return location for a GError, or NULL to ignore errors. |
Returns : |
Currently always TRUE. |
EggToolbarsModel * eog_application_get_toolbars_model (EogApplication *application);
Retrieves the EggToolbarsModel for the toolbar in EogApplication.
|
An EogApplication. |
Returns : |
An EggToolbarsModel. [transfer none] |
void eog_application_save_toolbars_model (EogApplication *application);
Causes the saving of the model of the toolbar in EogApplication to a file.
|
An EogApplication. |
void eog_application_reset_toolbars_model
(EogApplication *app);
Restores the toolbars model to the defaults.
|
an EogApplication |
void eog_application_screensaver_enable (EogApplication *application);
void eog_application_screensaver_disable (EogApplication *application);