Added a BACKEND_CHANGED signal on PsppireDict, and handled it accordingly.
[pspp-builds.git] / lib / gtksheet / gtksheet.c
index 3830dac1e10ed50442b912f1171222ca20e074f8..18922cf14d40e9bc16a8e070a4b275ea4a77f180 100644 (file)
@@ -1320,6 +1320,15 @@ range_update_callback (GSheetModel *m, gint row0, gint col0,
   range.rowi = rowi;
   range.coli = coli;
 
+  if ( MAX_VISIBLE_ROW (sheet) >
+       g_sheet_model_get_row_count (sheet->model)
+       ||
+       MAX_VISIBLE_COLUMN (sheet) >
+       g_sheet_model_get_column_count (sheet->model))
+    {
+      gtk_sheet_move_query (sheet, 0, 0);
+    }
+
   if ( ( row0 < 0 && col0 < 0 ) || ( rowi < 0 && coli < 0 ) )
     {
       gint i;