Opened 14 years ago

Closed 12 years ago

#1474 closed bug (Fixed)

"on_show_prefs" hook is not executed immediatly after enabling a plugin

Reported by: terror_macbeth_I Owned by:
Priority: minor Milestone: 1.3.6
Component: GTK UI Version: 1.3.1
Keywords: Cc:


Consider following example:

class GtkUI(GtkPluginBase):
    def enable(self): =""))

        component.get("PluginManager").register_hook("on_apply_prefs", self.on_apply_prefs)
        component.get("PluginManager").register_hook("on_show_prefs", self.on_show_prefs)

When the plugin is enable in the GTK preferences dialog and right away one clicks the added config notebook page the "on_show_prefs" callback is not executed. Only after closing the preferences window and reopening it the callback is executed properly.

The problem can be observed looking at the scheduler plugin.

Enabling it and right away clicking on the newly added notebook page shows all settings initialized to wrong defaults (GTK widget defaults).

Enabling it and closing the preferences window with "Cancel" ("OK" sets the GTK defaults as new values) and than reopening the preferences dialog shows the right plugin defaults.

Change History (4)

comment:1 by Calum, 13 years ago

Type: defectbug

comment:2 by Calum, 13 years ago

Milestone: Future1.3.2

comment:3 by Calum, 13 years ago


comment:4 by Calum, 12 years ago

Milestone: 1.3.x1.3.6
Resolution: fixed
Status: newclosed

Fixed 1.3-stable: a3a9cae

Note: See TracTickets for help on using tickets.