diff options
author | Tarnyko <tarnyko@tarnyko.net> | 2014-02-26 23:15:21 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-02-26 23:15:21 +0800 |
commit | 5c60d57082ede522169b65efa67a1e268989b487 (patch) | |
tree | b77a62c5fbee1719f7216f7135c068ca081c9c77 /e-util/e-sorter.c | |
parent | 5727d74fb54a1c76922099d023a182418c3bac70 (diff) | |
download | gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar.gz gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar.bz2 gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar.lz gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar.xz gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.tar.zst gsoc2013-evolution-5c60d57082ede522169b65efa67a1e268989b487.zip |
Replace 'interface' with 'iface' in the code
Win32 headers have a #define for 'interface', which breaks the build
when this word is used in the code, thus replace it to 'iface',
the same way as GLib or GTK+ code use to have it. (See bug #722068.)
Diffstat (limited to 'e-util/e-sorter.c')
-rw-r--r-- | e-util/e-sorter.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/e-util/e-sorter.c b/e-util/e-sorter.c index 0d706414b9..c2181c7544 100644 --- a/e-util/e-sorter.c +++ b/e-util/e-sorter.c @@ -20,7 +20,7 @@ G_DEFINE_INTERFACE (ESorter, e_sorter, G_TYPE_OBJECT) static void -e_sorter_default_init (ESorterInterface *interface) +e_sorter_default_init (ESorterInterface *iface) { } @@ -28,30 +28,30 @@ gint e_sorter_model_to_sorted (ESorter *sorter, gint row) { - ESorterInterface *interface; + ESorterInterface *iface; g_return_val_if_fail (E_IS_SORTER (sorter), -1); g_return_val_if_fail (row >= 0, -1); - interface = E_SORTER_GET_INTERFACE (sorter); - g_return_val_if_fail (interface->model_to_sorted != NULL, -1); + iface = E_SORTER_GET_INTERFACE (sorter); + g_return_val_if_fail (iface->model_to_sorted != NULL, -1); - return interface->model_to_sorted (sorter, row); + return iface->model_to_sorted (sorter, row); } gint e_sorter_sorted_to_model (ESorter *sorter, gint row) { - ESorterInterface *interface; + ESorterInterface *iface; g_return_val_if_fail (E_IS_SORTER (sorter), -1); g_return_val_if_fail (row >= 0, -1); - interface = E_SORTER_GET_INTERFACE (sorter); - g_return_val_if_fail (interface->sorted_to_model != NULL, -1); + iface = E_SORTER_GET_INTERFACE (sorter); + g_return_val_if_fail (iface->sorted_to_model != NULL, -1); - return interface->sorted_to_model (sorter, row); + return iface->sorted_to_model (sorter, row); } void @@ -59,14 +59,14 @@ e_sorter_get_model_to_sorted_array (ESorter *sorter, gint **array, gint *count) { - ESorterInterface *interface; + ESorterInterface *iface; g_return_if_fail (E_IS_SORTER (sorter)); - interface = E_SORTER_GET_INTERFACE (sorter); - g_return_if_fail (interface->get_model_to_sorted_array != NULL); + iface = E_SORTER_GET_INTERFACE (sorter); + g_return_if_fail (iface->get_model_to_sorted_array != NULL); - interface->get_model_to_sorted_array (sorter, array, count); + iface->get_model_to_sorted_array (sorter, array, count); } void @@ -74,26 +74,26 @@ e_sorter_get_sorted_to_model_array (ESorter *sorter, gint **array, gint *count) { - ESorterInterface *interface; + ESorterInterface *iface; g_return_if_fail (E_IS_SORTER (sorter)); - interface = E_SORTER_GET_INTERFACE (sorter); - g_return_if_fail (interface->get_sorted_to_model_array != NULL); + iface = E_SORTER_GET_INTERFACE (sorter); + g_return_if_fail (iface->get_sorted_to_model_array != NULL); - interface->get_sorted_to_model_array (sorter, array, count); + iface->get_sorted_to_model_array (sorter, array, count); } gboolean e_sorter_needs_sorting (ESorter *sorter) { - ESorterInterface *interface; + ESorterInterface *iface; g_return_val_if_fail (E_IS_SORTER (sorter), FALSE); - interface = E_SORTER_GET_INTERFACE (sorter); - g_return_val_if_fail (interface->needs_sorting != NULL, FALSE); + iface = E_SORTER_GET_INTERFACE (sorter); + g_return_val_if_fail (iface->needs_sorting != NULL, FALSE); - return interface->needs_sorting (sorter); + return iface->needs_sorting (sorter); } |