Opened 10 years ago

Last modified 9 years ago

#4729 new task

convert to new style gobject signal format

Reported by: walter Owned by:
Priority: Normal Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords:
Cc: godiard, tch Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

We should probably convert the signals from the old-style to the new style:

e.g.,

gsignals = {

'color-changed': (GObject.SignalFlags.RUN_FIRST,

None,
([object])),

and

self.emit('color-changed', self._color)

to

color_changed_signal = GObject.Signal('color-changed',

arg_types=([object]))

and

self.color_changed_signal.emit(self._color)

Change History (2)

comment:1 Changed 10 years ago by walter

  • Priority changed from Unspecified by Maintainer to Normal

comment:2 Changed 9 years ago by SAMdroid

  • Cc godiard tch added

What pyGObject version does this require?

It looks cool though!

Even better, if you use the new way to define signals, you can still use the old way to .connect to the signal.

Note: See TracTickets for help on using tickets.