gnome-panel r11089 - branches/gnome-2-22/applets/clock



Author: vuntz
Date: Wed May  7 16:40:00 2008
New Revision: 11089
URL: http://svn.gnome.org/viewvc/gnome-panel?rev=11089&view=rev

Log:
2008-05-07  Vincent Untz  <vuntz gnome org>

	* calendar-window.c: (is_appointment): accept google uri too, for
	google calendars and use g_ascii_strcasecmp(). Should help with bug
	#525691
	(is_birthday), (is_weather): use g_ascii_strcasecmp()


Modified:
   branches/gnome-2-22/applets/clock/ChangeLog
   branches/gnome-2-22/applets/clock/calendar-window.c

Modified: branches/gnome-2-22/applets/clock/calendar-window.c
==============================================================================
--- branches/gnome-2-22/applets/clock/calendar-window.c	(original)
+++ branches/gnome-2-22/applets/clock/calendar-window.c	Wed May  7 16:40:00 2008
@@ -385,9 +385,10 @@
 
 	gtk_tree_model_get (model, iter, APPOINTMENT_COLUMN_URI, &uri, -1);
 	if (uri)
-		return (strcmp (uri, "file") == 0 ||
-			strcmp (uri, "webcal") == 0 ||
-			strcmp (uri, "caldav") == 0);
+		return (g_ascii_strcasecmp (uri, "file")   == 0 ||
+			g_ascii_strcasecmp (uri, "webcal") == 0 ||
+			g_ascii_strcasecmp (uri, "caldav") == 0 ||
+			g_ascii_strcasecmp (uri, "google") == 0);
 	return FALSE;
 }
 
@@ -400,7 +401,7 @@
 
 	gtk_tree_model_get (model, iter, APPOINTMENT_COLUMN_URI, &uri, -1);
 	if (uri)
-		return (strcmp (uri, "contacts") == 0);
+		return (g_ascii_strcasecmp (uri, "contacts") == 0);
 	return FALSE;
 }
 
@@ -413,7 +414,7 @@
 
 	gtk_tree_model_get (model, iter, APPOINTMENT_COLUMN_URI, &uri, -1);
 	if (uri)
-		return (strcmp (uri, "weather") == 0);
+		return (g_ascii_strcasecmp (uri, "weather") == 0);
 	return FALSE;
 }
 



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