aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:37:20 +0800
commit8a186c3588d3598857c36e2122fa68d01eba30fd (patch)
tree731078659d4e04af8346c5ca68512d8537b3707a /addressbook/gui/widgets
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.bz2
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.lz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.xz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-reflow-adapter.c6
-rw-r--r--addressbook/gui/widgets/e-addressbook-table-adapter.c2
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c4
-rw-r--r--addressbook/gui/widgets/e-minicard-view.c4
-rw-r--r--addressbook/gui/widgets/eab-config.c12
-rw-r--r--addressbook/gui/widgets/eab-contact-display.c8
6 files changed, 18 insertions, 18 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
index cb1adcfe25..017b14ac19 100644
--- a/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-reflow-adapter.c
@@ -139,7 +139,7 @@ addressbook_height (EReflowModel *erm, gint i, GnomeCanvasGroup *parent)
EContactField field;
gint count = 0;
gchar *string;
- EContact *contact = (EContact*)e_addressbook_model_contact_at (priv->model, i);
+ EContact *contact = (EContact*) e_addressbook_model_contact_at (priv->model, i);
PangoLayout *layout;
gint height;
@@ -227,8 +227,8 @@ addressbook_compare (EReflowModel *erm, gint n1, gint n2, GHashTable *cmp_cache)
return n1-n2;
}
else {
- contact1 = (EContact*)e_addressbook_model_contact_at (priv->model, n1);
- contact2 = (EContact*)e_addressbook_model_contact_at (priv->model, n2);
+ contact1 = (EContact*) e_addressbook_model_contact_at (priv->model, n1);
+ contact2 = (EContact*) e_addressbook_model_contact_at (priv->model, n2);
if (contact1 && contact2) {
const gchar *file_as1, *file_as2;
diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c
index 84224178b5..83f90a0573 100644
--- a/addressbook/gui/widgets/e-addressbook-table-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c
@@ -262,7 +262,7 @@ addressbook_initialize_value (ETableModel *etc, gint col)
static gboolean
addressbook_value_is_empty (ETableModel *etc, gint col, gconstpointer value)
{
- return !(value && *(gchar *)value);
+ return !(value && *(gchar *) value);
}
static gchar *
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 2ef59d17c0..8deca495be 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -258,7 +258,7 @@ table_drag_data_get (ETable *table,
gtk_selection_data_set (
selection_data, target, 8,
- (guchar *)value, strlen (value));
+ (guchar *) value, strlen (value));
g_free (value);
break;
@@ -269,7 +269,7 @@ table_drag_data_get (ETable *table,
gtk_selection_data_set (
selection_data, target, 8,
- (guchar *)value, strlen (value));
+ (guchar *) value, strlen (value));
g_free (value);
break;
diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c
index f6ac130a2f..9be446d818 100644
--- a/addressbook/gui/widgets/e-minicard-view.c
+++ b/addressbook/gui/widgets/e-minicard-view.c
@@ -121,7 +121,7 @@ e_minicard_view_drag_data_get (GtkWidget *widget,
static void
clear_drag_data (EMinicardView *view)
{
- g_list_foreach (view->drag_list, (GFunc)g_object_unref, NULL);
+ g_list_foreach (view->drag_list, (GFunc) g_object_unref, NULL);
g_list_free (view->drag_list);
view->drag_list = NULL;
}
@@ -386,7 +386,7 @@ e_minicard_view_event (GnomeCanvasItem *item, GdkEvent *event)
switch (event->type) {
case GDK_2BUTTON_PRESS:
- if (((GdkEventButton *)event)->button == 1) {
+ if (((GdkEventButton *) event)->button == 1) {
gboolean editable;
g_object_get(view->adapter, "editable", &editable, NULL);
diff --git a/addressbook/gui/widgets/eab-config.c b/addressbook/gui/widgets/eab-config.c
index 218ad80685..dbbb8cefc2 100644
--- a/addressbook/gui/widgets/eab-config.c
+++ b/addressbook/gui/widgets/eab-config.c
@@ -47,7 +47,7 @@ ecp_target_free (EConfig *ec, EConfigTarget *t)
if (ec->target == t) {
switch (t->type) {
case EAB_CONFIG_TARGET_SOURCE: {
- EABConfigTargetSource *s = (EABConfigTargetSource *)t;
+ EABConfigTargetSource *s = (EABConfigTargetSource *) t;
if (p->source_changed_id) {
g_signal_handler_disconnect (s->source, p->source_changed_id);
@@ -59,7 +59,7 @@ ecp_target_free (EConfig *ec, EConfigTarget *t)
switch (t->type) {
case EAB_CONFIG_TARGET_SOURCE: {
- EABConfigTargetSource *s = (EABConfigTargetSource *)t;
+ EABConfigTargetSource *s = (EABConfigTargetSource *) t;
if (s->source)
g_object_unref (s->source);
@@ -80,12 +80,12 @@ ecp_set_target (EConfig *ec, EConfigTarget *t)
{
struct _EABConfigPrivate *p = EAB_CONFIG (ec)->priv;
- ((EConfigClass *)ecp_parent_class)->set_target (ec, t);
+ ((EConfigClass *) ecp_parent_class)->set_target (ec, t);
if (t) {
switch (t->type) {
case EAB_CONFIG_TARGET_SOURCE: {
- EABConfigTargetSource *s = (EABConfigTargetSource *)t;
+ EABConfigTargetSource *s = (EABConfigTargetSource *) t;
p->source_changed_id = g_signal_connect (
s->source, "changed",
@@ -98,8 +98,8 @@ ecp_set_target (EConfig *ec, EConfigTarget *t)
static void
ecp_class_init (GObjectClass *klass)
{
- ((EConfigClass *)klass)->set_target = ecp_set_target;
- ((EConfigClass *)klass)->target_free = ecp_target_free;
+ ((EConfigClass *) klass)->set_target = ecp_set_target;
+ ((EConfigClass *) klass)->target_free = ecp_target_free;
g_type_class_add_private (klass, sizeof (struct _EABConfigPrivate));
}
diff --git a/addressbook/gui/widgets/eab-contact-display.c b/addressbook/gui/widgets/eab-contact-display.c
index e457486f4c..c970afe968 100644
--- a/addressbook/gui/widgets/eab-contact-display.c
+++ b/addressbook/gui/widgets/eab-contact-display.c
@@ -460,7 +460,7 @@ render_contact_block (GString *buffer, EContact *contact)
for (l = email_list, al=email_attr_list; l && al; l = l->next, al = al->next) {
gchar *name = NULL, *mail = NULL;
- gchar *attr_str = (gchar *)get_email_location ((EVCardAttribute *) al->data);
+ gchar *attr_str = (gchar *) get_email_location ((EVCardAttribute *) al->data);
if (!eab_parse_qp_email (l->data, &name, &mail))
mail = e_text_to_html (l->data, 0);
@@ -479,7 +479,7 @@ render_contact_block (GString *buffer, EContact *contact)
g_free (name);
g_free (mail);
}
- g_list_foreach (email_list, (GFunc)g_free, NULL);
+ g_list_foreach (email_list, (GFunc) g_free, NULL);
g_list_free (email_list);
if (accum->len) {
@@ -771,8 +771,8 @@ eab_contact_display_render_compact (EABContactDisplay *display,
max_dimension = calced_height;
if (max_dimension > MAX_COMPACT_IMAGE_DIMENSION) {
- calced_width *= ((gfloat)MAX_COMPACT_IMAGE_DIMENSION / max_dimension);
- calced_height *= ((gfloat)MAX_COMPACT_IMAGE_DIMENSION / max_dimension);
+ calced_width *= ((gfloat) MAX_COMPACT_IMAGE_DIMENSION / max_dimension);
+ calced_height *= ((gfloat) MAX_COMPACT_IMAGE_DIMENSION / max_dimension);
}
}