diff options
author | Frederic Peters <fpeters@src.gnome.org> | 2009-03-27 05:50:22 +0800 |
---|---|---|
committer | Frederic Peters <fpeters@src.gnome.org> | 2009-03-27 05:50:22 +0800 |
commit | 0400205036f01b8e42271cdd442a15927a06b070 (patch) | |
tree | 15c90330c689e6576bf1ea5d1990f63bd5adfcf6 /src/empathy-status-icon.c | |
parent | 5db536d8933dd4c0d375aede40b4ab5e94d0a551 (diff) | |
download | gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar.gz gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar.bz2 gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar.lz gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar.xz gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.tar.zst gsoc2013-empathy-0400205036f01b8e42271cdd442a15927a06b070.zip |
use new GtkStatusIcon tooltip methods, formatting the header in italics.
(requires new GTK+ version, bumped dependency to 2.16.0) (bug #575265)
svn path=/trunk/; revision=2745
Diffstat (limited to 'src/empathy-status-icon.c')
-rw-r--r-- | src/empathy-status-icon.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c index 492c37a85..214e31e16 100644 --- a/src/empathy-status-icon.c +++ b/src/empathy-status-icon.c @@ -171,22 +171,18 @@ status_icon_update_tooltip (EmpathyStatusIcon *icon) if (priv->event) { if (priv->event->message != NULL) - tooltip = g_strdup_printf ("%s\n%s", + tooltip = g_strdup_printf ("<i>%s</i>\n%s", priv->event->header, priv->event->message); else - tooltip = g_strdup (priv->event->header); - } - - if (!tooltip) { + tooltip = g_strdup_printf ("<i>%s</i>", + priv->event->header); + gtk_status_icon_set_tooltip_markup (priv->icon, tooltip); + } else { tooltip = g_strdup (empathy_idle_get_status (priv->idle)); + gtk_status_icon_set_tooltip_text (priv->icon, tooltip); } - /* FIXME: when we will depend on GTK+ 2.16.0, we should use - * gtk_status_icon_set_tooltip_markup () and make the header italic. - */ - gtk_status_icon_set_tooltip (priv->icon, tooltip); - g_free (tooltip); } |