[ekiga] Remove deprecated GTK+ symbols (#578472)



commit 55afbce331a0b692c2f50e40673c857bec25d8ba
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]