aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-12 20:02:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-20 02:17:55 +0800
commitc85109fc322137596bf34cffc5445d568223c60d (patch)
tree711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /widgets/table/e-table-header-item.c
parent7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff)
downloadgsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r--widgets/table/e-table-header-item.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index 8054a95a36..ef24716e33 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -398,12 +398,12 @@ ethi_find_col_by_x (ETableHeaderItem *ethi,
gint x1 = 0;
gint col;
- d(g_print ("%s:%d: x = %d, x1 = %d\n", __FUNCTION__, __LINE__, x, x1));
+ d (g_print ("%s:%d: x = %d, x1 = %d\n", __FUNCTION__, __LINE__, x, x1));
x1 += ethi->group_indent_width;
if (x < x1) {
- d(g_print ("%s:%d: Returning 0\n", __FUNCTION__, __LINE__));
+ d (g_print ("%s:%d: Returning 0\n", __FUNCTION__, __LINE__));
return 0;
}
@@ -411,13 +411,13 @@ ethi_find_col_by_x (ETableHeaderItem *ethi,
ETableCol *ecol = e_table_header_get_column (ethi->eth, col);
if ((x >= x1) && (x <= x1 + ecol->width)) {
- d(g_print ("%s:%d: Returning %d\n", __FUNCTION__, __LINE__, col));
+ d (g_print ("%s:%d: Returning %d\n", __FUNCTION__, __LINE__, col));
return col;
}
x1 += ecol->width;
}
- d(g_print ("%s:%d: Returning %d\n", __FUNCTION__, __LINE__, cols - 1));
+ d (g_print ("%s:%d: Returning %d\n", __FUNCTION__, __LINE__, cols - 1));
return cols - 1;
}
@@ -594,7 +594,7 @@ do_drag_motion (ETableHeaderItem *ethi,
(y >= 0) && (y <= (ethi->height))) {
GdkDragAction suggested_action;
gint col;
- d(g_print("In header\n"));
+ d (g_print ("In header\n"));
col = ethi_find_col_by_x_nearest (ethi, x);
suggested_action = gdk_drag_context_get_suggested_action (context);
@@ -863,7 +863,7 @@ ethi_drag_data_get (GtkWidget *canvas,
if (ethi->drag_col != -1) {
ETableCol *ecol = e_table_header_get_column (ethi->eth, ethi->drag_col);
- gchar *string = g_strdup_printf("%d", ecol->col_idx);
+ gchar *string = g_strdup_printf ("%d", ecol->col_idx);
gtk_selection_data_set (selection_data,
GDK_SELECTION_TYPE_STRING,
sizeof (string[0]),
@@ -896,7 +896,7 @@ ethi_drag_drop (GtkWidget *canvas,
if (col != -1) {
gchar *target = g_strdup_printf (
"%s-%s", TARGET_ETABLE_COL_TYPE, ethi->dnd_code);
- d(g_print ("ethi - %s\n", target));
+ d (g_print ("ethi - %s\n", target));
gtk_drag_get_data (
canvas, context,
gdk_atom_intern (target, FALSE),
@@ -1675,7 +1675,7 @@ ethi_header_context_menu (ETableHeaderItem *ethi,
GtkWidget *menu_item, *sub_menu;
ETableSortColumn column;
gboolean ascending = TRUE;
- d( g_print("ethi_header_context_menu: \n") );
+ d ( g_print ("ethi_header_context_menu: \n") );
info->ethi = ethi;
info->col = ethi_find_col_by_x (ethi, event->x);