[evolution-rss/evolution-rss-0-2-0] adapt to EMFormat changes
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss/evolution-rss-0-2-0] adapt to EMFormat changes
- Date: Tue, 5 Oct 2010 05:31:19 +0000 (UTC)
commit c70062c09be1557a632c32a5b96d2798377a7de3
Author: Lucian Langa <lucilanga gnome org>
Date: Tue Oct 5 08:29:28 2010 +0300
adapt to EMFormat changes
src/rss-image.c | 4 ++++
src/rss.c | 12 ++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/rss-image.c b/src/rss-image.c
index 12a614b..530512d 100644
--- a/src/rss-image.c
+++ b/src/rss-image.c
@@ -279,7 +279,11 @@ finish_image_feedback (SoupSession *soup_sess, SoupMessage *msg, FEED_IMAGE *use
stream = rss_cache_add(user_data->url);
finish_image(soup_sess, msg, stream);
if (user_data->data == current_pobject)
+#if EVOLUTION_VERSION >= 23190
+ em_format_queue_redraw((EMFormat *)user_data->data);
+#else
em_format_redraw((EMFormat *)user_data->data);
+#endif
g_free(user_data->url);
g_free(user_data);
}
diff --git a/src/rss.c b/src/rss.c
index a5941bf..319106e 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -957,7 +957,11 @@ summary_cb (GtkWidget *button, EMFormatHTMLPObject *pobject)
{
rf->cur_format = rf->cur_format^1;
rf->chg_format = 1;
+#if EVOLUTION_VERSION >= 23190
+ em_format_queue_redraw((EMFormat *)pobject);
+#else
em_format_redraw((EMFormat *)pobject);
+#endif
// while (gtk_events_pending ())
// gtk_main_iteration ();
}
@@ -3697,7 +3701,11 @@ finish_comments (SoupSession *soup_sess, SoupMessage *msg, EMFormatHTML *user_da
g_string_free(response, 0);
if (reload && !rf->cur_format) {
+#if EVOLUTION_VERSION >= 23190
+ em_format_queue_redraw((EMFormat *)user_data);
+#else
em_format_redraw((EMFormat *)user_data);
+#endif
}
while (gtk_events_pending ())
@@ -3707,7 +3715,11 @@ finish_comments (SoupSession *soup_sess, SoupMessage *msg, EMFormatHTML *user_da
static void
refresh_cb (GtkWidget *button, EMFormatHTMLPObject *pobject)
{
+#if EVOLUTION_VERSION >= 23190
+ em_format_queue_redraw((EMFormat *)pobject);
+#else
em_format_redraw((EMFormat *)pobject);
+#endif
}
gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]