[ekiga/gnome-2-26] Remove deprecated GTK+ symbols (#578472)



commit ab23d59f69db411764eaa3351f5efc842d1e3efc
Author: Thomas Andersen <phomes gmail com>
Date:   Tue Apr 21 21:38:22 2009 +0200

    Remove deprecated GTK+ symbols (#578472)
---
 src/gui/statusicon.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/gui/statusicon.cpp b/src/gui/statusicon.cpp
index 921a6fc..04625ad 100644
--- a/src/gui/statusicon.cpp
+++ b/src/gui/statusicon.cpp
@@ -306,13 +306,20 @@ unread_count_cb (G_GNUC_UNUSED GtkWidget *widget,
 					 "You have %d messages",
 					 messages), messages);
 
+#if GTK_CHECK_VERSION(2,16,0)
+    gtk_status_icon_set_tooltip_text (GTK_STATUS_ICON (self), message);
+#else
     gtk_status_icon_set_tooltip (GTK_STATUS_ICON (self), message);
+#endif
 
     g_free (message);
   }
   else {
-
+#if GTK_CHECK_VERSION(2,16,0)
+    gtk_status_icon_set_tooltip_text (GTK_STATUS_ICON (self), NULL);
+#else
     gtk_status_icon_set_tooltip (GTK_STATUS_ICON (self), NULL);
+#endif
   }
 
   self->priv->unread_messages = (messages > 0);



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