From 65922aa0c6ca9a463a2dd01e54292fbed1af5701 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 8 Apr 2003 14:36:55 +0000 Subject: remove debugging g_print calls fix length_threshold prop range fix 2003-04-08 Mike Kestner * e-cell-popup.c : remove debugging g_print calls * e-table-group-container.c : fix length_threshold prop range * e-table-group-leaf.c : fix length_threshold prop range * e-table-item.c : fix length_threshold prop range svn path=/trunk/; revision=20750 --- widgets/table/e-cell-popup.c | 11 ----------- widgets/table/e-table-group-container.c | 2 +- widgets/table/e-table-group-leaf.c | 2 +- widgets/table/e-table-item.c | 2 +- 4 files changed, 3 insertions(+), 14 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-popup.c b/widgets/table/e-cell-popup.c index 195b6a7aa3..3c5eccbee3 100644 --- a/widgets/table/e-cell-popup.c +++ b/widgets/table/e-cell-popup.c @@ -333,9 +333,6 @@ ecp_event (ECellView *ecv, GdkEvent *event, int model_col, int view_col, width = e_table_header_col_diff (eti->header, view_col, view_col + 1); - g_print ("Event in item popup width: %i button: %g,%g\n", - width, event->button.x, event->button.y); - /* FIXME: The event coords seem to be relative to the text within the cell, so we have to add 4. */ if (event->button.x + 4 >= width - E_CELL_POPUP_ARROW_WIDTH) { @@ -347,10 +344,8 @@ ecp_event (ECellView *ecv, GdkEvent *event, int model_col, int view_col, if (e_table_model_is_cell_editable (ecv->e_table_model, model_col, row) && event->key.state & GDK_MOD1_MASK && event->key.keyval == GDK_Down) { - g_print ("## Alt-Down pressed\n"); return e_cell_popup_do_popup (ecp_view, event, row, view_col); } - g_print ("Key Press Event ECellPopup\n"); break; default: break; @@ -381,9 +376,6 @@ ecp_enter_edit (ECellView *ecv, int model_col, int view_col, int row) { ECellPopupView *ecp_view = (ECellPopupView *) ecv; - g_print ("In ecp_enter_edit model_col: %i view_col: %i row: %i\n", - model_col, view_col, row); - return e_cell_enter_edit (ecp_view->child_view, model_col, view_col, row); } @@ -397,9 +389,6 @@ ecp_leave_edit (ECellView *ecv, int model_col, int view_col, int row, { ECellPopupView *ecp_view = (ECellPopupView *) ecv; - g_print ("In ecp_leave_edit model_col: %i view_col: %i row: %i\n", - model_col, view_col, row); - e_cell_leave_edit (ecp_view->child_view, model_col, view_col, row, edit_context); } diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index dedc291a46..61b8b9f1a5 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -947,7 +947,7 @@ etgc_class_init (GObjectClass *object_class) g_param_spec_int ("length_threshold", _( "Length Threshold" ), _( "Length Threshold" ), - 0, G_MAXINT, 0, + -1, G_MAXINT, 0, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_UNIFORM_ROW_HEIGHT, diff --git a/widgets/table/e-table-group-leaf.c b/widgets/table/e-table-group-leaf.c index e580fc89fc..083345ed74 100644 --- a/widgets/table/e-table-group-leaf.c +++ b/widgets/table/e-table-group-leaf.c @@ -604,7 +604,7 @@ etgl_class_init (GObjectClass *object_class) g_param_spec_int ("length_threshold", _( "Length Threshold" ), _( "Length Threshold" ), - 0, G_MAXINT, 0, + -1, G_MAXINT, 0, G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_SELECTION_MODEL, diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c index 4c03513ee1..44aeecebb2 100644 --- a/widgets/table/e-table-item.c +++ b/widgets/table/e-table-item.c @@ -2926,7 +2926,7 @@ eti_class_init (GObjectClass *object_class) g_param_spec_int ("length_threshold", _( "Length Threshold" ), _( "Length Threshold" ), - 0, G_MAXINT, 0, + -1, G_MAXINT, 0, G_PARAM_WRITABLE)); g_object_class_install_property (object_class, PROP_MINIMUM_WIDTH, -- cgit