Commit cc28f5fb authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Miguel de Icaza

Removed unused scrollbar code.



2001-05-14  Miguel de Icaza  <miguel@ximian.com>

	* Makefile.am (libwidgets_a_SOURCES): Removed unused scrollbar code.

2001-05-14  Miguel de Icaza  <miguel@ximian.com>

	* src/sheet-control-gui.c: Removed support routines that used the
	Excel-like toolbar.  I got fed up with it.
	(scg_construct): Use regular Gtk scrollbars.  Connect to value
	changed to reflect the state of the scrollbar on the spreadsheet
	inmediately instead of doing the broken Excel behaviour.
	That is one feature I cloned that was totally idiotic.
parent 819e57c8
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* src/sheet-control-gui.c: Removed support routines that used the
Excel-like toolbar. I got fed up with it.
(scg_construct): Use regular Gtk scrollbars. Connect to value
changed to reflect the state of the scrollbar on the spreadsheet
inmediately instead of doing the broken Excel behaviour.
That is one feature I cloned that was totally idiotic.
2001-05-13 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_error_splits_array):
......
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* src/sheet-control-gui.c: Removed support routines that used the
Excel-like toolbar. I got fed up with it.
(scg_construct): Use regular Gtk scrollbars. Connect to value
changed to reflect the state of the scrollbar on the spreadsheet
inmediately instead of doing the broken Excel behaviour.
That is one feature I cloned that was totally idiotic.
2001-05-13 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_error_splits_array):
......
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* src/sheet-control-gui.c: Removed support routines that used the
Excel-like toolbar. I got fed up with it.
(scg_construct): Use regular Gtk scrollbars. Connect to value
changed to reflect the state of the scrollbar on the spreadsheet
inmediately instead of doing the broken Excel behaviour.
That is one feature I cloned that was totally idiotic.
2001-05-13 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_error_splits_array):
......
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* src/sheet-control-gui.c: Removed support routines that used the
Excel-like toolbar. I got fed up with it.
(scg_construct): Use regular Gtk scrollbars. Connect to value
changed to reflect the state of the scrollbar on the spreadsheet
inmediately instead of doing the broken Excel behaviour.
That is one feature I cloned that was totally idiotic.
2001-05-13 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_error_splits_array):
......
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* src/sheet-control-gui.c: Removed support routines that used the
Excel-like toolbar. I got fed up with it.
(scg_construct): Use regular Gtk scrollbars. Connect to value
changed to reflect the state of the scrollbar on the spreadsheet
inmediately instead of doing the broken Excel behaviour.
That is one feature I cloned that was totally idiotic.
2001-05-13 Almer S. Tigelaar <almer@gnome.org>
* src/workbook-control-gui.c (wbcg_error_splits_array):
......
......@@ -480,34 +480,19 @@ button_select_all (GtkWidget *the_button, SheetControlGUI *scg)
}
static void
vertical_scroll_offset_changed (GtkAdjustment *adj, int top, int is_hint, SheetControlGUI *scg)
vertical_value_changed (GtkAdjustment *adj, SheetControlGUI *scg)
{
GnumericSheet *gsheet = GNUMERIC_SHEET (scg->canvas);
if (is_hint) {
char *buffer = g_strdup_printf (_("Row: %d"), top + 1);
wb_control_gui_set_status_text (scg->wbcg, buffer);
g_free (buffer);
} else {
wb_control_gui_set_status_text (scg->wbcg, "");
gnumeric_sheet_set_top_row (gsheet, top);
}
gnumeric_sheet_set_top_row (gsheet, adj->value);
}
static void
horizontal_scroll_offset_changed (GtkAdjustment *adj, int left, int is_hint,
SheetControlGUI *scg)
horizontal_value_changed (GtkAdjustment *adj, SheetControlGUI *scg)
{
GnumericSheet *gsheet = GNUMERIC_SHEET (scg->canvas);
if (is_hint) {
char *buffer = g_strdup_printf (_("Column: %s"), col_name (left));
wb_control_gui_set_status_text (scg->wbcg, buffer);
g_free (buffer);
} else {
wb_control_gui_set_status_text (scg->wbcg, "");
gnumeric_sheet_set_left_col (gsheet, left);
}
gnumeric_sheet_set_left_col (gsheet, adj->value);
}
static void
......@@ -576,13 +561,13 @@ scg_construct (SheetControlGUI *scg)
/* Scroll bars and their adjustments */
scg->va = gtk_adjustment_new (0., 0., sheet->rows.max_used, 1., 1., 1.);
scg->ha = gtk_adjustment_new (0., 0., sheet->cols.max_used, 1., 1., 1.);
scg->hs = gnumeric_hscrollbar_new (GTK_ADJUSTMENT (scg->ha));
scg->vs = gnumeric_vscrollbar_new (GTK_ADJUSTMENT (scg->va));
gtk_signal_connect (GTK_OBJECT (scg->hs), "offset_changed",
GTK_SIGNAL_FUNC (horizontal_scroll_offset_changed),
scg->hs = gtk_hscrollbar_new (GTK_ADJUSTMENT (scg->ha));
scg->vs = gtk_vscrollbar_new (GTK_ADJUSTMENT (scg->va));
gtk_signal_connect (GTK_OBJECT (scg->ha), "value_changed",
GTK_SIGNAL_FUNC (horizontal_value_changed),
scg);
gtk_signal_connect (GTK_OBJECT (scg->vs), "offset_changed",
GTK_SIGNAL_FUNC (vertical_scroll_offset_changed),
gtk_signal_connect (GTK_OBJECT (scg->va), "value_changed",
GTK_SIGNAL_FUNC (vertical_value_changed),
scg);
gtk_table_attach (outer_table, GTK_WIDGET (table), 0, 1, 0, 1,
......
2001-05-14 Miguel de Icaza <miguel@ximian.com>
* Makefile.am (libwidgets_a_SOURCES): Removed unused scrollbar code.
2001-05-11 Jon K Hellan <hellan@acm.org>
* gnumeric-expr-entry.[ch] (gnumeric_expr_entry_freeze,
......
......@@ -11,10 +11,6 @@ noinst_LIBRARIES = libwidgets.a
libwidgets_a_SOURCES = \
gnumeric-toolbar.c \
gnumeric-toolbar.h \
gnumeric-vscrollbar.c \
gnumeric-vscrollbar.h \
gnumeric-hscrollbar.c \
gnumeric-hscrollbar.h \
widget-editable-label.c \
widget-editable-label.h \
widget-font-selector.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment