GNOME Bugzilla – Bug 727251
dashboard plugin: AttributeError: 'Image' object has no attribute 'get_children'
Last modified: 2020-11-24 10:18:18 UTC
Loading the dashboard plugin currently breaks with: Traceback (most recent call last):
+ Trace 233405
[0].get_children()[0].get_children()[1].hide()
Looking at the code: notebook.get_tab_label(tab).get_children()\ [0].get_children()[0].get_children()[1].hide() It turns out that notebook.get_tab_label(tab).get_children() equals: [<Image object at 0xefedb6960 (GtkImage at 0xef9f6b150)>, <Spinner object at 0xefedb69b0 (GtkSpinner at 0xf01d34b00)>, <Label object at 0xefedb6a00 (GtkLabel at 0xf035e6cc0)>, <__main__.GeditCloseButton object at 0xefedb6af0 (GeditCloseButton at 0xf025e0900)>]
Also I get this Traceback (most recent call last):
+ Trace 233443
[0].get_children()[0].get_children()[2]
While de_activating the plugin.
This plugin relies on a horribly unreliable way to obtain various internal gedit widgets and modify them, which is why it will break in unexpected ways anytime something about the internal structure of gedit changes. We should have a hard look at what to do about this. Ideally, we should have better API in gedit to make writing a plugin like the dashboard easier and stable.
*** Bug 739759 has been marked as a duplicate of this bug. ***
This bug can be reproduced by everyone. Please, change status do CONFIRMED! Many thanks
Mass-closing of all gedit-plugins bugzilla tickets. Special "code" to find again all those gedit-plugins bugzilla tickets that were open before the mass-closing: 2bfe1b0590a78457e1f1a6a90fb975f5878cb60064ccfe1d7db76ca0da52f0f3 By searching the above sha256sum in bugzilla, the gedit contributors can find again the tickets. We may be interested to do so when we work on a specific area of the code, to at least know the known problems and possible enhancements. We do this mass-closing because bugzilla.gnome.org is being replaced by gitlab.gnome.org.