From afce5051437fb7e91bcb10e0364b8263b73ca648 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 30 Jun 2009 10:09:42 +0200 Subject: [PATCH] Rename activate signal in cell renderers to 'clicked' --- src/sugar/graphics/icon.py | 2 +- src/sugar/graphics/palette.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py index fff0a1a7..45f2de5a 100644 --- a/src/sugar/graphics/icon.py +++ b/src/sugar/graphics/icon.py @@ -923,7 +923,7 @@ class CellRendererIcon(gtk.GenericCellRenderer): __gtype_name__ = 'SugarCellRendererIcon' __gsignals__ = { - 'activate': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object]) + 'clicked': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, [object]) } def __init__(self, tree_view): diff --git a/src/sugar/graphics/palette.py b/src/sugar/graphics/palette.py index 0ad7f0e5..88145d24 100644 --- a/src/sugar/graphics/palette.py +++ b/src/sugar/graphics/palette.py @@ -1234,7 +1234,7 @@ class CellRendererInvoker(Invoker): tree_view = self._tree_view path, column_, x_, y_ = tree_view.get_path_at_pos(int(event.x), int(event.y)) - self._cell_renderer.emit('activate', path) + self._cell_renderer.emit('clicked', path) # So the treeview receives it and knows a drag isn't going on return False if event.button == 3 and self._point_in_cell_renderer(event.x, event.y):