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 566652 - drag and drop a chart never stops dragging
drag and drop a chart never stops dragging
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
1.8.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
: 580931 615627 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-05 17:07 UTC by Jeffrey Baker
Modified: 2010-04-13 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jeffrey Baker 2009-01-05 17:07:26 UTC
I have this problem where if I drag a chart on a sheet, the drag never ends.  For instance, if I click and drag the chart, then drop it, everything looks normal, but if I move the mouse again (now with no buttons pressed) then the chart continues to drag.  This will happen indefinitely.  The only way to end it is to move the cursor off the chart onto another area of the sheet and press the Escape key on the keyboard repeatedly until the drag ends.

Observed with 1.8.3 on Ubuntu 8.10 x86.
Comment 1 Jean Bréfort 2009-01-06 08:35:21 UTC
1.8.3 on debian sid does not present this issue. Might be an Ubuntu issue (1.8.3 on Ubuntu is not the official 1.8.3).
Comment 2 Morten Welinder 2009-01-06 13:28:36 UTC
I seem to recall that this might be a gtk+ behaviour change.  What versions
of gtk+ are you two running?
Comment 3 Jean Bréfort 2009-01-07 11:28:49 UTC
Possibly a gtk+ version issue. I checked with both the 1.8 branch and truk on ubuntu 8.10. The 1.8 branch has this behavior, but it looks it has been fixed in trunk.
Comment 4 John Lang 2009-01-26 23:01:34 UTC
I am experiencing this problem on Ubuntu 8.10 x86.  LP bug: https://bugs.launchpad.net/gnumeric/+bug/316502

After pressing ESC or double-clicking on the plot to stop the plot dragging, I am unable to type in cells by selecting a cell and then typing.  I have to double click on a cell to cause the cursor to be active, then I can start typing.

Installed Packages:
gnumeric                1.8.3-3ubuntu2
gnumeric-common         1.8.3-3ubuntu2
gnumeric-doc            1.8.3-3ubuntu2
gnumeric-plugins-extra  1.8.3-3ubuntu2

libgtk2.0-0             2.14.4-0ubuntu1
libgtk2.0-0-bin         2.14.4-0ubuntu1
libgtk2.0-0-cil         2.12.1-1ubuntu2
libgtk2.0-0-common      2.14.4-0ubuntu1

Please let me know if any additional information will be helpful.
Comment 5 Arand 2009-04-28 14:43:12 UTC
I was seeing this as well, upgrading to 1.9.6 though debian sid repo mitigated:

gnumeric & gnumeric-common: 1.8.4-3ubuntu2 >> 1.9.6-1
libgoffice-0-6 >> libgoffice-0-8
libgoffice-common-0-6 >> libgoffice-common-0-8
Comment 6 Jean Bréfort 2009-04-28 15:21:52 UTC
I still don't see this behavior on debian sid, now with gtk+2.16, so it does not seem it is a gtk+ issue.
Comment 7 Jody Goldberg 2009-04-28 16:38:26 UTC
It _was_ a gtk issue.   They changed the semantics of some of the callbacks yet again.
It was fixed in the 1.8.4 release.
Comment 8 Jean Bréfort 2009-04-29 09:02:48 UTC
Jody, 1.8.4 on ubuntu-9.04 still shows this issue.
Comment 9 Andreas J. Guelzow 2009-04-30 20:07:03 UTC
Jean: is 1.8.4 on ubuntu really the gnumeric 1.8.4 release? Ubuntu has been known to pull from svn so their 1.8.4 could be between 1.8.3 and 1.8.4. 
Comment 10 Andreas J. Guelzow 2009-04-30 20:07:23 UTC
*** Bug 580931 has been marked as a duplicate of this bug. ***
Comment 11 Luke Hutchison 2009-04-30 20:57:25 UTC
This is also a problem with Gnumeric-1.8.4 on Fedora 10 and 11.

gnumeric-1.8.4-2.fc11
gtk2-2.16.1-3.fc11
Comment 12 Andreas J. Guelzow 2009-04-30 21:32:36 UTC
We released Gnumeric on 2009-01-18 17:03:12 (GMT) (at least that's when Jody tagged it in svn).

As far as I can tell gnumeric "1.8.4" was added to fedora 10 on 2008-11-17. So this cannot be the true 1.8.4 release.
Comment 13 Morten Welinder 2009-04-30 22:41:45 UTC
The fix for this appears to have gone into 1.8 after last release, see
http://git.gnome.org/cgit/gnumeric/log/?h=gnumeric-1-8
Comment 14 John Lang 2009-04-30 23:06:35 UTC
I still see this bug on a fresh install of Ubuntu 9.04.  The source tarball used to build the Ubuntu package is the 1.8.4 release: 

$ md5sum gnumeric*
b17e4ab47343c7adf8eebde3f4d8185f  gnumeric_1.8.4.orig.tar.gz
b17e4ab47343c7adf8eebde3f4d8185f  gnumeric-1.8.4.tar.gz

So it looks like the bug is still present or upstream is applying a patch that introduces the bug.  

Since some say this is a GTK issue, is there a particular GTK bug that we can reference?  If this is a bug in GTK, I'd like to inform upstream so that it can be fixed.
Comment 15 Luke Hutchison 2009-05-01 00:35:44 UTC
It would be nice to push this into Fedora 11, and perhaps Fedora 10 as a bugfix release, since this bug has made Gnumeric unusable for the lifetime of Fedora 10.  Who handles packaging for Fedora?
Comment 16 Morten Welinder 2009-05-01 12:28:30 UTC
Evidently the fix mentioned in comment 13 is for another gtk+ ABI break.
Comment 17 Morten Welinder 2009-05-02 01:41:02 UTC
The fix for this is now in goffice-0-6 git.

http://git.gnome.org/cgit/goffice/commit/?h=goffice-0-6&id=bfcd25ce71fce582af48f834c14a956249dc3ea6
Comment 18 Jean Bréfort 2009-08-18 12:16:23 UTC
Looks like this bug is not fixed. Aparently, it is due to the fact that when dragging ends, there is no button-release event. This currently has two consequences:
- the grabbed item is not ungrabbed (probably minor)
- pane->drag.button is not reset to 0
Ths last one implies a new gtk_drag_begin call as soon as the mouse moves since we do that from the motion-notify event when the button is not NULL.

One solution seems to be to add
pane->drag.button = 0;
in cb_pane_drag_end (we just set had_motion to FALSE).

I don't see the logic for the change in comment #17, not what was related to this bug in the changes mentioned in comment #13. May be I'm just blind ;-)

Looks like I can't reopen with the new bugzilla?
Comment 19 Arand 2009-08-18 14:24:28 UTC
I've helped patching goffice in ubuntu (8.10 & 9.04) according to patch linked in comment #17 (Launchpad #316502).
This DOES solve the issue at hand.
This update is currently in -proposed for these releases.
- Arand
Comment 20 Luke Hutchison 2009-10-20 17:41:21 UTC
This is still an issue with Fedora 12 beta.  It has survived three Fedora releases (along with bug 580930 et al.).  Does anyone have sway with RedHat that can help get the upstream fixes pushed into F12 in time for release?  Thanks!

See: https://bugzilla.redhat.com/show_bug.cgi?id=505001
Comment 21 Johannes Buchner 2010-04-13 10:22:52 UTC
*** Bug 615627 has been marked as a duplicate of this bug. ***