Geography: Use Gtk.SeparatorMenuItem instead of empty Gtk.MenuItem

This commit is contained in:
zradosłav 2021-02-18 22:30:25 +02:00 committed by Nick Hall
parent 2b38921991
commit 57711d29ae
6 changed files with 7 additions and 6 deletions

View File

@ -437,7 +437,7 @@ class GeoGraphyView(OsmGps, NavigationView):
# Add specific module menu
self.add_specific_menu(menu, event, lat, lon)
# Add a separator line
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)

View File

@ -648,7 +648,7 @@ class GeoClose(GeoGraphyView):
"""
Add specific entry to the navigation menu.
"""
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)
add_item = Gtk.MenuItem(

View File

@ -450,7 +450,7 @@ class GeoEvents(GeoGraphyView):
"""
Add specific entry to the navigation menu.
"""
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)
add_item = Gtk.MenuItem(label=_("Show all events"))

View File

@ -831,7 +831,7 @@ class GeoFamClose(GeoGraphyView):
"""
Add specific entry to the navigation menu.
"""
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)
add_item = Gtk.MenuItem(

View File

@ -577,7 +577,7 @@ class GeoPerson(GeoGraphyView):
"""
Add specific entry to the navigation menu.
"""
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)
add_item = Gtk.MenuItem(label=_("Animate"))

View File

@ -539,9 +539,10 @@ class GeoPlaces(GeoGraphyView):
"""
Add specific entry to the navigation menu.
"""
add_item = Gtk.MenuItem()
add_item = Gtk.SeparatorMenuItem()
add_item.show()
menu.append(add_item)
add_item = Gtk.MenuItem(label=_("Show all places"))
add_item.connect("activate", self.show_all_places, event, lat, lon)
add_item.show()