gnome-power-manager r3138 - in trunk: . src



Author: fpeters
Date: Thu Dec 25 13:07:59 2008
New Revision: 3138
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3138&view=rev

Log:
* src/gpm-tray-icon.c: (gpm_tray_icon_set_tooltip):
Conditionally use the new GTK+ API to set the tooltip on the tray icon.
Fixes #565552



Modified:
   trunk/ChangeLog
   trunk/src/gpm-tray-icon.c

Modified: trunk/src/gpm-tray-icon.c
==============================================================================
--- trunk/src/gpm-tray-icon.c	(original)
+++ trunk/src/gpm-tray-icon.c	Thu Dec 25 13:07:59 2008
@@ -173,7 +173,11 @@
 	g_return_val_if_fail (GPM_IS_TRAY_ICON (icon), FALSE);
 	g_return_val_if_fail (tooltip != NULL, FALSE);
 
+#if GTK_CHECK_VERSION(2,15,0)
+	gtk_status_icon_set_tooltip_text (GTK_STATUS_ICON (icon->priv->status_icon), tooltip);
+#else
 	gtk_status_icon_set_tooltip (GTK_STATUS_ICON (icon->priv->status_icon), tooltip);
+#endif
 	return TRUE;
 }
 



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