Geography: Use Gtk.SeparatorMenuItem instead of empty Gtk.MenuItem
This commit is contained in:
parent
2b38921991
commit
57711d29ae
@ -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)
|
||||
|
||||
|
@ -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(
|
||||
|
@ -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"))
|
||||
|
@ -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(
|
||||
|
@ -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"))
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user