diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-08 00:22:36 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-05-08 06:48:38 +0800 |
commit | 4cfb84c573f21ca7519e24cff1c5742b715355c4 (patch) | |
tree | 92314a7c4ebb1b82f5bbe0e48856e23f06dcfc95 /widgets/table | |
parent | c7b455de89487e606fc620420c1778f5e55afcac (diff) | |
download | gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar.gz gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar.bz2 gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar.lz gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar.xz gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.tar.zst gsoc2013-evolution-4cfb84c573f21ca7519e24cff1c5742b715355c4.zip |
Whitespace and coding style cleanups.
Diffstat (limited to 'widgets/table')
-rw-r--r-- | widgets/table/e-cell-date.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-config.c | 7 | ||||
-rw-r--r-- | widgets/table/e-table-field-chooser-item.c | 3 | ||||
-rw-r--r-- | widgets/table/e-table-header-item.c | 10 | ||||
-rw-r--r-- | widgets/table/e-table-header-utils.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-header.c | 7 | ||||
-rw-r--r-- | widgets/table/e-table-search.c | 6 | ||||
-rw-r--r-- | widgets/table/e-table.c | 6 | ||||
-rw-r--r-- | widgets/table/e-tree.c | 10 | ||||
-rw-r--r-- | widgets/table/gal-a11y-e-table-item.c | 6 |
10 files changed, 44 insertions, 19 deletions
diff --git a/widgets/table/e-cell-date.c b/widgets/table/e-cell-date.c index c4a4cf3103..9040f80ccd 100644 --- a/widgets/table/e-cell-date.c +++ b/widgets/table/e-cell-date.c @@ -51,7 +51,9 @@ ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row) fmt_component = "Default"; else fmt_part = "table"; - return e_datetime_format_format (fmt_component, fmt_part, DTFormatKindDateTime, date); + + return e_datetime_format_format ( + fmt_component, fmt_part, DTFormatKindDateTime, date); } static void diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c index 62db1d32b1..490072cf80 100644 --- a/widgets/table/e-table-config.c +++ b/widgets/table/e-table-config.c @@ -621,8 +621,11 @@ create_store (ETableConfig *config) if (config->source_spec->columns[i]->disabled) continue; - text = g_strdup (dgettext (config->domain, config->source_spec->columns[i]->title)); - e_table_memory_store_insert_adopt (E_TABLE_MEMORY_STORE (store), -1, NULL, text, i); + text = g_strdup (dgettext ( + config->domain, + config->source_spec->columns[i]->title)); + e_table_memory_store_insert_adopt ( + E_TABLE_MEMORY_STORE (store), -1, NULL, text, i); } return store; diff --git a/widgets/table/e-table-field-chooser-item.c b/widgets/table/e-table-field-chooser-item.c index 51ab6c1139..6afde43911 100644 --- a/widgets/table/e-table-field-chooser-item.c +++ b/widgets/table/e-table-field-chooser-item.c @@ -135,7 +135,8 @@ etfci_rebuild_combined (ETableFieldChooserItem *etfci) ETableCol *ecol = e_table_header_get_column (etfci->full_header, i); if (ecol->disabled) continue; - if (!(GPOINTER_TO_INT (g_hash_table_lookup (hash, GINT_TO_POINTER (ecol->col_idx))))) + if (!(GPOINTER_TO_INT (g_hash_table_lookup ( + hash, GINT_TO_POINTER (ecol->col_idx))))) e_table_header_add_column (etfci->combined_header, ecol, -1); } diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 2bbd5c83d2..346ffed2d3 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -873,7 +873,8 @@ ethi_drag_drop (GtkWidget *canvas, ethi->drop_col = col; if (col != -1) { - gchar *target = g_strdup_printf ("%s-%s", TARGET_ETABLE_COL_TYPE, ethi->dnd_code); + gchar *target = g_strdup_printf ( + "%s-%s", TARGET_ETABLE_COL_TYPE, ethi->dnd_code); d(g_print ("ethi - %s\n", target)); gtk_drag_get_data (canvas, context, gdk_atom_intern (target, FALSE), time); g_free (target); @@ -986,7 +987,9 @@ ethi_draw (GnomeCanvasItem *item, gint length = e_table_sort_info_grouping_get_count (ethi->sort_info); gint i; for (i = 0; i < length; i++) { - ETableSortColumn column = e_table_sort_info_grouping_get_nth (ethi->sort_info, i); + ETableSortColumn column = + e_table_sort_info_grouping_get_nth ( + ethi->sort_info, i); g_hash_table_insert (arrows, GINT_TO_POINTER ((gint) column.column), GINT_TO_POINTER (column.ascending ? @@ -1925,7 +1928,8 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e) ecol = e_table_header_get_column (ethi->eth, ethi->selected_col); ethi_change_sort_state (ethi, ecol); - } else if ((e->key.keyval == GDK_KEY_Right) || (e->key.keyval == GDK_KEY_KP_Right)) { + } else if ((e->key.keyval == GDK_KEY_Right) || + (e->key.keyval == GDK_KEY_KP_Right)) { ETableCol *ecol; if ((ethi->selected_col < 0) || (ethi->selected_col >= ethi->eth->col_count - 1)) diff --git a/widgets/table/e-table-header-utils.c b/widgets/table/e-table-header-utils.c index 2fe6a56089..8911867652 100644 --- a/widgets/table/e-table-header-utils.c +++ b/widgets/table/e-table-header-utils.c @@ -124,7 +124,9 @@ make_composite_pixmap (GdkDrawable *drawable, GdkGC *gc, pheight = gdk_pixbuf_get_height (pixbuf); g_return_val_if_fail (width <= pwidth && height <= pheight, NULL); - color = ((bg->red & 0xff00) << 8) | (bg->green & 0xff00) | ((bg->blue & 0xff00) >> 8); + color = ((bg->red & 0xff00) << 8) | + (bg->green & 0xff00) | + ((bg->blue & 0xff00) >> 8); if (width >= pwidth && height >= pheight) { tmp = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height); diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c index f648a8d765..ef1b573346 100644 --- a/widgets/table/e-table-header.c +++ b/widgets/table/e-table-header.c @@ -121,7 +121,9 @@ enqueue (ETableHeader *eth, gint column, gint width) eth->change_queue = eth->change_tail; if (!eth->idle) { - eth->idle = g_idle_add_full (G_PRIORITY_LOW, (GSourceFunc) dequeue_idle, eth, NULL); + eth->idle = g_idle_add_full ( + G_PRIORITY_LOW, (GSourceFunc) + dequeue_idle, eth, NULL); } } @@ -714,7 +716,8 @@ eth_set_size (ETableHeader *eth, gint idx, gint size) usable_width = eth->width - left_width - 1; if (eth->sort_info) - usable_width -= e_table_sort_info_grouping_get_count (eth->sort_info) * GROUP_INDENT; + usable_width -= e_table_sort_info_grouping_get_count ( + eth->sort_info) * GROUP_INDENT; /* Calculate minimum_width of stuff on the right as well as * total usable expansion on the right. diff --git a/widgets/table/e-table-search.c b/widgets/table/e-table-search.c index 538dcc4f1a..cf7edf3592 100644 --- a/widgets/table/e-table-search.c +++ b/widgets/table/e-table-search.c @@ -183,8 +183,10 @@ e_table_search_input_character (ETableSearch *ets, gunichar character) character_utf8[g_unichar_to_utf8 (character, character_utf8)] = 0; temp_string = g_strdup_printf ("%s%s", ets->priv->search_string, character_utf8); - if (e_table_search_search (ets, temp_string, - ets->priv->last_character != 0 ? E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST : 0)) { + if (e_table_search_search ( + ets, temp_string, + ets->priv->last_character != 0 ? + E_TABLE_SEARCH_FLAGS_CHECK_CURSOR_FIRST : 0)) { g_free (ets->priv->search_string); ets->priv->search_string = temp_string; add_timeout (ets); diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 70b973c5b3..38ede4dd80 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -1962,7 +1962,8 @@ et_build_grouping_spec (ETable *e_table) node = grouping; for (i = 0; i < group_count; i++) { - ETableSortColumn column = e_table_sort_info_grouping_get_nth (e_table->sort_info, i); + ETableSortColumn column = + e_table_sort_info_grouping_get_nth (e_table->sort_info, i); xmlNode *new_node = xmlNewChild(node, NULL, "group", NULL); e_xml_set_integer_prop_by_name (new_node, "column", column.column); @@ -1971,7 +1972,8 @@ et_build_grouping_spec (ETable *e_table) } for (i = 0; i < sort_count; i++) { - ETableSortColumn column = e_table_sort_info_sorting_get_nth (e_table->sort_info, i); + ETableSortColumn column = + e_table_sort_info_sorting_get_nth (e_table->sort_info, i); xmlNode *new_node = xmlNewChild(node, NULL, "leaf", NULL); e_xml_set_integer_prop_by_name (new_node, "column", column.column); diff --git a/widgets/table/e-tree.c b/widgets/table/e-tree.c index 040881c857..d9b6ce4035 100644 --- a/widgets/table/e-tree.c +++ b/widgets/table/e-tree.c @@ -2967,7 +2967,8 @@ scroll_timeout (gpointer data) static void scroll_on (ETree *et, guint scroll_direction) { - if (et->priv->scroll_idle_id == 0 || scroll_direction != et->priv->scroll_direction) { + if (et->priv->scroll_idle_id == 0 || + scroll_direction != et->priv->scroll_direction) { if (et->priv->scroll_idle_id != 0) g_source_remove (et->priv->scroll_idle_id); et->priv->scroll_direction = scroll_direction; @@ -3041,7 +3042,8 @@ collapse_drag (ETree *et, ETreePath drop) { GList *list; - /* We only want to leave open parents of the node dropped in. Not the node itself. */ + /* We only want to leave open parents of the node dropped in. + * Not the node itself. */ if (drop) { drop = e_tree_model_node_get_parent (et->priv->model, drop); } @@ -3097,7 +3099,9 @@ context_connect (ETree *et, GdkDragContext *context) return; if (et->priv->last_drop_context) - g_object_weak_unref (G_OBJECT (et->priv->last_drop_context), context_destroyed, et); + g_object_weak_unref ( + G_OBJECT (et->priv->last_drop_context), + context_destroyed, et); else g_object_ref (et); diff --git a/widgets/table/gal-a11y-e-table-item.c b/widgets/table/gal-a11y-e-table-item.c index f35eeb1a69..92716e68bc 100644 --- a/widgets/table/gal-a11y-e-table-item.c +++ b/widgets/table/gal-a11y-e-table-item.c @@ -188,7 +188,8 @@ eti_a11y_reset_focus_object (GalA11yETableItem *a11y, old_cell = (AtkObject *)g_object_get_data (G_OBJECT (a11y), "gail-focus-object"); if (old_cell && GAL_A11Y_IS_E_CELL (old_cell)) - gal_a11y_e_cell_remove_state (GAL_A11Y_E_CELL (old_cell), ATK_STATE_FOCUSED, FALSE); + gal_a11y_e_cell_remove_state ( + GAL_A11Y_E_CELL (old_cell), ATK_STATE_FOCUSED, FALSE); if (old_cell) g_object_unref (old_cell); @@ -196,7 +197,8 @@ eti_a11y_reset_focus_object (GalA11yETableItem *a11y, if (cell != NULL) { g_object_set_data (G_OBJECT (a11y), "gail-focus-object", cell); - gal_a11y_e_cell_add_state (GAL_A11Y_E_CELL (cell), ATK_STATE_FOCUSED, FALSE); + gal_a11y_e_cell_add_state ( + GAL_A11Y_E_CELL (cell), ATK_STATE_FOCUSED, FALSE); } else g_object_set_data (G_OBJECT (a11y), "gail-focus-object", NULL); |