aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/calendar-weather/calendar-weather.c
diff options
context:
space:
mode:
authorSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2007-05-11 18:22:26 +0800
commit730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144 (patch)
treef419fdd0d3721e2182bdbb194193669ac382fcbc /plugins/calendar-weather/calendar-weather.c
parent347bdcf94d622efbdeaa687a617efa8d1480bb74 (diff)
downloadgsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.gz
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.tar.zst
gsoc2013-evolution-730fa4cf41b25ad1c5e9a57ec97fd823ea6ff144.zip
Bug 437584 – Compilation warning in evolution's plugins folder
svn path=/trunk/; revision=33507
Diffstat (limited to 'plugins/calendar-weather/calendar-weather.c')
-rw-r--r--plugins/calendar-weather/calendar-weather.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/calendar-weather/calendar-weather.c b/plugins/calendar-weather/calendar-weather.c
index 4f5f4a1040..0eb04c41c6 100644
--- a/plugins/calendar-weather/calendar-weather.c
+++ b/plugins/calendar-weather/calendar-weather.c
@@ -51,7 +51,7 @@ e_plugin_lib_enable (EPluginLib *epl, int enable)
/* Add the categories icons if we don't have them. */
for (l = e_categories_get_list (); l; l = g_list_next (l)) {
- if (!strcmp (l->data, _("Weather: Cloudy"))) {
+ if (!strcmp ((const char *)l->data, _("Weather: Cloudy"))) {
found = TRUE;
break;
}
@@ -117,7 +117,7 @@ parse_subtree (GtkTreeIter *parent, xmlNode *node)
if (node->type == XML_ELEMENT_NODE) {
gtk_tree_store_append (store, &iter, parent);
- if (strcmp (node->name, "location") == 0) {
+ if (strcmp ((const char *)node->name, "location") == 0) {
xmlAttr *attr;
child = node->children;
@@ -125,11 +125,11 @@ parse_subtree (GtkTreeIter *parent, xmlNode *node)
gtk_tree_store_set (store, &iter, 0, child->content, -1);
for (attr = node->properties; attr; attr = attr->next) {
- if (strcmp (attr->name, "code") == 0)
+ if (strcmp ((const char *)attr->name, "code") == 0)
gtk_tree_store_set (store, &iter, 1, attr->children->content, -1);
- else if (strcmp (attr->name, "url") == 0)
+ else if (strcmp ((const char *)attr->name, "url") == 0)
gtk_tree_store_set (store, &iter, 2, attr->children->content, -1);
- else if (strcmp (attr->name, "type") == 0)
+ else if (strcmp ((const char *)attr->name, "type") == 0)
gtk_tree_store_set (store, &iter, 3, attr->children->content, -1);
}
} else {
@@ -139,7 +139,7 @@ parse_subtree (GtkTreeIter *parent, xmlNode *node)
parse_subtree (&iter, child);
for (attr = node->properties; attr; attr = attr->next)
- if (strcmp (attr->name, "name") == 0)
+ if (strcmp ((const char *)attr->name, "name") == 0)
gtk_tree_store_set (store, &iter, 0, attr->children->content, -1);
}
}
@@ -367,7 +367,7 @@ location_clicked (GtkButton *button, ESource *source)
label = GTK_WIDGET (gtk_bin_get_child (GTK_BIN (button)));
text = gtk_label_get_text (GTK_LABEL (label));
- if (strcmp (text, _("None")) == 0)
+ if (strcmp ((const char *)text, _("None")) == 0)
e_source_set_relative_uri (source, "");
}
@@ -397,7 +397,7 @@ e_calendar_weather_location (EPlugin *epl, EConfigHookItemFactoryData *data)
uri_text = e_source_get_uri (t->source);
uri = e_uri_new (uri_text);
- if (strcmp (uri->protocol, "weather")) {
+ if (strcmp ((const char *)uri->protocol, "weather")) {
e_uri_free (uri);
return hidden;
}
@@ -535,7 +535,7 @@ e_calendar_weather_refresh (EPlugin *epl, EConfigHookItemFactoryData *data)
uri_text = e_source_get_uri (t->source);
uri = e_uri_new (uri_text);
g_free (uri_text);
- if (strcmp (uri->protocol, "weather")) {
+ if (strcmp ((const char *)uri->protocol, "weather")) {
e_uri_free (uri);
return hidden;
}
@@ -593,7 +593,7 @@ set_units (ESource *source, GtkWidget *option)
if (format == NULL) {
e_source_set_property (source, "units", "metric");
gtk_option_menu_set_history (GTK_OPTION_MENU (option), 0);
- } else if (strcmp (format, "fahrenheit") == 0) {
+ } else if (strcmp ((const char *)format, "fahrenheit") == 0) {
/* old format, convert */
e_source_set_property (source, "units", "imperial");
gtk_option_menu_set_history (GTK_OPTION_MENU (option), 1);
@@ -602,7 +602,7 @@ set_units (ESource *source, GtkWidget *option)
gtk_option_menu_set_history (GTK_OPTION_MENU (option), 0);
}
} else {
- if (strcmp (format, "metric") == 0)
+ if (strcmp ((const char *)format, "metric") == 0)
gtk_option_menu_set_history (GTK_OPTION_MENU (option), 0);
else
gtk_option_menu_set_history (GTK_OPTION_MENU (option), 1);
@@ -641,7 +641,7 @@ e_calendar_weather_units (EPlugin *epl, EConfigHookItemFactoryData *data)
uri_text = e_source_get_uri (t->source);
uri = e_uri_new (uri_text);
g_free (uri_text);
- if (strcmp (uri->protocol, "weather")) {
+ if (strcmp ((const char *)uri->protocol, "weather")) {
e_uri_free (uri);
return hidden;
}
it/cgit.cgi/freebsd-ports-gnome/commit/graphics/png?h=gnome-3.24&id=e42e15be6559379e87aa83ac341f20e269b120b9'>Additionly build/install libpng{12,}-config since many ports expect itache2005-01-304-5/+61 * Upgrade to 1.2.8ache2004-12-293-4/+4 * Back out dynamic linking of pngtest, cause problems with LD_LIBRARY_PATHache2004-10-211-12/+2 * Update to 1.2.7ache2004-10-153-11/+8 * Upgrade to 1.2.6 + official patchache2004-09-034-99/+11 * Remove swrinde.nde.swri.edu from MASTER_SITESache2004-08-101-2/+1 * Add official patches 0-11ache2004-08-054-61/+40 * Fix MASTER_SITESache2004-08-041-2/+1 * Fix compiling with gcc 3.4ache2004-07-242-3/+25 * In 16-bit samples case the starting offsets for the loops are calculatedache2004-07-072-2/+48 * Better fix for copy from overflow problemache2004-05-162-14/+6 * Fix potential out of bounds copy from the string.ache2004-05-032-1/+20 * Add size data, approved by maintainers.trevor2004-03-211-0/+1 * Change pre-install to pre-su-installache2004-03-171-1/+1 * Add patch to allow advanced optimizations with icc (portrevision bumped).netchild2003-12-082-1/+34 * Back out part of the earlier commit -- I missed maintainer's e-mail,mi2003-10-201-53/+0 * Minor enhancements, not affecting the resulting package:mi2003-10-203-4/+68 * Correct @unexec commandkris2003-04-051-1/+1 * Clear moonlight beckons.ade2003-03-072-1/+1 * Fix symlink, add unexec rmdirache2003-02-192-3/+3 * Install pkg-config dataache2003-01-303-0/+20 * Upgrade to 1.2.5ache2002-10-15