| Evolution Utilities Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | ||||
#include <e-util/e-util.h> struct EUIManager; GtkUIManager * e_ui_manager_new (void); gboolean e_ui_manager_get_express_mode (EUIManager *ui_manager); void e_ui_manager_set_express_mode (EUIManager *ui_manager,gboolean express_mode); guint e_ui_manager_add_ui_from_file (EUIManager *ui_manager,const gchar *basename); guint e_ui_manager_add_ui_from_string (EUIManager *ui_manager,const gchar *ui_definition,GError **error);
This is a GtkUIManager with support for Evolution's "express" mode, which influences the parsing of UI definitions.
GtkUIManager * e_ui_manager_new (void);
Returns a new EUIManager instance.
Returns : |
a new EUIManager instance |
gboolean e_ui_manager_get_express_mode (EUIManager *ui_manager);
Returns the "express mode" flag in ui_manager.
|
an EUIManager |
Returns : |
TRUE if ui_manager is set to express mode |
void e_ui_manager_set_express_mode (EUIManager *ui_manager,gboolean express_mode);
Sets the "express mode" flag in ui_manager, which influences how
UI definitions are loaded.
|
an EUIManager |
|
express mode flag |
guint e_ui_manager_add_ui_from_file (EUIManager *ui_manager,const gchar *basename);
Loads a UI definition into ui_manager from Evolution's UI directory.
If the EUIManager:express-mode property is TRUE, a simplified version
of the UI may be presented.
Failure here is fatal, since the application can't function without its core UI definitions.
|
an EUIManager |
|
basename of the UI definition file |
Returns : |
The merge ID for the merged UI. The merge ID can be used to
unmerge the UI with gtk_ui_manager_remove_ui(). |
guint e_ui_manager_add_ui_from_string (EUIManager *ui_manager,const gchar *ui_definition,GError **error);
Loads the given UI definition into ui_manager. If the
EUIManager:express-mode property is TRUE, a simplified version of
the UI may be presented.
Failure here is <i>not</i> fatal, since the function is primarily used to load UI definitions for plugins, which we can get by without.
|
an EUIManager |
|
the UI XML in NULL terminated string form |
|
return location for a GError, or NULL
|
Returns : |
The merge ID for the merged UI. The merge ID can be used to
unmerge the UI with gtk_ui_manager_remove_ui(). |