aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-selectable.c
diff options
context:
space:
mode:
authorTarnyko <tarnyko@tarnyko.net>2014-02-26 23:15:21 +0800
committerMilan Crha <mcrha@redhat.com>2014-02-26 23:15:21 +0800
commit5c60d57082ede522169b65efa67a1e268989b487 (patch)
treeb77a62c5fbee1719f7216f7135c068ca081c9c77 /e-util/e-selectable.c
parent5727d74fb54a1c76922099d023a182418c3bac70 (diff)
downloadgsoc2013-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-selectable.c')
-rw-r--r--e-util/e-selectable.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/e-util/e-selectable.c b/e-util/e-selectable.c
index 6b011ee33b..5e3267cf2e 100644
--- a/e-util/e-selectable.c
+++ b/e-util/e-selectable.c
@@ -30,10 +30,10 @@ G_DEFINE_INTERFACE (
GTK_TYPE_WIDGET)
static void
-e_selectable_default_init (ESelectableInterface *interface)
+e_selectable_default_init (ESelectableInterface *iface)
{
g_object_interface_install_property (
- interface,
+ iface,
g_param_spec_boxed (
"copy-target-list",
"Copy Target List",
@@ -42,7 +42,7 @@ e_selectable_default_init (ESelectableInterface *interface)
G_PARAM_READABLE));
g_object_interface_install_property (
- interface,
+ iface,
g_param_spec_boxed (
"paste-target-list",
"Paste Target List",
@@ -57,14 +57,14 @@ e_selectable_update_actions (ESelectable *selectable,
GdkAtom *clipboard_targets,
gint n_clipboard_targets)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
- g_return_if_fail (interface->update_actions != NULL);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
+ g_return_if_fail (iface->update_actions != NULL);
- interface->update_actions (
+ iface->update_actions (
selectable, focus_tracker,
clipboard_targets, n_clipboard_targets);
}
@@ -72,92 +72,92 @@ e_selectable_update_actions (ESelectable *selectable,
void
e_selectable_cut_clipboard (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->cut_clipboard != NULL)
- interface->cut_clipboard (selectable);
+ if (iface->cut_clipboard != NULL)
+ iface->cut_clipboard (selectable);
}
void
e_selectable_copy_clipboard (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->copy_clipboard != NULL)
- interface->copy_clipboard (selectable);
+ if (iface->copy_clipboard != NULL)
+ iface->copy_clipboard (selectable);
}
void
e_selectable_paste_clipboard (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->paste_clipboard != NULL)
- interface->paste_clipboard (selectable);
+ if (iface->paste_clipboard != NULL)
+ iface->paste_clipboard (selectable);
}
void
e_selectable_delete_selection (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->delete_selection != NULL)
- interface->delete_selection (selectable);
+ if (iface->delete_selection != NULL)
+ iface->delete_selection (selectable);
}
void
e_selectable_select_all (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->select_all != NULL)
- interface->select_all (selectable);
+ if (iface->select_all != NULL)
+ iface->select_all (selectable);
}
void
e_selectable_undo (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->undo != NULL)
- interface->undo (selectable);
+ if (iface->undo != NULL)
+ iface->undo (selectable);
}
void
e_selectable_redo (ESelectable *selectable)
{
- ESelectableInterface *interface;
+ ESelectableInterface *iface;
g_return_if_fail (E_IS_SELECTABLE (selectable));
- interface = E_SELECTABLE_GET_INTERFACE (selectable);
+ iface = E_SELECTABLE_GET_INTERFACE (selectable);
- if (interface->redo != NULL)
- interface->redo (selectable);
+ if (iface->redo != NULL)
+ iface->redo (selectable);
}
GtkTargetList *