Commit 0a16f723 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Make sure the column is allocated (so that the column size change picks up

1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
	the column is allocated (so that the column size change picks up
	the column during the iteration).
	(sheet_view_row_selection_changed): Same
parent 1e3d41ad
1998-10-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
the column is allocated (so that the column size change picks up
the column during the iteration).
(sheet_view_row_selection_changed): Same
* src/style.c (font_init): New routine: loads a couple of default
fonts to be used in Gnumeric.
......
1998-10-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
the column is allocated (so that the column size change picks up
the column during the iteration).
(sheet_view_row_selection_changed): Same
* src/style.c (font_init): New routine: loads a couple of default
fonts to be used in Gnumeric.
......
1998-10-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
the column is allocated (so that the column size change picks up
the column during the iteration).
(sheet_view_row_selection_changed): Same
* src/style.c (font_init): New routine: loads a couple of default
fonts to be used in Gnumeric.
......
1998-10-07 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
the column is allocated (so that the column size change picks up
the column during the iteration).
(sheet_view_row_selection_changed): Same
* src/style.c (font_init): New routine: loads a couple of default
fonts to be used in Gnumeric.
......
......@@ -207,6 +207,8 @@ sheet_view_col_selection_changed (ItemBar *item_bar, int column, int modifiers,
{
Sheet *sheet = sheet_view->sheet;
sheet_col_get (sheet, column);
if (modifiers){
if ((modifiers & GDK_SHIFT_MASK) && sheet->selections){
SheetSelection *ss = sheet->selections->data;
......@@ -258,6 +260,8 @@ sheet_view_row_selection_changed (ItemBar *item_bar, int row, int modifiers, She
{
Sheet *sheet = sheet_view->sheet;
sheet_row_get (sheet, row);
if (modifiers){
if ((modifiers & GDK_SHIFT_MASK) && sheet->selections){
SheetSelection *ss = sheet->selections->data;
......@@ -296,7 +300,7 @@ sheet_view_row_size_changed (ItemBar *item_bar, int row, int height, SheetView *
for (l = sheet->rows_info; l; l = l->next){
ColRowInfo *ri = l->data;
if (sheet_col_selection_type (sheet, ri->pos) == ITEM_BAR_FULL_SELECTION)
if (sheet_row_selection_type (sheet, ri->pos) == ITEM_BAR_FULL_SELECTION)
sheet_row_set_height (sheet, ri->pos, height, TRUE);
}
......
......@@ -207,6 +207,8 @@ sheet_view_col_selection_changed (ItemBar *item_bar, int column, int modifiers,
{
Sheet *sheet = sheet_view->sheet;
sheet_col_get (sheet, column);
if (modifiers){
if ((modifiers & GDK_SHIFT_MASK) && sheet->selections){
SheetSelection *ss = sheet->selections->data;
......@@ -258,6 +260,8 @@ sheet_view_row_selection_changed (ItemBar *item_bar, int row, int modifiers, She
{
Sheet *sheet = sheet_view->sheet;
sheet_row_get (sheet, row);
if (modifiers){
if ((modifiers & GDK_SHIFT_MASK) && sheet->selections){
SheetSelection *ss = sheet->selections->data;
......@@ -296,7 +300,7 @@ sheet_view_row_size_changed (ItemBar *item_bar, int row, int height, SheetView *
for (l = sheet->rows_info; l; l = l->next){
ColRowInfo *ri = l->data;
if (sheet_col_selection_type (sheet, ri->pos) == ITEM_BAR_FULL_SELECTION)
if (sheet_row_selection_type (sheet, ri->pos) == ITEM_BAR_FULL_SELECTION)
sheet_row_set_height (sheet, ri->pos, height, TRUE);
}
......
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