aboutsummaryrefslogtreecommitdiff
path: root/libindicate/indicator.c
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-04-11 23:07:38 -0500
committerTed Gould <ted@canonical.com>2009-04-11 23:07:38 -0500
commita09510f6cb416fed7e98ce7df61d74f56d7a1bff (patch)
tree1ba3f187c00d1dfe3c603c36e82aa551c3fe8c71 /libindicate/indicator.c
parentc1955c5ca3f460f0ac8fc7de84325345b60b8919 (diff)
downloadlibayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.tar.gz
libayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.tar.bz2
libayatana-indicator-a09510f6cb416fed7e98ce7df61d74f56d7a1bff.zip
Fixing some pedantic little bugs to try and figure out what's causing 359018
Diffstat (limited to 'libindicate/indicator.c')
-rw-r--r--libindicate/indicator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libindicate/indicator.c b/libindicate/indicator.c
index 9427d03..7e0c986 100644
--- a/libindicate/indicator.c
+++ b/libindicate/indicator.c
@@ -261,7 +261,7 @@ indicate_indicator_set_property_icon (IndicateIndicator * indicator, const gchar
return;
}
- gchar * prop_str = g_base64_encode(png_data, png_data_len);
+ gchar * prop_str = g_base64_encode((guchar *)png_data, png_data_len);
indicate_indicator_set_property(indicator, key, prop_str);
g_free(prop_str);
@@ -308,7 +308,7 @@ set_property (IndicateIndicator * indicator, const gchar * key, const gchar * da
{
g_return_if_fail(INDICATE_IS_INDICATOR(indicator));
- if (key != NULL && !strcmp(key, "type")) {
+ if (key != NULL && !g_strcmp0(key, "type")) {
g_warning("Trying to set the 'type' of an indicator which should be done through subclassing.");
return;
}
@@ -316,7 +316,7 @@ set_property (IndicateIndicator * indicator, const gchar * key, const gchar * da
IndicateIndicatorPrivate * priv = INDICATE_INDICATOR_GET_PRIVATE(indicator);
gchar * current = g_hash_table_lookup(priv->properties, key);
- if (current == NULL || strcmp(current, data)) {
+ if (current == NULL || g_strcmp0(current, data)) {
/* If the value has changed or there is no value */
gchar * newkey = g_strdup(key);
/* g_debug("What is newkey? %s", newkey); */
@@ -335,7 +335,7 @@ get_property (IndicateIndicator * indicator, const gchar * key)
{
g_return_val_if_fail(INDICATE_IS_INDICATOR(indicator), NULL);
- if (key != NULL && !strcmp(key, "type")) {
+ if (key != NULL && !g_strcmp0(key, "type")) {
return indicate_indicator_get_indicator_type(indicator);
}