aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:07:00 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2009-01-31 01:07:00 +0800
commit1e59a674d1b391d38ad6f1274dc7d56f2a324d28 (patch)
treeede018f9a3540ec1aabc8063850a3a2b96744107
parentbb99837e8df1850ff333a804100faf1a8cf408a5 (diff)
downloadgsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar.gz
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar.bz2
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar.lz
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar.xz
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.tar.zst
gsoc2013-empathy-1e59a674d1b391d38ad6f1274dc7d56f2a324d28.zip
Adapt the status icon message to the new API.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@2275 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r--src/empathy-status-icon.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/empathy-status-icon.c b/src/empathy-status-icon.c
index bb96e65e5..738b7b926 100644
--- a/src/empathy-status-icon.c
+++ b/src/empathy-status-icon.c
@@ -126,17 +126,24 @@ static void
status_icon_update_tooltip (EmpathyStatusIcon *icon)
{
EmpathyStatusIconPriv *priv = GET_PRIV (icon);
- const gchar *tooltip = NULL;
+ gchar *tooltip = NULL;
if (priv->event) {
- tooltip = priv->event->message;
+ tooltip = g_strdup_printf ("%s\n%s",
+ priv->event->header,
+ priv->event->message);
}
if (!tooltip) {
- tooltip = empathy_idle_get_status (priv->idle);
+ tooltip = g_strdup (empathy_idle_get_status (priv->idle));
}
- gtk_status_icon_set_tooltip (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);
}
static void