evolution-rss r338 - trunk/src



Author: lucilanga
Date: Wed Jul 16 13:17:03 2008
New Revision: 338
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=338&view=rev

Log:
2008-07-14  Lucian Langa  <lucilanga gnome org>

* src/configure.in: force pickup of
nspr includes
* src/rss-config-factory.c: suppport
for foaf importing
* src/rss.c: add status icon

Modified:
   trunk/src/rss.c

Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c	(original)
+++ trunk/src/rss.c	Wed Jul 16 13:17:03 2008
@@ -2878,6 +2878,21 @@
 }
 
 static void
+create_status_icon(void)
+{
+	if (!status_icon) {
+		gchar *iconfile = g_build_filename (EVOLUTION_ICONDIR,
+	                                    "rss-24.png",
+                                            NULL);
+
+		status_icon = gtk_status_icon_new ();
+        	gtk_status_icon_set_from_file (status_icon, iconfile);
+		g_free(iconfile);
+	}
+        gtk_status_icon_set_visible (status_icon, FALSE);
+}
+        
+static void
 icon_activated (GtkStatusIcon *icon, gpointer pnotify)
 {
         gtk_status_icon_set_visible (status_icon, FALSE);
@@ -2896,6 +2911,7 @@
 static void
 flicker_status_icon(void)
 {
+	create_status_icon();
 	gchar *total = g_strdup_printf("Feeds: %d articles", farticle);
 	gtk_status_icon_set_tooltip (status_icon, total);
         gtk_status_icon_set_visible (status_icon, TRUE);
@@ -2944,16 +2960,7 @@
 		
 	}
 	custom_feed_timeout();
-        
-
-	gchar *iconfile = g_build_filename (EVOLUTION_ICONDIR,
-	                                    "rss-24.png",
-                                            NULL);
 
-	status_icon = gtk_status_icon_new ();
-        gtk_status_icon_set_from_file (status_icon, iconfile);
-        gtk_status_icon_set_visible (status_icon, FALSE);
-        
         /* hook in rename event to catch feeds folder rename */
 	CamelStore *store = mail_component_peek_local_store(NULL);
 	camel_object_hook_event(store, "folder_renamed",



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