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 727251 - dashboard plugin: AttributeError: 'Image' object has no attribute 'get_children'
dashboard plugin: AttributeError: 'Image' object has no attribute 'get_children'
Status: RESOLVED OBSOLETE
Product: gedit-plugins
Classification: Other
Component: General
3.12.x
Other All
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 739759 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-03-28 14:50 UTC by Jasper Lievisse Adriaanse
Modified: 2020-11-24 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jasper Lievisse Adriaanse 2014-03-28 14:50:48 UTC
Loading the dashboard plugin currently breaks with:

Traceback (most recent call last):
  • File "/usr/local/lib/gedit/plugins/dashboard/__init__.py", line 53 in _add_tab
    [0].get_children()[0].get_children()[1].hide()
AttributeError: 'Image' object has no attribute 'get_children'

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)>]
Comment 1 Sagar Ghuge 2014-04-07 07:06:56 UTC
Also I get this 
Traceback (most recent call last):
  • File "/home/sagarghuge/gnome/lib/gedit/plugins/dashboard/__init__.py", line 92 in do_deactivate
    [0].get_children()[0].get_children()[2]
AttributeError: 'Image' object has no attribute 'get_children'

While de_activating the plugin.
Comment 2 jessevdk@gmail.com 2014-04-07 07:10:12 UTC
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.
Comment 3 Robert Roth 2015-01-02 09:12:37 UTC
*** Bug 739759 has been marked as a duplicate of this bug. ***
Comment 4 careca 2016-01-26 20:37:17 UTC
This bug can be reproduced by everyone.

Please, change status do CONFIRMED!

Many thanks
Comment 5 Sébastien Wilmet 2020-11-24 10:18:18 UTC
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.