aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-22 11:49:14 -0500
committerTed Gould <ted@gould.cx>2011-07-22 11:49:14 -0500
commita25a10c33af1d1b0907a0fa75188e27c5c6b6b46 (patch)
tree6d044790d4ec521459ef5880dde62dca4838ef81 /src
parent68ed5c051d18321bcc3504167e8c57b56840e186 (diff)
downloadayatana-indicator-messages-a25a10c33af1d1b0907a0fa75188e27c5c6b6b46.tar.gz
ayatana-indicator-messages-a25a10c33af1d1b0907a0fa75188e27c5c6b6b46.tar.bz2
ayatana-indicator-messages-a25a10c33af1d1b0907a0fa75188e27c5c6b6b46.zip
Use the G_N_ELEMENTS macro
Diffstat (limited to 'src')
-rw-r--r--src/default-applications.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/default-applications.c b/src/default-applications.c
index 339183d..0382e4d 100644
--- a/src/default-applications.c
+++ b/src/default-applications.c
@@ -48,7 +48,7 @@ get_default_helper (const gchar * desktop_path)
gboolean found = FALSE;
gint i;
- gint length = sizeof(default_db)/sizeof(default_db[0]);
+ gint length = G_N_ELEMENTS(default_db);
for (i = 0; i < length && !found; i++) {
if (default_db[i].desktop_file) {
if (g_strcmp0(default_db[i].desktop_file, basename) == 0) {