[evolution-rss] Build failure due to gtk+ depreciations



commit c9da4e09680ee92caff67e34272f35d99cf6625f
Author: Lucian Langa <lucilanga gnome org>
Date:   Thu Mar 11 12:01:42 2010 +0200

    Build failure due to gtk+ depreciations

 src/rss-config-factory.c |    4 ++++
 src/rss.c                |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/rss-config-factory.c b/src/rss-config-factory.c
index 49af72f..fcbf76f 100644
--- a/src/rss-config-factory.c
+++ b/src/rss-config-factory.c
@@ -839,7 +839,11 @@ store_redraw(GtkTreeView *data)
 	GtkTreeModel *model;
 
 	g_return_val_if_fail(data, FALSE);
+#if GTK_VERSION >= 2019007
+	g_return_val_if_fail(gtk_widget_is_realized(data), FALSE);
+#else
 	g_return_val_if_fail(GTK_WIDGET_REALIZED(data), FALSE);
+#endif
 
 	if (!store_redrawing) {
 		store_redrawing = 1;
diff --git a/src/rss.c b/src/rss.c
index bfe5b1d..9317bb6 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -1402,7 +1402,11 @@ mycall (GtkWidget *widget, GtkAllocation *event, gpointer data)
 		d("resize webkit :width:%d, height: %d\n", width, height);
 		if (po->mozembedwindow && rf->mozembed)
 			if(GTK_IS_WIDGET(po->mozembedwindow)
+#if GTK_VERSION >= 2019007
+			&& gtk_widget_is_realized(rf->mozembed)
+#else
 			&& GTK_WIDGET_REALIZED(rf->mozembed)
+#endif
 			&& height > 0) {
 				if (!browser_fetching) {
 					gchar *msg = g_strdup_printf("<h5>%s</h5>", _("Formatting Message..."));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]