[evolution-rss/evolution-rss-0-2-0] work around latest gtk deprecations



commit 3e96e0533d2e2f2e0b596afbc3c1146fe134354b
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Oct 5 08:29:13 2010 +0300

    work around latest gtk deprecations

 src/rss.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/rss.c b/src/rss.c
index b715000..a5941bf 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -649,7 +649,9 @@ create_user_pass_dialog(RSS_AUTH *auth)
 		GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 		GTK_STOCK_OK, GTK_RESPONSE_OK,
 		NULL);
+#if GTK_MINOR_VERSION < 22
 	gtk_dialog_set_has_separator (GTK_DIALOG (widget), FALSE);
+#endif
 	gtk_dialog_set_default_response (
 		GTK_DIALOG (widget), GTK_RESPONSE_OK);
 	gtk_window_set_resizable (GTK_WINDOW (widget), FALSE);
@@ -4417,7 +4419,9 @@ create_status_icon(void)
 gboolean
 flicker_stop(gpointer user_data)
 {
+#if GTK_MINOR_VERSION < 22
 	gtk_status_icon_set_blinking (status_icon, FALSE);
+#endif
 	return FALSE;
 }
 
@@ -4458,9 +4462,11 @@ update_status_icon(const char *channel, gchar *title)
 #endif
 		g_free(stext);
 		gtk_status_icon_set_visible (status_icon, TRUE);
+#if GTK_MINOR_VERSION < 22
 		if (gconf_client_get_bool (rss_gconf, GCONF_KEY_BLINK_ICON, NULL)
 		&& !gtk_status_icon_get_blinking(status_icon))
 			gtk_status_icon_set_blinking (status_icon, TRUE);
+#endif
 		g_timeout_add(15 * 1000, flicker_stop, NULL);
 		g_free(flat_status_msg);
 		flat_status_msg = NULL;



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