GNOME Bugzilla – Bug 336855
widgetToAlignWith not realized when updating postion of aligned window
Last modified: 2007-09-15 10:10:45 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
+ Trace 67386
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
This should be fixed now. Feel free to reopen if you can still reproduce.
REOPENing, due to 2 reports with the exact same stacktrace, triggered by different actions. deskbar-pplet 2.16.0.
*** Bug 355363 has been marked as a duplicate of this bug. ***
*** Bug 355362 has been marked as a duplicate of this bug. ***
Setting Piority and Severity according to crasher. Updating version.
*** Bug 362109 has been marked as a duplicate of this bug. ***
confirming, obviously.
*** Bug 364688 has been marked as a duplicate of this bug. ***
Just a thought, what window manager are you guys using?
Metacity/Gnome on Ubuntu Edgy RC1
Damn :-D I was hoping for Compiz/Beryl since they have really odd behaviors from time to time... What about you other guys?
*** Bug 365654 has been marked as a duplicate of this bug. ***
*** Bug 365671 has been marked as a duplicate of this bug. ***
*** Bug 365916 has been marked as a duplicate of this bug. ***
*** Bug 367800 has been marked as a duplicate of this bug. ***
*** Bug 368585 has been marked as a duplicate of this bug. ***
*** Bug 369236 has been marked as a duplicate of this bug. ***
*** Bug 369234 has been marked as a duplicate of this bug. ***
*** Bug 369233 has been marked as a duplicate of this bug. ***
*** Bug 370617 has been marked as a duplicate of this bug. ***
*** Bug 372044 has been marked as a duplicate of this bug. ***
*** Bug 372366 has been marked as a duplicate of this bug. ***
*** Bug 373409 has been marked as a duplicate of this bug. ***
*** Bug 378140 has been marked as a duplicate of this bug. ***
*** Bug 379006 has been marked as a duplicate of this bug. ***
*** Bug 379153 has been marked as a duplicate of this bug. ***
*** Bug 379361 has been marked as a duplicate of this bug. ***
*** Bug 379649 has been marked as a duplicate of this bug. ***
*** Bug 385704 has been marked as a duplicate of this bug. ***
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".
*** Bug 391432 has been marked as a duplicate of this bug. ***
*** Bug 391920 has been marked as a duplicate of this bug. ***
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.
*** Bug 391377 has been marked as a duplicate of this bug. ***
*** Bug 391011 has been marked as a duplicate of this bug. ***
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.
*** Bug 396829 has been marked as a duplicate of this bug. ***
*** Bug 396043 has been marked as a duplicate of this bug. ***
*** Bug 398060 has been marked as a duplicate of this bug. ***
*** Bug 397955 has been marked as a duplicate of this bug. ***
*** Bug 395268 has been marked as a duplicate of this bug. ***
*** Bug 338979 has been marked as a duplicate of this bug. ***
*** Bug 401196 has been marked as a duplicate of this bug. ***
*** Bug 400471 has been marked as a duplicate of this bug. ***
*** Bug 408147 has been marked as a duplicate of this bug. ***
*** Bug 408181 has been marked as a duplicate of this bug. ***
*** Bug 410576 has been marked as a duplicate of this bug. ***
*** Bug 411392 has been marked as a duplicate of this bug. ***
*** Bug 411432 has been marked as a duplicate of this bug. ***
*** Bug 412752 has been marked as a duplicate of this bug. ***
*** Bug 413270 has been marked as a duplicate of this bug. ***
*** Bug 417873 has been marked as a duplicate of this bug. ***
*** Bug 419283 has been marked as a duplicate of this bug. ***
*** Bug 418757 has been marked as a duplicate of this bug. ***
*** Bug 418230 has been marked as a duplicate of this bug. ***
*** Bug 424148 has been marked as a duplicate of this bug. ***
*** Bug 426579 has been marked as a duplicate of this bug. ***
*** Bug 426438 has been marked as a duplicate of this bug. ***
*** Bug 426437 has been marked as a duplicate of this bug. ***
*** Bug 426235 has been marked as a duplicate of this bug. ***
*** Bug 424896 has been marked as a duplicate of this bug. ***
*** Bug 424334 has been marked as a duplicate of this bug. ***
*** Bug 427307 has been marked as a duplicate of this bug. ***
*** Bug 427306 has been marked as a duplicate of this bug. ***
*** Bug 427298 has been marked as a duplicate of this bug. ***
*** Bug 427146 has been marked as a duplicate of this bug. ***
*** Bug 429466 has been marked as a duplicate of this bug. ***
*** Bug 438843 has been marked as a duplicate of this bug. ***
*** Bug 441889 has been marked as a duplicate of this bug. ***
*** Bug 442701 has been marked as a duplicate of this bug. ***
*** Bug 447827 has been marked as a duplicate of this bug. ***
No 2.18 dup and Mikkel has committed a patch that probably fixed it => FIXED.
*** Bug 459073 has been marked as a duplicate of this bug. ***
*** Bug 457937 has been marked as a duplicate of this bug. ***
*** Bug 460406 has been marked as a duplicate of this bug. ***
*** Bug 462767 has been marked as a duplicate of this bug. ***
*** Bug 463828 has been marked as a duplicate of this bug. ***
*** Bug 463831 has been marked as a duplicate of this bug. ***
*** Bug 463830 has been marked as a duplicate of this bug. ***
*** Bug 452629 has been marked as a duplicate of this bug. ***
*** Bug 454872 has been marked as a duplicate of this bug. ***
*** Bug 461956 has been marked as a duplicate of this bug. ***
*** Bug 467834 has been marked as a duplicate of this bug. ***
*** Bug 459949 has been marked as a duplicate of this bug. ***
*** Bug 466819 has been marked as a duplicate of this bug. ***
*** Bug 471326 has been marked as a duplicate of this bug. ***
*** Bug 474712 has been marked as a duplicate of this bug. ***
*** Bug 475600 has been marked as a duplicate of this bug. ***