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 336855 - widgetToAlignWith not realized when updating postion of aligned window
widgetToAlignWith not realized when updating postion of aligned window
Status: RESOLVED FIXED
Product: deskbar-applet
Classification: Deprecated
Component: general
2.16.x
Other All
: High critical
: ---
Assigned To: Mikkel Kamstrup Erlandsen
Deskbar Applet Maintainer(s)
: 338979 355362 355363 362109 364688 365654 365671 365916 367800 368585 369233 369234 369236 370617 372044 372366 373409 378140 379006 379153 379361 379649 385704 391011 391377 391432 391920 395268 396043 396829 397955 398060 400471 401196 408147 408181 410576 411392 411432 412752 413270 417873 418230 418757 419283 424148 424334 424896 426235 426437 426438 426579 427146 427298 427306 427307 429466 438843 441889 442701 447827 452629 454872 457937 459073 459949 460406 461956 462767 463828 463830 463831 466819 467834 471326 474712 475600 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-04-01 16:53 UTC by ulrik sverdrup
Modified: 2007-09-15 10:10 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Patch implementing the above comment (from me) (608 bytes, patch)
2007-01-05 06:46 UTC, Mikkel Kamstrup Erlandsen
committed Details | Review

Description ulrik sverdrup 2006-04-01 16:53:00 UTC
Please describe the problem:
deskbar-applet doesn't manage to get its position right for some reason.
Pressing the hotkey when it's in panel icon mode, I get this python exception in
the "bug detected" window:

	Traceback (most recent call last):
  File
"/usr/lib/python2.4/site-packages/deskbar/ui/cuemiac/CuemiacAlignedWindow.py",
line 33, in __resize_event
    self.update_position ()
  File
"/usr/lib/python2.4/site-packages/deskbar/ui/cuemiac/CuemiacAlignedWindow.py",
line 50, in update_position
    (ax, ay) = self.widgetToAlignWith.window.get_origin ()
AttributeError: 'NoneType' object has no attribute 'get_origin'


Dismissing the bug window, the search entry box shows up randomly somewhere on
the screen (might be close to the cursor, actually)

Steps to reproduce:
1. Use deskbar in icon mode
2. press the hot key
3. 




Actual results:


Expected results:


Does this happen every time?
I can't actually reproduce this reliably


Comment 1 Raphael Slinckx 2006-04-07 00:32:53 UTC
I cannot reproduce this either.

It seems to happen because the WidgetToAlignTo isn't realized yet (has no gdk window associated) which seems very weird.

I'll leave that one to mikkel :P
Comment 2 Mikkel Kamstrup Erlandsen 2006-06-28 19:38:19 UTC
This should be fixed now. Feel free to reopen if you can still reproduce.
Comment 3 Karsten Bräckelmann 2006-09-12 10:24:44 UTC
REOPENing, due to 2 reports with the exact same stacktrace, triggered by different actions. deskbar-pplet 2.16.0.
Comment 4 Karsten Bräckelmann 2006-09-12 10:25:10 UTC
*** Bug 355363 has been marked as a duplicate of this bug. ***
Comment 5 Karsten Bräckelmann 2006-09-12 10:25:17 UTC
*** Bug 355362 has been marked as a duplicate of this bug. ***
Comment 6 Karsten Bräckelmann 2006-09-12 10:26:27 UTC
Setting Piority and Severity according to crasher. Updating version.
Comment 7 André Klapper 2006-10-14 10:06:16 UTC
*** Bug 362109 has been marked as a duplicate of this bug. ***
Comment 8 André Klapper 2006-10-14 10:06:39 UTC
confirming, obviously.
Comment 9 André Klapper 2006-10-24 12:42:59 UTC
*** Bug 364688 has been marked as a duplicate of this bug. ***
Comment 10 Mikkel Kamstrup Erlandsen 2006-10-24 14:43:16 UTC
Just a thought, what window manager are you guys using?
Comment 11 nperriault 2006-10-24 14:50:25 UTC
Metacity/Gnome on Ubuntu Edgy RC1
Comment 12 Mikkel Kamstrup Erlandsen 2006-10-24 14:57:27 UTC
Damn :-D I was hoping for Compiz/Beryl since they have really odd behaviors from time to time... What about you other guys?
Comment 13 Rob Bradford 2006-10-27 18:06:58 UTC
*** Bug 365654 has been marked as a duplicate of this bug. ***
Comment 14 Rob Bradford 2006-10-27 18:07:41 UTC
*** Bug 365671 has been marked as a duplicate of this bug. ***
Comment 15 Rob Bradford 2006-10-27 18:08:52 UTC
*** Bug 364688 has been marked as a duplicate of this bug. ***
Comment 16 Karsten Bräckelmann 2006-10-27 19:40:29 UTC
*** Bug 365916 has been marked as a duplicate of this bug. ***
Comment 17 André Klapper 2006-10-30 18:04:21 UTC
*** Bug 367800 has been marked as a duplicate of this bug. ***
Comment 18 André Klapper 2006-11-01 09:56:14 UTC
*** Bug 368585 has been marked as a duplicate of this bug. ***
Comment 19 André Klapper 2006-11-02 13:05:38 UTC
*** Bug 369236 has been marked as a duplicate of this bug. ***
Comment 20 André Klapper 2006-11-02 13:05:51 UTC
*** Bug 369234 has been marked as a duplicate of this bug. ***
Comment 21 André Klapper 2006-11-02 13:06:33 UTC
*** Bug 369233 has been marked as a duplicate of this bug. ***
Comment 22 André Klapper 2006-11-04 18:46:04 UTC
*** Bug 370617 has been marked as a duplicate of this bug. ***
Comment 23 André Klapper 2006-11-07 16:06:30 UTC
*** Bug 372044 has been marked as a duplicate of this bug. ***
Comment 24 André Klapper 2006-11-08 16:41:11 UTC
*** Bug 372366 has been marked as a duplicate of this bug. ***
Comment 25 Susana 2006-11-10 18:00:43 UTC
*** Bug 373409 has been marked as a duplicate of this bug. ***
Comment 26 André Klapper 2006-11-23 00:47:28 UTC
*** Bug 378140 has been marked as a duplicate of this bug. ***
Comment 27 André Klapper 2006-11-27 18:05:29 UTC
*** Bug 379006 has been marked as a duplicate of this bug. ***
Comment 28 André Klapper 2006-11-27 18:18:51 UTC
*** Bug 379153 has been marked as a duplicate of this bug. ***
Comment 29 André Klapper 2006-11-27 18:34:00 UTC
*** Bug 379361 has been marked as a duplicate of this bug. ***
Comment 30 André Klapper 2006-11-27 21:12:00 UTC
*** Bug 379649 has been marked as a duplicate of this bug. ***
Comment 31 Mikkel Kamstrup Erlandsen 2006-12-30 22:35:11 UTC
*** Bug 385704 has been marked as a duplicate of this bug. ***
Comment 32 Mikkel Kamstrup Erlandsen 2006-12-30 22:58:55 UTC
Ok, I can't commit this because the CVS servers are down for SVN stuff... Also
I can't really test if it fixes the issue, but it should to the best of my
knowledge.

Telepathic note from Mikkel to himself:

Insert this code in CuemiacAlignedWindow.update_position():



if not (self.widgetToAlignWith.flags() & gtk.REALIZED):
                        print "WARNING: CuemiacAlignedWindow.update_position()
widgetToAlignWith is not realized."
                        return



bb, when I've commited the "fix".
Comment 33 Susana 2007-01-01 22:29:33 UTC
*** Bug 391432 has been marked as a duplicate of this bug. ***
Comment 34 Susana 2007-01-03 00:41:33 UTC
*** Bug 391920 has been marked as a duplicate of this bug. ***
Comment 35 Mikkel Kamstrup Erlandsen 2007-01-05 06:46:20 UTC
Created attachment 79432 [details] [review]
Patch implementing the above comment (from me)

This should be fixed in trunk. I wont close this until somebody can verify this on a fresh trunk build. - Or atleast a patched deskbar, I *think* the patch applies against 2.16 as well.
Comment 36 André Klapper 2007-01-07 01:29:43 UTC
*** Bug 391377 has been marked as a duplicate of this bug. ***
Comment 37 André Klapper 2007-01-07 01:31:28 UTC
*** Bug 391011 has been marked as a duplicate of this bug. ***
Comment 38 André Klapper 2007-01-07 01:31:38 UTC
copied from duplicate bug 391011:


I did some further tests and I'd like to show you the two results I had.

What I did:
- Added the Deskbar to the panel.
- Added some text to search.
- The action window appeared.  The window was the one attached tho this bug
report as "Faulty window with searched text on it".
- Kept this window on screen.
- Removed the icon from the panel.  The window persisted and the bug report
window appeared.  I created this bug report.
- I had time to take a photo of the window since it still remained on screen.
- Later on, and by clicking on the "Web Search" title of such window, the bug
report window appeared again, informing about the same code lines.
- The action window dissapeared after some clicks... but I think it closed it
alone.

On first tests I reproduced the error by the same process.  The only difference
I can add is that the action window added some results listed.  Once the panel
icon was removed, when clicking on titles ("Web search" as an example) the
error appeared.  When clicking on the listed results, the behavior was the
correct:  an application was launched and the action window correctly self
closed.

My surprise was that, on latest tests, the window that appeared had a different
aspect, as shown in the attached file of this bug report, named as "Right
window with no field for the searched text".  In this case, the window always
and appropriately closed when just clicking on the icon when I wanted to remove
the icon from the panel.  So in this case the problem never arises.

That's all.  I hope not having gone on a bit.  Just to congratulate you guys
for this great tool!

With best regards.
Antonio.
Comment 39 palfrey 2007-01-15 22:30:14 UTC
*** Bug 396829 has been marked as a duplicate of this bug. ***
Comment 40 André Klapper 2007-01-18 12:14:42 UTC
*** Bug 396043 has been marked as a duplicate of this bug. ***
Comment 41 Francesco Mari 2007-01-18 19:18:43 UTC
*** Bug 398060 has been marked as a duplicate of this bug. ***
Comment 42 palfrey 2007-01-19 00:27:08 UTC
*** Bug 397955 has been marked as a duplicate of this bug. ***
Comment 43 palfrey 2007-01-22 16:36:12 UTC
*** Bug 395268 has been marked as a duplicate of this bug. ***
Comment 44 palfrey 2007-01-27 00:23:56 UTC
*** Bug 338979 has been marked as a duplicate of this bug. ***
Comment 45 palfrey 2007-01-27 00:25:27 UTC
*** Bug 401196 has been marked as a duplicate of this bug. ***
Comment 46 palfrey 2007-01-27 00:25:41 UTC
*** Bug 400471 has been marked as a duplicate of this bug. ***
Comment 47 Susana 2007-02-17 15:02:07 UTC
*** Bug 408147 has been marked as a duplicate of this bug. ***
Comment 48 Susana 2007-02-17 15:09:05 UTC
*** Bug 408181 has been marked as a duplicate of this bug. ***
Comment 49 Pedro Villavicencio 2007-02-21 22:59:15 UTC
*** Bug 410576 has been marked as a duplicate of this bug. ***
Comment 50 Pedro Villavicencio 2007-02-24 01:34:31 UTC
*** Bug 411392 has been marked as a duplicate of this bug. ***
Comment 51 Pedro Villavicencio 2007-02-24 12:41:15 UTC
*** Bug 411432 has been marked as a duplicate of this bug. ***
Comment 52 Pedro Villavicencio 2007-02-28 00:00:53 UTC
*** Bug 412752 has been marked as a duplicate of this bug. ***
Comment 53 Susana 2007-03-01 10:06:16 UTC
*** Bug 413270 has been marked as a duplicate of this bug. ***
Comment 54 Susana 2007-03-18 00:56:47 UTC
*** Bug 417873 has been marked as a duplicate of this bug. ***
Comment 55 Sven Arvidsson 2007-03-21 16:10:59 UTC
*** Bug 419283 has been marked as a duplicate of this bug. ***
Comment 56 Sven Arvidsson 2007-03-21 17:36:19 UTC
*** Bug 418757 has been marked as a duplicate of this bug. ***
Comment 57 Sven Arvidsson 2007-03-21 17:51:29 UTC
*** Bug 418230 has been marked as a duplicate of this bug. ***
Comment 58 Sven Arvidsson 2007-03-29 21:37:33 UTC
*** Bug 424148 has been marked as a duplicate of this bug. ***
Comment 59 Sven Arvidsson 2007-04-05 15:06:33 UTC
*** Bug 426579 has been marked as a duplicate of this bug. ***
Comment 60 Sven Arvidsson 2007-04-05 15:10:06 UTC
*** Bug 426438 has been marked as a duplicate of this bug. ***
Comment 61 Sven Arvidsson 2007-04-05 15:10:41 UTC
*** Bug 426437 has been marked as a duplicate of this bug. ***
Comment 62 Sven Arvidsson 2007-04-05 15:14:07 UTC
*** Bug 426235 has been marked as a duplicate of this bug. ***
Comment 63 Sven Arvidsson 2007-04-05 15:36:51 UTC
*** Bug 424896 has been marked as a duplicate of this bug. ***
Comment 64 Sven Arvidsson 2007-04-05 15:43:01 UTC
*** Bug 424334 has been marked as a duplicate of this bug. ***
Comment 65 Sven Arvidsson 2007-04-07 15:43:21 UTC
*** Bug 427307 has been marked as a duplicate of this bug. ***
Comment 66 Sven Arvidsson 2007-04-07 15:44:57 UTC
*** Bug 427306 has been marked as a duplicate of this bug. ***
Comment 67 Sven Arvidsson 2007-04-07 15:45:36 UTC
*** Bug 427298 has been marked as a duplicate of this bug. ***
Comment 68 Sven Arvidsson 2007-04-07 17:01:25 UTC
*** Bug 427146 has been marked as a duplicate of this bug. ***
Comment 69 Sven Arvidsson 2007-04-13 21:50:04 UTC
*** Bug 429466 has been marked as a duplicate of this bug. ***
Comment 70 Martin Möller 2007-05-16 10:41:34 UTC
*** Bug 438843 has been marked as a duplicate of this bug. ***
Comment 71 Sven Arvidsson 2007-05-28 20:08:12 UTC
*** Bug 441889 has been marked as a duplicate of this bug. ***
Comment 72 Ghislain MARY 2007-06-01 17:43:04 UTC
*** Bug 442701 has been marked as a duplicate of this bug. ***
Comment 73 Susana 2007-06-22 22:04:20 UTC
*** Bug 447827 has been marked as a duplicate of this bug. ***
Comment 74 Vincent Untz 2007-07-21 22:47:51 UTC
No 2.18 dup and Mikkel has committed a patch that probably fixed it => FIXED.
Comment 75 Susana 2007-07-24 00:22:55 UTC
*** Bug 459073 has been marked as a duplicate of this bug. ***
Comment 76 Susana 2007-07-24 00:23:14 UTC
*** Bug 457937 has been marked as a duplicate of this bug. ***
Comment 77 Diego Escalante Urrelo (not reading bugmail) 2007-07-26 23:24:49 UTC
*** Bug 460406 has been marked as a duplicate of this bug. ***
Comment 78 Damien Durand 2007-08-02 17:42:55 UTC
*** Bug 462767 has been marked as a duplicate of this bug. ***
Comment 79 Iestyn Pryce 2007-08-06 10:28:55 UTC
*** Bug 463828 has been marked as a duplicate of this bug. ***
Comment 80 Sven Arvidsson 2007-08-06 22:54:29 UTC
*** Bug 463831 has been marked as a duplicate of this bug. ***
Comment 81 Sven Arvidsson 2007-08-06 22:54:55 UTC
*** Bug 463830 has been marked as a duplicate of this bug. ***
Comment 82 palfrey 2007-08-17 16:40:29 UTC
*** Bug 452629 has been marked as a duplicate of this bug. ***
Comment 83 palfrey 2007-08-17 16:42:37 UTC
*** Bug 454872 has been marked as a duplicate of this bug. ***
Comment 84 palfrey 2007-08-17 16:44:40 UTC
*** Bug 461956 has been marked as a duplicate of this bug. ***
Comment 85 Sven Arvidsson 2007-08-19 13:26:39 UTC
*** Bug 467834 has been marked as a duplicate of this bug. ***
Comment 86 palfrey 2007-09-03 18:02:48 UTC
*** Bug 459949 has been marked as a duplicate of this bug. ***
Comment 87 palfrey 2007-09-03 18:02:53 UTC
*** Bug 466819 has been marked as a duplicate of this bug. ***
Comment 88 palfrey 2007-09-03 18:02:56 UTC
*** Bug 471326 has been marked as a duplicate of this bug. ***
Comment 89 Sebastian Pölsterl 2007-09-15 10:07:02 UTC
*** Bug 474712 has been marked as a duplicate of this bug. ***
Comment 90 Sebastian Pölsterl 2007-09-15 10:10:45 UTC
*** Bug 475600 has been marked as a duplicate of this bug. ***