diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-10-25 05:55:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-10-27 21:25:01 +0800 |
commit | 58166e645971a4812fef23702f45cacc8e64e419 (patch) | |
tree | bedad70e39e2215a53105e0303c168e86140371a /mail/em-format-html-display.c | |
parent | c58b70659747967568a536e217b9440424709f92 (diff) | |
download | gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.gz gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.bz2 gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.lz gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.xz gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.tar.zst gsoc2013-evolution-58166e645971a4812fef23702f45cacc8e64e419.zip |
Prefer G_N_ELEMENTS over sizeof calculations.
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r-- | mail/em-format-html-display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index 46241186aa..6a2f56525c 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -731,7 +731,7 @@ efhd_builtin_init(EMFormatHTMLDisplayClass *efhc) { gint i; - for (i=0;i<sizeof(type_builtin_table)/sizeof(type_builtin_table[0]);i++) + for (i = 0; i < G_N_ELEMENTS (type_builtin_table); i++) em_format_class_add_handler((EMFormatClass *)efhc, &type_builtin_table[i]); } @@ -1036,7 +1036,7 @@ efhd_attachment_image(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObjec camel_strdown(simple_type); drag_types[0].target = simple_type; - gtk_drag_source_set(box, GDK_BUTTON1_MASK, drag_types, sizeof(drag_types)/sizeof(drag_types[0]), GDK_ACTION_COPY); + gtk_drag_source_set(box, GDK_BUTTON1_MASK, drag_types, G_N_ELEMENTS (drag_types), GDK_ACTION_COPY); g_free(simple_type); g_signal_connect(box, "drag-data-get", G_CALLBACK(efhd_drag_data_get), pobject); |