aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/test-table.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@src.gnome.org>2000-03-30 09:35:18 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-03-30 09:35:18 +0800
commita02608b0784912bebfd13c888cd1f0b32ed3c5e3 (patch)
tree73de4a81330902fb49e6a5fdf82bd7b61ca6a50a /widgets/table/test-table.c
parent88674ff4013f5b62ecaeaf8021b8f710067b8598 (diff)
downloadgsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.gz
gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.tar.zst
gsoc2013-evolution-a02608b0784912bebfd13c888cd1f0b32ed3c5e3.zip
Fix indentation
svn path=/trunk/; revision=2252
Diffstat (limited to 'widgets/table/test-table.c')
-rw-r--r--widgets/table/test-table.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/widgets/table/test-table.c b/widgets/table/test-table.c
index 70c1e11ce1..54fe02ae71 100644
--- a/widgets/table/test-table.c
+++ b/widgets/table/test-table.c
@@ -56,8 +56,8 @@ parse_headers ()
p = buffer;
for (i = 0; (s = strtok (p, " \t")) != NULL; i++){
column_labels [i] = g_strdup (s);
- if ( strchr(column_labels [i], '\n') )
- *strchr(column_labels [i], '\n') = 0;
+ if (strchr (column_labels [i], '\n'))
+ *strchr (column_labels [i], '\n') = 0;
p = NULL;
}
@@ -179,19 +179,19 @@ is_cell_editable (ETableModel *etc, int col, int row, void *data)
static void *
duplicate_value (ETableModel *etc, int col, const void *value, void *data)
{
- return g_strdup(value);
+ return g_strdup (value);
}
static void
free_value (ETableModel *etc, int col, void *value, void *data)
{
- g_free(value);
+ g_free (value);
}
static void
thaw (ETableModel *etc, void *data)
{
- e_table_model_changed(etc);
+ e_table_model_changed (etc);
}
static void
@@ -275,13 +275,13 @@ table_browser_test (void)
static void
save_spec (GtkWidget *button, ETable *e_table)
{
- e_table_save_specification(e_table, "e-table-test.xml");
+ e_table_save_specification (e_table, "e-table-test.xml");
}
static void
row_selection_test (ETable *table, int row, gboolean selected)
{
- if ( selected )
+ if (selected)
g_print ("Row %d selected\n", row);
else
g_print ("Row %d unselected\n", row);
@@ -300,7 +300,7 @@ do_e_table_demo (const char *spec)
*/
static ETableModel *e_table_model = NULL;
- if ( e_table_model == NULL )
+ if (e_table_model == NULL)
e_table_model =
e_table_simple_new (col_count, row_count, value_at,
set_value_at, is_cell_editable,
@@ -323,14 +323,14 @@ do_e_table_demo (const char *spec)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
frame = gtk_frame_new (NULL);
e_table = e_table_new (full_header, e_table_model, spec);
- gtk_signal_connect(GTK_OBJECT(e_table), "row_selection",
+ gtk_signal_connect (GTK_OBJECT(e_table), "row_selection",
GTK_SIGNAL_FUNC(row_selection_test), NULL);
- button = gtk_button_new_with_label("Save spec");
+ button = gtk_button_new_with_label ("Save spec");
gtk_signal_connect (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (save_spec), e_table);
- vbox = gtk_vbox_new(FALSE, 0);
+ vbox = gtk_vbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), e_table, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);