Top | ![]() |
![]() |
![]() |
![]() |
enum | EFocus |
enum | ERestoreWindowFlags |
#define | E_ASCII_DTOSTR_BUF_SIZE |
#define | E_UTILS_LIGHTNESS_MULT |
#define | E_UTILS_DARKNESS_MULT |
#define | E_UTILS_DEFAULT_THEME_BG_COLOR |
#define | E_UTILS_DEFAULT_THEME_BASE_COLOR |
#define | E_UTILS_DEFAULT_THEME_FG_COLOR |
#define | E_UTILS_DEFAULT_THEME_TEXT_COLOR |
#define | E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR |
#define | E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR |
#define | E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_BG_COLOR |
#define | E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_FG_COLOR |
void (*EForeachFunc) (gint model_row
,gpointer closure
);
EForeachFunc
is deprecated and should not be used in newly-written code.
const gchar *
e_get_accels_filename (void
);
e_get_accels_filename
is deprecated and should not be used in newly-written code.
Returns the name of the user data file containing custom keyboard accelerator specifications.
void e_show_uri (GtkWindow *parent
,const gchar *uri
);
e_show_uri
is deprecated and should not be used in newly-written code.
Launches the default application to show the given URI. The URI must
be of a form understood by GIO. If the URI cannot be shown, it presents
a dialog describing the error. The dialog is set as transient to parent
if parent
is non-NULL
.
void e_display_help (GtkWindow *parent
,const gchar *link_id
);
e_display_help
is deprecated and should not be used in newly-written code.
Opens the user documentation to the section given by link_id
, or to the
table of contents if link_id
is NULL
. If the user documentation cannot
be opened, it presents a dialog describing the error. The dialog is set
as transient to parent
if parent
is non-NULL
.
void e_restore_window (GtkWindow *window
,const gchar *settings_path
,ERestoreWindowFlags flags
);
e_restore_window
is deprecated and should not be used in newly-written code.
This function can restore one of or both a window's size and position
using GSettings keys at settings_path
which conform to the relocatable
schema "org.gnome.evolution.window".
If E_RESTORE_WINDOW_SIZE is present in flags
, restore window
's
previously recorded size and maximize state.
If E_RESTORE_WINDOW_POSITION is present in flags
, move window
to
the previously recorded screen coordinates.
The respective GSettings values will be updated when the window is resized and/or moved.
GtkAction * e_lookup_action (GtkUIManager *ui_manager
,const gchar *action_name
);
e_lookup_action
is deprecated and should not be used in newly-written code.
Returns the first GtkAction named action_name
by traversing the
list of action groups in ui_manager
. If no such action exists, the
function emits a critical warning before returning NULL
, since this
probably indicates a programming error and most code is not prepared
to deal with lookup failures.
GtkActionGroup * e_lookup_action_group (GtkUIManager *ui_manager
,const gchar *group_name
);
e_lookup_action_group
is deprecated and should not be used in newly-written code.
Returns the GtkActionGroup in ui_manager
named group_name
. If no
such action group exists, the function emits a critical warnings before
returning NULL
, since this probably indicates a programming error and
most code is not prepared to deal with lookup failures.
gint e_action_compare_by_label (GtkAction *action1
,GtkAction *action2
);
e_action_compare_by_label
is deprecated and should not be used in newly-written code.
Compares the labels for action1
and action2
using g_utf8_collate()
.
void
e_action_group_remove_all_actions (GtkActionGroup *action_group
);
e_action_group_remove_all_actions
is deprecated and should not be used in newly-written code.
Removes all actions from the action group.
GtkRadioAction *
e_radio_action_get_current_action (GtkRadioAction *radio_action
);
e_radio_action_get_current_action
is deprecated and should not be used in newly-written code.
Returns the currently active member of the group to which radio_action
belongs.
void e_action_group_add_actions_localized (GtkActionGroup *action_group
,const gchar *translation_domain
,const GtkActionEntry *entries
,guint n_entries
,gpointer user_data
);
e_action_group_add_actions_localized
is deprecated and should not be used in newly-written code.
Adds GtkAction-s defined by entries
to action_group
, with action's
label and tooltip localized in the given translation domain, instead
of the domain set on the action_group
.
action_group |
a GtkActionGroup to add |
|
translation_domain |
a translation domain to use
to translate label and tooltip strings in |
|
entries |
an array of action descriptions. |
[array length=n_entries] |
n_entries |
the number of entries |
|
user_data |
data to pass to the action callbacks |
Since: 3.4
GtkWidget * e_builder_get_widget (GtkBuilder *builder
,const gchar *widget_name
);
e_builder_get_widget
is deprecated and should not be used in newly-written code.
Gets the widget named widget_name
. Note that this function does not
increment the reference count of the returned widget. If widget_name
could not be found in the builder
's object tree, a run-time
warning is emitted since this usually indicates a programming error.
This is a convenience function to work around the awkwardness of GtkBuilder returning GObject pointers, when the vast majority of the time you want a GtkWidget pointer.
If you need something from builder
other than a GtkWidget, or you
want to test for the existence of some widget name without incurring
a run-time warning, use gtk_builder_get_object()
.
void e_load_ui_builder_definition (GtkBuilder *builder
,const gchar *basename
);
e_load_ui_builder_definition
is deprecated and should not be used in newly-written code.
Loads a UI definition into builder
from Evolution's UI directory.
Failure here is fatal, since the application can't function without
its UI definitions.
guint e_load_ui_manager_definition (GtkUIManager *ui_manager
,const gchar *basename
);
e_load_ui_manager_definition
is deprecated and should not be used in newly-written code.
Loads a UI definition into ui_manager
from Evolution's UI directory.
Failure here is fatal, since the application can't function without
its UI definitions.
void e_categories_add_change_hook (GHookFunc func
,gpointer object
);
e_categories_add_change_hook
is deprecated and should not be used in newly-written code.
A saner alternative to e_categories_register_change_listener()
.
Adds a hook function to be called when a category is added, removed or
modified. If object
is not NULL
, the hook function is automatically
removed when object
is finalized.
gdouble e_flexible_strtod (const gchar *nptr
,gchar **endptr
);
e_flexible_strtod
is deprecated and should not be used in newly-written code.
Converts a string to a gdouble value. This function detects strings either in the standard C locale or in the current locale.
This function is typically used when reading configuration files or other non-user input that should not be locale dependent, but may have been in the past. To handle input from the user you should normally use the locale-sensitive system strtod function.
To convert from a double to a string in a locale-insensitive way, use
g_ascii_dtostr
.
gchar * e_ascii_dtostr (gchar *buffer
,gint buf_len
,const gchar *format
,gdouble d
);
e_ascii_dtostr
is deprecated and should not be used in newly-written code.
Converts a double to a string, using the '.' as decimal_point. To format the number you pass in a printf-style formating string. Allowed conversion specifiers are eEfFgG.
If you want to generates enough precision that converting
the string back using g_strtod
gives the same machine-number
(on machines with IEEE compatible 64bit doubles) use the format
string "%.17g". If you do this it is guaranteed that the size
of the resulting string will never be larger than
G_ASCII_DTOSTR_BUF_SIZE
bytes.
gchar *
e_str_without_underscores (const gchar *string
);
e_str_without_underscores
is deprecated and should not be used in newly-written code.
Strips underscores from a string in the same way
gtk_label_new_with_mnemonics
does. The returned string should be freed
using g_free()
.
GString * e_str_replace_string (const gchar *text
,const gchar *find
,const gchar *replace
);
e_str_replace_string
is deprecated and should not be used in newly-written code.
Replaces every occurrence of the string before
with the string after
in
the string text
and returns a GString with result that should be freed
with g_string_free()
.
gint e_str_compare (gconstpointer x
,gconstpointer y
);
e_str_compare
is deprecated and should not be used in newly-written code.
gint e_str_case_compare (gconstpointer x
,gconstpointer y
);
e_str_case_compare
is deprecated and should not be used in newly-written code.
gint e_collate_compare (gconstpointer x
,gconstpointer y
);
e_collate_compare
is deprecated and should not be used in newly-written code.
gint e_int_compare (gconstpointer x
,gconstpointer y
);
e_int_compare
is deprecated and should not be used in newly-written code.
guint32
e_color_to_value (const GdkColor *color
);
e_color_to_value
is deprecated and should not be used in newly-written code.
Converts a GdkColor to a 24-bit RGB color value.
guint32
e_rgba_to_value (const GdkRGBA *rgba
);
e_rgba_to_value
is deprecated and should not be used in newly-written code.
Converts GdkRGBA to a 24-bit RGB color value
void e_rgba_to_color (const GdkRGBA *rgba
,GdkColor *color
);
e_rgba_to_color
is deprecated and should not be used in newly-written code.
Converts rgba
into color
, but loses the alpha channel from rgba
.
void e_utils_get_theme_color (GtkWidget *widget
,const gchar *color_names
,const gchar *fallback_color_ident
,GdkRGBA *rgba
);
e_utils_get_theme_color
is deprecated and should not be used in newly-written code.
Reads named theme color from a GtkStyleContext of widget
.
The color_names
are read one after another from left to right,
the next are meant as fallbacks, in case the theme doesn't
define the previous color. If none is found then the fallback_color_ident
is set to rgba
.
void e_utils_get_theme_color_color (GtkWidget *widget
,const gchar *color_names
,const gchar *fallback_color_ident
,GdkColor *color
);
e_utils_get_theme_color_color
is deprecated and should not be used in newly-written code.
The same as e_utils_get_theme_color()
, only populates GdkColor,
instead of GdkRGBA.
void e_utils_shade_color (const GdkRGBA *a
,GdkRGBA *b
,gdouble mult
);
e_utils_shade_color
is deprecated and should not be used in newly-written code.
gchar *
e_format_number (gint number
);
e_format_number
is deprecated and should not be used in newly-written code.
gint (*ESortCompareFunc) (gconstpointer first
,gconstpointer second
,gpointer closure
);
ESortCompareFunc
is deprecated and should not be used in newly-written code.
void e_bsearch (gconstpointer key
,gconstpointer base
,gsize nmemb
,gsize size
,ESortCompareFunc compare
,gpointer closure
,gsize *start
,gsize *end
);
e_bsearch
is deprecated and should not be used in newly-written code.
gsize e_strftime_fix_am_pm (gchar *str
,gsize max
,const gchar *fmt
,const struct tm *tm
);
e_strftime_fix_am_pm
is deprecated and should not be used in newly-written code.
gsize e_utf8_strftime_fix_am_pm (gchar *str
,gsize max
,const gchar *fmt
,const struct tm *tm
);
e_utf8_strftime_fix_am_pm
is deprecated and should not be used in newly-written code.
gsize e_utf8_strftime_match_lc_messages (gchar *string
,gsize max
,const gchar *fmt
,const struct tm *tm
);
e_utf8_strftime_match_lc_messages
is deprecated and should not be used in newly-written code.
The UTF-8 equivalent of e_strftime()
, which also
makes sure that the locale used for time and date
formatting matches the locale used by the
application so that, for example, the quoted
message header produced by the mail composer in a
reply uses only one locale (i.e. LC_MESSAGES, where
available, overrides LC_TIME for consistency).
string |
The string to store the result in. |
|
max |
The size of the |
|
fmt |
The formatting to use on |
|
tm |
The time value to format. |
Since: 3.22
const gchar * e_get_month_name (GDateMonth month
,gboolean abbreviated
);
e_get_month_name
is deprecated and should not be used in newly-written code.
Returns the localized name for month
. If abbreviated
is TRUE
,
returns the locale's abbreviated month name.
const gchar * e_get_weekday_name (GDateWeekday weekday
,gboolean abbreviated
);
e_get_weekday_name
is deprecated and should not be used in newly-written code.
Returns the localized name for weekday
. If abbreviated
is TRUE
,
returns the locale's abbreviated weekday name.
GDateWeekday
e_weekday_get_next (GDateWeekday weekday
);
e_weekday_get_next
is deprecated and should not be used in newly-written code.
Returns the GDateWeekday after weekday
.
GDateWeekday
e_weekday_get_prev (GDateWeekday weekday
);
e_weekday_get_prev
is deprecated and should not be used in newly-written code.
Returns the GDateWeekday before weekday
.
GDateWeekday e_weekday_add_days (GDateWeekday weekday
,guint n_days
);
e_weekday_add_days
is deprecated and should not be used in newly-written code.
Increments weekday
by n_days
.
GDateWeekday e_weekday_subtract_days (GDateWeekday weekday
,guint n_days
);
e_weekday_subtract_days
is deprecated and should not be used in newly-written code.
Decrements weekday
by n_days
.
guint e_weekday_get_days_between (GDateWeekday weekday1
,GDateWeekday weekday2
);
e_weekday_get_days_between
is deprecated and should not be used in newly-written code.
Counts the number of days starting at weekday1
and ending at weekday2
.
gint
e_weekday_to_tm_wday (GDateWeekday weekday
);
e_weekday_to_tm_wday
is deprecated and should not be used in newly-written code.
Converts a GDateWeekday to the numbering used in struct tm.
GDateWeekday
e_weekday_from_tm_wday (gint tm_wday
);
e_weekday_from_tm_wday
is deprecated and should not be used in newly-written code.
Converts a weekday in the numbering used in struct tm to a GDateWeekday.
gboolean
e_file_lock_create (void
);
e_file_lock_create
is deprecated and should not be used in newly-written code.
void
e_file_lock_destroy (void
);
e_file_lock_destroy
is deprecated and should not be used in newly-written code.
gboolean
e_file_lock_exists (void
);
e_file_lock_exists
is deprecated and should not be used in newly-written code.
GPid
e_file_lock_get_pid (void
);
e_file_lock_get_pid
is deprecated and should not be used in newly-written code.
gchar * e_util_guess_mime_type (const gchar *filename
,gboolean localfile
);
e_util_guess_mime_type
is deprecated and should not be used in newly-written code.
Tries to determine the MIME type for filename
. Free the returned
string with g_free()
.
GSList *
e_util_get_category_filter_options (void
);
e_util_get_category_filter_options
is deprecated and should not be used in newly-written code.
GList *
e_util_dup_searchable_categories (void
);
e_util_dup_searchable_categories
is deprecated and should not be used in newly-written code.
Returns a list of the searchable categories, with each item being a UTF-8
category name. The list should be freed with g_list_free()
when done with it,
and the items should be freed with g_free()
. Everything can be freed at once
using g_list_free_full()
.
gboolean e_util_get_open_source_job_info (const gchar *extension_name
,const gchar *source_display_name
,gchar **description
,gchar **alert_ident
,gchar **alert_arg_0
);
e_util_get_open_source_job_info
is deprecated and should not be used in newly-written code.
Populates desription
, alert_ident
and alert_arg_0
to be used
to open an ESource with extension extension_name
. The values
can be used for functions like e_alert_sink_submit_thread_job()
.
If TRUE is returned, then the caller is responsible to free
all desription
, alert_ident
and alert_arg_0
with g_free()
,
when no longer needed.
extension_name |
an extension name of the source |
|
source_display_name |
an ESource's display name |
|
description |
a description to use. |
[out][transfer-full] |
alert_ident |
an alert ident to use on failure. |
[out][transfer-full] |
alert_arg_0 |
an alert argument 0 to use on failure. |
[out][transfer-full] |
TRUE, if the values for desription
, alert_ident
and alert_arg_0
were set for the given extension_name
; when FALSE is returned, then
none of these out variables are changed.
Since: 3.16
void e_util_propagate_open_source_job_error (struct _EAlertSinkThreadJobData *job_data
,const gchar *extension_name
,GError *local_error
,GError **error
);
e_util_propagate_open_source_job_error
is deprecated and should not be used in newly-written code.
Propagates (and cosumes) the local_error
into the error
, eventually
changes alert_ident for the job_data
for well-known error codes,
where is available better error description.
job_data |
an EAlertSinkThreadJobData instance |
|
extension_name |
what extension name had beeing opened |
|
local_error |
a GError as obtained in a thread job; can be NULL for success. |
[allow none] |
error |
an output GError, to which propagate the |
[allow none] |
Since: 3.16
EClient * e_util_open_client_sync (struct _EAlertSinkThreadJobData *job_data
,struct _EClientCache *client_cache
,const gchar *extension_name
,ESource *source
,guint32 wait_for_connected_seconds
,GCancellable *cancellable
,GError **error
);
e_util_open_client_sync
is deprecated and should not be used in newly-written code.
gboolean e_binding_transform_color_to_string (GBinding *binding
,const GValue *source_value
,GValue *target_value
,gpointer not_used
);
e_binding_transform_color_to_string
is deprecated and should not be used in newly-written code.
Transforms a GdkColor value to a color string specification.
gboolean e_binding_transform_string_to_color (GBinding *binding
,const GValue *source_value
,GValue *target_value
,gpointer not_used
);
e_binding_transform_string_to_color
is deprecated and should not be used in newly-written code.
Transforms a color string specification to a GdkColor.
gboolean e_binding_transform_source_to_uid (GBinding *binding
,const GValue *source_value
,GValue *target_value
,ESourceRegistry *registry
);
e_binding_transform_source_to_uid
is deprecated and should not be used in newly-written code.
Transforms an ESource object to its UID string.
gboolean e_binding_transform_uid_to_source (GBinding *binding
,const GValue *source_value
,GValue *target_value
,ESourceRegistry *registry
);
e_binding_transform_uid_to_source
is deprecated and should not be used in newly-written code.
Transforms an ESource UID string to the corresponding ESource object
in registry
.
gboolean e_binding_transform_text_non_null (GBinding *binding
,const GValue *source_value
,GValue *target_value
,gpointer user_data
);
e_binding_transform_text_non_null
is deprecated and should not be used in newly-written code.
Transforms a text value to a text value which is never NULL; an empty string is used instead of NULL.
GBinding * e_binding_bind_object_text_property (gpointer source
,const gchar *source_property
,gpointer target
,const gchar *target_property
,GBindingFlags flags
);
e_binding_bind_object_text_property
is deprecated and should not be used in newly-written code.
Installs a new text property object binding, using e_binding_bind_property_full()
,
with transform functions to make sure that a NULL pointer is not
passed in either way. Instead of NULL an empty string is used.
gulong e_signal_connect_notify (gpointer instance
,const gchar *notify_name
,GCallback c_handler
,gpointer user_data
);
e_signal_connect_notify
is deprecated and should not be used in newly-written code.
This installs a special handler in front of c_handler
, which will
call the c_handler
only if the property value changed since the last
time it was checked. Due to this, these handlers cannot be disconnected
by by any of the g_signal_handlers_* functions, but only with the returned
handler ID. A convenient e_signal_disconnect_notify_handler()
was added
to make it easier.
gulong e_signal_connect_notify_after (gpointer instance
,const gchar *notify_name
,GCallback c_handler
,gpointer user_data
);
e_signal_connect_notify_after
is deprecated and should not be used in newly-written code.
This installs a special handler in front of c_handler
, which will
call the c_handler
only if the property value changed since the last
time it was checked. Due to this, these handlers cannot be disconnected
by by any of the g_signal_handlers_* functions, but only with the returned
handler ID. A convenient e_signal_disconnect_notify_handler()
was added
to make it easier.
gulong e_signal_connect_notify_swapped (gpointer instance
,const gchar *notify_name
,GCallback c_handler
,gpointer user_data
);
e_signal_connect_notify_swapped
is deprecated and should not be used in newly-written code.
This installs a special handler in front of c_handler
, which will
call the c_handler
only if the property value changed since the last
time it was checked. Due to this, these handlers cannot be disconnected
by by any of the g_signal_handlers_* functions, but only with the returned
handler ID. A convenient e_signal_disconnect_notify_handler()
was added
to make it easier.
gulong e_signal_connect_notify_object (gpointer instance
,const gchar *notify_name
,GCallback c_handler
,gpointer gobject
,GConnectFlags connect_flags
);
e_signal_connect_notify_object
is deprecated and should not be used in newly-written code.
This installs a special handler in front of c_handler
, which will
call the c_handler
only if the property value changed since the last
time it was checked. Due to this, these handlers cannot be disconnected
by by any of the g_signal_handlers_* functions, but only with the returned
handler ID. A convenient e_signal_disconnect_notify_handler()
was added
to make it easier.
void e_signal_disconnect_notify_handler (gpointer instance
,gulong *handler_id
);
e_signal_disconnect_notify_handler
is deprecated and should not be used in newly-written code.
Convenient handler disconnect function to be used with
returned handler IDs from:
e_signal_connect_notify()
e_signal_connect_notify_after()
e_signal_connect_notify_swapped()
e_signal_connect_notify_object()
but not necessarily only with these functions.
GSettings *
e_util_ref_settings (const gchar *schema_id
);
e_util_ref_settings
is deprecated and should not be used in newly-written code.
Either returns an existing referenced GSettings object for the given schema_id
,
or creates a new one and remembers it for later use, to avoid having too many
GSettings objects created for the same schema_id
.
A GSettings for the given schema_id
. The returned GSettings object
is referenced, thus free it with g_object_unref()
when done with it.
Since: 3.16
void
e_util_cleanup_settings (void
);
e_util_cleanup_settings
is deprecated and should not be used in newly-written code.
Frees all the memory taken by e_util_ref_settings()
.
Since: 3.16
gboolean e_util_prompt_user (GtkWindow *parent
,const gchar *settings_schema
,const gchar *promptkey
,const gchar *tag
,...
);
e_util_prompt_user
is deprecated and should not be used in newly-written code.
Convenience function to query the user with a Yes/No dialog and a
"Do not show this dialog again" checkbox. If the user checks that
checkbox, then promptkey
is set to FALSE
, otherwise it is set to
TRUE
.
Returns TRUE
if the user clicks Yes or FALSE
otherwise.
void e_util_run_simple_async_result_in_thread (GSimpleAsyncResult *simple
,GSimpleAsyncThreadFunc func
,GCancellable *cancellable
);
e_util_run_simple_async_result_in_thread
is deprecated and should not be used in newly-written code.
Similar to g_simple_async_result_run_in_thread()
, except
it doesn't use GTask internally, thus doesn't block the GTask
thread pool with possibly long job.
It doesn't behave exactly the same as the g_simple_async_result_run_in_thread()
,
the cancellable
checking is not done before the finish.
simple |
a GSimpleAsyncResult |
|
func |
a GSimpleAsyncThreadFunc to execute in the thread |
|
cancellable |
an optional GCancellable, or |
Since: 3.18
gboolean
e_util_is_running_gnome (void
);
e_util_is_running_gnome
is deprecated and should not be used in newly-written code.
Since: 3.18
void e_util_set_entry_issue_hint (GtkWidget *entry
,const gchar *hint
);
e_util_set_entry_issue_hint
is deprecated and should not be used in newly-written code.
Sets a hint
on the secondary entry
icon about an entered value issue,
or unsets it, when the hint
is NULL
.
Since: 3.20
guint e_util_normalize_font_size (GtkWidget *widget
,gdouble font_size
);
e_util_normalize_font_size
is deprecated and should not be used in newly-written code.
void
e_util_init_main_thread (GThread *thread
);
e_util_init_main_thread
is deprecated and should not be used in newly-written code.
gboolean
e_util_is_main_thread (GThread *thread
);
e_util_is_main_thread
is deprecated and should not be used in newly-written code.
gchar *
e_util_save_image_from_clipboard (GtkClipboard *clipboard
);
e_util_save_image_from_clipboard
is deprecated and should not be used in newly-written code.
Saves the image from clipboard
to a temporary file and returns its URI.
Since: 3.22
gboolean e_util_check_gtk_bindings_in_key_press_event_cb (GtkWidget *widget
,GdkEvent *event
);
e_util_check_gtk_bindings_in_key_press_event_cb
is deprecated and should not be used in newly-written code.
A callback function for GtkWidget::key-press-event signal,
which checks whether currently focused widget inside widget
,
if it's a GtkWindow, or a toplevel window containing the widget
,
will consume the event
due to gtk+ bindings and if so, then
it'll stop processing the event further. When it's connected
on a GtkWindow, then it can prevent the event to be used
for shortcuts of actions.
TRUE
to stop other handlers from being invoked for
the event, FALSE
to propagate the event further.
Since: 3.22
void e_util_claim_dbus_proxy_call_error (GDBusProxy *dbus_proxy
,const gchar *method_name
,const GError *in_error
);
e_util_claim_dbus_proxy_call_error
is deprecated and should not be used in newly-written code.
Claims the in_error
on the console as a failure to call
method method_name
of the dbus_proxy
. It's safe to call this
with a NULL
in_error
, then the function does nothing.
Some errors can be ignored, like the G_IO_ERROR_CANCELLED is.
dbus_proxy |
a GDBusProxy instance |
|
method_name |
a method name of the |
|
in_error |
a GError with the failure, or |
[allow-none] |
Since: 3.22
void e_util_invoke_g_dbus_proxy_call_with_error_check (GDBusProxy *dbus_proxy
,const gchar *method_name
,GVariant *parameters
,GCancellable *cancellable
);
e_util_invoke_g_dbus_proxy_call_with_error_check
is deprecated and should not be used in newly-written code.
Calls g_dbus_proxy_call()
on the dbus_proxy
for the method_name
with parameters
and adds its own callback for the result. Then, if an error is returned, passes this
error into e_util_claim_dbus_proxy_call_error()
.
See: e_util_invoke_g_dbus_proxy_call_with_error_check_full()
dbus_proxy |
a GDBusProxy instance |
|
method_name |
a method name to invoke |
|
parameters |
parameters of the method, or |
[allow-none] |
cancellable |
a GCancellable, or |
[allow-none] |
Since: 3.22
void e_util_invoke_g_dbus_proxy_call_with_error_check_full (GDBusProxy *dbus_proxy
,const gchar *method_name
,GVariant *parameters
,GDBusCallFlags flags
,gint timeout_msec
,GCancellable *cancellable
);
e_util_invoke_g_dbus_proxy_call_with_error_check_full
is deprecated and should not be used in newly-written code.
Calls g_dbus_proxy_call()
on the dbus_proxy
for the method_name
with parameters
and adds its own callback for the result. Then, if an error is returned, passes this
error into e_util_claim_dbus_proxy_call_error()
.
See: e_util_invoke_g_dbus_proxy_call_with_error_check()
dbus_proxy |
a GDBusProxy instance |
|
method_name |
a method name to invoke |
|
parameters |
parameters of the method, or |
[allow-none] |
flags |
a bit-or of GDBusCallFlags, with the same meaning as in the |
|
timeout_msec |
timeout in milliseconds, with the same meaning as in the |
|
cancellable |
a GCancellable, or |
[allow-none] |
Since: 3.22
GVariant * e_util_invoke_g_dbus_proxy_call_sync_wrapper_with_error_check (GDBusProxy *dbus_proxy
,const gchar *method_name
,GVariant *parameters
,GCancellable *cancellable
);
e_util_invoke_g_dbus_proxy_call_sync_wrapper_with_error_check
is deprecated and should not be used in newly-written code.
Calls e_util_invoke_g_dbus_proxy_call_sync_wrapper_full()
with some default
values for flags and timeout_msec, while also providing its own GError and
after the call is finished it calls e_util_claim_dbus_proxy_call_error()
with the returned error, if any.
dbus_proxy |
a GDBusProxy instance |
|
method_name |
a method name to invoke |
|
parameters |
parameters of the method, or |
[allow-none] |
cancellable |
a GCancellable, or |
[allow-none] |
Since: 3.22
GVariant * e_util_invoke_g_dbus_proxy_call_sync_wrapper_full (GDBusProxy *dbus_proxy
,const gchar *method_name
,GVariant *parameters
,GDBusCallFlags flags
,gint timeout_msec
,GCancellable *cancellable
,GError **error
);
e_util_invoke_g_dbus_proxy_call_sync_wrapper_full
is deprecated and should not be used in newly-written code.
Wraps GDBusProxy synchronous call into an asynchronous without blocking the main context. This can be useful when doing calls on a WebExtension, because it can avoid freeze when this is called in the UI process and the WebProcess also does its own IPC call.
This function should be called only from the main thread.
dbus_proxy |
a GDBusProxy instance |
|
method_name |
a method name to invoke |
|
parameters |
parameters of the method, or |
[allow-none] |
flags |
a bit-or of GDBusCallFlags, with the same meaning as in the |
|
timeout_msec |
timeout in milliseconds, with the same meaning as in the |
|
cancellable |
a GCancellable, or |
[allow-none] |
error |
Return location for error, or |
[allow-none] |
Since: 3.22
void
e_util_save_file_chooser_folder (GtkFileChooser *file_chooser
);
e_util_save_file_chooser_folder
is deprecated and should not be used in newly-written code.
Saves the current folder of the file_chooser
, thus it could be used
by e_util_load_file_chooser_folder()
to open it in the last chosen folder.
Since: 3.24
void
e_util_load_file_chooser_folder (GtkFileChooser *file_chooser
);
e_util_load_file_chooser_folder
is deprecated and should not be used in newly-written code.
Sets the current folder to the file_chooser
to the one previously saved
by e_util_save_file_chooser_folder()
. The function does nothing if none
or invalid is saved.
Since: 3.24
gboolean
e_util_get_webkit_developer_mode_enabled
(void
);
e_util_get_webkit_developer_mode_enabled
is deprecated and should not be used in newly-written code.
Whether WebKit developer mode is enabled. This is read only once, thus any changes in the GSettings property require restart of the Evolution.
Since: 3.24
gchar * e_util_next_uri_from_uri_list (guchar **uri_list
,gint *len
,gint *list_len
);
e_util_next_uri_from_uri_list
is deprecated and should not be used in newly-written code.
uri_list |
array of URIs separated by new lines |
|
len |
a length of the found URI. |
[out] |
list_len |
a length of the array. |
[out] |
Since: 3.26
void e_util_resize_window_for_screen (GtkWindow *window
,gint window_width
,gint window_height
,const GSList *children
);
e_util_resize_window_for_screen
is deprecated and should not be used in newly-written code.
Calculates the size of the window
considering preferred sizes of children
,
and shrinks the window
in case it won't be completely visible on the screen
it is assigned to.
window |
a GtkWindow |
|
window_width |
the |
|
window_height |
the |
|
children |
(nullable): a GSList with children to calculate with. |
[element-type GtkWidget] |
Since: 3.26
gboolean e_util_query_ldap_root_dse_sync (const gchar *host
,guint16 port
,gchar ***out_root_dse
,GCancellable *cancellable
,GError **error
);
e_util_query_ldap_root_dse_sync
is deprecated and should not be used in newly-written code.
Queries an LDAP server identified by host
and port
for supported
search bases and returns them as an NULL-terminated array of strings
at out_root_dse
. It sets out_root_dse
to NULL on error.
Free the returned out_root_dse
with g_strfreev()
when no longer needed.
The function fails and sets error
to G_IO_ERROR_NOT_SUPPORTED when
Evolution had been compiled without LDAP support.
host |
an LDAP server host name |
|
port |
an LDAP server port |
|
out_root_dse |
NULL-terminated array of the server root DSE-s, or |
[out][transfer full] |
cancellable |
optional GCancellable object, or |
|
error |
return location for a GError, or |
Since: 3.28
ERestoreWindowFlags
is deprecated and should not be used in newly-written code.
#define E_ASCII_DTOSTR_BUF_SIZE (DBL_DIG + 12 + 10)
E_ASCII_DTOSTR_BUF_SIZE
is deprecated and should not be used in newly-written code.
#define E_UTILS_LIGHTNESS_MULT 1.3
E_UTILS_LIGHTNESS_MULT
is deprecated and should not be used in newly-written code.
#define E_UTILS_DARKNESS_MULT 0.7
E_UTILS_DARKNESS_MULT
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_BG_COLOR "#AAAAAA"
E_UTILS_DEFAULT_THEME_BG_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_BASE_COLOR "#FFFFFF"
E_UTILS_DEFAULT_THEME_BASE_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_FG_COLOR "#000000"
E_UTILS_DEFAULT_THEME_FG_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_TEXT_COLOR "#000000"
E_UTILS_DEFAULT_THEME_TEXT_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR "#729fcf"
E_UTILS_DEFAULT_THEME_SELECTED_BG_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR "#000000"
E_UTILS_DEFAULT_THEME_SELECTED_FG_COLOR
is deprecated and should not be used in newly-written code.
#define E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_BG_COLOR "#808080"
E_UTILS_DEFAULT_THEME_UNFOCUSED_SELECTED_BG_COLOR
is deprecated and should not be used in newly-written code.