diff options
author | Ted Gould <ted@gould.cx> | 2011-02-18 13:04:12 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-18 13:04:12 -0600 |
commit | 8a50abe36f57629c1f1e38842c8ed3bbef602213 (patch) | |
tree | 0941068c1eafaeac663e5213c316288d906614f2 | |
parent | 92029bc783017bec46a862ae79d72076157ac38f (diff) | |
download | libdbusmenu-8a50abe36f57629c1f1e38842c8ed3bbef602213.tar.gz libdbusmenu-8a50abe36f57629c1f1e38842c8ed3bbef602213.tar.bz2 libdbusmenu-8a50abe36f57629c1f1e38842c8ed3bbef602213.zip |
Use a for loop for looking at invalidated properties
-rw-r--r-- | libdbusmenu-glib/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index 5aae5d6..c86ebf1 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -1045,12 +1045,12 @@ menuproxy_prop_changed_cb (GDBusProxy * proxy, GVariant * properties, GStrv inva DbusmenuTextDirection olddir = priv->text_direction; /* Invalidate first */ - gchar * invalid = *invalidated; - while (invalid != NULL) { + gchar * invalid; + gint i = 0; + for (invalid = invalidated[i]; invalid != NULL; invalid = invalidated[++i]) { if (g_strcmp0(invalid, "text-direction") == 0) { priv->text_direction = DBUSMENU_TEXT_DIRECTION_NONE; } - invalid++; } /* Check updates */ |