After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 114098 - No Undo/Redo for some SheetObjects
No Undo/Redo for some SheetObjects
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Sheet Objects
1.1.x
Other All
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 360880 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-05-31 03:35 UTC by Chema Celorio
Modified: 2009-04-20 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for the remaining sheet objects (6.88 KB, patch)
2009-04-17 15:38 UTC, Andreas J. Guelzow
none Details | Review
should fix compilation with gtk+-2.12 and older (2.88 KB, patch)
2009-04-20 13:27 UTC, Jean Bréfort
none Details | Review

Description Chema Celorio 2003-05-31 03:35:41 UTC
(low importance)
1. New spreadsheet, add a checkbox sheet object
2. Open the properties dialog for the checkbox
3. Select a cell to link to, exit the property dialog
4. Undo

Undo backs up the creation of the sheet object, not the modification of one
of its properties
Comment 1 Andreas J. Guelzow 2003-05-31 05:22:31 UTC
Several other items are missing the undo too, see BUGS.
Comment 2 Jody Goldberg 2004-09-27 03:14:36 UTC
I just added undo for line/arrow/rectangle/oval/text and eventually polygon
Comment 3 Jon Kåre Hellan 2006-10-17 20:22:03 UTC
*** Bug 360880 has been marked as a duplicate of this bug. ***
Comment 4 Andreas J. Guelzow 2009-04-14 03:40:06 UTC
I have justed added undo for combo and list boxes (as a sideeffect of making the properties dialog working.)
Comment 5 Andreas J. Guelzow 2009-04-14 15:03:29 UTC
Frames also have undo now.
Comment 6 Andreas J. Guelzow 2009-04-15 06:18:37 UTC
Checkboxes have undo.
Comment 7 Andreas J. Guelzow 2009-04-17 15:38:48 UTC
Created attachment 132834 [details] [review]
fix for the remaining sheet objects

This patch will provide undo/redo for the remaining sheet objects.

It doesn't look like I will be able to commit this (or fix it if necessary) for a long while.
Comment 8 Andreas J. Guelzow 2009-04-19 22:24:29 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 9 Jon Kåre Hellan 2009-04-20 06:56:26 UTC
This makes gnumeric require gtk 2.14, which dates from September 2008. This is so
recent that I don't think we should make it a hard dependency.

The symbols gnumeric complains about with gtk 2.12 (e.g Ubuntu 8.04) are

  gtk_adjustment_configure
  gtk_adjustment_get_lower
  gtk_adjustment_get_upper
` gtk_adjustment_get_page_increment
  gtk_adjustment_get_step_increment
  gtk_adjustment_get_page_size

Could we fix the problem in another way, not relying on these symbols, or only
if they are available?

Alternatively, we could probably live without undo when built on older systems.
Comment 10 Jon Kåre Hellan 2009-04-20 12:02:24 UTC
IRC log fragment about this:

<jean> we can replace the symbolds: #define gtk_adjustment_get_lower(adj,x)   adj->lower = x
<jk_work> right, but that field is probably being GSEALed, which I why they made
<jk_work> the new accessors.
<jk_work> So we should conditionally use one or the other, may be even using
<jk_work> wrappers in goffice
Comment 11 Jean Bréfort 2009-04-20 13:27:55 UTC
Created attachment 132959 [details] [review]
should fix compilation with gtk+-2.12 and older
Comment 12 Jean Bréfort 2009-04-20 13:47:22 UTC
patch commited with a few fixes.
Comment 13 Morten Welinder 2009-04-20 13:51:11 UTC
Seems ok, but I notice that when I change a scroll bar, I get lots of entries
in the undo list.  I would have hoped to get precisely one for whereever I
release the drag.

Comment 14 Andreas J. Guelzow 2009-04-20 14:14:23 UTC
Morten: These lots of entries when you change a scrolbar has been there for a long time. The new changes just make the configuration undoable. Changing adjustments were made undoable by Jody ages ago.