evolution-rss r342 - trunk/src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r342 - trunk/src
- Date: Tue, 22 Jul 2008 16:12:42 +0000 (UTC)
Author: lucilanga
Date: Tue Jul 22 16:12:41 2008
New Revision: 342
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=342&view=rev
Log:
2008-07-22 Lucian Langa <lucilanga gnome org>
* src/rss.c: implement status icon message
Modified:
trunk/src/rss.c
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Tue Jul 22 16:12:41 2008
@@ -2915,24 +2915,27 @@
flaten_status(gpointer msg, gpointer user_data)
{
if (strlen(msg))
- flat_status_msg = g_strconcat(msg, "\n", NULL);
+ if (flat_status_msg)
+ flat_status_msg = g_strconcat(flat_status_msg, msg, NULL);
+ else
+ flat_status_msg = g_strconcat(msg, NULL);
}
static void
flicker_status_icon(gchar *channel, gchar *title)
{
- gchar *total = g_strdup_printf("%s: <b>%s</b>", channel, title);
+ gchar *total = g_strdup_printf("%s: %s\n\n", channel, title);
create_status_icon();
- g_queue_push_tail(status_msg, total);
+ g_queue_push_tail(status_msg, total);
//g_free(total);
- if (g_queue_get_length(status_msg) == 5)
+ if (g_queue_get_length(status_msg) == 6)
g_queue_pop_head(status_msg);
g_queue_foreach(status_msg, flaten_status, flat_status_msg);
gtk_status_icon_set_tooltip (status_icon, flat_status_msg);
gtk_status_icon_set_visible (status_icon, TRUE);
if (!gtk_status_icon_get_blinking(status_icon))
gtk_status_icon_set_blinking (status_icon, TRUE);
- g_timeout_add(30*1000, flicker_stop, NULL);
+ g_timeout_add(15 * 1000, flicker_stop, NULL);
g_free(flat_status_msg);
flat_status_msg = NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]