[evolution-kolab] EPlugin: use new util function to add a GError to an EAlertBar
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab] EPlugin: use new util function to add a GError to an EAlertBar
- Date: Wed, 10 Oct 2012 18:39:09 +0000 (UTC)
commit 9eef16b50dc8beaec2f4b9d9e329c5d514f56148
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Wed Oct 10 18:08:21 2012 +0200
EPlugin: use new util function to add a GError to an EAlertBar
src/eplugin/e-kolab-plugin-ui.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/src/eplugin/e-kolab-plugin-ui.c b/src/eplugin/e-kolab-plugin-ui.c
index 913f44d..d22a840 100644
--- a/src/eplugin/e-kolab-plugin-ui.c
+++ b/src/eplugin/e-kolab-plugin-ui.c
@@ -195,18 +195,16 @@ static void
kolab_folder_prop_ui_alertbar_add_error (KolabFolderPropUIData *uidata,
GError *err)
{
- EAlert *alert = NULL;
+ EAlertBar *alert_bar = NULL;
g_return_if_fail (uidata != NULL);
g_return_if_fail (uidata->widgets != NULL);
- g_return_if_fail (E_IS_ALERT_BAR (uidata->widgets->alert_bar));
- if (err == NULL)
- return;
+ alert_bar = E_ALERT_BAR (uidata->widgets->alert_bar);
+ g_return_if_fail (alert_bar);
- alert = e_kolab_plugin_util_ui_alert_new_from_gerror (err);
- e_alert_bar_add_alert (E_ALERT_BAR (uidata->widgets->alert_bar),
- alert);
+ e_kolab_plugin_util_ui_alert_bar_add_error (alert_bar,
+ err);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]