pastie rearchitectured

I’ve made a lot of changes to pastie (no, development wasn’t stopped, it was just slow and internal):

  • The indicator is now handled by the protector class.
  • Clipboard contents checking is now driven by the “owner-change” gtk clipboard’s signal. There’s a secondary loop for special cases (e.g. Gvim). This makes pastie perform a lot better, and behave correctly. Memory doesn’t leak when there is an image selected anymore.
  • The history collector is now subclassed from gobject.GObject and uses signals to update the menu.
  • The menu item classes are also subclassed from gobject.GObject, and use signals when they are selected in the menu.

The last two changes should make reference cycles a less prominent source of memory problems.

I’ve found there’s a possible problem with libappindicator which might be the source of the remaining (sigh) memory leaks.

The new code is in the testing branch.

This was posted 1 year ago. It has 0 notes and 0 comments.