[evolution-rss] adapt to latest evolution changes
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] adapt to latest evolution changes
- Date: Sun, 9 Oct 2011 16:11:42 +0000 (UTC)
commit f9f0880e2fc56ce69d0a25359c31cfcaac93050f
Author: Lucian Langa <lucilanga gnome org>
Date: Sun Oct 9 18:12:08 2011 +0200
adapt to latest evolution changes
src/notification.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/notification.c b/src/notification.c
index 1b5d6bf..ce32334 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -77,6 +77,9 @@ rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
#if (EVOLUTION_VERSION >= 30101)
gpointer alert;
#endif
+#if (EVOLUTION_VERSION >= 30101)
+ GtkApplication *application;
+#endif
if (name)
msg = g_strdup_printf("\n%s\n%s", name, emsg);
@@ -93,7 +96,12 @@ rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
e_shell_submit_alert (shell, alert);
goto out;
#endif
+#if (EVOLUTION_VERSION >= 30301)
+ application = GTK_APPLICATION(shell);
+ windows = gtk_application_get_windows (application);
+#else
windows = e_shell_get_watched_windows (shell);
+#endif
parent = (windows != NULL) ? GTK_WINDOW (windows->data) : NULL;
@@ -158,7 +166,12 @@ rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
if (!rf->errdialog) {
#if (EVOLUTION_VERSION >= 22900) //kb//
shell = e_shell_get_default ();
+#if (EVOLUTION_VERSION >= 30301)
+ application = GTK_APPLICATION(shell);
+ windows = gtk_application_get_windows (application);
+#else
windows = e_shell_get_watched_windows (shell);
+#endif
parent = (windows != NULL) ? GTK_WINDOW (windows->data) : NULL;
ed = e_alert_dialog_new_for_args(parent,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]