Correct query for osmgpsmap. glib import removed, is not used
svn: r20310
This commit is contained in:
parent
14c05dcba3
commit
9b42432844
@ -241,11 +241,16 @@ def show_settings():
|
|||||||
cairover_str = 'not found'
|
cairover_str = 'not found'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from gi.repository import OsmGpsMap as osmgpsmap
|
from gi import Repository
|
||||||
try:
|
repository = Repository.get_default()
|
||||||
osmgpsmap_str = osmgpsmap._version
|
if repository.enumerate_versions("OsmGpsMap"):
|
||||||
except :# any failure to 'get' the version
|
from gi.repository import OsmGpsMap as osmgpsmap
|
||||||
osmgpsmap_str = 'unknown version'
|
try:
|
||||||
|
osmgpsmap_str = osmgpsmap._version
|
||||||
|
except :# any failure to 'get' the version
|
||||||
|
osmgpsmap_str = 'unknown version'
|
||||||
|
else:
|
||||||
|
osmgpsmap_str = 'not found'
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
osmgpsmap_str = 'not found'
|
osmgpsmap_str = 'not found'
|
||||||
|
@ -40,7 +40,6 @@ from gi.repository import Gdk
|
|||||||
KEY_TAB = Gdk.KEY_Tab
|
KEY_TAB = Gdk.KEY_Tab
|
||||||
import socket
|
import socket
|
||||||
from gi.repository import Gtk
|
from gi.repository import Gtk
|
||||||
import glib
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user