Skip to content

Commit

Permalink
Gio.SimpleActionGroup.lookup is deprecated
Browse files Browse the repository at this point in the history
Use Gio.ActionMap.lookup_action instead.
  • Loading branch information
RoDuth committed Nov 25, 2024
1 parent 416feca commit d497ad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bauble/plugins/plants/test_plants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4027,14 +4027,14 @@ def test_on_map_button_release(self):
ebox = Gtk.EventBox()
self.assertTrue(mix.on_map_button_release(ebox, btn))
grp = ebox.get_action_group(DistMapInfoExpanderMixin.MAP_ACTION_NAME)
self.assertTrue(grp.lookup("zoom"))
self.assertIsNone(grp.lookup("zmout"))
self.assertTrue(grp.lookup_action("zoom"))
self.assertIsNone(grp.lookup_action("zmout"))
mix.zoomed = True
ebox = Gtk.EventBox()
self.assertTrue(mix.on_map_button_release(ebox, btn))
grp = ebox.get_action_group(DistMapInfoExpanderMixin.MAP_ACTION_NAME)
self.assertIsNone(grp.lookup("zoom"))
self.assertTrue(grp.lookup("zmout"))
self.assertIsNone(grp.lookup_action("zoom"))
self.assertTrue(grp.lookup_action("zmout"))

@mock.patch("bauble.plugins.plants.geography.Gtk.FileChooserNative")
def test_on_dist_map_save(self, mock_chooser):
Expand Down

0 comments on commit d497ad3

Please sign in to comment.