From: John Darrington Date: Thu, 4 Dec 2008 00:21:55 +0000 (+0900) Subject: Remove {rows,columns}_resizeable function X-Git-Tag: v0.7.1~72 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=256b80a60ad7ade8c7ac947d3602f89120f37522;p=pspp-builds.git Remove {rows,columns}_resizeable function --- diff --git a/lib/gtksheet/gtksheet.c b/lib/gtksheet/gtksheet.c index c638c9e7..bab70950 100644 --- a/lib/gtksheet/gtksheet.c +++ b/lib/gtksheet/gtksheet.c @@ -1062,9 +1062,6 @@ gtk_sheet_init (GtkSheet *sheet) sheet->motion_timer = 0; - sheet->columns_resizable = TRUE; - sheet->rows_resizable = TRUE; - sheet->row_titles_visible = TRUE; sheet->row_title_area.width = DEFAULT_COLUMN_WIDTH; @@ -1455,26 +1452,6 @@ gtk_sheet_moveto (GtkSheet *sheet, } -static gboolean -gtk_sheet_columns_resizable (GtkSheet *sheet) -{ - g_return_val_if_fail (sheet != NULL, FALSE); - g_return_val_if_fail (GTK_IS_SHEET (sheet), FALSE); - - return sheet->columns_resizable; -} - - -static gboolean -gtk_sheet_rows_resizable (GtkSheet *sheet) -{ - g_return_val_if_fail (sheet != NULL, FALSE); - g_return_val_if_fail (GTK_IS_SHEET (sheet), FALSE); - - return sheet->rows_resizable; -} - - void gtk_sheet_select_row (GtkSheet *sheet, gint row) { @@ -3200,8 +3177,7 @@ gtk_sheet_button_press (GtkWidget *widget, /* press on resize windows */ - if (event->window == sheet->column_title_window && - gtk_sheet_columns_resizable (sheet)) + if (event->window == sheet->column_title_window) { #if 0 gtk_widget_get_pointer (widget, &sheet->x_drag, NULL); @@ -3227,7 +3203,7 @@ gtk_sheet_button_press (GtkWidget *widget, } } - if (event->window == sheet->row_title_window && gtk_sheet_rows_resizable (sheet)) + if (event->window == sheet->row_title_window) { gtk_widget_get_pointer (widget, NULL, &sheet->y_drag); @@ -3752,8 +3728,7 @@ gtk_sheet_motion (GtkWidget *widget, GdkEventMotion *event) } } - if (event->window == sheet->column_title_window && - gtk_sheet_columns_resizable (sheet)) + if (event->window == sheet->column_title_window) { if (!GTK_SHEET_IN_SELECTION (sheet) && on_column_boundary (sheet, x, &column)) @@ -3781,8 +3756,7 @@ gtk_sheet_motion (GtkWidget *widget, GdkEventMotion *event) } } - if (event->window == sheet->row_title_window && - gtk_sheet_rows_resizable (sheet)) + if (event->window == sheet->row_title_window) { #if AXIS_TRANSITION if (!GTK_SHEET_IN_SELECTION (sheet) && POSSIBLE_YDRAG (sheet, y, &column)) diff --git a/lib/gtksheet/gtksheet.h b/lib/gtksheet/gtksheet.h index 92c4248e..884e41f9 100644 --- a/lib/gtksheet/gtksheet.h +++ b/lib/gtksheet/gtksheet.h @@ -103,9 +103,6 @@ struct _GtkSheet gint16 column_requisition; gint16 row_requisition; - gboolean rows_resizable; - gboolean columns_resizable; - /* active cell */ GtkSheetCell active_cell;