Summary: | OptionMenu: pop->scroll leads to assertion `style->depth == gdk_drawable_get_depth (window)' failed | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | Ruslan Kabatsayev <b7.10110111> |
Component: | gtk2-engine | Assignee: | Hugo Pereira Da Costa <hugo.pereira.da.costa> |
Status: | CLOSED FIXED | ||
Severity: | normal | CC: | b7.10110111, hugo.pereira.da.costa, web |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Ruslan Kabatsayev
2012-05-03 19:02:44 UTC
This is because the GtkMenuItems are only registered to engine (and parentSet signal connected), only once they have been selected once. If you go and select one by one the items in the menu, then there is no more issue, and the engine does its job. In the past this was working better cause we where using a hook (connected at GtkMenuItem's creation) but at some point this failed, and I changed the code to its current state. 8710e03009c987db65b27a877b8e682bfc3101fd moved style re-attachement from oxygenargbhelper to dedicated menuItem engine. CCBUG: 295803 Obviously this is not sufficient. I need to find a smarter way to register the menuItems to the engine. Maybe by triggering on menu being shown and looping over its children at that time. Git commit 4c05651de7da088f0b93e6c949abb56431ff8a67 by Hugo Pereira Da Costa. Committed on 03/05/2012 at 23:19. Pushed by hpereiradacosta into branch 'master'. Register all GtkMenuItems to MenuItemEngine via their parent menu, the first time it is shown. M +1 -0 src/CMakeLists.txt C +23 -28 src/animations/oxygenmenuitemengine.cpp [from: src/animations/oxygenmenuitemengine.h - 051% similarity] M +3 -0 src/animations/oxygenmenuitemengine.h M +3 -0 src/oxygenstylewrapper.cpp http://commits.kde.org/oxygen-gtk/4c05651de7da088f0b93e6c949abb56431ff8a67 That should fix it. Please confirm and close. I'll merge with the other branches (1.2 and gtk3's) after confirmation. I confirm that this is now fixed. Thanks. Git commit e9294fccc535094f1a902120cde34b65f2639769 by Hugo Pereira Da Costa. Committed on 03/05/2012 at 23:19. Pushed by hpereiradacosta into branch '1.2'. Register all GtkMenuItems to MenuItemEngine via their parent menu, the first time it is shown. M +1 -0 src/CMakeLists.txt C +23 -28 src/animations/oxygenmenuitemengine.cpp [from: src/animations/oxygenmenuitemengine.h - 051% similarity] M +3 -0 src/animations/oxygenmenuitemengine.h M +3 -0 src/oxygenstylewrapper.cpp http://commits.kde.org/oxygen-gtk/e9294fccc535094f1a902120cde34b65f2639769 Git commit 4045e710bd1093aa602c93c15bf968dae006f6e2 by Hugo Pereira Da Costa. Committed on 03/05/2012 at 23:19. Pushed by hpereiradacosta into branch 'gtk3'. Register all GtkMenuItems to MenuItemEngine via their parent menu, the first time it is shown. M +1 -0 src/CMakeLists.txt C +23 -28 src/animations/oxygenmenuitemengine.cpp [from: src/animations/oxygenmenuitemengine.h - 051% similarity] M +3 -0 src/animations/oxygenmenuitemengine.h M +3 -0 src/oxygenthemingengine.cpp http://commits.kde.org/oxygen-gtk/4045e710bd1093aa602c93c15bf968dae006f6e2 |