![]() |
![]() |
![]() |
Eye of GNOME Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
#define EOG_APP EogApplication; EogApplication * eog_application_get_instance (void
); gboolean eog_application_register_service (EogApplication *application
); void eog_application_shutdown (EogApplication *application
); 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
); GList * eog_application_get_windows (EogApplication *application
); 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. |
gboolean eog_application_register_service (EogApplication *application
);
Registers EogApplication's DBus service, to allow
remote calls. If the DBus service is already registered,
or there is any other connection error, returns FALSE
.
|
An EogApplication. |
Returns : |
TRUE if the service was registered succesfully. FALSE
otherwise.
|
void eog_application_shutdown (EogApplication *application
);
Takes care of shutting down the Eye of GNOME, and quits.
|
An EogApplication. |
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. |
|
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.
|
An EogApplication. |
|
A list of GFiles. |
|
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 .
|
GList * eog_application_get_windows (EogApplication *application
);
Gets the list of existing EogApplications. The windows in this list are not individually referenced, you need to keep your own references if you want to perform actions that may destroy them.
|
An EogApplication. |
Returns : |
A new list of EogWindows. |
EggToolbarsModel * eog_application_get_toolbars_model (EogApplication *application
);
Retrieves the EggToolbarsModel for the toolbar in EogApplication.
|
An EogApplication. |
Returns : |
An EggToolbarsModel. |
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
);
Enables the screensaver. Usually necessary after a call to
eog_application_screensaver_disable()
.
|
an EogApplication. |
void eog_application_screensaver_disable (EogApplication *application
);
Disables the screensaver. Useful when the application is in fullscreen or similar mode.
|
an EogApplication. |