gnome-power-manager r3248 - in trunk: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3248 - in trunk: . src
- Date: Tue, 10 Feb 2009 13:05:22 +0000 (UTC)
Author: rhughes
Date: Tue Feb 10 13:05:22 2009
New Revision: 3248
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3248&view=rev
Log:
2009-02-10 Richard Hughes <richard hughsie com>
* src/gpm-tray-icon.c: (gpm_tray_icon_show),
(gpm_tray_icon_set_tooltip), (gpm_tray_icon_set_icon):
Remove useless casts.
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 Tue Feb 10 13:05:22 2009
@@ -117,7 +117,7 @@
gpm_tray_icon_show (GpmTrayIcon *icon, gboolean enabled)
{
g_return_if_fail (GPM_IS_TRAY_ICON (icon));
- gtk_status_icon_set_visible (GTK_STATUS_ICON (icon->priv->status_icon), enabled);
+ gtk_status_icon_set_visible (icon->priv->status_icon, enabled);
}
/**
@@ -132,9 +132,9 @@
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);
+ gtk_status_icon_set_tooltip_text (icon->priv->status_icon, tooltip);
#else
- gtk_status_icon_set_tooltip (GTK_STATUS_ICON (icon->priv->status_icon), tooltip);
+ gtk_status_icon_set_tooltip (icon->priv->status_icon, tooltip);
#endif
return TRUE;
}
@@ -153,7 +153,7 @@
if (filename != NULL) {
egg_debug ("Setting icon to %s", filename);
- gtk_status_icon_set_from_icon_name (GTK_STATUS_ICON (icon->priv->status_icon), filename);
+ gtk_status_icon_set_from_icon_name (icon->priv->status_icon, filename);
/* make sure that we are visible */
gpm_tray_icon_show (icon, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]