From: John Darrington Date: Mon, 17 Nov 2008 23:04:24 +0000 (+0900) Subject: Whitespace changes X-Git-Tag: v0.7.1~155 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f549c72af52727744c8c11709c335c592727df61;p=pspp-builds.git Whitespace changes --- diff --git a/lib/gtksheet/gsheet-column-iface.c b/lib/gtksheet/gsheet-column-iface.c index 1cd7996d..ca5bd5b6 100644 --- a/lib/gtksheet/gsheet-column-iface.c +++ b/lib/gtksheet/gsheet-column-iface.c @@ -38,7 +38,7 @@ static guint sheet_column_signals[LAST_SIGNAL]; -static void g_sheet_column_base_init (gpointer g_class); +static void g_sheet_column_base_init (gpointer g_class); GType @@ -66,7 +66,7 @@ g_sheet_column_get_type (void) g_type_register_static (G_TYPE_INTERFACE, "GSheetColumn", &sheet_column_info, 0); - g_assert(sheet_column_type); + g_assert (sheet_column_type); g_type_interface_add_prerequisite (sheet_column_type, G_TYPE_OBJECT); } @@ -123,7 +123,7 @@ g_sheet_column_get_width (const GSheetColumn *column, glong col) gboolean -g_sheet_column_get_visibility(const GSheetColumn *column, +g_sheet_column_get_visibility (const GSheetColumn *column, glong col) { g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE); @@ -136,7 +136,7 @@ g_sheet_column_get_visibility(const GSheetColumn *column, } gboolean -g_sheet_column_get_sensitivity(const GSheetColumn *column, +g_sheet_column_get_sensitivity (const GSheetColumn *column, glong col) { g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE); @@ -150,23 +150,23 @@ g_sheet_column_get_sensitivity(const GSheetColumn *column, GtkSheetButton * -g_sheet_column_get_button(const GSheetColumn *column, +g_sheet_column_get_button (const GSheetColumn *column, glong col) { - GtkSheetButton *button = gtk_sheet_button_new(); + GtkSheetButton *button = gtk_sheet_button_new (); GSheetColumnIface *iface = G_SHEET_COLUMN_GET_IFACE (column); g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE); if ( iface->get_button_label) - button->label = iface->get_button_label(column, col); + button->label = iface->get_button_label (column, col); return button; } GtkJustification -g_sheet_column_get_justification(const GSheetColumn *column, +g_sheet_column_get_justification (const GSheetColumn *column, glong col) { g_return_val_if_fail (G_IS_SHEET_COLUMN (column), FALSE); @@ -238,7 +238,7 @@ g_sheet_column_set_right_text_column (const GSheetColumn *column, } glong -g_sheet_column_get_column_count(const GSheetColumn *geo) +g_sheet_column_get_column_count (const GSheetColumn *geo) { g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1); @@ -248,19 +248,18 @@ g_sheet_column_get_column_count(const GSheetColumn *geo) } gint -g_sheet_column_start_pixel(const GSheetColumn *geo, glong col) +g_sheet_column_start_pixel (const GSheetColumn *geo, glong col) { gint i; gint start_pixel = 0; g_return_val_if_fail (G_IS_SHEET_COLUMN (geo), -1); - g_return_val_if_fail (col < - g_sheet_column_get_column_count(geo),-1); + g_return_val_if_fail (col < g_sheet_column_get_column_count (geo), -1); for ( i = 0 ; i < col ; ++i ) { - if ( g_sheet_column_get_visibility(geo, i)) - start_pixel += g_sheet_column_get_width(geo, i); + if ( g_sheet_column_get_visibility (geo, i)) + start_pixel += g_sheet_column_get_width (geo, i); } return start_pixel; @@ -270,7 +269,7 @@ g_sheet_column_start_pixel(const GSheetColumn *geo, glong col) void -g_sheet_column_columns_changed(GSheetColumn *geo, +g_sheet_column_columns_changed (GSheetColumn *geo, glong first, glong n_columns) { g_return_if_fail (G_IS_SHEET_COLUMN (geo)); diff --git a/lib/gtksheet/gsheet-row-iface.c b/lib/gtksheet/gsheet-row-iface.c index 81bc56bb..878d2bde 100644 --- a/lib/gtksheet/gsheet-row-iface.c +++ b/lib/gtksheet/gsheet-row-iface.c @@ -36,7 +36,7 @@ static guint sheet_row_signals[LAST_SIGNAL]; -static void g_sheet_row_base_init (gpointer g_class); +static void g_sheet_row_base_init (gpointer g_class); GType @@ -128,7 +128,7 @@ g_sheet_row_get_height (const GSheetRow *row_geo, gboolean -g_sheet_row_get_visibility(const GSheetRow *row_geo, +g_sheet_row_get_visibility (const GSheetRow *row_geo, glong row) { g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE); @@ -141,7 +141,7 @@ g_sheet_row_get_visibility(const GSheetRow *row_geo, } gboolean -g_sheet_row_get_sensitivity(const GSheetRow *row_geo, +g_sheet_row_get_sensitivity (const GSheetRow *row_geo, glong row) { g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE); @@ -155,17 +155,17 @@ g_sheet_row_get_sensitivity(const GSheetRow *row_geo, GtkSheetButton * -g_sheet_row_get_button(const GSheetRow *row_geo, +g_sheet_row_get_button (const GSheetRow *row_geo, glong row) { - GtkSheetButton *button = gtk_sheet_button_new(); + GtkSheetButton *button = gtk_sheet_button_new (); GSheetRowIface *iface = G_SHEET_ROW_GET_IFACE (row_geo); g_return_val_if_fail (G_IS_SHEET_ROW (row_geo), FALSE); if ( iface->get_button_label) - button->label = iface->get_button_label(row_geo, row); + button->label = iface->get_button_label (row_geo, row); return button; } @@ -208,23 +208,22 @@ g_sheet_row_get_row_count (const GSheetRow *geo) */ gint -g_sheet_row_start_pixel(const GSheetRow *geo, glong row) +g_sheet_row_start_pixel (const GSheetRow *geo, glong row) { gint i; gint start_pixel = 0; g_return_val_if_fail (G_IS_SHEET_ROW (geo), -1); g_return_val_if_fail (row >= 0, -1); - g_return_val_if_fail (row < - g_sheet_row_get_row_count(geo),-1); + g_return_val_if_fail (row < g_sheet_row_get_row_count (geo), -1); - if ( G_SHEET_ROW_GET_IFACE(geo)->top_ypixel) - return (G_SHEET_ROW_GET_IFACE(geo)->top_ypixel)(geo, row); + if ( G_SHEET_ROW_GET_IFACE (geo)->top_ypixel) + return (G_SHEET_ROW_GET_IFACE (geo)->top_ypixel)(geo, row); for ( i = 0 ; i < row ; ++i ) { - if ( g_sheet_row_get_visibility(geo, i)) - start_pixel += g_sheet_row_get_height(geo, i); + if ( g_sheet_row_get_visibility (geo, i)) + start_pixel += g_sheet_row_get_height (geo, i); } return start_pixel; @@ -238,8 +237,8 @@ g_sheet_row_pixel_to_row (const GSheetRow *geo, gint pixel) g_return_val_if_fail (G_IS_SHEET_ROW (geo), -1); g_return_val_if_fail (pixel >= 0, -1) ; - if ( G_SHEET_ROW_GET_IFACE(geo)->pixel_to_row) - return (G_SHEET_ROW_GET_IFACE(geo)->pixel_to_row)(geo, pixel); + if ( G_SHEET_ROW_GET_IFACE (geo)->pixel_to_row) + return (G_SHEET_ROW_GET_IFACE (geo)->pixel_to_row)(geo, pixel); cy = 0; for (i = 0; i < g_sheet_row_get_row_count (geo); ++i ) @@ -249,7 +248,7 @@ g_sheet_row_pixel_to_row (const GSheetRow *geo, gint pixel) g_sheet_row_get_visibility (geo, i)) return i; - if(g_sheet_row_get_visibility (geo, i)) + if (g_sheet_row_get_visibility (geo, i)) cy += g_sheet_row_get_height (geo, i); }