diff --git a/src/sugar3/graphics/colorbutton.py b/src/sugar3/graphics/colorbutton.py index ff209fa5..6d9c02a9 100644 --- a/src/sugar3/graphics/colorbutton.py +++ b/src/sugar3/graphics/colorbutton.py @@ -83,8 +83,8 @@ class _ColorButton(Gtk.Button): [Gtk.TargetEntry.new( 'application/x-color', 0, 0)], Gdk.DragAction.COPY) - self.connect('drag_data_received', self.__drag_data_received_cb) - self.connect('drag_data_get', self.__drag_data_get_cb) + self.connect('drag-data-received', self.__drag_data_received_cb) + self.connect('drag-data-get', self.__drag_data_get_cb) self._preview.fill_color = get_svg_color_string(self._color) self._preview.stroke_color = self._get_fg_style_color_str() diff --git a/src/sugar3/graphics/iconentry.py b/src/sugar3/graphics/iconentry.py index bc474616..0eba57f2 100644 --- a/src/sugar3/graphics/iconentry.py +++ b/src/sugar3/graphics/iconentry.py @@ -37,7 +37,7 @@ class IconEntry(Gtk.Entry): self._clear_icon = None self._clear_shown = False - self.connect('key_press_event', self._keypress_event_cb) + self.connect('key-press-event', self._keypress_event_cb) def set_icon_from_name(self, position, name): icon_theme = Gtk.IconTheme.get_default() diff --git a/src/sugar3/graphics/tray.py b/src/sugar3/graphics/tray.py index 55db31af..3cef6de0 100644 --- a/src/sugar3/graphics/tray.py +++ b/src/sugar3/graphics/tray.py @@ -64,7 +64,7 @@ class _TrayViewport(Gtk.Viewport): self.add(self.traybar) self.traybar.show() - self.connect('size_allocate', self._size_allocate_cb) + self.connect('size-allocate', self._size_allocate_cb) if self.orientation == Gtk.Orientation.HORIZONTAL: adj = self.get_hadjustment()